-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtemplate_app_truenas_scale_snmp.yaml
3103 lines (3100 loc) · 122 KB
/
template_app_truenas_scale_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
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
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
zabbix_export:
version: '6.0'
date: '2023-10-20T18:58:14Z'
groups:
- uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6
name: Templates/Applications
templates:
- uuid: 195629aaa9fb4909b22fc6ee6dc47489
template: 'TrueNAS SCALE 22.12.1 and up by SNMP'
name: 'TrueNAS SCALE 22.12.1 and up by SNMP'
description: |
Template for monitoring TrueNAS by SNMP.
Setup:
1. Import the template into Zabbix.
2. Enable SNMP daemon at Services in TrueNAS web interface: https://www.truenas.com/docs/core/uireference/services/snmpscreen/
3. Link the template to the host.
MIBs used:
HOST-RESOURCES-MIB
SNMPv2-MIB
UCD-DISKIO-MIB
UCD-SNMP-MIB
FREENAS-MIB
Based on the standard TrueNAS by SNMP template for Zabbix v6.0 LTS, but tweaked to work with later versions of TrueNAS SCALE. As explained here: https://ixsystems.atlassian.net/browse/NAS-120434 SNMP addresses changed a lot.
groups:
- name: Templates/Applications
items:
- uuid: 54e4fa03805045e5a0bcb5fe10a06675
name: 'TrueNAS: ICMP ping'
type: SIMPLE
key: icmpping
history: 7d
description: |
Host accessibility by ICMP.
0 - ICMP ping fails.
1 - ICMP ping successful.
valuemap:
name: 'Service state'
tags:
- tag: component
value: health
- tag: component
value: network
triggers:
- uuid: 9c437d8a7acf45e9a7b4601639d6595d
expression: 'max(/TrueNAS SCALE 22.12.1 and up by SNMP/icmpping,#3)=0'
name: 'TrueNAS: Unavailable by ICMP ping'
priority: HIGH
description: 'Last three attempts returned timeout. Please check device connectivity.'
tags:
- tag: scope
value: availability
- uuid: b4cdc0d9f9ea45a29291f264cf18ae5e
name: 'TrueNAS: ICMP loss'
type: SIMPLE
key: icmppingloss
history: 7d
value_type: FLOAT
units: '%'
description: 'Percentage of lost packets.'
tags:
- tag: component
value: health
- tag: component
value: network
triggers:
- uuid: 2917b78fb02e414795d6847f6f67f6ed
expression: 'min(/TrueNAS SCALE 22.12.1 and up by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/TrueNAS SCALE 22.12.1 and up by SNMP/icmppingloss,5m)<100'
name: 'TrueNAS: High ICMP ping loss'
opdata: 'Loss: {ITEM.LASTVALUE1}'
priority: WARNING
description: 'ICMP packets loss detected.'
dependencies:
- name: 'TrueNAS: Unavailable by ICMP ping'
expression: 'max(/TrueNAS SCALE 22.12.1 and up by SNMP/icmpping,#3)=0'
tags:
- tag: scope
value: availability
- tag: scope
value: performance
- uuid: 17c5020139544a0fab16e753b05c3788
name: 'TrueNAS: ICMP response time'
type: SIMPLE
key: icmppingsec
history: 7d
value_type: FLOAT
units: s
description: 'ICMP ping response time (in seconds).'
tags:
- tag: component
value: health
- tag: component
value: network
triggers:
- uuid: 11b21ba2c9a64e848e760ac2aee31fc0
expression: 'avg(/TrueNAS SCALE 22.12.1 and up by SNMP/icmppingsec,5m)>{$ICMP_RESPONSE_TIME_WARN}'
name: 'TrueNAS: High ICMP ping response time'
opdata: 'Value: {ITEM.LASTVALUE1}'
priority: WARNING
description: 'Average ICMP response time is too big.'
dependencies:
- name: 'TrueNAS: Unavailable by ICMP ping'
expression: 'max(/TrueNAS SCALE 22.12.1 and up by SNMP/icmpping,#3)=0'
tags:
- tag: scope
value: availability
- tag: scope
value: performance
- uuid: b3461a4002ba495195290417b11b5c7b
name: 'TrueNAS: SNMP traps (fallback)'
type: SNMP_TRAP
key: snmptrap.fallback
history: 7d
trends: '0'
value_type: LOG
description: 'The item is used to collect all SNMP traps unmatched by other snmptrap items.'
logtimefmt: 'hh:mm:sszyyyy/MM/dd'
tags:
- tag: component
value: network
- uuid: 0be94ee849b547e6bf2457fd82a035cb
name: 'TrueNAS: System contact details'
type: SNMP_AGENT
snmp_oid: 1.3.6.1.2.1.1.4.0
key: system.contact
delay: 15m
history: 7d
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:
- 6h
tags:
- tag: component
value: system
- uuid: 8424255822e6472499e5bf216fce6f9a
name: 'TrueNAS: Interrupts per second'
type: SNMP_AGENT
snmp_oid: 1.3.6.1.4.1.2021.11.59.0
key: system.cpu.intr
history: 7d
value_type: FLOAT
description: |
MIB: UCD-SNMP-MIB
Number of interrupts processed.
preprocessing:
- type: CHANGE_PER_SECOND
parameters:
- ''
tags:
- tag: component
value: cpu
- uuid: 37b5299b21b045819cb764d885cdf8c0
name: 'TrueNAS: Load average (1m avg)'
type: SNMP_AGENT
snmp_oid: '1.3.6.1.4.1.2021.10.1.3["index","1.3.6.1.4.1.2021.10.1.2", "Load-1"]'
key: system.cpu.load.avg1
history: 7d
value_type: FLOAT
description: |
MIB: UCD-SNMP-MIB
The 1 minute load averages.
tags:
- tag: component
value: cpu
- uuid: 1b5f6b3cef854aac91536c90b4a5b2c8
name: 'TrueNAS: Load average (5m avg)'
type: SNMP_AGENT
snmp_oid: '1.3.6.1.4.1.2021.10.1.3["index","1.3.6.1.4.1.2021.10.1.2", "Load-5"]'
key: system.cpu.load.avg5
history: 7d
value_type: FLOAT
description: |
MIB: UCD-SNMP-MIB
The 5 minutes load averages.
tags:
- tag: component
value: cpu
- uuid: 9ebb3d88a4144fc8baeaba813ae89ba0
name: 'TrueNAS: Load average (15m avg)'
type: SNMP_AGENT
snmp_oid: '1.3.6.1.4.1.2021.10.1.3["index","1.3.6.1.4.1.2021.10.1.2", "Load-15"]'
key: system.cpu.load.avg15
history: 7d
value_type: FLOAT
description: |
MIB: UCD-SNMP-MIB
The 15 minutes load averages.
tags:
- tag: component
value: cpu
- uuid: 5a5ceb5b2fbf4d9fbfb6db831f7fd189
name: 'TrueNAS: Number of CPUs'
type: SNMP_AGENT
snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.2.1.25.3.3.1.1]'
key: system.cpu.num
history: 7d
description: |
MIB: HOST-RESOURCES-MIB
Count the number of CPU cores by counting number of cores discovered in hrProcessorTable using LLD.
preprocessing:
- type: JAVASCRIPT
parameters:
- |
//count the number of cores
return JSON.parse(value).length;
tags:
- tag: component
value: cpu
- uuid: b88a2e06bf99482cba4036d76f6ac453
name: 'TrueNAS: Context switches per second'
type: SNMP_AGENT
snmp_oid: 1.3.6.1.4.1.2021.11.60.0
key: system.cpu.switches
history: 7d
value_type: FLOAT
description: |
MIB: UCD-SNMP-MIB
Number of context switches.
preprocessing:
- type: CHANGE_PER_SECOND
parameters:
- ''
tags:
- tag: component
value: cpu
- uuid: b37962a9782e43878aec2b960c48c4a8
name: 'TrueNAS: System description'
type: SNMP_AGENT
snmp_oid: 1.3.6.1.2.1.1.1.0
key: system.descr
delay: 15m
history: 7d
trends: '0'
value_type: CHAR
description: |
MIB: SNMPv2-MIB
System description of the host.
preprocessing:
- type: DISCARD_UNCHANGED_HEARTBEAT
parameters:
- 6h
tags:
- tag: component
value: system
- uuid: ecb81d5f6c184d9eab36d481dcc3cc93
name: 'TrueNAS: System location'
type: SNMP_AGENT
snmp_oid: 1.3.6.1.2.1.1.6.0
key: system.location
delay: 15m
history: 7d
trends: '0'
value_type: CHAR
description: |
MIB: SNMPv2-MIB
The physical location of this node. If the location is unknown, the value is the zero-length string.
inventory_link: LOCATION
preprocessing:
- type: DISCARD_UNCHANGED_HEARTBEAT
parameters:
- 6h
tags:
- tag: component
value: system
- uuid: 997f9c1b3acc4634a3a408150b1b3907
name: 'TrueNAS: System name'
type: SNMP_AGENT
snmp_oid: 1.3.6.1.2.1.1.5.0
key: system.name
delay: 15m
history: 7d
trends: '0'
value_type: CHAR
description: |
MIB: SNMPv2-MIB
The host name of the system.
inventory_link: NAME
preprocessing:
- type: DISCARD_UNCHANGED_HEARTBEAT
parameters:
- 6h
tags:
- tag: component
value: system
triggers:
- uuid: 5b5c92abcbe04124b0c155bf161c1e91
expression: 'last(/TrueNAS SCALE 22.12.1 and up by SNMP/system.name,#1)<>last(/TrueNAS SCALE 22.12.1 and up by SNMP/system.name,#2) and length(last(/TrueNAS SCALE 22.12.1 and up by SNMP/system.name))>0'
name: 'TrueNAS: System name has changed'
event_name: 'TrueNAS: System name has changed (new name: {ITEM.VALUE})'
priority: INFO
description: 'The name of the system has changed. Acknowledge to close the problem manually.'
manual_close: 'YES'
tags:
- tag: scope
value: notice
- tag: scope
value: security
- uuid: a28a05c235a14b1685f3d5dbd3cb029e
name: 'TrueNAS: System object ID'
type: SNMP_AGENT
snmp_oid: 1.3.6.1.2.1.1.2.0
key: system.objectid
delay: 15m
history: 7d
trends: '0'
value_type: CHAR
description: |
MIB: SNMPv2-MIB
The vendor 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.
preprocessing:
- type: DISCARD_UNCHANGED_HEARTBEAT
parameters:
- 6h
tags:
- tag: component
value: system
- uuid: 27c63ea56f314fa69c4cfb4b6a61ccf1
name: 'TrueNAS: Free swap space'
type: SNMP_AGENT
snmp_oid: 1.3.6.1.4.1.2021.4.4.0
key: system.swap.free
history: 7d
units: B
description: |
MIB: UCD-SNMP-MIB
The amount of swap space currently unused or available.
preprocessing:
- type: MULTIPLIER
parameters:
- '1024'
tags:
- tag: component
value: memory
- tag: component
value: storage
- uuid: 6f30621625e1408e8417a068f7e89f31
name: 'TrueNAS: Free swap space in %'
type: CALCULATED
key: system.swap.pfree
history: 7d
value_type: FLOAT
units: '%'
params: 'last(//system.swap.free)/last(//system.swap.total)*100'
description: 'The free space of the swap volume/file expressed in %.'
preprocessing:
- type: CHECK_NOT_SUPPORTED
parameters:
- ''
error_handler: CUSTOM_VALUE
error_handler_params: '100'
tags:
- tag: component
value: memory
- tag: component
value: storage
- uuid: ddf1c15c0903444aa01a8346a54a78f6
name: 'TrueNAS: Total swap space'
type: SNMP_AGENT
snmp_oid: 1.3.6.1.4.1.2021.4.3.0
key: system.swap.total
history: 7d
units: B
description: |
MIB: UCD-SNMP-MIB
The total amount of swap space configured for this host.
preprocessing:
- type: MULTIPLIER
parameters:
- '1024'
tags:
- tag: component
value: memory
- tag: component
value: storage
- uuid: 0a5e388c8492486eb486663abffa013d
name: 'TrueNAS: Uptime'
type: SNMP_AGENT
snmp_oid: 1.3.6.1.2.1.25.1.1.0
key: system.uptime
delay: 30s
history: 7d
trends: '0'
units: uptime
description: |
MIB: HOST-RESOURCES-MIB
The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system.
preprocessing:
- type: MULTIPLIER
parameters:
- '0.01'
tags:
- tag: component
value: system
triggers:
- uuid: 91db2acdf9e4424280008f246496cd67
expression: 'last(/TrueNAS SCALE 22.12.1 and up by SNMP/system.uptime)<10m'
name: 'TrueNAS: Host has been restarted'
event_name: 'TrueNAS: {HOST.NAME} has been restarted (uptime < 10m)'
priority: INFO
description: 'Uptime is less than 10 minutes.'
manual_close: 'YES'
tags:
- tag: scope
value: notice
- uuid: a88e561429454a5c98229b30d4c9640e
name: 'TrueNAS: ARC target size of cache'
type: SNMP_AGENT
snmp_oid: .1.3.6.1.4.1.50536.1.4.6.0
key: truenas.zfs.arc.c
history: 7d
units: B
description: |
MIB: FREENAS-MIB
ARC target size of cache in bytes.
preprocessing:
- type: MULTIPLIER
parameters:
- '1024'
- type: DISCARD_UNCHANGED_HEARTBEAT
parameters:
- 1h
tags:
- tag: component
value: memory
- tag: component
value: zfs
- uuid: 40a43fda17b34ffe91720706cc955165
name: 'TrueNAS: ARC data size'
type: SNMP_AGENT
snmp_oid: .1.3.6.1.4.1.50536.1.4.3.0
key: truenas.zfs.arc.data
history: 7d
units: B
description: |
MIB: FREENAS-MIB
ARC data size used in bytes.
preprocessing:
- type: MULTIPLIER
parameters:
- '1024'
tags:
- tag: component
value: memory
- tag: component
value: zfs
- uuid: f1ba9b93612847d2b7ac4275cd03148e
name: 'TrueNAS: ARC cache hit ratio'
type: SNMP_AGENT
snmp_oid: .1.3.6.1.4.1.50536.1.4.9.0
key: truenas.zfs.arc.hit.ratio
history: 7d
value_type: FLOAT
units: '%'
description: |
MIB: FREENAS-MIB
ARC cache hit ration percentage.
tags:
- tag: component
value: memory
- tag: component
value: zfs
- uuid: 72c166489aad422e842b642b2e7baddd
name: 'TrueNAS: ARC hits'
type: SNMP_AGENT
snmp_oid: .1.3.6.1.4.1.50536.1.4.4.0
key: truenas.zfs.arc.hits
history: 7d
value_type: FLOAT
description: |
MIB: FREENAS-MIB
Total amount of cache hits in the ARC per second.
preprocessing:
- type: CHANGE_PER_SECOND
parameters:
- ''
tags:
- tag: component
value: memory
- tag: component
value: zfs
- uuid: e4feb70cb6d04d53ab39e3e72957312b
name: 'TrueNAS: ARC metadata size'
type: SNMP_AGENT
snmp_oid: .1.3.6.1.4.1.50536.1.4.2.0
key: truenas.zfs.arc.meta
history: 7d
units: B
description: |
MIB: FREENAS-MIB
ARC metadata size used in bytes.
preprocessing:
- type: MULTIPLIER
parameters:
- '1024'
tags:
- tag: component
value: memory
- tag: component
value: zfs
- uuid: 21bded32b9ea49a88368602d1a1232a9
name: 'TrueNAS: ARC cache miss ratio'
type: SNMP_AGENT
snmp_oid: .1.3.6.1.4.1.50536.1.4.10.0
key: truenas.zfs.arc.miss.ratio
history: 7d
value_type: FLOAT
units: '%'
description: |
MIB: FREENAS-MIB
ARC cache miss ration percentage.
tags:
- tag: component
value: memory
- tag: component
value: zfs
- uuid: 5dfbb9fa587840bd91a34d31e091a4e7
name: 'TrueNAS: ARC misses'
type: SNMP_AGENT
snmp_oid: .1.3.6.1.4.1.50536.1.4.5.0
key: truenas.zfs.arc.misses
history: 7d
value_type: FLOAT
description: |
MIB: FREENAS-MIB
Total amount of cache misses in the ARC per second.
preprocessing:
- type: CHANGE_PER_SECOND
parameters:
- ''
tags:
- tag: component
value: memory
- tag: component
value: zfs
- uuid: b948783abd9d40c4b332de1e29ecc18d
name: 'TrueNAS: ARC target size of MRU'
type: SNMP_AGENT
snmp_oid: .1.3.6.1.4.1.50536.1.4.7.0
key: truenas.zfs.arc.p
history: 7d
units: B
description: |
MIB: FREENAS-MIB
ARC target size of MRU in bytes.
preprocessing:
- type: MULTIPLIER
parameters:
- '1024'
- type: DISCARD_UNCHANGED_HEARTBEAT
parameters:
- 1h
tags:
- tag: component
value: memory
- tag: component
value: zfs
- uuid: af279f53d93640beb81ea86d70e3fef0
name: 'TrueNAS: ARC size'
type: SNMP_AGENT
snmp_oid: .1.3.6.1.4.1.50536.1.4.1.0
key: truenas.zfs.arc.size
history: 7d
units: B
description: |
MIB: FREENAS-MIB
ARC size in bytes.
preprocessing:
- type: MULTIPLIER
parameters:
- '1024'
- type: DISCARD_UNCHANGED_HEARTBEAT
parameters:
- 1h
tags:
- tag: component
value: memory
- tag: component
value: zfs
- uuid: 5b4d5210858a4fef9ac2cde0b982691d
name: 'TrueNAS: L2ARC hits'
type: SNMP_AGENT
snmp_oid: .1.3.6.1.4.1.50536.1.5.1.0
key: truenas.zfs.l2arc.hits
history: 7d
value_type: FLOAT
description: |
MIB: FREENAS-MIB
Hits to the L2 cache per second.
preprocessing:
- type: CHANGE_PER_SECOND
parameters:
- ''
tags:
- tag: component
value: memory
- tag: component
value: zfs
- uuid: 8a5978a8ca6b4e6894227feacad7d5b6
name: 'TrueNAS: L2ARC misses'
type: SNMP_AGENT
snmp_oid: .1.3.6.1.4.1.50536.1.5.2.0
key: truenas.zfs.l2arc.misses
history: 7d
value_type: FLOAT
description: |
MIB: FREENAS-MIB
Misses to the L2 cache per second.
preprocessing:
- type: CHANGE_PER_SECOND
parameters:
- ''
tags:
- tag: component
value: memory
- tag: component
value: zfs
- uuid: b6b7096f545b43a594246f06dbc66d90
name: 'TrueNAS: L2ARC read rate'
type: SNMP_AGENT
snmp_oid: .1.3.6.1.4.1.50536.1.5.3.0
key: truenas.zfs.l2arc.read
history: 7d
value_type: FLOAT
units: Bps
description: |
MIB: FREENAS-MIB
Read rate from L2 cache in bytes per second.
preprocessing:
- type: CHANGE_PER_SECOND
parameters:
- ''
tags:
- tag: component
value: memory
- tag: component
value: zfs
- uuid: a5977dd217284f4a873da747fb9eafa0
name: 'TrueNAS: L2ARC size'
type: SNMP_AGENT
snmp_oid: .1.3.6.1.4.1.50536.1.5.5.0
key: truenas.zfs.l2arc.size
history: 7d
value_type: FLOAT
units: B
description: |
MIB: FREENAS-MIB
L2ARC size in bytes.
preprocessing:
- type: MULTIPLIER
parameters:
- '1024'
- type: DISCARD_UNCHANGED_HEARTBEAT
parameters:
- 1h
tags:
- tag: component
value: memory
- tag: component
value: zfs
- uuid: d3d3e28d589c45eaa5f6b160ece74f00
name: 'TrueNAS: L2ARC write rate'
type: SNMP_AGENT
snmp_oid: .1.3.6.1.4.1.50536.1.5.4.0
key: truenas.zfs.l2arc.write
history: 7d
value_type: FLOAT
units: Bps
description: |
MIB: FREENAS-MIB
Write rate from L2 cache in bytes per second.
preprocessing:
- type: CHANGE_PER_SECOND
parameters:
- ''
tags:
- tag: component
value: memory
- tag: component
value: zfs
- uuid: 150cf43146e945638d196d088202ad61
name: 'TrueNAS: ZIL operations 1 second'
type: SNMP_AGENT
snmp_oid: .1.3.6.1.4.1.50536.1.6.1.0
key: truenas.zfs.zil.ops1
history: 7d
value_type: FLOAT
description: |
MIB: FREENAS-MIB
The ops column parsed from the command zilstat 1 1.
tags:
- tag: component
value: log
- tag: component
value: zfs
- uuid: 736c1c7bacd3487d8cbc01cde855bf7f
name: 'TrueNAS: ZIL operations 5 seconds'
type: SNMP_AGENT
snmp_oid: .1.3.6.1.4.1.50536.1.6.2.0
key: truenas.zfs.zil.ops5
history: 7d
value_type: FLOAT
description: |
MIB: FREENAS-MIB
The ops column parsed from the command zilstat 5 1.
tags:
- tag: component
value: log
- tag: component
value: zfs
- uuid: 06ffdded5c3245f7808fe0b2831755ea
name: 'TrueNAS: ZIL operations 10 seconds'
type: SNMP_AGENT
snmp_oid: .1.3.6.1.4.1.50536.1.6.3.0
key: truenas.zfs.zil.ops10
history: 7d
value_type: FLOAT
description: |
MIB: FREENAS-MIB
The ops column parsed from the command zilstat 10 1.
tags:
- tag: component
value: log
- tag: component
value: zfs
- uuid: 063019c83f6646c4ba77a90a8e0e529a
name: 'TrueNAS: Available memory'
type: CALCULATED
key: vm.memory.available
history: 7d
units: B
params: last(//vm.memory.free)+last(//vm.memory.buffers)+last(//vm.memory.cached)
description: 'Please note that memory utilization is a rough estimate, since memory available is calculated as free+buffers+cached, which is not 100% accurate, but the best we can get using SNMP.'
tags:
- tag: component
value: memory
- uuid: 40245eba19214229ba88e42eca3f2453
name: 'TrueNAS: Memory (buffers)'
type: SNMP_AGENT
snmp_oid: 1.3.6.1.4.1.2021.4.14.0
key: vm.memory.buffers
history: 7d
units: B
description: |
MIB: UCD-SNMP-MIB
The total amount of real or virtual memory currently allocated for use as memory buffers.
preprocessing:
- type: MULTIPLIER
parameters:
- '1024'
tags:
- tag: component
value: memory
- uuid: 35c36a4853e248b1b0b3ab0a9623205e
name: 'TrueNAS: Memory (cached)'
type: SNMP_AGENT
snmp_oid: 1.3.6.1.4.1.2021.4.15.0
key: vm.memory.cached
history: 7d
units: B
description: |
MIB: UCD-SNMP-MIB
The total amount of real or virtual memory currently allocated for use as cached memory.
preprocessing:
- type: MULTIPLIER
parameters:
- '1024'
tags:
- tag: component
value: memory
- uuid: 3bb2fc1dae644ede81806ba6cb472965
name: 'TrueNAS: Free memory'
type: SNMP_AGENT
snmp_oid: 1.3.6.1.4.1.2021.4.6.0
key: vm.memory.free
history: 7d
units: B
description: |
MIB: UCD-SNMP-MIB
The amount of real/physical memory currently unused or available.
preprocessing:
- type: MULTIPLIER
parameters:
- '1024'
tags:
- tag: component
value: memory
- uuid: 2959df5ed82443ce982edb66555a26d5
name: 'TrueNAS: Total memory'
type: SNMP_AGENT
snmp_oid: 1.3.6.1.4.1.2021.4.5.0
key: vm.memory.total
history: 7d
units: B
description: |
MIB: UCD-SNMP-MIB
The total memory expressed in bytes.
preprocessing:
- type: MULTIPLIER
parameters:
- '1024'
tags:
- tag: component
value: memory
- uuid: c1bc371be2b548a59f87efb077817534
name: 'TrueNAS: Memory utilization'
type: CALCULATED
key: vm.memory.util
history: 7d
value_type: FLOAT
units: '%'
params: '(last(//vm.memory.total)-(last(//vm.memory.free)+last(//vm.memory.buffers)+last(//vm.memory.cached)))/last(//vm.memory.total)*100'
description: 'Please note that memory utilization is a rough estimate, since memory available is calculated as free+buffers+cached, which is not 100% accurate, but the best we can get using SNMP.'
tags:
- tag: component
value: memory
triggers:
- uuid: 60f46f14c85a4a8ea3aead2bffba69ce
expression: 'min(/TrueNAS SCALE 22.12.1 and up by SNMP/vm.memory.util,5m)>{$MEMORY.UTIL.MAX}'
name: 'TrueNAS: High memory utilization'
event_name: 'TrueNAS: High memory utilization (>{$MEMORY.UTIL.MAX}% for 5m)'
priority: AVERAGE
description: 'The system is running out of free memory.'
dependencies:
- name: 'TrueNAS: Lack of available memory'
expression: 'min(/TrueNAS SCALE 22.12.1 and up by SNMP/vm.memory.available,5m)<{$MEMORY.AVAILABLE.MIN} and last(/TrueNAS SCALE 22.12.1 and up by SNMP/vm.memory.total)>0'
tags:
- tag: scope
value: capacity
- tag: scope
value: performance
- uuid: 2170762cf35245d499149a0b2086d234
name: 'TrueNAS: SNMP agent availability'
type: INTERNAL
key: 'zabbix[host,snmp,available]'
history: 7d
description: |
Availability of SNMP checks on the host. The value of this item corresponds to availability icons in the host list.
Possible value:
0 - not available
1 - available
2 - unknown
valuemap:
name: zabbix.host.available
tags:
- tag: component
value: health
- tag: component
value: network
triggers:
- uuid: 63eb4f3dfca042a794f8b88d6fa86932
expression: 'max(/TrueNAS SCALE 22.12.1 and up by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0'
name: 'TrueNAS: 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: 'TrueNAS: Unavailable by ICMP ping'
expression: 'max(/TrueNAS SCALE 22.12.1 and up by SNMP/icmpping,#3)=0'
tags:
- tag: scope
value: availability
discovery_rules:
- uuid: 0f0d8b3021e74595bac38347c6311d0a
name: 'CPU discovery'
type: DEPENDENT
key: cpu.discovery
delay: '0'
description: 'This discovery will create set of per core CPU metrics from UCD-SNMP-MIB, using {#CPU.COUNT} in preprocessing. That''s the only reason why LLD is used.'
item_prototypes:
- uuid: 445ee017548747c29e1b6495084b4981
name: 'TrueNAS: CPU idle time'
type: SNMP_AGENT
snmp_oid: 1.3.6.1.4.1.2021.11.11.0
key: 'system.cpu.idle[{#SNMPINDEX}]'
history: 7d
value_type: FLOAT
units: '%'
description: |
MIB: UCD-SNMP-MIB
The time the CPU has spent doing nothing.
tags:
- tag: component
value: cpu
- uuid: d6c3fb5f8e634d998156f8a897827354
name: 'TrueNAS: CPU interrupt time'
type: SNMP_AGENT
snmp_oid: 1.3.6.1.4.1.2021.11.56.0
key: 'system.cpu.interrupt[{#SNMPINDEX}]'
history: 7d
value_type: FLOAT
units: '%'
description: |
MIB: UCD-SNMP-MIB
The amount of time the CPU has been servicing hardware interrupts.
preprocessing:
- type: CHANGE_PER_SECOND
parameters:
- ''
- type: JAVASCRIPT
parameters:
- |
//to get utilization in %, divide by N, where N is number of cores.
return value/{#CPU.COUNT}
tags:
- tag: component
value: cpu
- uuid: 6d89772848444d24b8a5fee145331cf9
name: 'TrueNAS: CPU iowait time'
type: SNMP_AGENT
snmp_oid: 1.3.6.1.4.1.2021.11.54.0
key: 'system.cpu.iowait[{#SNMPINDEX}]'
history: 7d
value_type: FLOAT
units: '%'
description: |
MIB: UCD-SNMP-MIB
The amount of time the CPU has been waiting for I/O to complete.
preprocessing:
- type: CHANGE_PER_SECOND
parameters:
- ''
- type: JAVASCRIPT
parameters:
- |
//to get utilization in %, divide by N, where N is number of cores.
return value/{#CPU.COUNT}
tags:
- tag: component
value: cpu
- uuid: 3c5767dd2ae34bdb9bfa5f01c9e60654
name: 'TrueNAS: CPU nice time'
type: SNMP_AGENT
snmp_oid: 1.3.6.1.4.1.2021.11.51.0
key: 'system.cpu.nice[{#SNMPINDEX}]'
history: 7d
value_type: FLOAT
units: '%'
description: |
MIB: UCD-SNMP-MIB
The time the CPU has spent running users' processes that have been niced.
preprocessing:
- type: CHANGE_PER_SECOND
parameters:
- ''
- type: JAVASCRIPT
parameters:
- |
//to get utilization in %, divide by N, where N is number of cores.
return value/{#CPU.COUNT}
tags:
- tag: component
value: cpu
- uuid: 1529c34bfd864cfdadb89ee523c14c7b
name: 'TrueNAS: CPU system time'
type: SNMP_AGENT
snmp_oid: 1.3.6.1.4.1.2021.11.52.0
key: 'system.cpu.system[{#SNMPINDEX}]'
history: 7d
value_type: FLOAT
units: '%'
description: |
MIB: UCD-SNMP-MIB
The time the CPU has spent running the kernel and its processes.
preprocessing:
- type: CHANGE_PER_SECOND
parameters:
- ''
- type: JAVASCRIPT
parameters:
- |
//to get utilization in %, divide by N, where N is number of cores.
return value/{#CPU.COUNT}
tags:
- tag: component
value: cpu
- uuid: 371b9bf63aad4bbbb96a79acfeb52c64
name: 'TrueNAS: CPU user time'
type: SNMP_AGENT
snmp_oid: 1.3.6.1.4.1.2021.11.50.0
key: 'system.cpu.user[{#SNMPINDEX}]'
history: 7d
value_type: FLOAT
units: '%'
description: |
MIB: UCD-SNMP-MIB
The time the CPU has spent running users' processes that are not niced.
preprocessing:
- type: CHANGE_PER_SECOND
parameters:
- ''
- type: JAVASCRIPT
parameters: