-
Notifications
You must be signed in to change notification settings - Fork 0
/
zbx_template_rescript-backup.xml
249 lines (249 loc) · 12.9 KB
/
zbx_template_rescript-backup.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
<?xml version="1.0" encoding="UTF-8"?>
<zabbix_export>
<version>5.2</version>
<date>2021-03-16T10:39:08Z</date>
<groups>
<group>
<name>Templates</name>
</group>
</groups>
<templates>
<template>
<template>Template Rescript Restic Backup</template>
<name>Template Rescript Restic Backup</name>
<groups>
<group>
<name>Templates</name>
</group>
</groups>
<discovery_rules>
<discovery_rule>
<name>LV Discovery</name>
<type>TRAP</type>
<key>rescript.lv.discovery</key>
<delay>0</delay>
<lifetime>7d</lifetime>
<item_prototypes>
<item_prototype>
<name>Restic Backup of LV {#LV}: Bytes Added ({#REPO})</name>
<type>TRAP</type>
<key>restic.backup.added.[{#LV}.{#REPO}]</key>
<delay>0</delay>
<units>B</units>
<application_prototypes>
<application_prototype>
<name>Restic LV Backup of {#LV}</name>
</application_prototype>
</application_prototypes>
</item_prototype>
<item_prototype>
<name>Restic Backup of LV {#LV}: Bytes Processed ({#REPO})</name>
<type>TRAP</type>
<key>restic.backup.processedbytes.[{#LV}.{#REPO}]</key>
<delay>0</delay>
<units>B</units>
<application_prototypes>
<application_prototype>
<name>Restic LV Backup of {#LV}</name>
</application_prototype>
</application_prototypes>
</item_prototype>
<item_prototype>
<name>Restic Backup of LV {#LV}: Processed Time ({#REPO})</name>
<type>TRAP</type>
<key>restic.backup.processedtime.[{#LV}.{#REPO}]</key>
<delay>0</delay>
<units>s</units>
<application_prototypes>
<application_prototype>
<name>Restic LV Backup of {#LV}</name>
</application_prototype>
</application_prototypes>
</item_prototype>
<item_prototype>
<name>Restic Backup of LV {#LV}: Snapshot-ID ({#REPO})</name>
<type>TRAP</type>
<key>restic.backup.snapshotid.[{#LV}.{#REPO}]</key>
<delay>0</delay>
<trends>0</trends>
<value_type>CHAR</value_type>
<application_prototypes>
<application_prototype>
<name>Restic LV Backup of {#LV}</name>
</application_prototype>
</application_prototypes>
<trigger_prototypes>
<trigger_prototype>
<expression>{nodata({$TRIGGER_NOBACKUPTIME_LVM})}=1</expression>
<name>Restic LVM Backup of {#LV} to {#REPO} is outstanding on {HOST.NAME}</name>
<priority>WARNING</priority>
</trigger_prototype>
</trigger_prototypes>
</item_prototype>
</item_prototypes>
</discovery_rule>
<discovery_rule>
<name>Repo Discovery</name>
<type>TRAP</type>
<key>rescript.repo.discovery[discoverrepos]</key>
<delay>0</delay>
<lifetime>7d</lifetime>
<item_prototypes>
<item_prototype>
<name>Rescript Backup: Bytes Added ({#REPO})</name>
<type>TRAP</type>
<key>rescript.backup.added[{#REPO}]</key>
<delay>0</delay>
<units>B</units>
<application_prototypes>
<application_prototype>
<name>Rescript Restic Backup: {#REPO}</name>
</application_prototype>
</application_prototypes>
</item_prototype>
<item_prototype>
<name>Rescript Backup: Processed Bytes ({#REPO})</name>
<type>TRAP</type>
<key>rescript.backup.processedbytes[{#REPO}]</key>
<delay>0</delay>
<units>B</units>
<application_prototypes>
<application_prototype>
<name>Rescript Restic Backup: {#REPO}</name>
</application_prototype>
</application_prototypes>
</item_prototype>
<item_prototype>
<name>Rescript Backup: Processed Time to ({#REPO})</name>
<type>TRAP</type>
<key>rescript.backup.processedtime[{#REPO}]</key>
<delay>0</delay>
<units>s</units>
<application_prototypes>
<application_prototype>
<name>Rescript Restic Backup: {#REPO}</name>
</application_prototype>
</application_prototypes>
</item_prototype>
<item_prototype>
<name>Rescript Backup: Snapshot-ID ({#REPO})</name>
<type>TRAP</type>
<key>rescript.backup.snapshotid[{#REPO}]</key>
<delay>0</delay>
<trends>0</trends>
<value_type>CHAR</value_type>
<application_prototypes>
<application_prototype>
<name>Rescript Restic Backup: {#REPO}</name>
</application_prototype>
</application_prototypes>
<trigger_prototypes>
<trigger_prototype>
<expression>{nodata({$TRIGGER_NOBACKUPTIME})}=1</expression>
<name>Rescript Restic Backup on {HOST.NAME} to {#REPO} is outstanding</name>
<priority>WARNING</priority>
</trigger_prototype>
</trigger_prototypes>
</item_prototype>
<item_prototype>
<name>Rescript Check: Message ({#REPO})</name>
<type>TRAP</type>
<key>rescript.check.message[{#REPO}]</key>
<delay>0</delay>
<trends>0</trends>
<value_type>CHAR</value_type>
<application_prototypes>
<application_prototype>
<name>Rescript Restic Backup: {#REPO}</name>
</application_prototype>
</application_prototypes>
<trigger_prototypes>
<trigger_prototype>
<expression>{regexp(failed)}=1</expression>
<name>Rescript Restic Check on {HOST.NAME} to {#REPO} failed</name>
<priority>HIGH</priority>
</trigger_prototype>
</trigger_prototypes>
</item_prototype>
<item_prototype>
<name>Checksum of {#REPO}.conf</name>
<type>TRAP</type>
<key>rescript.config.cksum[{#REPO}]</key>
<delay>0</delay>
<application_prototypes>
<application_prototype>
<name>Rescript Restic Backup: {#REPO}</name>
</application_prototype>
</application_prototypes>
<trigger_prototypes>
<trigger_prototype>
<expression>{diff(0)}>0</expression>
<name>Rescript Restic config has been changed on {HOST.NAME} to {#REPO}</name>
<priority>WARNING</priority>
</trigger_prototype>
</trigger_prototypes>
</item_prototype>
<item_prototype>
<name>Rescript Prune: Number of Packs Removed ({#REPO})</name>
<type>TRAP</type>
<key>rescript.prune.packs.removed[{#REPO}]</key>
<delay>0</delay>
<application_prototypes>
<application_prototype>
<name>Rescript Restic Backup: {#REPO}</name>
</application_prototype>
</application_prototypes>
</item_prototype>
<item_prototype>
<name>Rescript Prune: Policy ({#REPO})</name>
<type>TRAP</type>
<key>rescript.prune.policy[{#REPO}]</key>
<delay>0</delay>
<trends>0</trends>
<value_type>CHAR</value_type>
<application_prototypes>
<application_prototype>
<name>Rescript Restic Backup: {#REPO}</name>
</application_prototype>
</application_prototypes>
</item_prototype>
<item_prototype>
<name>Rescript Prune: Remaining Size ({#REPO})</name>
<type>TRAP</type>
<key>rescript.prune.remaining.size[{#REPO}]</key>
<delay>0</delay>
<units>B</units>
<application_prototypes>
<application_prototype>
<name>Rescript Restic Backup: {#REPO}</name>
</application_prototype>
</application_prototypes>
</item_prototype>
<item_prototype>
<name>Rescript Prune: Unused Size after Prune ({#REPO})</name>
<type>TRAP</type>
<key>rescript.prune.unused.size[{#REPO}]</key>
<delay>0</delay>
<units>B</units>
<application_prototypes>
<application_prototype>
<name>Rescript Restic Backup: {#REPO}</name>
</application_prototype>
</application_prototypes>
</item_prototype>
</item_prototypes>
</discovery_rule>
</discovery_rules>
<macros>
<macro>
<macro>{$TRIGGER_NOBACKUPTIME}</macro>
<value>52h</value>
</macro>
<macro>
<macro>{$TRIGGER_NOBACKUPTIME_LVM}</macro>
<value>52h</value>
</macro>
</macros>
</template>
</templates>
</zabbix_export>