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
|
zabbix_export:
version: '5.4'
date: '2021-05-09T00:00:00Z'
groups:
-
name: Templates/Modules
templates:
-
template: 'Generic SNMP'
name: 'Generic SNMP'
description: |
Template Module Generic
MIBs used:
SNMPv2-MIB
Template tooling version used: 0.38
templates:
-
name: 'ICMP Ping'
groups:
-
name: Templates/Modules
items:
-
name: 'SNMP traps (fallback)'
type: SNMP_TRAP
key: snmptrap.fallback
history: 2w
trends: '0'
value_type: LOG
description: 'Item is used to collect all SNMP traps unmatched by other snmptrap items'
logtimefmt: 'hh:mm:sszyyyy/MM/dd'
tags:
-
tag: Application
value: General
-
name: 'System contact details'
type: SNMP_AGENT
snmp_oid: 1.3.6.1.2.1.1.4.0
key: 'system.contact[sysContact.0]'
delay: 1h
history: 2w
trends: '0'
value_type: CHAR
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.
inventory_link: CONTACT
preprocessing:
-
type: DISCARD_UNCHANGED_HEARTBEAT
parameters:
- 1d
tags:
-
tag: Application
value: General
-
name: 'System description'
type: SNMP_AGENT
snmp_oid: 1.3.6.1.2.1.1.1.0
key: 'system.descr[sysDescr.0]'
delay: 1h
history: 2w
trends: '0'
value_type: CHAR
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.
preprocessing:
-
type: DISCARD_UNCHANGED_HEARTBEAT
parameters:
- 1d
tags:
-
tag: Application
value: General
-
name: 'System location'
type: SNMP_AGENT
snmp_oid: 1.3.6.1.2.1.1.6.0
key: 'system.location[sysLocation.0]'
delay: 1h
history: 2w
trends: '0'
value_type: CHAR
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.
inventory_link: LOCATION
preprocessing:
-
type: DISCARD_UNCHANGED_HEARTBEAT
parameters:
- 1h
tags:
-
tag: Application
value: General
-
name: 'System name'
type: SNMP_AGENT
snmp_oid: 1.3.6.1.2.1.1.5.0
key: system.name
delay: 1h
history: 2w
trends: '0'
value_type: CHAR
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.
inventory_link: NAME
preprocessing:
-
type: DISCARD_UNCHANGED_HEARTBEAT
parameters:
- 1h
tags:
-
tag: Application
value: General
triggers:
-
expression: '(last(/Generic SNMP/system.name,#1)<>last(/Generic SNMP/system.name,#2))=1 and length(last(/Generic SNMP/system.name))>0'
name: 'System name has changed (new name: {ITEM.VALUE})'
priority: INFO
description: 'System name has changed. Ack to close.'
manual_close: 'YES'
-
name: 'System object ID'
type: SNMP_AGENT
snmp_oid: 1.3.6.1.2.1.1.2.0
key: 'system.objectid[sysObjectID.0]'
delay: 15m
history: 2w
trends: '0'
value_type: CHAR
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'.
preprocessing:
-
type: DISCARD_UNCHANGED_HEARTBEAT
parameters:
- 1h
tags:
-
tag: Application
value: General
-
name: Uptime
type: SNMP_AGENT
snmp_oid: 1.3.6.1.2.1.1.3.0
key: 'system.uptime[sysUpTime.0]'
delay: 30s
history: 2w
trends: 0d
units: uptime
description: |
MIB: SNMPv2-MIB
The time (in hundredths of a second) since the network management portion of the system was last re-initialized.
preprocessing:
-
type: MULTIPLIER
parameters:
- '0.01'
tags:
-
tag: Application
value: Status
triggers:
-
expression: 'last(/Generic SNMP/system.uptime[sysUpTime.0])<10m'
name: '{HOST.NAME} has been restarted (uptime < 10m)'
priority: WARNING
description: 'Uptime is less than 10 minutes'
manual_close: 'YES'
dependencies:
-
name: 'No SNMP data collection'
expression: 'max(/Generic SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0'
-
name: 'SNMP agent availability'
type: INTERNAL
key: 'zabbix[host,snmp,available]'
history: 7d
valuemap:
name: zabbix.host.available
tags:
-
tag: Application
value: Status
triggers:
-
expression: 'max(/Generic SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0'
name: 'No SNMP data collection'
opdata: 'Current state: {ITEM.LASTVALUE1}'
priority: WARNING
description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.'
dependencies:
-
name: 'Unavailable by ICMP ping'
expression: 'max(/Generic SNMP/icmpping,#3)=0'
macros:
-
macro: '{$SNMP.TIMEOUT}'
value: 5m
valuemaps:
-
name: zabbix.host.available
mappings:
-
value: '0'
newvalue: 'not available'
-
value: '1'
newvalue: available
-
value: '2'
newvalue: unknown
|