-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dahua by SNMP.yaml
221 lines (220 loc) · 7.09 KB
/
Dahua by SNMP.yaml
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
zabbix_export:
version: '6.4'
template_groups:
- uuid: 57b7ae836ca64446ba2c296389c009b7
name: Templates/Modules
templates:
- uuid: 7b657481a69d4839a6561c6b6e6edf3f
template: 'Dahua by SNMP'
name: 'Dahua by SNMP'
description: |
Created by VijayK
GitHub : https://github.com/VSKUMBHANI/
vendor:
name: 'https://github.com/VSKUMBHANI'
version: 6.4-0
groups:
- name: Templates/Modules
items:
- uuid: a73b5f80c233401782f37c1caa7a5ea6
name: CPU
type: SNMP_AGENT
snmp_oid: enterprises.1004849.2.1.3.0
key: cpuUsage
history: 2d
trends: 5d
units: '%'
- uuid: 2d2f77194b954205bb09b4770e6de4ce
name: 'Device Status'
type: SNMP_AGENT
snmp_oid: enterprises.1004849.2.1.2.8.0
key: deviceStatus
history: 2d
trends: 5d
valuemap:
name: 'Device Status'
triggers:
- uuid: 29c9f0b8727a4331ba67fe11ad787e8a
expression: 'last(/Dahua by SNMP/deviceStatus)=0 and last(/Dahua by SNMP/deviceStatus)=1'
name: 'Bad Device Status'
priority: WARNING
- uuid: 98610e314a1a4550a31d8750a3d5095b
name: 'Device Type'
type: SNMP_AGENT
snmp_oid: enterprises.1004849.2.1.2.6.0
key: deviceType
history: 2d
trends: '0'
value_type: TEXT
- uuid: 42dc85ddc4424cf2be3db4b23ba7e18c
name: 'IP Mode'
type: SNMP_AGENT
snmp_oid: enterprises.1004849.2.2.2.1.0
key: getIpmode
history: 1d
trends: 2d
valuemap:
name: 'IP Assign mode'
- uuid: e6ea3faa7ded4297ac07098cbcba9675
name: 'HTTP Port'
type: SNMP_AGENT
snmp_oid: enterprises.1004849.2.2.1.3.0
key: httpPort
delay: 1h
history: 2d
trends: 5d
- uuid: 5c7720f4e9af408196652851a6737a35
name: 'HTTPS Port'
type: SNMP_AGENT
snmp_oid: enterprises.1004849.2.2.1.6.0
key: httpsPort
delay: 1h
history: 2d
trends: 5d
- uuid: e4e06672279245ef8bc513bedf5288d9
name: 'ICMP ping'
type: SIMPLE
key: icmpping
history: 1d
trends: 2d
valuemap:
name: 'Service state'
triggers:
- uuid: fe53ad00653f4c028008621706146151
expression: 'max(/Dahua by SNMP/icmpping,#3)=0'
name: 'Unavailable by ICMP ping'
priority: HIGH
manual_close: 'YES'
- uuid: 6a1aa3c8b70b47a78f8793a00cecb28d
name: 'IP Address'
type: SNMP_AGENT
snmp_oid: enterprises.1004849.2.2.2.5.0
key: ipAddr
delay: 1h
history: 2d
trends: '0'
value_type: TEXT
- uuid: 423dd9fb1a004d6f89df2e439e48962e
name: 'MAC Address'
type: SNMP_AGENT
snmp_oid: enterprises.1004849.2.2.2.2.0
key: macAddr
delay: 2h
history: 2d
trends: '0'
value_type: TEXT
- uuid: dec0934cc9b544d8bc9e7e910ac9b429
name: 'RTSP Port'
type: SNMP_AGENT
snmp_oid: enterprises.1004849.2.2.1.4.0
key: rtspPort
delay: 1h
history: 2d
trends: 5d
- uuid: 3e3a078ad8854a8aa777a1457c973d55
name: 'Serial Numner'
type: SNMP_AGENT
snmp_oid: enterprises.1004849.2.1.2.4.0
key: serialNumber
history: 2d
trends: '0'
value_type: TEXT
- uuid: 867b4d281cc54adb95ed787d70c24cb0
name: 'Host Name'
type: SNMP_AGENT
snmp_oid: enterprises.1004849.2.1.2.9.0
key: systemHostname
history: 2d
trends: '0'
value_type: TEXT
- uuid: 47673dc0b3974f39a972cc7feaf192ca
name: Version
type: SNMP_AGENT
snmp_oid: enterprises.1004849.2.1.2.5.0
key: systemVersion
history: 2d
trends: '0'
value_type: TEXT
- uuid: b1d639b7fae64646bb4646abd3f0cf55
name: 'TCP Port'
type: SNMP_AGENT
snmp_oid: enterprises.1004849.2.2.1.1.0
key: tcpPort
delay: 1h
history: 2d
trends: 5d
- uuid: e56212ec91314a168d55551f40857f70
name: 'UDP Port'
type: SNMP_AGENT
snmp_oid: enterprises.1004849.2.2.1.2.0
key: udpPort
delay: 1h
history: 2d
trends: 5d
- uuid: 528694f1527e448e9a5054196f148542
name: 'Supported video channel'
type: SNMP_AGENT
snmp_oid: enterprises.1004849.2.1.2.1.0
key: videoChannel
delay: 1h
history: 2d
trends: 5d
discovery_rules:
- uuid: aaacd245b7e544b1beb3e385f9b53237
name: 'Discovery by products'
type: SNMP_AGENT
snmp_oid: 'discovery[{#IFNAME},1.3.6.1.4.1.1004849.2.10.2.2.1.4,{#IFSTATUS},1.3.6.1.4.1.1004849.2.10.1.2.1.2,{#IFIPADD},1.3.6.1.4.1.1004849.2.10.2.2.1.2]'
key: products
item_prototypes:
- uuid: a6fafa8eddcb473a92c2b1efed0fc304
name: 'Camera: {#IFNAME} (IP: {#IFIPADD})'
type: SNMP_AGENT
snmp_oid: '1.3.6.1.4.1.1004849.2.10.1.2.1.2.{#SNMPINDEX}'
key: 'product.[{#SNMPINDEX}]'
history: 2d
trends: '0'
value_type: TEXT
tags:
- tag: device
value: camera
- uuid: 80b99a69885140749c6bafdc5e04e525
name: 'Physical volume disk discovery'
type: SNMP_AGENT
snmp_oid: 'discovery[{#IFDISKNO},1.3.6.1.4.1.1004849.2.4.1.1.2,{#IFVOLNAME},1.3.6.1.4.1.1004849.2.4.1.1.4,{#IFVOLSTATUS},1.3.6.1.4.1.1004849.2.4.1.1.5]'
key: storageInfo
item_prototypes:
- uuid: a4a9532589ee43f1a8db94ac3b12419e
name: 'Disk: {#IFDISKNO} Volume: {#IFVOLNAME}'
type: SNMP_AGENT
snmp_oid: '.1.3.6.1.4.1.1004849.2.4.1.1.5.{#SNMPINDEX}'
key: 'diskInfo[{#IFDISKNO}]'
history: 2d
trends: '0'
value_type: TEXT
macros:
- macro: '{$ICMP_LOSS_WARN}'
value: '20'
- macro: '{$ICMP_RESPONSE_TIME_WARN}'
value: '0.15'
valuemaps:
- uuid: 22761f6a0b92445e9dcb92df2f145b8c
name: 'Device Status'
mappings:
- value: '0'
newvalue: bad
- value: '1'
newvalue: good
- uuid: c95bf912909a4533abe445d1fd136fc4
name: 'IP Assign mode'
mappings:
- value: '0'
newvalue: static
- value: '1'
newvalue: dhcp
- uuid: 1d56a783aba845e291120deedf15926a
name: 'Service state'
mappings:
- value: '0'
newvalue: Down
- value: '1'
newvalue: Up