-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathzbx_template_module_raspberrypi.yaml
More file actions
332 lines (332 loc) · 11.1 KB
/
zbx_template_module_raspberrypi.yaml
File metadata and controls
332 lines (332 loc) · 11.1 KB
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
zabbix_export:
version: '6.0'
date: '2023-08-03T11:47:33Z'
groups:
- uuid: 22fefe9c6af648aea42d4e8522fd123a
name: 'Templates/Futur-Tech/Modules Linux'
templates:
- uuid: 9450b70c53694abfaea7853c1af9080f
template: 'Futur-Tech Module Linux Raspberry Pi'
name: 'Futur-Tech Module Linux Raspberry Pi'
description: 'https://github.com/Futur-Tech/futur-tech-zabbix-raspberry-pi'
groups:
- name: 'Templates/Futur-Tech/Modules Linux'
items:
- uuid: f49498ee890f4aa6ab560f8cc655258a
name: 'SD card test run 1 random read speed'
type: DEPENDENT
key: 'rpi.agnostics.rand-4k-read[1]'
delay: '0'
units: '!r/s'
preprocessing:
- type: JAVASCRIPT
parameters:
- 'return value.match(/^rand-4k-read;.*$/gm).join(''\r\n'');'
- type: CSV_TO_JSON
parameters:
- ;
- ''
- '0'
- type: JSONPATH
parameters:
- '$.[0].3'
master_item:
key: 'vfs.file.contents[/tmp/sdtest]'
tags:
- tag: Application
value: 'SD card'
- uuid: 97821db8fab0489781b4f03bd8b32999
name: 'SD card test run 2 random read speed'
type: DEPENDENT
key: 'rpi.agnostics.rand-4k-read[2]'
delay: '0'
units: '!r/s'
preprocessing:
- type: JAVASCRIPT
parameters:
- 'return value.match(/^rand-4k-read;.*$/gm).join(''\r\n'');'
- type: CSV_TO_JSON
parameters:
- ;
- ''
- '0'
- type: JSONPATH
parameters:
- '$.[1].3'
master_item:
key: 'vfs.file.contents[/tmp/sdtest]'
tags:
- tag: Application
value: 'SD card'
- uuid: 2eb20c941992424685e634f6067fe5a8
name: 'SD card test run 3 random read speed'
type: DEPENDENT
key: 'rpi.agnostics.rand-4k-read[3]'
delay: '0'
units: '!r/s'
preprocessing:
- type: JAVASCRIPT
parameters:
- 'return value.match(/^rand-4k-read;.*$/gm).join(''\r\n'');'
- type: CSV_TO_JSON
parameters:
- ;
- ''
- '0'
- type: JSONPATH
parameters:
- '$.[2].3'
master_item:
key: 'vfs.file.contents[/tmp/sdtest]'
tags:
- tag: Application
value: 'SD card'
- uuid: 9580cb1889f94bf7b1ecd2b3c78831c7
name: 'SD card test run 1 random write speed'
type: DEPENDENT
key: 'rpi.agnostics.rand-4k-write[1]'
delay: '0'
units: '!w/s'
preprocessing:
- type: JAVASCRIPT
parameters:
- 'return value.match(/^rand-4k-write;.*$/gm).join(''\r\n'');'
- type: CSV_TO_JSON
parameters:
- ;
- ''
- '0'
- type: JSONPATH
parameters:
- '$.[0].5'
master_item:
key: 'vfs.file.contents[/tmp/sdtest]'
tags:
- tag: Application
value: 'SD card'
- uuid: d38afa8bfb374edaada3f37ce14d5d89
name: 'SD card test run 2 random write speed'
type: DEPENDENT
key: 'rpi.agnostics.rand-4k-write[2]'
delay: '0'
units: '!w/s'
preprocessing:
- type: JAVASCRIPT
parameters:
- 'return value.match(/^rand-4k-write;.*$/gm).join(''\r\n'');'
- type: CSV_TO_JSON
parameters:
- ;
- ''
- '0'
- type: JSONPATH
parameters:
- '$.[1].5'
master_item:
key: 'vfs.file.contents[/tmp/sdtest]'
tags:
- tag: Application
value: 'SD card'
- uuid: eb5e4118090d40738ee0f39b6e4c296f
name: 'SD card test run 3 random write speed'
type: DEPENDENT
key: 'rpi.agnostics.rand-4k-write[3]'
delay: '0'
units: '!w/s'
preprocessing:
- type: JAVASCRIPT
parameters:
- 'return value.match(/^rand-4k-write;.*$/gm).join(''\r\n'');'
- type: CSV_TO_JSON
parameters:
- ;
- ''
- '0'
- type: JSONPATH
parameters:
- '$.[2].5'
master_item:
key: 'vfs.file.contents[/tmp/sdtest]'
tags:
- tag: Application
value: 'SD card'
- uuid: d14ca2f24b7842bb913c98fa9bf62814
name: 'SD card test run 1 sequential write speed'
type: DEPENDENT
key: 'rpi.agnostics.seq-write[1]'
delay: '0'
units: Bps
preprocessing:
- type: JAVASCRIPT
parameters:
- 'return value.match(/^seq-write;.*$/gm).join(''\r\n'');'
- type: CSV_TO_JSON
parameters:
- ;
- ''
- '0'
- type: JSONPATH
parameters:
- '$.[0].4'
- type: MULTIPLIER
parameters:
- '1024'
master_item:
key: 'vfs.file.contents[/tmp/sdtest]'
tags:
- tag: Application
value: 'SD card'
- uuid: 0e710a59cc5e493f8902df4125097f91
name: 'SD card test run 2 sequential write speed'
type: DEPENDENT
key: 'rpi.agnostics.seq-write[2]'
delay: '0'
units: Bps
preprocessing:
- type: JAVASCRIPT
parameters:
- 'return value.match(/^seq-write;.*$/gm).join(''\r\n'');'
- type: CSV_TO_JSON
parameters:
- ;
- ''
- '0'
- type: JSONPATH
parameters:
- '$.[1].4'
- type: MULTIPLIER
parameters:
- '1024'
master_item:
key: 'vfs.file.contents[/tmp/sdtest]'
tags:
- tag: Application
value: 'SD card'
- uuid: 1c5799df6c784283ab00c54d870f8802
name: 'SD card test run 3 sequential write speed'
type: DEPENDENT
key: 'rpi.agnostics.seq-write[3]'
delay: '0'
units: Bps
preprocessing:
- type: JAVASCRIPT
parameters:
- 'return value.match(/^seq-write;.*$/gm).join(''\r\n'');'
- type: CSV_TO_JSON
parameters:
- ;
- ''
- '0'
- type: JSONPATH
parameters:
- '$.[2].4'
- type: MULTIPLIER
parameters:
- '1024'
master_item:
key: 'vfs.file.contents[/tmp/sdtest]'
tags:
- tag: Application
value: 'SD card'
- uuid: e59d7b81e4c2441b98de03da1d12167f
name: 'CPU clock (MHz)'
type: ZABBIX_ACTIVE
key: rpi.cpuClock
preprocessing:
- type: MULTIPLIER
parameters:
- '0.000001'
tags:
- tag: Application
value: CPU
- uuid: b5910f2a18be4794819d6890864c3c88
name: 'CPU temperature'
type: ZABBIX_ACTIVE
key: rpi.cpuTemperature
units: °C
preprocessing:
- type: MULTIPLIER
parameters:
- '0.001'
tags:
- tag: Application
value: CPU
triggers:
- uuid: ee05b878942e41f09d5c6c23626fcf21
expression: 'last(/Futur-Tech Module Linux Raspberry Pi/rpi.cpuTemperature)>=70'
name: 'CPU temperature is high'
priority: WARNING
- uuid: 2a55003060e743688cd047067a399804
name: 'CPU throttled'
type: ZABBIX_ACTIVE
key: rpi.cpuThrottled
trends: '0'
value_type: TEXT
tags:
- tag: Application
value: CPU
triggers:
- uuid: 4c0dc80040204f37b58664e83090b297
expression: 'find(/Futur-Tech Module Linux Raspberry Pi/rpi.cpuThrottled,,"iregexp","\b(0x0)\b")=0'
recovery_mode: RECOVERY_EXPRESSION
recovery_expression: 'find(/Futur-Tech Module Linux Raspberry Pi/rpi.cpuThrottled,,"iregexp","\b(0x0)\b")=1'
name: 'CPU is throttling'
priority: WARNING
- uuid: 21be1f2521c443e988937eefe767bf6d
name: 'CPU voltage'
type: ZABBIX_ACTIVE
key: rpi.cpuVoltage
value_type: FLOAT
tags:
- tag: Application
value: CPU
- uuid: a041262a9e334f1dbbee20adf01b09e8
name: 'SD card run Agnostics'
type: ZABBIX_ACTIVE
key: 'system.run[sh /usr/share/agnostics/sdtest.sh > /tmp/sdtest_tmp ; mv -f /tmp/sdtest_tmp /tmp/sdtest, nowait]'
delay: 1d;wd7h4
trends: '0'
value_type: TEXT
description: 'This will run a test on your Raspberry Pi SD Card. It will be only done on Sunday at 4AM in order to avoid wear.'
tags:
- tag: Application
value: 'SD card'
- uuid: d97c15d0526a427ca430b90a7d7740c3
name: 'SD card test results'
type: ZABBIX_ACTIVE
key: 'vfs.file.contents[/tmp/sdtest]'
delay: 20m
trends: '0'
value_type: TEXT
preprocessing:
- type: DISCARD_UNCHANGED_HEARTBEAT
parameters:
- 1d
tags:
- tag: Application
value: 'SD card'
triggers:
- uuid: a097ad56f93e4995b8aeaa20b9736b64
expression: 'nodata(/Futur-Tech Module Linux Raspberry Pi/vfs.file.contents[/tmp/sdtest],14d)=1'
name: 'No SD card test run for more than 14d'
priority: WARNING
- uuid: 776f8ced38124b0a85e3bbb7faf967e4
expression: '((find(/Futur-Tech Module Linux Raspberry Pi/vfs.file.contents[/tmp/sdtest],,"regexp","- FAIL"))<>0)'
name: 'SD card test did not pass recommended performances'
url: 'https://www.raspberrypi.com/news/sd-card-speed-test/'
priority: AVERAGE
description: 'The test results from agnostics failed to meet recommended performances by Raspberry Pi team.'
tags:
- tag: Futur-Tech
macros:
- macro: '{$SYSTEMD.NAME.SERVICE.NOT_MATCHES}'
value: rsync.service|sshswitch.service||raspberrypi-net-mods.service
graphs:
- uuid: 1d4200151220434882e502c8370de402
name: 'CPU Temp'
graph_items:
- sortorder: '1'
color: B71C1C
item:
host: 'Futur-Tech Module Linux Raspberry Pi'
key: rpi.cpuTemperature