forked from rbicelli/pfsense-zabbix-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
template_pfsense_active.xml
2219 lines (2219 loc) · 98.8 KB
/
template_pfsense_active.xml
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
<?xml version="1.0" encoding="UTF-8"?>
<zabbix_export>
<version>5.0</version>
<date>2021-11-09T21:44:28Z</date>
<groups>
<group>
<name>Templates/Network Devices</name>
</group>
</groups>
<templates>
<template>
<template>Template pfSense Active</template>
<name>pfsense Active</name>
<description>Active template for pfsense, requires pfsense_zbx.php installed to pfSense Box.
Version 1.0.2
https://github.com/rbicelli/pfsense-zabbix-template</description>
<groups>
<group>
<name>Templates/Network Devices</name>
</group>
</groups>
<applications>
<application>
<name>Certificate Manager</name>
</application>
<application>
<name>CPU</name>
</application>
<application>
<name>Filesystems</name>
</application>
<application>
<name>Gateways</name>
</application>
<application>
<name>HA</name>
</application>
<application>
<name>Memory</name>
</application>
<application>
<name>Network Interfaces</name>
</application>
<application>
<name>Network Limits</name>
</application>
<application>
<name>OpenVPN Client</name>
</application>
<application>
<name>OpenVPN Server</name>
</application>
<application>
<name>OS</name>
</application>
<application>
<name>Processes</name>
</application>
<application>
<name>Services</name>
</application>
<application>
<name>System</name>
</application>
</applications>
<items>
<item>
<name>Maximum number of opened files</name>
<type>ZABBIX_ACTIVE</type>
<key>kernel.maxfiles</key>
<delay>1h</delay>
<description>It could be increased by using sysctrl utility or modifying file /etc/sysctl.conf.</description>
<applications>
<application>
<name>OS</name>
</application>
</applications>
<triggers>
<trigger>
<expression>{last(0)}<1024</expression>
<name>Configured max number of opened files is too low on {HOST.NAME}</name>
<priority>INFO</priority>
</trigger>
</triggers>
</item>
<item>
<name>Maximum number of processes</name>
<type>ZABBIX_ACTIVE</type>
<key>kernel.maxproc</key>
<delay>1h</delay>
<description>It could be increased by using sysctrl utility or modifying file /etc/sysctl.conf.</description>
<applications>
<application>
<name>OS</name>
</application>
</applications>
<triggers>
<trigger>
<expression>{last(0)}<256</expression>
<name>Configured max number of processes is too low on {HOST.NAME}</name>
<priority>INFO</priority>
</trigger>
</triggers>
</item>
<item>
<name>Used memory (calc)</name>
<type>CALCULATED</type>
<key>kt.mem.used</key>
<units>B</units>
<params>last(vm.memory.size[total]) - last(vm.memory.size[available])</params>
<applications>
<application>
<name>Memory</name>
</application>
</applications>
</item>
<item>
<name>Expected CARP Status</name>
<type>CALCULATED</type>
<key>pfsense.expected_carp_status</key>
<delay>30s</delay>
<params>{$EXPECTED_CARP_STATUS}</params>
<description>Expected CARP Status</description>
<applications>
<application>
<name>HA</name>
</application>
</applications>
<valuemap>
<name>pfSense CARP Status</name>
</valuemap>
</item>
<item>
<name>MBUF Cache</name>
<type>ZABBIX_ACTIVE</type>
<key>pfsense.mbuf.cache</key>
<applications>
<application>
<name>Network Limits</name>
</application>
</applications>
</item>
<item>
<name>MBUF Current</name>
<type>ZABBIX_ACTIVE</type>
<key>pfsense.mbuf.current</key>
<applications>
<application>
<name>Network Limits</name>
</application>
</applications>
</item>
<item>
<name>MBUF Max</name>
<type>ZABBIX_ACTIVE</type>
<key>pfsense.mbuf.max</key>
<delay>10m</delay>
<applications>
<application>
<name>Network Limits</name>
</application>
</applications>
</item>
<item>
<name>MBUF Total Used (percent)</name>
<type>CALCULATED</type>
<key>pfsense.mbuf.ptotal</key>
<value_type>FLOAT</value_type>
<units>%</units>
<params>((last(pfsense.mbuf.current) + last(pfsense.mbuf.cache)) * 100) / last(pfsense.mbuf.max)</params>
<applications>
<application>
<name>Network Limits</name>
</application>
</applications>
<triggers>
<trigger>
<expression>{last()}>80</expression>
<name>MBUF used at 80%</name>
<priority>WARNING</priority>
</trigger>
<trigger>
<expression>{last()}>90</expression>
<name>MBUF used at 90%</name>
<priority>HIGH</priority>
</trigger>
</triggers>
</item>
<item>
<name>States Table Current</name>
<type>ZABBIX_ACTIVE</type>
<key>pfsense.states.current</key>
<applications>
<application>
<name>Network Limits</name>
</application>
</applications>
</item>
<item>
<name>States Table Max</name>
<type>ZABBIX_ACTIVE</type>
<key>pfsense.states.max</key>
<delay>10m</delay>
<applications>
<application>
<name>Network Limits</name>
</application>
</applications>
</item>
<item>
<name>States Table Current (percent)</name>
<type>CALCULATED</type>
<key>pfsense.states.pused</key>
<value_type>FLOAT</value_type>
<units>%</units>
<params>(last(pfsense.states.current) * 100) / last(pfsense.states.max)</params>
<applications>
<application>
<name>Network Limits</name>
</application>
</applications>
<triggers>
<trigger>
<expression>{last()}>80</expression>
<name>State Table used at 80%</name>
<priority>WARNING</priority>
</trigger>
<trigger>
<expression>{last()}>90</expression>
<name>State Table used at 90%</name>
<priority>HIGH</priority>
</trigger>
</triggers>
</item>
<item>
<name>CARP Status</name>
<type>ZABBIX_ACTIVE</type>
<key>pfsense.value[carp_status]</key>
<delay>30s</delay>
<description>pfSense CARP Status</description>
<applications>
<application>
<name>HA</name>
</application>
</applications>
<valuemap>
<name>pfSense CARP Status</name>
</valuemap>
<triggers>
<trigger>
<expression>{last()}>2</expression>
<name>CARP Problems on {HOST.NAME}</name>
<priority>HIGH</priority>
<description>CARP Problems</description>
</trigger>
<trigger>
<expression>{last()}>2</expression>
<name>DHCP Failover Problems on {HOST.NAME}</name>
<url>https://docs.netgate.com/pfsense/en/latest/troubleshooting/ha-dhcp-failover.html</url>
<priority>HIGH</priority>
<description>One or more DHCP Pools are experiencing failover problems. This could potentially cause other problems in yourr network.</description>
</trigger>
</triggers>
</item>
<item>
<name>Certificates Manager: latest "validFrom"</name>
<type>ZABBIX_ACTIVE</type>
<key>pfsense.value[cert_date,validFrom.max]</key>
<units>unixtime</units>
<description>This item will return will return the latest date "validFrom" from all the certificates (including CA). This is used to find new/renewed certificates.</description>
<applications>
<application>
<name>Certificate Manager</name>
</application>
</applications>
<preprocessing>
<step>
<type>DISCARD_UNCHANGED_HEARTBEAT</type>
<params>1d</params>
</step>
</preprocessing>
<triggers>
<trigger>
<expression>({now()}-{last()})<1d</expression>
<name>One or more certificates have been renewed in the past 24h</name>
<opdata>Latest "Valid From": {ITEM.LASTVALUE1}</opdata>
<priority>INFO</priority>
<manual_close>YES</manual_close>
</trigger>
</triggers>
</item>
<item>
<name>Certificates Manager: earliest "validTo"</name>
<type>ZABBIX_ACTIVE</type>
<key>pfsense.value[cert_date,validTo.min]</key>
<units>unixtime</units>
<description>This item will return will return the earliest date "validTo" from all the certificates (including CA). This is used to find expiring certificates.</description>
<applications>
<application>
<name>Certificate Manager</name>
</application>
</applications>
<preprocessing>
<step>
<type>DISCARD_UNCHANGED_HEARTBEAT</type>
<params>1d</params>
</step>
</preprocessing>
<triggers>
<trigger>
<expression>{last()}<{now()}</expression>
<name>One or more certificates are expired</name>
<opdata>Earliest "Valid To": {ITEM.LASTVALUE1}</opdata>
<priority>HIGH</priority>
</trigger>
<trigger>
<expression>({last()}-{now()})<{$PFSENSE_CERT_EXPIRATION.AVERAGE}</expression>
<name>One or more certificates are expiring less than {$PFSENSE_CERT_EXPIRATION.AVERAGE}</name>
<opdata>Earliest "Valid To": {ITEM.LASTVALUE1}</opdata>
<priority>AVERAGE</priority>
<dependencies>
<dependency>
<name>One or more certificates are expired</name>
<expression>{Template pfSense Active:pfsense.value[cert_date,validTo.min].last()}<{Template pfSense Active:pfsense.value[cert_date,validTo.min].now()}</expression>
</dependency>
</dependencies>
</trigger>
<trigger>
<expression>({last()}-{now()})<{$PFSENSE_CERT_EXPIRATION.WARN}</expression>
<name>One or more certificates are expiring less than {$PFSENSE_CERT_EXPIRATION.WARN}</name>
<opdata>Earliest "Valid To": {ITEM.LASTVALUE1}</opdata>
<priority>WARNING</priority>
<dependencies>
<dependency>
<name>One or more certificates are expired</name>
<expression>{Template pfSense Active:pfsense.value[cert_date,validTo.min].last()}<{Template pfSense Active:pfsense.value[cert_date,validTo.min].now()}</expression>
</dependency>
<dependency>
<name>One or more certificates are expiring less than {$PFSENSE_CERT_EXPIRATION.AVERAGE}</name>
<expression>({Template pfSense Active:pfsense.value[cert_date,validTo.min].last()}-{Template pfSense Active:pfsense.value[cert_date,validTo.min].now()})<{$PFSENSE_CERT_EXPIRATION.AVERAGE}</expression>
</dependency>
</dependencies>
</trigger>
</triggers>
</item>
<item>
<name>DHCP Failover Pool Problems</name>
<type>ZABBIX_ACTIVE</type>
<key>pfsense.value[dhcp,failover]</key>
<delay>2m</delay>
<description>This value indicates, in a HA scenario, if DHCP failover pool partners are out of sync.</description>
<applications>
<application>
<name>HA</name>
</application>
</applications>
</item>
<item>
<name>Gateway Status Raw</name>
<type>ZABBIX_ACTIVE</type>
<key>pfsense.value[gw_status]</key>
<trends>0</trends>
<value_type>TEXT</value_type>
<description>Gateway Status Raw</description>
<applications>
<application>
<name>Gateways</name>
</application>
</applications>
<triggers>
<trigger>
<expression>{diff()}>0</expression>
<recovery_mode>RECOVERY_EXPRESSION</recovery_mode>
<recovery_expression>{diff()}=0</recovery_expression>
<name>pfSense Gateway Status Changed on {HOST.NAME}</name>
<priority>AVERAGE</priority>
<description>Gateway Status Change, for use with an acion Script (e.g. update DNS record)</description>
<manual_close>YES</manual_close>
</trigger>
</triggers>
</item>
<item>
<name>SMART Status</name>
<type>ZABBIX_ACTIVE</type>
<key>pfsense.value[smart_status]</key>
<delay>30m</delay>
<description>pfSense SMART Status</description>
<applications>
<application>
<name>System</name>
</application>
</applications>
<valuemap>
<name>pfSense SMART Status</name>
</valuemap>
<triggers>
<trigger>
<expression>{last()}=1</expression>
<name>SMART Errors on {HOST.NAME}</name>
<priority>HIGH</priority>
<description>pfSense has detected SMART Problems on one or more drives.</description>
</trigger>
</triggers>
</item>
<item>
<name>pfSense Installed Version</name>
<type>ZABBIX_ACTIVE</type>
<key>pfsense.value[system,installed_version]</key>
<delay>1d</delay>
<trends>0</trends>
<value_type>TEXT</value_type>
<applications>
<application>
<name>System</name>
</application>
</applications>
</item>
<item>
<name>New Version of pfSense Available</name>
<type>ZABBIX_ACTIVE</type>
<key>pfsense.value[system,new_version_available]</key>
<delay>1d</delay>
<applications>
<application>
<name>System</name>
</application>
</applications>
<valuemap>
<name>Generic YesNo</name>
</valuemap>
<triggers>
<trigger>
<expression>{last()}=1</expression>
<name>New Version of pfSense Available on {HOST.NAME}</name>
<priority>INFO</priority>
<description>A new version of pfSense is available for update.</description>
<manual_close>YES</manual_close>
</trigger>
</triggers>
</item>
<item>
<name>Packages Needing Update</name>
<type>ZABBIX_ACTIVE</type>
<key>pfsense.value[system,packages_update]</key>
<delay>1d</delay>
<description>Number of packages needing update.</description>
<applications>
<application>
<name>System</name>
</application>
</applications>
<triggers>
<trigger>
<expression>{last()}>0</expression>
<name>Packages Update Available on {HOST.NAME}</name>
<opdata>{ITEM.LASTVALUE}</opdata>
<priority>INFO</priority>
<description>New version of packages are available</description>
</trigger>
</triggers>
</item>
<item>
<name>pfSense Available Version</name>
<type>ZABBIX_ACTIVE</type>
<key>pfsense.value[system,version]</key>
<delay>1d</delay>
<trends>0</trends>
<value_type>TEXT</value_type>
<applications>
<application>
<name>System</name>
</application>
</applications>
</item>
<item>
<name>Number of running processes</name>
<type>ZABBIX_ACTIVE</type>
<key>proc.num[,,run]</key>
<description>Number of processes in running state.</description>
<applications>
<application>
<name>Processes</name>
</application>
</applications>
<triggers>
<trigger>
<expression>{avg(5m)}>30</expression>
<name>Too many processes running on {HOST.NAME}</name>
<priority>WARNING</priority>
</trigger>
</triggers>
</item>
<item>
<name>Number of processes</name>
<type>ZABBIX_ACTIVE</type>
<key>proc.num[]</key>
<description>Total number of processes in any state.</description>
<applications>
<application>
<name>Processes</name>
</application>
</applications>
<triggers>
<trigger>
<expression>{avg(5m)}>300</expression>
<name>Too many processes on {HOST.NAME}</name>
<priority>WARNING</priority>
</trigger>
</triggers>
</item>
<item>
<name>Host boot time</name>
<type>ZABBIX_ACTIVE</type>
<key>system.boottime</key>
<delay>10m</delay>
<units>unixtime</units>
<applications>
<application>
<name>OS</name>
</application>
</applications>
</item>
<item>
<name>Interrupts per second</name>
<type>ZABBIX_ACTIVE</type>
<key>system.cpu.intr</key>
<units>ips</units>
<applications>
<application>
<name>CPU</name>
</application>
</applications>
<preprocessing>
<step>
<type>CHANGE_PER_SECOND</type>
<params/>
</step>
</preprocessing>
</item>
<item>
<name>Processor load (1min/core)</name>
<type>ZABBIX_ACTIVE</type>
<key>system.cpu.load[percpu,avg1]</key>
<value_type>FLOAT</value_type>
<description>The processor load is calculated as system CPU load divided by number of CPU cores.</description>
<applications>
<application>
<name>CPU</name>
</application>
</applications>
<triggers>
<trigger>
<expression>{avg(5m)}>5</expression>
<name>Processor load is too high on {HOST.NAME}</name>
<priority>WARNING</priority>
</trigger>
</triggers>
</item>
<item>
<name>Processor load (5min/core)</name>
<type>ZABBIX_ACTIVE</type>
<key>system.cpu.load[percpu,avg5]</key>
<value_type>FLOAT</value_type>
<description>The processor load is calculated as system CPU load divided by number of CPU cores.</description>
<applications>
<application>
<name>CPU</name>
</application>
</applications>
</item>
<item>
<name>Processor load (15min/core)</name>
<type>ZABBIX_ACTIVE</type>
<key>system.cpu.load[percpu,avg15]</key>
<value_type>FLOAT</value_type>
<description>The processor load is calculated as system CPU load divided by number of CPU cores.</description>
<applications>
<application>
<name>CPU</name>
</application>
</applications>
</item>
<item>
<name>Context switches per second</name>
<type>ZABBIX_ACTIVE</type>
<key>system.cpu.switches</key>
<units>sps</units>
<applications>
<application>
<name>CPU</name>
</application>
</applications>
<preprocessing>
<step>
<type>CHANGE_PER_SECOND</type>
<params/>
</step>
</preprocessing>
</item>
<item>
<name>CPU $2 time</name>
<type>ZABBIX_ACTIVE</type>
<key>system.cpu.util[,idle]</key>
<value_type>FLOAT</value_type>
<units>%</units>
<description>The time the CPU has spent doing nothing.</description>
<applications>
<application>
<name>CPU</name>
</application>
</applications>
</item>
<item>
<name>CPU $2 time</name>
<type>ZABBIX_ACTIVE</type>
<key>system.cpu.util[,interrupt]</key>
<value_type>FLOAT</value_type>
<units>%</units>
<description>The amount of time the CPU has been servicing hardware interrupts.</description>
<applications>
<application>
<name>CPU</name>
</application>
</applications>
</item>
<item>
<name>CPU $2 time</name>
<type>ZABBIX_ACTIVE</type>
<key>system.cpu.util[,nice]</key>
<value_type>FLOAT</value_type>
<units>%</units>
<description>The time the CPU has spent running users' processes that have been niced.</description>
<applications>
<application>
<name>CPU</name>
</application>
</applications>
</item>
<item>
<name>CPU $2 time</name>
<type>ZABBIX_ACTIVE</type>
<key>system.cpu.util[,system]</key>
<value_type>FLOAT</value_type>
<units>%</units>
<description>The time the CPU has spent running the kernel and its processes.</description>
<applications>
<application>
<name>CPU</name>
</application>
</applications>
</item>
<item>
<name>CPU $2 time</name>
<type>ZABBIX_ACTIVE</type>
<key>system.cpu.util[,user]</key>
<value_type>FLOAT</value_type>
<units>%</units>
<description>The time the CPU has spent running users' processes that are not niced.</description>
<applications>
<application>
<name>CPU</name>
</application>
</applications>
</item>
<item>
<name>Host name</name>
<type>ZABBIX_ACTIVE</type>
<key>system.hostname</key>
<delay>1h</delay>
<trends>0</trends>
<value_type>CHAR</value_type>
<description>System host name.</description>
<inventory_link>NAME</inventory_link>
<applications>
<application>
<name>OS</name>
</application>
</applications>
<triggers>
<trigger>
<expression>{diff(0)}>0</expression>
<name>Hostname was changed on {HOST.NAME}</name>
<priority>INFO</priority>
</trigger>
</triggers>
</item>
<item>
<name>Host local time</name>
<type>ZABBIX_ACTIVE</type>
<key>system.localtime</key>
<units>unixtime</units>
<applications>
<application>
<name>OS</name>
</application>
</applications>
</item>
<item>
<name>Free swap space</name>
<type>ZABBIX_ACTIVE</type>
<key>system.swap.size[,free]</key>
<units>B</units>
<applications>
<application>
<name>Memory</name>
</application>
</applications>
</item>
<item>
<name>Free swap space in %</name>
<type>ZABBIX_ACTIVE</type>
<key>system.swap.size[,pfree]</key>
<value_type>FLOAT</value_type>
<units>%</units>
<applications>
<application>
<name>Memory</name>
</application>
</applications>
<triggers>
<trigger>
<expression>{last(0)}<50</expression>
<name>Lack of free swap space on {HOST.NAME}</name>
<priority>WARNING</priority>
<description>It probably means that the systems requires more physical memory.</description>
</trigger>
</triggers>
</item>
<item>
<name>Total swap space</name>
<type>ZABBIX_ACTIVE</type>
<key>system.swap.size[,total]</key>
<delay>1h</delay>
<units>B</units>
<applications>
<application>
<name>Memory</name>
</application>
</applications>
</item>
<item>
<name>Used swap space</name>
<type>ZABBIX_ACTIVE</type>
<key>system.swap.size[,used]</key>
<units>B</units>
<applications>
<application>
<name>Memory</name>
</application>
</applications>
</item>
<item>
<name>System information</name>
<type>ZABBIX_ACTIVE</type>
<key>system.uname</key>
<delay>1h</delay>
<trends>0</trends>
<value_type>CHAR</value_type>
<description>The information as normally returned by 'uname -a'.</description>
<inventory_link>OS</inventory_link>
<applications>
<application>
<name>OS</name>
</application>
</applications>
<triggers>
<trigger>
<expression>{diff(0)}>0</expression>
<name>Host information was changed on {HOST.NAME}</name>
<priority>INFO</priority>
</trigger>
</triggers>
</item>
<item>
<name>System uptime</name>
<type>ZABBIX_ACTIVE</type>
<key>system.uptime</key>
<delay>10m</delay>
<units>uptime</units>
<applications>
<application>
<name>OS</name>
</application>
</applications>
<triggers>
<trigger>
<expression>{change(0)}<0</expression>
<name>{HOST.NAME} has just been restarted</name>
<priority>INFO</priority>
</trigger>
</triggers>
</item>
<item>
<name>Number of logged in users</name>
<type>ZABBIX_ACTIVE</type>
<key>system.users.num</key>
<description>Number of users who are currently logged in.</description>
<applications>
<application>
<name>OS</name>
</application>
</applications>
</item>
<item>
<name>Checksum of $1</name>
<type>ZABBIX_ACTIVE</type>
<key>vfs.file.cksum[/etc/passwd]</key>
<delay>1h</delay>
<applications>
<application>
<name>OS</name>
</application>
</applications>
<triggers>
<trigger>
<expression>{diff(0)}>0</expression>
<name>/etc/passwd has been changed on {HOST.NAME}</name>
<priority>WARNING</priority>
</trigger>
</triggers>
</item>
<item>
<name>Active memory</name>
<type>ZABBIX_ACTIVE</type>
<key>vm.memory.size[active]</key>
<units>B</units>
<description>Memory used by processes</description>
<applications>
<application>
<name>Memory</name>
</application>
</applications>
</item>
<item>
<name>Available memory</name>
<type>ZABBIX_ACTIVE</type>
<key>vm.memory.size[available]</key>
<units>B</units>
<description>Available memory is defined as free+cached+buffers memory.</description>
<applications>
<application>
<name>Memory</name>
</application>
</applications>
<triggers>
<trigger>
<expression>{last(0)}<20M</expression>
<name>Lack of available memory on server {HOST.NAME}</name>
<priority>AVERAGE</priority>
</trigger>
</triggers>
</item>
<item>
<name>Buffered memory</name>
<type>ZABBIX_ACTIVE</type>
<key>vm.memory.size[buffers]</key>
<status>DISABLED</status>
<units>B</units>
<description>Cache d'entrées des IO disque.
(Item désactivé car buggé)</description>
<applications>
<application>
<name>Memory</name>
</application>
</applications>
</item>
<item>
<name>Cached memory</name>
<type>ZABBIX_ACTIVE</type>
<key>vm.memory.size[cached]</key>
<units>B</units>
<description>amount of memory used to cache data</description>
<applications>
<application>
<name>Memory</name>
</application>
</applications>
</item>
<item>
<name>Free memory</name>
<type>ZABBIX_ACTIVE</type>
<key>vm.memory.size[free]</key>
<units>B</units>
<description>amount of memory completely free and ready to be used directly.</description>
<applications>
<application>
<name>Memory</name>
</application>
</applications>
</item>
<item>
<name>Inactive memory</name>
<type>ZABBIX_ACTIVE</type>
<key>vm.memory.size[inactive]</key>
<units>B</units>
<description>amount of memory that contains data that is no longer used (can be directly freed if needed)</description>
<applications>
<application>
<name>Memory</name>
</application>
</applications>
</item>
<item>
<name>Available memory (percent)</name>
<type>ZABBIX_ACTIVE</type>
<key>vm.memory.size[pavailable]</key>
<value_type>FLOAT</value_type>
<units>%</units>
<description>Available memory is defined as free+cached+buffers memory.</description>
<applications>
<application>
<name>Memory</name>
</application>
</applications>
<preprocessing>
<step>
<type>MULTIPLIER</type>
<params>1</params>
</step>
</preprocessing>
</item>
<item>
<name>Shared memory</name>
<type>ZABBIX_ACTIVE</type>
<key>vm.memory.size[shared]</key>
<status>DISABLED</status>
<units>B</units>
<description>quantité de mémoire partagée entre plusieurs processus
(Item désactivé car non utilisé)</description>
<applications>
<application>
<name>Memory</name>
</application>
</applications>
</item>
<item>
<name>Total memory</name>
<type>ZABBIX_ACTIVE</type>
<key>vm.memory.size[total]</key>
<delay>1h</delay>
<units>B</units>
<description>quantité de mémoire totale</description>
<applications>
<application>
<name>Memory</name>
</application>
</applications>
</item>
<item>
<name>Used memory</name>
<type>ZABBIX_ACTIVE</type>
<key>vm.memory.size[used]</key>
<status>DISABLED</status>
<units>B</units>
<description>Item désactivé car non utilisé</description>
<applications>
<application>
<name>Memory</name>
</application>
</applications>
</item>
<item>
<name>Wired memory</name>
<type>ZABBIX_ACTIVE</type>
<key>vm.memory.size[wired]</key>
<units>B</units>
<description>amount of memory used by the kernel, can neither be unloaded in swap, nor compressed.</description>
<applications>
<application>
<name>Memory</name>
</application>
</applications>
</item>
</items>
<discovery_rules>
<discovery_rule>
<name>Gateways Discovery</name>
<type>ZABBIX_ACTIVE</type>
<key>pfsense.discovery[gw]</key>
<delay>5m</delay>
<description>Gateway Discovery</description>
<item_prototypes>
<item_prototype>
<name>Gateway $2 RTT</name>
<type>ZABBIX_ACTIVE</type>
<key>pfsense.value[gw_value,{#GATEWAY},delay]</key>
<delay>60s</delay>
<value_type>FLOAT</value_type>
<units>ms</units>
<applications>
<application>
<name>Gateways</name>
</application>
</applications>
<preprocessing>
<step>
<type>RTRIM</type>