-
Notifications
You must be signed in to change notification settings - Fork 128
/
Template Net Brocade_Foundry Stackable SNMP.xml
403 lines (403 loc) · 21.7 KB
/
Template Net Brocade_Foundry Stackable SNMP.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
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
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
<?xml version="1.0" encoding="UTF-8"?>
<zabbix_export>
<version>5.0</version>
<groups>
<group>
<name>Templates/Network devices</name>
</group>
</groups>
<templates>
<template>
<template>Template Net Brocade_Foundry Stackable SNMP</template>
<name>Template Net Brocade_Foundry Stackable SNMP</name>
<description>Template Brocade_Foundry Stackable
MIBs used:
FOUNDRY-SN-AGENT-MIB
FOUNDRY-SN-STACKING-MIB
Known Issues:
Description: Correct fan(returns fan status as 'other(1)' and temperature (returns 0) for the non-master Switches are not available in SNMP
Version: Version 08.0.40b and above
Device: ICX 7750 in stack
Template tooling version used: 0.36</description>
<templates>
<template>
<name>Template Module Brocade_Foundry Performance SNMP</name>
</template>
<template>
<name>Template Module Generic SNMP</name>
</template>
<template>
<name>Template Module Interfaces SNMP</name>
</template>
</templates>
<groups>
<group>
<name>Templates/Network devices</name>
</group>
</groups>
<applications>
<application>
<name>Fans</name>
</application>
<application>
<name>Inventory</name>
</application>
<application>
<name>Power supply</name>
</application>
<application>
<name>Temperature</name>
</application>
</applications>
<items>
<item>
<name>Firmware version</name>
<type>SNMP_AGENT</type>
<snmp_oid>1.3.6.1.4.1.1991.1.1.2.1.11.0</snmp_oid>
<key>system.hw.firmware</key>
<delay>1h</delay>
<history>2w</history>
<trends>0</trends>
<value_type>CHAR</value_type>
<description>MIB: FOUNDRY-SN-AGENT-MIB
The version of the running software in the form 'major.minor.maintenance[letters]'</description>
<applications>
<application>
<name>Inventory</name>
</application>
</applications>
<preprocessing>
<step>
<type>DISCARD_UNCHANGED_HEARTBEAT</type>
<params>1d</params>
</step>
</preprocessing>
<triggers>
<trigger>
<expression>{diff()}=1 and {strlen()}>0</expression>
<name>Firmware has changed</name>
<opdata>Current value: {ITEM.LASTVALUE1}</opdata>
<priority>INFO</priority>
<description>Firmware version has changed. Ack to close</description>
<manual_close>YES</manual_close>
</trigger>
</triggers>
</item>
</items>
<discovery_rules>
<discovery_rule>
<name>Chassis Discovery</name>
<type>SNMP_AGENT</type>
<snmp_oid>discovery[{#SNMPVALUE},1.3.6.1.4.1.1991.1.1.1.4.1.1.1]</snmp_oid>
<key>chassis.discovery</key>
<delay>1h</delay>
<description>snChasUnitIndex: The index to chassis table.</description>
<item_prototypes>
<item_prototype>
<name>Unit {#SNMPVALUE}: Hardware serial number</name>
<type>SNMP_AGENT</type>
<snmp_oid>1.3.6.1.4.1.1991.1.1.1.4.1.1.2.{#SNMPINDEX}</snmp_oid>
<key>system.hw.serialnumber[snChasUnitSerNum.{#SNMPINDEX}]</key>
<delay>1h</delay>
<history>2w</history>
<trends>0</trends>
<value_type>CHAR</value_type>
<description>MIB: FOUNDRY-SN-AGENT-MIB
The serial number of the chassis for each unit. If the serial number is unknown or unavailable then the value should be a zero length string.</description>
<applications>
<application>
<name>Inventory</name>
</application>
</applications>
<preprocessing>
<step>
<type>DISCARD_UNCHANGED_HEARTBEAT</type>
<params>1d</params>
</step>
</preprocessing>
<trigger_prototypes>
<trigger_prototype>
<expression>{diff()}=1 and {strlen()}>0</expression>
<name>Unit {#SNMPVALUE}: Device has been replaced (new serial number received)</name>
<priority>INFO</priority>
<description>Device serial number has changed. Ack to close</description>
<manual_close>YES</manual_close>
</trigger_prototype>
</trigger_prototypes>
</item_prototype>
</item_prototypes>
</discovery_rule>
<discovery_rule>
<name>FAN Discovery</name>
<type>SNMP_AGENT</type>
<snmp_oid>discovery[{#FAN_UNIT},1.3.6.1.4.1.1991.1.1.1.3.2.1.1,{#FAN_INDEX},1.3.6.1.4.1.1991.1.1.1.3.2.1.2]</snmp_oid>
<key>fan.discovery</key>
<delay>1h</delay>
<description>snChasFan2Table: A table of each fan information for each unit. Only installed fan appears in a table row.</description>
<item_prototypes>
<item_prototype>
<name>Unit {#FAN_UNIT} Fan {#FAN_INDEX}: Fan status</name>
<type>SNMP_AGENT</type>
<snmp_oid>1.3.6.1.4.1.1991.1.1.1.3.2.1.4.{#SNMPINDEX}</snmp_oid>
<key>sensor.fan.status[snChasFan2OperStatus.{#SNMPINDEX}]</key>
<delay>3m</delay>
<history>2w</history>
<trends>0d</trends>
<description>MIB: FOUNDRY-SN-AGENT-MIB</description>
<applications>
<application>
<name>Fans</name>
</application>
</applications>
<valuemap>
<name>FOUNDRY-SN-AGENT-MIB::snChasFanOperStatus</name>
</valuemap>
<trigger_prototypes>
<trigger_prototype>
<expression>{count(#1,{$FAN_CRIT_STATUS},eq)}=1</expression>
<name>Unit {#FAN_UNIT} Fan {#FAN_INDEX}: Fan is in critical state</name>
<opdata>Current state: {ITEM.LASTVALUE1}</opdata>
<priority>AVERAGE</priority>
<description>Please check the fan unit</description>
</trigger_prototype>
<trigger_prototype>
<expression>{count(#1,{$FAN_OK_STATUS},ne)}=1</expression>
<name>Unit {#FAN_UNIT} Fan {#FAN_INDEX}: Fan is not in normal state</name>
<opdata>Current state: {ITEM.LASTVALUE1}</opdata>
<priority>INFO</priority>
<description>Please check the fan unit</description>
<dependencies>
<dependency>
<name>Unit {#FAN_UNIT} Fan {#FAN_INDEX}: Fan is in critical state</name>
<expression>{Template Net Brocade_Foundry Stackable SNMP:sensor.fan.status[snChasFan2OperStatus.{#SNMPINDEX}].count(#1,{$FAN_CRIT_STATUS},eq)}=1</expression>
</dependency>
</dependencies>
</trigger_prototype>
</trigger_prototypes>
</item_prototype>
</item_prototypes>
</discovery_rule>
<discovery_rule>
<name>PSU Discovery</name>
<type>SNMP_AGENT</type>
<snmp_oid>discovery[{#PSU_UNIT},1.3.6.1.4.1.1991.1.1.1.2.2.1.1,{#PSU_INDEX},1.3.6.1.4.1.1991.1.1.1.2.2.1.2]</snmp_oid>
<key>psu.discovery</key>
<delay>1h</delay>
<description>snChasPwrSupply2Table: A table of each power supply information for each unit. Only installed power supply appears in a table row.</description>
<item_prototypes>
<item_prototype>
<name>Unit {#PSU_UNIT} PSU {#PSU_INDEX}: Power supply status</name>
<type>SNMP_AGENT</type>
<snmp_oid>1.3.6.1.4.1.1991.1.1.1.2.2.1.4.{#SNMPINDEX}</snmp_oid>
<key>sensor.psu.status[snChasPwrSupply2OperStatus.{#SNMPINDEX}]</key>
<delay>3m</delay>
<history>2w</history>
<trends>0d</trends>
<description>MIB: FOUNDRY-SN-AGENT-MIB</description>
<applications>
<application>
<name>Power supply</name>
</application>
</applications>
<valuemap>
<name>FOUNDRY-SN-AGENT-MIB::snChasPwrSupplyOperStatus</name>
</valuemap>
<trigger_prototypes>
<trigger_prototype>
<expression>{count(#1,{$PSU_CRIT_STATUS},eq)}=1</expression>
<name>Unit {#PSU_UNIT} PSU {#PSU_INDEX}: Power supply is in critical state</name>
<opdata>Current state: {ITEM.LASTVALUE1}</opdata>
<priority>AVERAGE</priority>
<description>Please check the power supply unit for errors</description>
</trigger_prototype>
<trigger_prototype>
<expression>{count(#1,{$PSU_OK_STATUS},ne)}=1</expression>
<name>Unit {#PSU_UNIT} PSU {#PSU_INDEX}: Power supply is not in normal state</name>
<opdata>Current state: {ITEM.LASTVALUE1}</opdata>
<priority>INFO</priority>
<description>Please check the power supply unit for errors</description>
<dependencies>
<dependency>
<name>Unit {#PSU_UNIT} PSU {#PSU_INDEX}: Power supply is in critical state</name>
<expression>{Template Net Brocade_Foundry Stackable SNMP:sensor.psu.status[snChasPwrSupply2OperStatus.{#SNMPINDEX}].count(#1,{$PSU_CRIT_STATUS},eq)}=1</expression>
</dependency>
</dependencies>
</trigger_prototype>
</trigger_prototypes>
</item_prototype>
</item_prototypes>
</discovery_rule>
<discovery_rule>
<name>Stack Discovery</name>
<type>SNMP_AGENT</type>
<snmp_oid>discovery[{#SNMPVALUE},1.3.6.1.4.1.1991.1.1.3.31.2.1.1.5]</snmp_oid>
<key>stack.discovery</key>
<delay>1h</delay>
<description>Discovering snStackingConfigUnitTable for Model names</description>
<item_prototypes>
<item_prototype>
<name>Unit {#SNMPINDEX}: Hardware model name</name>
<type>SNMP_AGENT</type>
<snmp_oid>1.3.6.1.4.1.1991.1.1.3.31.2.1.1.5.{#SNMPINDEX}</snmp_oid>
<key>system.hw.model[snStackingConfigUnitType.{#SNMPINDEX}]</key>
<delay>1h</delay>
<history>2w</history>
<trends>0</trends>
<value_type>CHAR</value_type>
<description>MIB: FOUNDRY-SN-STACKING-MIB
A description of the configured/active system type for each unit.</description>
<applications>
<application>
<name>Inventory</name>
</application>
</applications>
<preprocessing>
<step>
<type>DISCARD_UNCHANGED_HEARTBEAT</type>
<params>1d</params>
</step>
</preprocessing>
</item_prototype>
</item_prototypes>
</discovery_rule>
<discovery_rule>
<name>Temperature Discovery</name>
<type>SNMP_AGENT</type>
<snmp_oid>discovery[{#SENSOR_DESCR},1.3.6.1.4.1.1991.1.1.2.13.3.1.4]</snmp_oid>
<key>temp.discovery</key>
<delay>1h</delay>
<description>snAgentTemp2Table:Table to list temperatures of the modules in the device for each unit. This table is applicable to only those modules with temperature sensors.</description>
<item_prototypes>
<item_prototype>
<name>{#SENSOR_DESCR}: Temperature</name>
<type>SNMP_AGENT</type>
<snmp_oid>1.3.6.1.4.1.1991.1.1.2.13.3.1.5.{#SNMPINDEX}</snmp_oid>
<key>sensor.temp.value[snAgentTemp2Value.{#SNMPINDEX}]</key>
<delay>3m</delay>
<value_type>FLOAT</value_type>
<units>°C</units>
<description>MIB: FOUNDRY-SN-AGENT-MIB
Temperature of the sensor represented by this row. Each unit is 0.5 degrees Celsius.</description>
<applications>
<application>
<name>Temperature</name>
</application>
</applications>
<preprocessing>
<step>
<type>MULTIPLIER</type>
<params>0.5</params>
</step>
</preprocessing>
<trigger_prototypes>
<trigger_prototype>
<expression>{avg(5m)}>{$TEMP_CRIT:""}</expression>
<recovery_mode>RECOVERY_EXPRESSION</recovery_mode>
<recovery_expression>{max(5m)}<{$TEMP_CRIT:""}-3</recovery_expression>
<name>{#SENSOR_DESCR}: Temperature is above critical threshold: >{$TEMP_CRIT:""}</name>
<opdata>Current value: {ITEM.LASTVALUE1}</opdata>
<priority>HIGH</priority>
<description>This trigger uses temperature sensor values as well as temperature sensor status if available</description>
</trigger_prototype>
<trigger_prototype>
<expression>{avg(5m)}>{$TEMP_WARN:""}</expression>
<recovery_mode>RECOVERY_EXPRESSION</recovery_mode>
<recovery_expression>{max(5m)}<{$TEMP_WARN:""}-3</recovery_expression>
<name>{#SENSOR_DESCR}: Temperature is above warning threshold: >{$TEMP_WARN:""}</name>
<opdata>Current value: {ITEM.LASTVALUE1}</opdata>
<priority>WARNING</priority>
<description>This trigger uses temperature sensor values as well as temperature sensor status if available</description>
<dependencies>
<dependency>
<name>{#SENSOR_DESCR}: Temperature is above critical threshold: >{$TEMP_CRIT:""}</name>
<expression>{Template Net Brocade_Foundry Stackable SNMP:sensor.temp.value[snAgentTemp2Value.{#SNMPINDEX}].avg(5m)}>{$TEMP_CRIT:""}</expression>
<recovery_expression>{Template Net Brocade_Foundry Stackable SNMP:sensor.temp.value[snAgentTemp2Value.{#SNMPINDEX}].max(5m)}<{$TEMP_CRIT:""}-3</recovery_expression>
</dependency>
</dependencies>
</trigger_prototype>
<trigger_prototype>
<expression>{avg(5m)}<{$TEMP_CRIT_LOW:""}</expression>
<recovery_mode>RECOVERY_EXPRESSION</recovery_mode>
<recovery_expression>{min(5m)}>{$TEMP_CRIT_LOW:""}+3</recovery_expression>
<name>{#SENSOR_DESCR}: Temperature is too low: <{$TEMP_CRIT_LOW:""}</name>
<opdata>Current value: {ITEM.LASTVALUE1}</opdata>
<priority>AVERAGE</priority>
</trigger_prototype>
</trigger_prototypes>
</item_prototype>
</item_prototypes>
</discovery_rule>
</discovery_rules>
<macros>
<macro>
<macro>{$FAN_CRIT_STATUS}</macro>
<value>3</value>
</macro>
<macro>
<macro>{$FAN_OK_STATUS}</macro>
<value>2</value>
</macro>
<macro>
<macro>{$PSU_CRIT_STATUS}</macro>
<value>3</value>
</macro>
<macro>
<macro>{$PSU_OK_STATUS}</macro>
<value>2</value>
</macro>
<macro>
<macro>{$TEMP_CRIT}</macro>
<value>75</value>
</macro>
<macro>
<macro>{$TEMP_CRIT_LOW}</macro>
<value>5</value>
</macro>
<macro>
<macro>{$TEMP_WARN}</macro>
<value>65</value>
</macro>
</macros>
</template>
</templates>
<value_maps>
<value_map>
<name>FOUNDRY-SN-AGENT-MIB::snChasFanOperStatus</name>
<mappings>
<mapping>
<value>1</value>
<newvalue>other</newvalue>
</mapping>
<mapping>
<value>2</value>
<newvalue>normal</newvalue>
</mapping>
<mapping>
<value>3</value>
<newvalue>failure</newvalue>
</mapping>
</mappings>
</value_map>
<value_map>
<name>FOUNDRY-SN-AGENT-MIB::snChasPwrSupplyOperStatus</name>
<mappings>
<mapping>
<value>1</value>
<newvalue>other</newvalue>
</mapping>
<mapping>
<value>2</value>
<newvalue>normal</newvalue>
</mapping>
<mapping>
<value>3</value>
<newvalue>failure</newvalue>
</mapping>
</mappings>
</value_map>
</value_maps>
</zabbix_export>