-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathHAVELSAN Linux Utilization Template.yaml
1490 lines (1486 loc) · 54.8 KB
/
HAVELSAN Linux Utilization Template.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: '2024-10-16T07:06:44Z'
groups:
- uuid: 846977d1dfed4968bc5f8bdb363285bc
name: 'Templates/Operating systems'
templates:
- uuid: 5594badf198541ed8654f28fee8b045c
template: 'HAVELSAN Linux Utilization Template'
name: 'HAVELSAN Linux Utilization Template'
description: |
HAVELSAN
Template OS Linux
MIBs used:
EtherLike-MIB
HOST-RESOURCES-MIB
SNMPv2-MIB
UCD-DISKIO-MIB
UCD-SNMP-MIB
IF-MIB
You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/387225-discussion-thread-for-official-zabbix-template-for-linux
Generated by official Zabbix template tool "Templator"
groups:
- name: 'Templates/Operating systems'
items:
- uuid: 6bfb9946269841d1a662cae152ea9536
name: 'Linux: 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[laLoad.1]'
history: 7d
value_type: FLOAT
description: 'MIB: UCD-SNMP-MIB'
tags:
- tag: component
value: cpu
- uuid: 4677c517c42d4371b3c7e90cf4defc8f
name: 'Linux: 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[laLoad.2]'
history: 7d
value_type: FLOAT
description: 'MIB: UCD-SNMP-MIB'
tags:
- tag: component
value: cpu
- uuid: 2dcbcf6600c947b89b8c9e85aaafd11e
name: 'Linux: 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[laLoad.3]'
history: 7d
value_type: FLOAT
description: 'MIB: UCD-SNMP-MIB'
tags:
- tag: component
value: cpu
- uuid: 75749365694541c684edb27092bf5e09
name: 'Linux: 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[snmp]'
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:
- 'return JSON.parse(value).length;'
tags:
- tag: component
value: cpu
- uuid: ad198438aefb4d0abcb2ef447152d89c
name: 'Linux: Free swap space'
type: SNMP_AGENT
snmp_oid: 1.3.6.1.4.1.2021.4.4.0
key: 'system.swap.free[memAvailSwap.0]'
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: 7f4c44275e0042f5aff96db2406c74e6
name: 'Linux: Free swap space in %'
type: CALCULATED
key: 'system.swap.pfree[snmp]'
history: 7d
value_type: FLOAT
units: '%'
params: 'last(//system.swap.free[memAvailSwap.0])/last(//system.swap.total[memTotalSwap.0])*100'
description: 'The free space of the swap volume/file expressed in %.'
tags:
- tag: component
value: memory
- tag: component
value: storage
- uuid: c09f695cd4bb43c2aef1325943d29377
name: 'Linux: Total swap space'
type: SNMP_AGENT
snmp_oid: 1.3.6.1.4.1.2021.4.3.0
key: 'system.swap.total[memTotalSwap.0]'
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: 5739b6b7127a40c784314a3aef2a65a9
name: 'Linux: Available memory'
type: CALCULATED
key: 'vm.memory.available[snmp]'
history: 7d
units: B
params: 'last(//vm.memory.free[memAvailReal.0])+last(//vm.memory.buffers[memBuffer.0])+last(//vm.memory.cached[memCached.0])'
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: e5cfb0cec7154ab3a9845950d2b4afe5
name: 'Linux: Memory (buffers)'
type: SNMP_AGENT
snmp_oid: 1.3.6.1.4.1.2021.4.14.0
key: 'vm.memory.buffers[memBuffer.0]'
history: 7d
units: B
description: |
MIB: UCD-SNMP-MIB
Memory used by kernel buffers (Buffers in /proc/meminfo).
preprocessing:
- type: MULTIPLIER
parameters:
- '1024'
tags:
- tag: component
value: memory
- uuid: 13fe1e9e746d4a639526a317af230e6f
name: 'Linux: Memory (cached)'
type: SNMP_AGENT
snmp_oid: 1.3.6.1.4.1.2021.4.15.0
key: 'vm.memory.cached[memCached.0]'
history: 7d
units: B
description: |
MIB: UCD-SNMP-MIB
Memory used by the page cache and slabs (Cached and Slab in /proc/meminfo).
preprocessing:
- type: MULTIPLIER
parameters:
- '1024'
tags:
- tag: component
value: memory
- uuid: e95b2c4036ab44ec913986c3d7bc5df9
name: 'Linux: Free memory'
type: SNMP_AGENT
snmp_oid: 1.3.6.1.4.1.2021.4.6.0
key: 'vm.memory.free[memAvailReal.0]'
history: 7d
units: B
description: 'MIB: UCD-SNMP-MIB'
preprocessing:
- type: MULTIPLIER
parameters:
- '1024'
tags:
- tag: component
value: memory
- uuid: c7d9f6a50b9941798a44a58d9bf5c629
name: 'Linux: Total memory'
type: SNMP_AGENT
snmp_oid: 1.3.6.1.4.1.2021.4.5.0
key: 'vm.memory.total[memTotalReal.0]'
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: 14cb81a125904f1a900b2ed1d47a6efa
name: 'Linux: Memory utilization'
type: CALCULATED
key: 'vm.memory.util[snmp]'
history: 7d
value_type: FLOAT
units: '%'
params: '(last(//vm.memory.total[memTotalReal.0])-(last(//vm.memory.free[memAvailReal.0])+last(//vm.memory.buffers[memBuffer.0])+last(//vm.memory.cached[memCached.0])))/last(//vm.memory.total[memTotalReal.0])*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: 383133fe85dd450cbd9ca2103ab40376
expression: 'min(/HAVELSAN Linux Utilization Template/vm.memory.util[snmp],5m)>{$MEMORY.UTIL.MAX}'
name: 'Linux: High memory utilization'
event_name: 'Linux: High memory utilization (>{$MEMORY.UTIL.MAX}% for 5m)'
priority: AVERAGE
description: 'The system is running out of free memory.'
dependencies:
- name: 'Linux: Lack of available memory'
expression: 'max(/HAVELSAN Linux Utilization Template/vm.memory.available[snmp],5m)<{$MEMORY.AVAILABLE.MIN} and last(/HAVELSAN Linux Utilization Template/vm.memory.total[memTotalReal.0])>0'
tags:
- tag: scope
value: capacity
- tag: scope
value: performance
discovery_rules:
- uuid: bef23b7d653d4b3db786f3226966dfab
name: 'CPU discovery'
type: DEPENDENT
key: 'cpu.discovery[snmp]'
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: ad17d208cf574277bbd433d7c5b6c90f
name: 'Linux: CPU idle time'
type: SNMP_AGENT
snmp_oid: 1.3.6.1.4.1.2021.11.53.0
key: 'system.cpu.idle[ssCpuRawIdle.{#SNMPINDEX}]'
history: 7d
value_type: FLOAT
units: '%'
description: |
MIB: UCD-SNMP-MIB
The time the CPU has spent doing nothing.
preprocessing:
- type: CHANGE_PER_SECOND
parameters:
- ''
- type: JAVASCRIPT
parameters:
- 'return value/{#CPU.COUNT}'
tags:
- tag: component
value: cpu
- uuid: 2e9ef2b3d21f4ec08a93f36b2f7d82b6
name: 'Linux: CPU utilization'
type: DEPENDENT
key: 'system.cpu.util[snmp,{#SNMPINDEX}]'
delay: '0'
history: 7d
value_type: FLOAT
units: '%'
description: 'The CPU utilization expressed in %.'
preprocessing:
- type: JAVASCRIPT
parameters:
- 'return (100 - value)'
master_item:
key: 'system.cpu.idle[ssCpuRawIdle.{#SNMPINDEX}]'
tags:
- tag: component
value: cpu
trigger_prototypes:
- uuid: 5628543501af4d16a52ed82cc399c300
expression: 'min(/HAVELSAN Linux Utilization Template/system.cpu.util[snmp,{#SNMPINDEX}],5m)>{$CPU.UTIL.CRIT}'
name: 'Linux: High CPU utilization'
event_name: 'Linux: High CPU utilization (over {$CPU.UTIL.CRIT}% for 5m)'
opdata: 'Current utilization: {ITEM.LASTVALUE1}'
priority: WARNING
description: 'The CPU utilization is too high. The system might be slow to respond.'
tags:
- tag: scope
value: performance
graph_prototypes:
- uuid: 7dd969b6d3db4c7daae04599b3728a91
name: 'Linux: CPU utilization{#SINGLETON}'
ymin_type_1: FIXED
ymax_type_1: FIXED
graph_items:
- drawtype: GRADIENT_LINE
color: 199C0D
item:
host: 'HAVELSAN Linux Utilization Template'
key: 'system.cpu.util[snmp,{#SNMPINDEX}]'
master_item:
key: 'system.cpu.num[snmp]'
preprocessing:
- type: JAVASCRIPT
parameters:
- |
//count the number of CPU cores
return JSON.stringify([{"{#CPU.COUNT}": value, "{#SNMPINDEX}": 0, "{#SINGLETON}":""}])
- uuid: 6899f3240113428e9cb0e5b2c6ba2483
name: 'Block devices discovery'
type: SNMP_AGENT
snmp_oid: 'discovery[{#DEVNAME},1.3.6.1.4.1.2021.13.15.1.1.2]'
key: 'vfs.dev.discovery[snmp]'
delay: 1h
filter:
evaltype: AND
conditions:
- macro: '{#DEVNAME}'
value: '{$VFS.DEV.DEVNAME.MATCHES}'
formulaid: A
- macro: '{#DEVNAME}'
value: '{$VFS.DEV.DEVNAME.NOT_MATCHES}'
operator: NOT_MATCHES_REGEX
formulaid: B
description: 'Block devices are discovered from UCD-DISKIO-MIB::diskIOTable (http://net-snmp.sourceforge.net/docs/mibs/ucdDiskIOMIB.html#diskIOTable)'
item_prototypes:
- uuid: 90bfc7db080d4c73a0bc3ce2f29c5e00
name: '{#DEVNAME}: Disk read rate'
type: SNMP_AGENT
snmp_oid: '1.3.6.1.4.1.2021.13.15.1.1.5.{#SNMPINDEX}'
key: 'vfs.dev.read.rate[diskIOReads.{#SNMPINDEX}]'
history: 7d
value_type: FLOAT
units: '!r/s'
description: |
MIB: UCD-DISKIO-MIB
The number of read accesses from this device since boot.
preprocessing:
- type: CHANGE_PER_SECOND
parameters:
- ''
tags:
- tag: component
value: storage
- tag: disk
value: '{#DEVNAME}'
- uuid: 5dcb48a131cc4bf395d67cba1eefdd87
name: '{#DEVNAME}: Disk utilization'
type: SNMP_AGENT
snmp_oid: '1.3.6.1.4.1.2021.13.15.1.1.9.{#SNMPINDEX}'
key: 'vfs.dev.util[diskIOLA1.{#SNMPINDEX}]'
history: 7d
value_type: FLOAT
units: '%'
description: |
MIB: UCD-DISKIO-MIB
The 1 minute average load of disk (%)
tags:
- tag: component
value: storage
- tag: disk
value: '{#DEVNAME}'
- uuid: d97e3e1e89de490eb958b1c82a49b807
name: '{#DEVNAME}: Disk write rate'
type: SNMP_AGENT
snmp_oid: '1.3.6.1.4.1.2021.13.15.1.1.6.{#SNMPINDEX}'
key: 'vfs.dev.write.rate[diskIOWrites.{#SNMPINDEX}]'
history: 7d
value_type: FLOAT
units: '!w/s'
description: |
MIB: UCD-DISKIO-MIB
The number of write accesses from this device since boot.
preprocessing:
- type: CHANGE_PER_SECOND
parameters:
- ''
tags:
- tag: component
value: storage
- tag: disk
value: '{#DEVNAME}'
graph_prototypes:
- uuid: 063923be53fb45f2b5f94ceaf6acde61
name: '{#DEVNAME}: Disk read/write rates'
graph_items:
- color: 199C0D
item:
host: 'HAVELSAN Linux Utilization Template'
key: 'vfs.dev.read.rate[diskIOReads.{#SNMPINDEX}]'
- sortorder: '1'
drawtype: GRADIENT_LINE
color: F63100
item:
host: 'HAVELSAN Linux Utilization Template'
key: 'vfs.dev.write.rate[diskIOWrites.{#SNMPINDEX}]'
- uuid: 467711a248ed456a90bb607a4f853ee1
name: 'Mounted filesystem discovery'
type: SNMP_AGENT
snmp_oid: 'discovery[{#FSNAME},1.3.6.1.2.1.25.2.3.1.3,{#FSTYPE},1.3.6.1.2.1.25.2.3.1.2,{#ALLOC_UNITS},1.3.6.1.2.1.25.2.3.1.4]'
key: 'vfs.fs.discovery[snmp]'
delay: 1h
filter:
evaltype: AND
conditions:
- macro: '{#FSNAME}'
value: '{$VFS.FS.FSNAME.MATCHES}'
formulaid: A
- macro: '{#FSNAME}'
value: '{$VFS.FS.FSNAME.NOT_MATCHES}'
operator: NOT_MATCHES_REGEX
formulaid: B
- macro: '{#FSTYPE}'
value: '{$VFS.FS.FSTYPE.MATCHES}'
formulaid: C
- macro: '{#FSTYPE}'
value: '{$VFS.FS.FSTYPE.NOT_MATCHES}'
operator: NOT_MATCHES_REGEX
formulaid: D
description: 'HOST-RESOURCES-MIB::hrStorage discovery with storage filter'
item_prototypes:
- uuid: ca1dcb01c759463db18be2587a733cd7
name: '{#FSNAME}: Free inodes in %'
type: SNMP_AGENT
snmp_oid: '1.3.6.1.4.1.2021.9.1.10["index","1.3.6.1.4.1.2021.9.1.2", "{#FSNAME}"]'
key: 'vfs.fs.inode.pfree[dskPercentNode.{#SNMPINDEX}]'
history: 7d
value_type: FLOAT
units: '%'
description: |
MIB: UCD-SNMP-MIB
If having problems collecting this item make sure access to UCD-SNMP-MIB is allowed.
preprocessing:
- type: JAVASCRIPT
parameters:
- 'return (100-value);'
tags:
- tag: component
value: storage
- tag: filesystem
value: '{#FSNAME}'
trigger_prototypes:
- uuid: a2b13b1421cf457e99d34df03e62c923
expression: 'min(/HAVELSAN Linux Utilization Template/vfs.fs.inode.pfree[dskPercentNode.{#SNMPINDEX}],5m)<{$VFS.FS.INODE.PFREE.MIN.CRIT:"{#FSNAME}"}'
name: '{#FSNAME}: Running out of free inodes'
event_name: '{#FSNAME}: Running out of free inodes (free < {$VFS.FS.INODE.PFREE.MIN.CRIT:"{#FSNAME}"}%)'
opdata: 'Free inodes: {ITEM.LASTVALUE1}'
priority: AVERAGE
description: |
It may become impossible to write to a disk if there are no index nodes left.
The following error messages may be returned as symptoms, even though the free space is available:
- 'No space left on device';
- 'Disk is full'.
tags:
- tag: scope
value: capacity
- tag: scope
value: performance
- uuid: 9c3bed030c024f48bc28a7ab6c2dd797
expression: 'min(/HAVELSAN Linux Utilization Template/vfs.fs.inode.pfree[dskPercentNode.{#SNMPINDEX}],5m)<{$VFS.FS.INODE.PFREE.MIN.WARN:"{#FSNAME}"}'
name: '{#FSNAME}: Running out of free inodes'
event_name: '{#FSNAME}: Running out of free inodes (free < {$VFS.FS.INODE.PFREE.MIN.WARN:"{#FSNAME}"}%)'
opdata: 'Free inodes: {ITEM.LASTVALUE1}'
priority: WARNING
description: |
It may become impossible to write to a disk if there are no index nodes left.
The following error messages may be returned as symptoms, even though the free space is available:
- 'No space left on device';
- 'Disk is full'.
dependencies:
- name: '{#FSNAME}: Running out of free inodes'
expression: 'min(/HAVELSAN Linux Utilization Template/vfs.fs.inode.pfree[dskPercentNode.{#SNMPINDEX}],5m)<{$VFS.FS.INODE.PFREE.MIN.CRIT:"{#FSNAME}"}'
tags:
- tag: scope
value: capacity
- tag: scope
value: performance
- uuid: c3c7c27923b546e6858e10138e69498f
name: '{#FSNAME}: Space utilization'
type: CALCULATED
key: 'vfs.fs.pused[storageUsedPercentage.{#SNMPINDEX}]'
history: 7d
value_type: FLOAT
units: '%'
params: '(last(//vfs.fs.used[hrStorageUsed.{#SNMPINDEX}])/last(//vfs.fs.total[hrStorageSize.{#SNMPINDEX}]))*100'
description: 'The space utilization expressed in % for {#FSNAME}.'
tags:
- tag: component
value: storage
- tag: filesystem
value: '{#FSNAME}'
trigger_prototypes:
- uuid: b85e85b84a0143b89fc22266c505568f
expression: 'last(/HAVELSAN Linux Utilization Template/vfs.fs.pused[storageUsedPercentage.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.CRIT:"{#FSNAME}"}'
name: '{#FSNAME}: Disk space is critically low'
event_name: '{#FSNAME}: Disk space is critically low (used > {$VFS.FS.PUSED.MAX.CRIT:"{#FSNAME}"}%)'
opdata: 'Space used: {ITEM.LASTVALUE1}'
priority: AVERAGE
description: 'The volume''s space usage exceeds the `{$VFS.FS.PUSED.MAX.CRIT:"{#FSNAME}"}` limit.'
manual_close: 'YES'
tags:
- tag: scope
value: availability
- tag: scope
value: capacity
- uuid: 1fd8808cad49471b9572db10c8594032
expression: 'last(/HAVELSAN Linux Utilization Template/vfs.fs.pused[storageUsedPercentage.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.WARN:"{#FSNAME}"}'
name: '{#FSNAME}: Disk space is low'
event_name: '{#FSNAME}: Disk space is low (used > {$VFS.FS.PUSED.MAX.WARN:"{#FSNAME}"}%)'
opdata: 'Space used: {ITEM.LASTVALUE1}'
priority: WARNING
description: 'The volume''s space usage exceeds the `{$VFS.FS.PUSED.MAX.WARN:"{#FSNAME}"}` limit.'
manual_close: 'YES'
dependencies:
- name: '{#FSNAME}: Disk space is critically low'
expression: 'last(/HAVELSAN Linux Utilization Template/vfs.fs.pused[storageUsedPercentage.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.CRIT:"{#FSNAME}"}'
tags:
- tag: scope
value: availability
- tag: scope
value: capacity
- uuid: 45fae0a199e745f9bb0a85611404078f
name: '{#FSNAME}: Total space'
type: SNMP_AGENT
snmp_oid: '1.3.6.1.2.1.25.2.3.1.5.{#SNMPINDEX}'
key: 'vfs.fs.total[hrStorageSize.{#SNMPINDEX}]'
history: 7d
units: B
description: |
MIB: HOST-RESOURCES-MIB
The size of the storage represented by this entry, in units of hrStorageAllocationUnits.
This object is writable to allow remote configuration of the size of the storage area in those cases where such an operation makes sense and is possible on the underlying system.
For example, the amount of main storage allocated to a buffer pool might be modified or the amount of disk space allocated to virtual storage might be modified.
preprocessing:
- type: MULTIPLIER
parameters:
- '{#ALLOC_UNITS}'
tags:
- tag: component
value: storage
- tag: filesystem
value: '{#FSNAME}'
- uuid: 3b5b12d3fb59425ba40306eea1b43a8f
name: '{#FSNAME}: Used space'
type: SNMP_AGENT
snmp_oid: '1.3.6.1.2.1.25.2.3.1.6.{#SNMPINDEX}'
key: 'vfs.fs.used[hrStorageUsed.{#SNMPINDEX}]'
history: 7d
units: B
description: |
MIB: HOST-RESOURCES-MIB
The amount of the storage represented by this entry that is allocated, in units of hrStorageAllocationUnits.
preprocessing:
- type: MULTIPLIER
parameters:
- '{#ALLOC_UNITS}'
tags:
- tag: component
value: storage
- tag: filesystem
value: '{#FSNAME}'
graph_prototypes:
- uuid: 117fb6b6aaf242e09862bc65a72751a9
name: '{#FSNAME}: Disk space usage'
width: '600'
height: '340'
type: PIE
show_3d: 'YES'
graph_items:
- color: '969696'
calc_fnc: LAST
type: GRAPH_SUM
item:
host: 'HAVELSAN Linux Utilization Template'
key: 'vfs.fs.total[hrStorageSize.{#SNMPINDEX}]'
- sortorder: '1'
color: C80000
calc_fnc: LAST
item:
host: 'HAVELSAN Linux Utilization Template'
key: 'vfs.fs.used[hrStorageUsed.{#SNMPINDEX}]'
tags:
- tag: class
value: os
- tag: target
value: linux
macros:
- macro: '{$CPU.UTIL.CRIT}'
value: '90'
- macro: '{$ICMP_LOSS_WARN}'
value: '20'
- macro: '{$ICMP_RESPONSE_TIME_WARN}'
value: '0.15'
- macro: '{$IF.ERRORS.WARN}'
value: '2'
- macro: '{$IF.UTIL.MAX}'
value: '90'
- macro: '{$IFCONTROL}'
value: '1'
- macro: '{$LOAD_AVG_PER_CPU.MAX.WARN}'
value: '1.5'
description: 'Load per CPU considered sustainable. Tune if needed.'
- macro: '{$MEMORY.AVAILABLE.MIN}'
value: 20M
- macro: '{$MEMORY.UTIL.MAX}'
value: '90'
- macro: '{$NET.IF.IFADMINSTATUS.MATCHES}'
value: '^.*'
- macro: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}'
value: ^2$
description: 'Ignore down(2) administrative status'
- macro: '{$NET.IF.IFALIAS.MATCHES}'
value: '.*'
- macro: '{$NET.IF.IFALIAS.NOT_MATCHES}'
value: CHANGE_IF_NEEDED
- macro: '{$NET.IF.IFDESCR.MATCHES}'
value: '.*'
- macro: '{$NET.IF.IFDESCR.NOT_MATCHES}'
value: CHANGE_IF_NEEDED
- macro: '{$NET.IF.IFNAME.MATCHES}'
value: '^.*$'
- macro: '{$NET.IF.IFNAME.NOT_MATCHES}'
value: '(^Software Loopback Interface|^NULL[0-9.]*$|^[Ll]o[0-9.]*$|^[Ss]ystem$|^Nu[0-9.]*$|^veth[0-9a-z]+$|docker[0-9]+|br-[a-z0-9]{12})'
description: 'Filter out loopbacks, nulls, docker veth links and docker0 bridge by default'
- macro: '{$NET.IF.IFOPERSTATUS.MATCHES}'
value: '^.*$'
- macro: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}'
value: ^6$
description: 'Ignore notPresent(6)'
- macro: '{$NET.IF.IFTYPE.MATCHES}'
value: '.*'
- macro: '{$NET.IF.IFTYPE.NOT_MATCHES}'
value: CHANGE_IF_NEEDED
- macro: '{$SNMP.TIMEOUT}'
value: 5m
- macro: '{$SWAP.PFREE.MIN.WARN}'
value: '50'
- macro: '{$VFS.DEV.DEVNAME.MATCHES}'
value: .+
description: 'This macro is used in block devices discovery. Can be overridden on the host or linked template level'
- macro: '{$VFS.DEV.DEVNAME.NOT_MATCHES}'
value: '^(loop[0-9]*|sd[a-z][0-9]+|nbd[0-9]+|sr[0-9]+|fd[0-9]+|dm-[0-9]+|ram[0-9]+|ploop[a-z0-9]+|md[0-9]*|hcp[0-9]*|zram[0-9]*)'
description: 'This macro is used in block devices discovery. Can be overridden on the host or linked template level'
- macro: '{$VFS.FS.FSNAME.MATCHES}'
value: .+
description: 'This macro is used in filesystems discovery. Can be overridden on the host or linked template level'
- macro: '{$VFS.FS.FSNAME.NOT_MATCHES}'
value: ^(/dev|/sys|/run|/proc|.+/shm$)
description: 'This macro is used in filesystems discovery. Can be overridden on the host or linked template level'
- macro: '{$VFS.FS.FSTYPE.MATCHES}'
value: '.*(\.4|\.9|hrStorageFixedDisk|hrStorageFlashMemory)$'
description: 'This macro is used in filesystems discovery. Can be overridden on the host or linked template level'
- macro: '{$VFS.FS.FSTYPE.NOT_MATCHES}'
value: ^\s$
description: 'This macro is used in filesystems discovery. Can be overridden on the host or linked template level'
- macro: '{$VFS.FS.INODE.PFREE.MIN.CRIT}'
value: '10'
- macro: '{$VFS.FS.INODE.PFREE.MIN.WARN}'
value: '20'
- macro: '{$VFS.FS.PUSED.MAX.CRIT}'
value: '90'
- macro: '{$VFS.FS.PUSED.MAX.WARN}'
value: '80'
dashboards:
- uuid: 29ceb3a3aac94f1bbc5240f611128c6e
name: 'Network interfaces'
pages:
- widgets:
- type: GRAPH_PROTOTYPE
width: '24'
height: '5'
fields:
- type: INTEGER
name: columns
value: '1'
- uuid: 46c993a158844d00abb7e1764f175630
name: 'System performance'
pages:
- widgets:
- type: GRAPH_CLASSIC
width: '12'
height: '5'
fields:
- type: GRAPH
name: graphid
value:
host: 'HAVELSAN Linux Utilization Template'
name: 'Linux: System load'
- type: GRAPH_CLASSIC
'y': '5'
width: '12'
height: '5'
fields:
- type: GRAPH
name: graphid
value:
host: 'HAVELSAN Linux Utilization Template'
name: 'Linux: Memory usage'
- type: GRAPH_PROTOTYPE
'y': '10'
width: '24'
height: '5'
fields:
- type: INTEGER
name: columns
value: '1'
- type: GRAPH_PROTOTYPE
name: graphid
value:
host: 'HAVELSAN Linux Utilization Template'
name: '{#FSNAME}: Disk space usage'
- type: GRAPH_PROTOTYPE
'y': '15'
width: '24'
height: '5'
fields:
- type: INTEGER
name: columns
value: '1'
- type: GRAPH_PROTOTYPE
name: graphid
value:
host: 'HAVELSAN Linux Utilization Template'
name: '{#DEVNAME}: Disk read/write rates'
- type: GRAPH_PROTOTYPE
'y': '20'
width: '24'
height: '5'
fields:
- type: INTEGER
name: columns
value: '1'
- type: ITEM_PROTOTYPE
name: itemid
value:
host: 'HAVELSAN Linux Utilization Template'
key: 'vfs.dev.util[diskIOLA1.{#SNMPINDEX}]'
- type: INTEGER
name: source_type
value: '3'
- type: GRAPH_PROTOTYPE
'y': '25'
width: '24'
height: '5'
fields:
- type: INTEGER
name: columns
value: '1'
- type: GRAPH_PROTOTYPE
x: '12'
width: '12'
height: '5'
fields:
- type: INTEGER
name: columns
value: '1'
- type: GRAPH_CLASSIC
x: '12'
'y': '5'
width: '12'
height: '5'
fields:
- type: GRAPH
name: graphid
value:
host: 'HAVELSAN Linux Utilization Template'
name: 'Linux: Swap usage'
valuemaps:
- uuid: 2acb323744b9407e838415c20a5eca0e
name: 'EtherLike-MIB::dot3StatsDuplexStatus'
mappings:
- value: '1'
newvalue: unknown
- value: '2'
newvalue: halfDuplex
- value: '3'
newvalue: fullDuplex
- uuid: 5bb7b4f762974895be4da753c5bc6f47
name: 'IF-MIB::ifOperStatus'
mappings:
- value: '1'
newvalue: up
- value: '2'
newvalue: down
- value: '4'
newvalue: unknown
- value: '5'
newvalue: dormant
- value: '6'
newvalue: notPresent
- value: '7'
newvalue: lowerLayerDown
- uuid: 90911568234e45a6adcb19e803e4b5e8
name: 'IF-MIB::ifType'
mappings:
- value: '1'
newvalue: other
- value: '2'
newvalue: regular1822
- value: '3'
newvalue: hdh1822
- value: '4'
newvalue: ddnX25
- value: '5'
newvalue: rfc877x25
- value: '6'
newvalue: ethernetCsmacd
- value: '7'
newvalue: iso88023Csmacd
- value: '8'
newvalue: iso88024TokenBus
- value: '9'
newvalue: iso88025TokenRing
- value: '10'
newvalue: iso88026Man
- value: '11'
newvalue: starLan
- value: '12'
newvalue: proteon10Mbit
- value: '13'
newvalue: proteon80Mbit
- value: '14'
newvalue: hyperchannel
- value: '15'
newvalue: fddi
- value: '16'
newvalue: lapb
- value: '17'
newvalue: sdlc
- value: '18'
newvalue: ds1
- value: '19'
newvalue: e1
- value: '20'
newvalue: basicISDN
- value: '21'
newvalue: primaryISDN
- value: '22'
newvalue: propPointToPointSerial
- value: '23'
newvalue: ppp
- value: '24'
newvalue: softwareLoopback
- value: '25'
newvalue: eon
- value: '26'
newvalue: ethernet3Mbit
- value: '27'
newvalue: nsip
- value: '28'
newvalue: slip
- value: '29'
newvalue: ultra
- value: '30'
newvalue: ds3
- value: '31'
newvalue: sip
- value: '32'
newvalue: frameRelay
- value: '33'
newvalue: rs232
- value: '34'
newvalue: para
- value: '35'
newvalue: arcnet
- value: '36'
newvalue: arcnetPlus
- value: '37'
newvalue: atm
- value: '38'
newvalue: miox25
- value: '39'
newvalue: sonet
- value: '40'
newvalue: x25ple
- value: '41'
newvalue: iso88022llc
- value: '42'
newvalue: localTalk
- value: '43'
newvalue: smdsDxi
- value: '44'
newvalue: frameRelayService
- value: '45'
newvalue: v35
- value: '46'
newvalue: hssi
- value: '47'
newvalue: hippi
- value: '48'
newvalue: modem
- value: '49'
newvalue: aal5
- value: '50'
newvalue: sonetPath
- value: '51'
newvalue: sonetVT
- value: '52'
newvalue: smdsIcip
- value: '53'
newvalue: propVirtual
- value: '54'
newvalue: propMultiplexor
- value: '55'
newvalue: ieee80212
- value: '56'
newvalue: fibreChannel
- value: '57'
newvalue: hippiInterface
- value: '58'
newvalue: frameRelayInterconnect
- value: '59'
newvalue: aflane8023
- value: '60'
newvalue: aflane8025
- value: '61'
newvalue: cctEmul
- value: '62'
newvalue: fastEther
- value: '63'
newvalue: isdn
- value: '64'
newvalue: v11
- value: '65'
newvalue: v36
- value: '66'
newvalue: g703at64k
- value: '67'
newvalue: g703at2mb
- value: '68'
newvalue: qllc
- value: '69'
newvalue: fastEtherFX
- value: '70'
newvalue: channel
- value: '71'
newvalue: ieee80211
- value: '72'
newvalue: ibm370parChan
- value: '73'
newvalue: escon
- value: '74'
newvalue: dlsw
- value: '75'
newvalue: isdns
- value: '76'
newvalue: isdnu
- value: '77'
newvalue: lapd
- value: '78'
newvalue: ipSwitch
- value: '79'
newvalue: rsrb
- value: '80'
newvalue: atmLogical
- value: '81'
newvalue: ds0
- value: '82'
newvalue: ds0Bundle
- value: '83'
newvalue: bsc
- value: '84'
newvalue: async
- value: '85'
newvalue: cnr
- value: '86'
newvalue: iso88025Dtr
- value: '87'
newvalue: eplrs
- value: '88'
newvalue: arap
- value: '89'
newvalue: propCnls
- value: '90'
newvalue: hostPad
- value: '91'
newvalue: termPad
- value: '92'
newvalue: frameRelayMPI
- value: '93'
newvalue: x213
- value: '94'
newvalue: adsl
- value: '95'
newvalue: radsl
- value: '96'
newvalue: sdsl
- value: '97'
newvalue: vdsl
- value: '98'
newvalue: iso88025CRFPInt
- value: '99'
newvalue: myrinet
- value: '100'
newvalue: voiceEM
- value: '101'
newvalue: voiceFXO