-
Notifications
You must be signed in to change notification settings - Fork 2
/
Template Module Generic SNMPv3.xml
312 lines (312 loc) · 15 KB
/
Template Module Generic SNMPv3.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
<?xml version="1.0" encoding="UTF-8"?>
<zabbix_export>
<version>4.4</version>
<date>2020-05-13T10:21:17Z</date>
<groups>
<group>
<name>Templates/Modules</name>
</group>
</groups>
<templates>
<template>
<template>Template Module Generic SNMPv3</template>
<name>Template Module Generic SNMPv3</name>
<description>Template Module Generic SNMPv3
Template used Template Module Generic SNMPv2
Ville Leinonen
https://www.hacknetwork.org
Version 1.1</description>
<templates>
<template>
<name>Template Module ICMP Ping</name>
</template>
</templates>
<groups>
<group>
<name>Templates/Modules</name>
</group>
</groups>
<applications>
<application>
<name>General</name>
</application>
</applications>
<items>
<item>
<name>SNMP traps (fallback)</name>
<type>SNMP_TRAP</type>
<key>snmptrap.fallback</key>
<delay>0</delay>
<history>2w</history>
<trends>0</trends>
<value_type>LOG</value_type>
<description>Item is used to collect all SNMP traps unmatched by other snmptrap items</description>
<applications>
<application>
<name>General</name>
</application>
</applications>
<logtimefmt>hh:mm:sszyyyy/MM/dd</logtimefmt>
</item>
<item>
<name>System contact details</name>
<type>SNMPV3</type>
<snmp_oid>1.3.6.1.2.1.1.4.0</snmp_oid>
<key>system.contactV3[sysContact.0]</key>
<delay>1h</delay>
<history>2w</history>
<trends>0</trends>
<value_type>CHAR</value_type>
<snmpv3_securityname>{$SECURITY_NAME}</snmpv3_securityname>
<snmpv3_securitylevel>AUTHPRIV</snmpv3_securitylevel>
<snmpv3_authprotocol>SHA</snmpv3_authprotocol>
<snmpv3_authpassphrase>{$AUTH_PASSPHRASE}</snmpv3_authpassphrase>
<snmpv3_privprotocol>AES</snmpv3_privprotocol>
<snmpv3_privpassphrase>{$PRIV_PASSPHRASE}</snmpv3_privpassphrase>
<description>MIB: SNMPv2-MIB
The textual identification of the contact person for this managed node, together with information on how to contact this person. If no contact information is known, the value is the zero-length string.</description>
<inventory_link>CONTACT</inventory_link>
<applications>
<application>
<name>General</name>
</application>
</applications>
<preprocessing>
<step>
<type>DISCARD_UNCHANGED_HEARTBEAT</type>
<params>1d</params>
</step>
</preprocessing>
</item>
<item>
<name>System description</name>
<type>SNMPV3</type>
<snmp_oid>1.3.6.1.2.1.1.1.0</snmp_oid>
<key>system.descrV3[sysDescr.0]</key>
<delay>1h</delay>
<history>2w</history>
<trends>0</trends>
<value_type>CHAR</value_type>
<snmpv3_securityname>{$SECURITY_NAME}</snmpv3_securityname>
<snmpv3_securitylevel>AUTHPRIV</snmpv3_securitylevel>
<snmpv3_authprotocol>SHA</snmpv3_authprotocol>
<snmpv3_authpassphrase>{$AUTH_PASSPHRASE}</snmpv3_authpassphrase>
<snmpv3_privprotocol>AES</snmpv3_privprotocol>
<snmpv3_privpassphrase>{$PRIV_PASSPHRASE}</snmpv3_privpassphrase>
<description>MIB: SNMPv2-MIB
A textual description of the entity. This value should
include the full name and version identification of the system's hardware type, software operating-system, and
networking software.</description>
<applications>
<application>
<name>General</name>
</application>
</applications>
<preprocessing>
<step>
<type>DISCARD_UNCHANGED_HEARTBEAT</type>
<params>1d</params>
</step>
</preprocessing>
</item>
<item>
<name>System location</name>
<type>SNMPV3</type>
<snmp_oid>1.3.6.1.2.1.1.6.0</snmp_oid>
<key>system.locationV3[sysLocation.0]</key>
<delay>1h</delay>
<history>2w</history>
<trends>0</trends>
<value_type>CHAR</value_type>
<snmpv3_securityname>{$SECURITY_NAME}</snmpv3_securityname>
<snmpv3_securitylevel>AUTHPRIV</snmpv3_securitylevel>
<snmpv3_authprotocol>SHA</snmpv3_authprotocol>
<snmpv3_authpassphrase>{$AUTH_PASSPHRASE}</snmpv3_authpassphrase>
<snmpv3_privprotocol>AES</snmpv3_privprotocol>
<snmpv3_privpassphrase>{$PRIV_PASSPHRASE}</snmpv3_privpassphrase>
<description>MIB: SNMPv2-MIB
The physical location of this node (e.g., `telephone closet, 3rd floor'). If the location is unknown, the value is the zero-length string.</description>
<inventory_link>LOCATION</inventory_link>
<applications>
<application>
<name>General</name>
</application>
</applications>
<preprocessing>
<step>
<type>DISCARD_UNCHANGED_HEARTBEAT</type>
<params>1h</params>
</step>
</preprocessing>
</item>
<item>
<name>System name</name>
<type>SNMPV3</type>
<snmp_oid>1.3.6.1.2.1.1.5.0</snmp_oid>
<key>system.nameV3</key>
<delay>1h</delay>
<history>2w</history>
<trends>0</trends>
<value_type>CHAR</value_type>
<snmpv3_securityname>{$SECURITY_NAME}</snmpv3_securityname>
<snmpv3_securitylevel>AUTHPRIV</snmpv3_securitylevel>
<snmpv3_authprotocol>SHA</snmpv3_authprotocol>
<snmpv3_authpassphrase>{$AUTH_PASSPHRASE}</snmpv3_authpassphrase>
<snmpv3_privprotocol>AES</snmpv3_privprotocol>
<snmpv3_privpassphrase>{$PRIV_PASSPHRASE}</snmpv3_privpassphrase>
<description>MIB: SNMPv2-MIB
An administratively-assigned name for this managed node.By convention, this is the node's fully-qualified domain name. If the name is unknown, the value is the zero-length string.</description>
<inventory_link>NAME</inventory_link>
<applications>
<application>
<name>General</name>
</application>
</applications>
<preprocessing>
<step>
<type>DISCARD_UNCHANGED_HEARTBEAT</type>
<params>1h</params>
</step>
</preprocessing>
<triggers>
<trigger>
<expression>{diff()}=1 and {strlen()}>0</expression>
<name>System name has changed (new name: {ITEM.VALUE})</name>
<priority>INFO</priority>
<description>System name has changed. Ack to close.</description>
<manual_close>YES</manual_close>
</trigger>
</triggers>
</item>
<item>
<name>System object ID</name>
<type>SNMPV3</type>
<snmp_oid>1.3.6.1.2.1.1.2.0</snmp_oid>
<key>system.objectidV3[sysObjectID.0]</key>
<delay>15m</delay>
<history>2w</history>
<trends>0</trends>
<value_type>CHAR</value_type>
<snmpv3_securityname>{$SECURITY_NAME}</snmpv3_securityname>
<snmpv3_securitylevel>AUTHPRIV</snmpv3_securitylevel>
<snmpv3_authprotocol>SHA</snmpv3_authprotocol>
<snmpv3_authpassphrase>{$AUTH_PASSPHRASE}</snmpv3_authpassphrase>
<snmpv3_privprotocol>AES</snmpv3_privprotocol>
<snmpv3_privpassphrase>{$PRIV_PASSPHRASE}</snmpv3_privpassphrase>
<description>MIB: SNMPv2-MIB
The vendor's authoritative identification of the network management subsystem contained in the entity. This value is allocated within the SMI enterprises subtree (1.3.6.1.4.1) and provides an easy and unambiguous means for determining`what kind of box' is being managed. For example, if vendor`Flintstones, Inc.' was assigned the subtree1.3.6.1.4.1.4242, it could assign the identifier 1.3.6.1.4.1.4242.1.1 to its `Fred Router'.</description>
<applications>
<application>
<name>General</name>
</application>
</applications>
<preprocessing>
<step>
<type>DISCARD_UNCHANGED_HEARTBEAT</type>
<params>1h</params>
</step>
</preprocessing>
</item>
<item>
<name>Uptime</name>
<type>SNMPV3</type>
<snmp_oid>1.3.6.1.2.1.1.3.0</snmp_oid>
<key>system.uptimeV3[sysUpTime.0]</key>
<delay>30s</delay>
<history>2w</history>
<trends>0</trends>
<units>uptime</units>
<snmpv3_securityname>{$SECURITY_NAME}</snmpv3_securityname>
<snmpv3_securitylevel>AUTHPRIV</snmpv3_securitylevel>
<snmpv3_authprotocol>SHA</snmpv3_authprotocol>
<snmpv3_authpassphrase>{$AUTH_PASSPHRASE}</snmpv3_authpassphrase>
<snmpv3_privprotocol>AES</snmpv3_privprotocol>
<snmpv3_privpassphrase>{$PRIV_PASSPHRASE}</snmpv3_privpassphrase>
<description>MIB: SNMPv2-MIB
The time (in hundredths of a second) since the network management portion of the system was last re-initialized.</description>
<applications>
<application>
<name>Status</name>
</application>
</applications>
<preprocessing>
<step>
<type>MULTIPLIER</type>
<params>0.01</params>
</step>
</preprocessing>
<triggers>
<trigger>
<expression>{last()}<10m</expression>
<name>{HOST.NAME} has been restarted (uptime < 10m)</name>
<priority>WARNING</priority>
<description>Uptime is less than 10 minutes</description>
<manual_close>YES</manual_close>
<dependencies>
<dependency>
<name>No SNMP data collection</name>
<expression>{Template Module Generic SNMPv3:zabbix[host,snmp,available].max({$SNMP.TIMEOUT})}=0</expression>
</dependency>
</dependencies>
</trigger>
</triggers>
</item>
<item>
<name>SNMP agent availability</name>
<type>INTERNAL</type>
<key>zabbix[host,snmp,available]</key>
<history>7d</history>
<applications>
<application>
<name>Status</name>
</application>
</applications>
<valuemap>
<name>zabbix.host.available</name>
</valuemap>
<triggers>
<trigger>
<expression>{max({$SNMP.TIMEOUT})}=0</expression>
<name>No SNMP data collection</name>
<opdata>Current state: {ITEM.LASTVALUE1}</opdata>
<priority>WARNING</priority>
<description>SNMP is not available for polling. Please check device connectivity and SNMP settings.</description>
<dependencies>
<dependency>
<name>Unavailable by ICMP ping</name>
<expression>{Template Module Generic SNMPv3:icmpping.max(#3)}=0</expression>
</dependency>
</dependencies>
</trigger>
</triggers>
</item>
</items>
<macros>
<macro>
<macro>{$SNMP.TIMEOUT}</macro>
<value>5m</value>
</macro>
</macros>
</template>
</templates>
<value_maps>
<value_map>
<name>zabbix.host.available</name>
<mappings>
<mapping>
<value>0</value>
<newvalue>not available</newvalue>
</mapping>
<mapping>
<value>1</value>
<newvalue>available</newvalue>
</mapping>
<mapping>
<value>2</value>
<newvalue>unknown</newvalue>
</mapping>
</mappings>
</value_map>
</value_maps>
</zabbix_export>