zabbix_template.xml 14.5 KB
Newer Older
1
2
3
<?xml version="1.0" encoding="UTF-8"?>
<zabbix_export>
    <version>3.2</version>
4
    <date>2018-11-19T12:05:43Z</date>
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
    <groups>
        <group>
            <name>Resif</name>
        </group>
    </groups>
    <templates>
        <template>
            <template>summer_snapshots</template>
            <name>Template Snaphshots summer</name>
            <description>Snapshot size in summer</description>
            <groups>
                <group>
                    <name>Resif</name>
                </group>
            </groups>
            <applications>
                <application>
                    <name>summer</name>
                </application>
            </applications>
            <items/>
            <discovery_rules>
                <discovery_rule>
28
                    <name>volumes summer</name>
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
                    <type>0</type>
                    <snmp_community/>
                    <snmp_oid/>
                    <key>summer_snapshots_mount.discovery</key>
                    <delay>30</delay>
                    <status>0</status>
                    <allowed_hosts/>
                    <snmpv3_contextname/>
                    <snmpv3_securityname/>
                    <snmpv3_securitylevel>0</snmpv3_securitylevel>
                    <snmpv3_authprotocol>0</snmpv3_authprotocol>
                    <snmpv3_authpassphrase/>
                    <snmpv3_privprotocol>0</snmpv3_privprotocol>
                    <snmpv3_privpassphrase/>
                    <delay_flex/>
                    <params/>
                    <ipmi_sensor/>
                    <authtype>0</authtype>
                    <username/>
                    <password/>
                    <publickey/>
                    <privatekey/>
                    <port/>
                    <filter>
                        <evaltype>0</evaltype>
                        <formula/>
                        <conditions/>
                    </filter>
                    <lifetime>30</lifetime>
                    <description/>
                    <item_prototypes>
                        <item_prototype>
                            <name>summer.snapshot.reserve.used[{#SUMMER_LIF},{#SUMMER_JUNCTION}]</name>
62
                            <type>2</type>
63
64
65
66
                            <snmp_community/>
                            <multiplier>0</multiplier>
                            <snmp_oid/>
                            <key>summer.snapshot.reserve.used[{#SUMMER_LIF},{#SUMMER_JUNCTION}]</key>
67
                            <delay>0</delay>
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
                            <history>90</history>
                            <trends>365</trends>
                            <status>0</status>
                            <value_type>3</value_type>
                            <allowed_hosts/>
                            <units>%</units>
                            <delta>0</delta>
                            <snmpv3_contextname/>
                            <snmpv3_securityname/>
                            <snmpv3_securitylevel>0</snmpv3_securitylevel>
                            <snmpv3_authprotocol>0</snmpv3_authprotocol>
                            <snmpv3_authpassphrase/>
                            <snmpv3_privprotocol>0</snmpv3_privprotocol>
                            <snmpv3_privpassphrase/>
                            <formula>1</formula>
                            <delay_flex/>
                            <params/>
                            <ipmi_sensor/>
                            <data_type>0</data_type>
                            <authtype>0</authtype>
                            <username/>
                            <password/>
                            <publickey/>
                            <privatekey/>
                            <port/>
                            <description>The percentage of used snapshot size</description>
                            <inventory_link>0</inventory_link>
                            <applications>
                                <application>
                                    <name>summer</name>
                                </application>
                            </applications>
                            <valuemap/>
                            <logtimefmt/>
                            <application_prototypes/>
                        </item_prototype>
                        <item_prototype>
                            <name>summer.snapshot.size[{#SUMMER_LIF},{#SUMMER_JUNCTION}]</name>
106
                            <type>2</type>
107
108
109
110
                            <snmp_community/>
                            <multiplier>0</multiplier>
                            <snmp_oid/>
                            <key>summer.snapshot.size[{#SUMMER_LIF},{#SUMMER_JUNCTION}]</key>
111
                            <delay>0</delay>
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
                            <history>90</history>
                            <trends>365</trends>
                            <status>0</status>
                            <value_type>3</value_type>
                            <allowed_hosts/>
                            <units>B</units>
                            <delta>0</delta>
                            <snmpv3_contextname/>
                            <snmpv3_securityname/>
                            <snmpv3_securitylevel>0</snmpv3_securitylevel>
                            <snmpv3_authprotocol>0</snmpv3_authprotocol>
                            <snmpv3_authpassphrase/>
                            <snmpv3_privprotocol>0</snmpv3_privprotocol>
                            <snmpv3_privpassphrase/>
                            <formula>1</formula>
                            <delay_flex/>
                            <params/>
                            <ipmi_sensor/>
                            <data_type>0</data_type>
                            <authtype>0</authtype>
                            <username/>
                            <password/>
                            <publickey/>
                            <privatekey/>
                            <port/>
                            <description>The size of all snapshots for a given SUMMER LIF and volume name.</description>
                            <inventory_link>0</inventory_link>
                            <applications>
                                <application>
                                    <name>summer</name>
                                </application>
                            </applications>
                            <valuemap/>
                            <logtimefmt/>
                            <application_prototypes/>
                        </item_prototype>
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
                        <item_prototype>
                            <name>summer.snapshot.total.used[{#SUMMER_LIF},{#SUMMER_JUNCTION}]</name>
                            <type>2</type>
                            <snmp_community/>
                            <multiplier>0</multiplier>
                            <snmp_oid/>
                            <key>summer.snapshot.total.used[{#SUMMER_LIF},{#SUMMER_JUNCTION}]</key>
                            <delay>0</delay>
                            <history>90</history>
                            <trends>365</trends>
                            <status>0</status>
                            <value_type>3</value_type>
                            <allowed_hosts/>
                            <units>%</units>
                            <delta>0</delta>
                            <snmpv3_contextname/>
                            <snmpv3_securityname/>
                            <snmpv3_securitylevel>0</snmpv3_securitylevel>
                            <snmpv3_authprotocol>0</snmpv3_authprotocol>
                            <snmpv3_authpassphrase/>
                            <snmpv3_privprotocol>0</snmpv3_privprotocol>
                            <snmpv3_privpassphrase/>
                            <formula>1</formula>
                            <delay_flex/>
                            <params/>
                            <ipmi_sensor/>
                            <data_type>0</data_type>
                            <authtype>0</authtype>
                            <username/>
                            <password/>
                            <publickey/>
                            <privatekey/>
                            <port/>
                            <description>The percentage of used size for all the volume (data + snapshot)</description>
                            <inventory_link>0</inventory_link>
                            <applications>
                                <application>
                                    <name>summer</name>
                                </application>
                            </applications>
                            <valuemap/>
                            <logtimefmt/>
                            <application_prototypes/>
                        </item_prototype>
192
193
194
                    </item_prototypes>
                    <trigger_prototypes>
                        <trigger_prototype>
195
                            <expression>{summer_snapshots:summer.snapshot.size[{#SUMMER_LIF},{#SUMMER_JUNCTION}].nodata(172800)}=1</expression>
196
197
                            <recovery_mode>0</recovery_mode>
                            <recovery_expression/>
198
                            <name>No data on summer snapshot size {#SUMMER_LIF},{#SUMMER_JUNCTION}</name>
199
200
201
202
                            <correlation_mode>0</correlation_mode>
                            <correlation_tag/>
                            <url>https://wiki.osug.fr/!isterre-geodata/resif/systemes/monitoring/snapshots_summer</url>
                            <status>0</status>
203
                            <priority>1</priority>
204
205
206
                            <description>No data received on summer snapshot size last 48h.&#13;
&#13;
Something's wrong with the monitoring script.</description>
207
208
209
210
211
212
213
214
215
                            <type>0</type>
                            <manual_close>0</manual_close>
                            <dependencies/>
                            <tags/>
                        </trigger_prototype>
                        <trigger_prototype>
                            <expression>{summer_snapshots:summer.snapshot.reserve.used[{#SUMMER_LIF},{#SUMMER_JUNCTION}].last()}&gt;100</expression>
                            <recovery_mode>0</recovery_mode>
                            <recovery_expression/>
216
                            <name>Snapshot reserve at {ITEM.VALUE}  on {#SUMMER_LIF} {#SUMMER_JUNCTION}</name>
217
218
                            <correlation_mode>0</correlation_mode>
                            <correlation_tag/>
219
                            <url/>
220
                            <status>0</status>
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
                            <priority>1</priority>
                            <description>The snapshots are probably taking too much space. But the summer volume usage is not over 80%.&#13;
Wait and see.&#13;
&#13;
https://wiki.osug.fr/!isterre-geodata/resif/systemes/monitoring/snapshots_summer#snapshot_reserve_at_xxx_on_resif_vm_datadisk</description>
                            <type>0</type>
                            <manual_close>0</manual_close>
                            <dependencies/>
                            <tags/>
                        </trigger_prototype>
                        <trigger_prototype>
                            <expression>{summer_snapshots:summer.snapshot.reserve.used[{#SUMMER_LIF},{#SUMMER_JUNCTION}].last()}&gt;100 and {summer_snapshots:summer.snapshot.total.used[{#SUMMER_LIF},{#SUMMER_JUNCTION}].last()}&gt;80</expression>
                            <recovery_mode>0</recovery_mode>
                            <recovery_expression/>
                            <name>Snapshot reserve at {ITEM.VALUE}  on {#SUMMER_LIF} {#SUMMER_JUNCTION}</name>
                            <correlation_mode>0</correlation_mode>
                            <correlation_tag/>
                            <url/>
                            <status>0</status>
                            <priority>4</priority>
                            <description>Summer volume is over 80% and snapshots are taking too much space. A cleanup should be a good idea !&#13;
&#13;
https://wiki.osug.fr/!isterre-geodata/resif/systemes/monitoring/snapshots_summer#snapshot_reserve_at_xxx_on_resif_vm_datadisk</description>
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
                            <type>0</type>
                            <manual_close>0</manual_close>
                            <dependencies/>
                            <tags/>
                        </trigger_prototype>
                    </trigger_prototypes>
                    <graph_prototypes>
                        <graph_prototype>
                            <name>summer snapshot size {#SUMMER_LIF} {#SUMMER_JUNCTION}</name>
                            <width>900</width>
                            <height>200</height>
                            <yaxismin>0.0000</yaxismin>
                            <yaxismax>100.0000</yaxismax>
                            <show_work_period>1</show_work_period>
                            <show_triggers>1</show_triggers>
                            <type>0</type>
                            <show_legend>1</show_legend>
                            <show_3d>0</show_3d>
                            <percent_left>0.0000</percent_left>
                            <percent_right>0.0000</percent_right>
                            <ymin_type_1>0</ymin_type_1>
                            <ymax_type_1>0</ymax_type_1>
                            <ymin_item_1>0</ymin_item_1>
                            <ymax_item_1>0</ymax_item_1>
                            <graph_items>
                                <graph_item>
                                    <sortorder>0</sortorder>
                                    <drawtype>0</drawtype>
                                    <color>1A7C11</color>
                                    <yaxisside>0</yaxisside>
                                    <calc_fnc>2</calc_fnc>
                                    <type>0</type>
                                    <item>
                                        <host>summer_snapshots</host>
                                        <key>summer.snapshot.size[{#SUMMER_LIF},{#SUMMER_JUNCTION}]</key>
                                    </item>
                                </graph_item>
                            </graph_items>
                        </graph_prototype>
                    </graph_prototypes>
                    <host_prototypes/>
                </discovery_rule>
            </discovery_rules>
            <httptests/>
            <macros/>
            <templates/>
            <screens/>
        </template>
    </templates>
</zabbix_export>