-
Notifications
You must be signed in to change notification settings - Fork 112
/
Copy pathpfsense_active.yaml
1636 lines (1629 loc) · 61.2 KB
/
pfsense_active.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-05-01T13:28:59Z'
groups:
- uuid: 4918b88734c54bd094cff7585b5d71fc
name: 'Templates/Network Devices'
templates:
- uuid: 7a0b3294155c4454bd5df455f7a827b6
template: 'Template pfSense Active'
name: 'pfsense Active'
description: |
Active template for pfsense, requires pfsense_zbx.php installed to pfSense Box.
Version 0.24.04
https://github.com/rbicelli/pfsense-zabbix-template
groups:
- name: 'Templates/Network Devices'
items:
- uuid: fe0bfdabfd494c859bae516980bb412c
name: 'Maximum number of opened files'
type: ZABBIX_ACTIVE
key: kernel.maxfiles
delay: '3600'
history: 27d
description: 'It could be increased by using sysctrl utility or modifying file /etc/sysctl.conf.'
tags:
- tag: Application
value: OS
triggers:
- uuid: d081e34519d4449ca9379b74ef276141
expression: 'last(/Template pfSense Active/kernel.maxfiles)<1024'
name: 'Configured max number of opened files is too low on {HOST.NAME}'
priority: INFO
- uuid: d9b8395c028b43fd8a2c2b667165747e
name: 'Maximum number of processes'
type: ZABBIX_ACTIVE
key: kernel.maxproc
delay: '3600'
history: 27d
description: 'It could be increased by using sysctrl utility or modifying file /etc/sysctl.conf.'
tags:
- tag: Application
value: OS
triggers:
- uuid: 9854402b6a474f05af721835dc464338
expression: 'last(/Template pfSense Active/kernel.maxproc)<256'
name: 'Configured max number of processes is too low on {HOST.NAME}'
priority: INFO
- uuid: 906d29a9443d4e3d8ae58d6db61ffebd
name: 'Used memory (calc)'
type: CALCULATED
key: kt.mem.used
delay: '60'
history: 28d
units: B
params: 'last(//vm.memory.size[total]) - last(//vm.memory.size[available])'
tags:
- tag: Application
value: Memory
- uuid: a233016d2e664687a480052812297879
name: 'Expected CARP Status'
type: CALCULATED
key: pfsense.expected_carp_status
delay: 600s
params: '{$EXPECTED_CARP_STATUS}'
description: 'Expected CARP Status'
valuemap:
name: 'pfSense CARP Status'
tags:
- tag: Application
value: CARP
- uuid: dd3d8f993d3e468197500b09da067b20
name: 'MBUF Cache'
type: ZABBIX_ACTIVE
key: pfsense.mbuf.cache
delay: '60'
history: 27d
tags:
- tag: Application
value: 'Network Limits'
- uuid: f184df5af3104ac9b1e28ae7dbc6f6af
name: 'MBUF Current'
type: ZABBIX_ACTIVE
key: pfsense.mbuf.current
delay: '60'
history: 27d
tags:
- tag: Application
value: 'Network Limits'
- uuid: cf70cf5e8b294e359a7bce7b64cc2f88
name: 'MBUF Max'
type: ZABBIX_ACTIVE
key: pfsense.mbuf.max
delay: '600'
history: 27d
tags:
- tag: Application
value: 'Network Limits'
- uuid: 154c27479d50479b9824e8253ac687fa
name: 'MBUF Total Used (percent)'
type: CALCULATED
key: pfsense.mbuf.ptotal
delay: '60'
history: 28d
value_type: FLOAT
units: '%'
params: '((last(//pfsense.mbuf.current) + last(//pfsense.mbuf.cache)) * 100) / last(//pfsense.mbuf.max)'
tags:
- tag: Application
value: 'Network Limits'
triggers:
- uuid: 4453b627d68b4c44b5a909426fd06784
expression: 'last(/Template pfSense Active/pfsense.mbuf.ptotal)>80'
name: 'MBUF used at 80%'
priority: WARNING
- uuid: 5bfdf44122ee4a16b97909f1071256a5
expression: 'last(/Template pfSense Active/pfsense.mbuf.ptotal)>90'
name: 'MBUF used at 90%'
priority: HIGH
- uuid: a61781a790734d71a512e592fec87b84
name: 'States Table Current'
type: ZABBIX_ACTIVE
key: pfsense.states.current
delay: '60'
history: 27d
tags:
- tag: Application
value: 'Network Limits'
- uuid: 022009a762ee4ec8bc4988a57b0d1412
name: 'States Table Max'
type: ZABBIX_ACTIVE
key: pfsense.states.max
delay: '600'
history: 27d
tags:
- tag: Application
value: 'Network Limits'
- uuid: 6d0f8d81fd3d46b39e9bbccacb2aaf4c
name: 'States Table Current (percent)'
type: CALCULATED
key: pfsense.states.pused
delay: '60'
history: 28d
value_type: FLOAT
units: '%'
params: '(last(//pfsense.states.current) * 100) / last(//pfsense.states.max)'
tags:
- tag: Application
value: 'Network Limits'
triggers:
- uuid: 1a7faf6d80ca4a408987de1f039e4dba
expression: 'last(/Template pfSense Active/pfsense.states.pused)>80'
name: 'State Table used at 80%'
priority: WARNING
- uuid: dbd147c6b43144dc9541939fbb9c8eef
expression: 'last(/Template pfSense Active/pfsense.states.pused)>90'
name: 'State Table used at 90%'
priority: HIGH
- uuid: cc7fd0d7da504c71b0da3fcc36133510
name: 'CARP Status'
type: ZABBIX_ACTIVE
key: 'pfsense.value[carp_status]'
delay: '60'
description: 'pfSense CARP Status'
valuemap:
name: 'pfSense CARP Status'
tags:
- tag: Application
value: CARP
triggers:
- uuid: 43391e9ed3134e689b0b09b1d124178b
expression: 'last(/Template pfSense Active/pfsense.value[carp_status])>2'
name: 'CARP Problems on {HOST.NAME}'
priority: HIGH
description: 'CARP Problems'
- uuid: a0ad30cea628413987919bd9bc8e229f
expression: 'avg(/Template pfSense Active/pfsense.value[carp_status],#3)>2'
name: 'DHCP Failover Problems on {HOST.NAME}'
url: 'https://docs.netgate.com/pfsense/en/latest/troubleshooting/ha-dhcp-failover.html'
priority: HIGH
description: 'One or more DHCP Pools are experiencing failover problems. This could potentially cause other problems in yourr network.'
- uuid: 61960002473248a59f26d953a59b4912
name: 'Certificates Manager: latest validFrom'
key: 'pfsense.value[cert_date,validFrom.max]'
delay: 1d
units: unixtime
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.'
preprocessing:
- type: DISCARD_UNCHANGED_HEARTBEAT
parameters:
- 1d
triggers:
- uuid: ad255a3cc27b470d94570f02e06f88c6
expression: 'now()-last(/Template pfSense Active/pfsense.value[cert_date,validFrom.max]) < 1d'
name: 'One or more certificates have been renewed in the past 24h'
opdata: 'Latest "Valid From" {ITEM.LASTVALUE1}'
priority: INFO
manual_close: 'YES'
- uuid: 7c27ed43d653416a8a7e200cfa97aa44
name: 'Certificates Manager: earliest validTo'
key: 'pfsense.value[cert_date,validTo.min]'
delay: 1d
units: unixtime
description: 'his item will return will return the earliest date "validTo" from all the certificates (including CA). This is used to find expiring certificates.'
preprocessing:
- type: DISCARD_UNCHANGED_HEARTBEAT
parameters:
- 1d
triggers:
- uuid: f83c811a4df34be189def2aefe5bf987
expression: 'last(/Template pfSense Active/pfsense.value[cert_date,validTo.min])-now()<{$PFSENSE.CERT_EXPIRATION.AVERAGE}'
name: 'One or more certificates are expiring less than {$PFSENSE.CERT_EXPIRATION.AVERAGE}'
opdata: 'Earliest "Valid To": {ITEM.LASTVALUE1}'
priority: AVERAGE
dependencies:
- name: 'One or more certificates are expired'
expression: 'last(/Template pfSense Active/pfsense.value[cert_date,validTo.min])<last(/Template pfSense Active/pfsense.value[cert_date,validFrom.max])'
- uuid: 5e3be006678c4d5496ab30cd76bfc89a
expression: 'last(/Template pfSense Active/pfsense.value[cert_date,validTo.min])-now()<{$PFSENSE.CERT_EXPIRATION.WARN}'
name: 'One or more certificates are expiring less than {$PFSENSE.CERT_EXPIRATION.WARN}'
opdata: 'Earliest "Valid To": {ITEM.LASTVALUE1}'
priority: HIGH
dependencies:
- name: 'One or more certificates are expired'
expression: 'last(/Template pfSense Active/pfsense.value[cert_date,validTo.min])<last(/Template pfSense Active/pfsense.value[cert_date,validFrom.max])'
- name: 'One or more certificates are expiring less than {$PFSENSE.CERT_EXPIRATION.AVERAGE}'
expression: 'last(/Template pfSense Active/pfsense.value[cert_date,validTo.min])-now()<{$PFSENSE.CERT_EXPIRATION.AVERAGE}'
- uuid: 3c38af8aef59489d93224ab03319e997
name: 'DHCP Failover Pool Problems'
key: 'pfsense.value[dhcp,failover]'
delay: 120s
description: 'This value indicates, in a HA scenario, if DHCP failover pool partners are out of sync.'
tags:
- tag: Application
value: HA
- uuid: 12399afd70014ce7bf96f6283c946bc2
name: 'Gateway Status Raw'
type: ZABBIX_ACTIVE
key: 'pfsense.value[gw_status]'
delay: 60s
trends: '0'
value_type: TEXT
description: 'Gateway Status Raw'
tags:
- tag: Application
value: Gateways
triggers:
- uuid: 44df9b029fe64ef1b70aa6142d38d105
expression: '(last(/Template pfSense Active/pfsense.value[gw_status],#1)<>last(/Template pfSense Active/pfsense.value[gw_status],#2))>0'
recovery_mode: RECOVERY_EXPRESSION
recovery_expression: '(last(/Template pfSense Active/pfsense.value[gw_status],#1)<>last(/Template pfSense Active/pfsense.value[gw_status],#2))=0'
name: 'pfSense Gateway Status Changed on {HOST.NAME}'
priority: AVERAGE
description: 'Gateway Status Change, for use with an acion Script (e.g. update DNS record)'
manual_close: 'YES'
- uuid: 856991c40aa043dfa6075468add93f7d
name: 'SMART Status'
key: 'pfsense.value[smart_status]'
delay: 1800s
description: 'pfSense SMART Status'
tags:
- tag: Application
value: System
triggers:
- uuid: 523e16493b534fb7ad9def66fef6f286
expression: 'avg(/Template pfSense Active/pfsense.value[smart_status],#3)=1'
name: 'SMART Errors on {HOST.NAME}'
priority: HIGH
description: 'pfSense has detected SMART Problems on one or more drives.'
- uuid: 5820137593604e63869cd3bf009a3dbf
name: 'pfSense Installed Version'
type: ZABBIX_ACTIVE
key: 'pfsense.value[system,installed_version]'
delay: 1d
trends: '0'
value_type: TEXT
tags:
- tag: Application
value: System
- uuid: 36a0a399f1ad4ca3aea3e52c1dfe0de1
name: 'New Version of pfSense Available'
type: ZABBIX_ACTIVE
key: 'pfsense.value[system,new_version_available]'
delay: 1d
valuemap:
name: 'Generic YesNo'
tags:
- tag: Application
value: System
triggers:
- uuid: ac1745d4a3d24445a9c53e294a3aba0a
expression: 'last(/Template pfSense Active/pfsense.value[system,new_version_available])=1'
name: 'New Version of pfSense Available on {HOST.NAME}'
priority: INFO
description: 'A new version of pfSense is available for update.'
manual_close: 'YES'
- uuid: 47855133ddb6495280fdcf8b52fc38f9
name: 'Packages Needing Update'
type: ZABBIX_ACTIVE
key: 'pfsense.value[system,packages_update]'
delay: 1d
description: 'Number of packages needing update.'
tags:
- tag: Application
value: System
triggers:
- uuid: aa627e1f209741c0a7490665fd15c4bc
expression: 'last(/Template pfSense Active/pfsense.value[system,packages_update])>0'
name: 'Packages Update Available on {HOST.NAME}'
priority: INFO
description: 'Notify of new version of packages are available'
- uuid: ec8fa9ead018462bb2e41d6b5917c26a
name: 'Agent Script Version'
key: 'pfsense.value[system,script_version]'
delay: 8h
trends: '0'
value_type: TEXT
description: 'pFsense Agent Script Version'
triggers:
- uuid: c41c033f27d84ce480da25391677e0ff
expression: '(last(/Template pfSense Active/pfsense.value[system,script_version],#1)<>last(/Template pfSense Active/pfsense.value[system,script_version],#2))>0'
recovery_mode: RECOVERY_EXPRESSION
recovery_expression: '(last(/Template pfSense Active/pfsense.value[system,script_version],#1)<>last(/Template pfSense Active/pfsense.value[system,script_version],#2))=0'
name: 'Agent Script Version has been changed on {HOST.NAME}'
priority: INFO
description: 'Agent Script version is changed on host.'
manual_close: 'YES'
- uuid: d801429fd147415396b61f5f6c47af27
name: 'pfSense Available Version'
type: ZABBIX_ACTIVE
key: 'pfsense.value[system,version]'
delay: 1d
trends: '0'
value_type: TEXT
tags:
- tag: Application
value: System
- uuid: 65a633fa48e64fa7b3e56e2e1294a396
name: 'Number of running processes'
type: ZABBIX_ACTIVE
key: 'proc.num[,,run]'
delay: '60'
history: 27d
description: 'Number of processes in running state.'
tags:
- tag: Application
value: Processes
triggers:
- uuid: 8e87c7171e4e43d5b4ee51922fb634ff
expression: 'avg(/Template pfSense Active/proc.num[,,run],5m)>30'
name: 'Too many processes running on {HOST.NAME}'
priority: WARNING
- uuid: 5ac8f03d4fa74700ad96d139acfe6baf
name: 'Number of processes'
type: ZABBIX_ACTIVE
key: 'proc.num[]'
delay: '60'
history: 27d
description: 'Total number of processes in any state.'
tags:
- tag: Application
value: Processes
triggers:
- uuid: 8237ec2c23b6449298ff7d9327f93b2d
expression: 'avg(/Template pfSense Active/proc.num[],5m)>300'
name: 'Too many processes on {HOST.NAME}'
priority: WARNING
- uuid: b8c1f4bac1834aee87f0bda3a546f98a
name: 'Host boot time'
type: ZABBIX_ACTIVE
key: system.boottime
delay: '600'
history: 27d
units: unixtime
tags:
- tag: Application
value: OS
- uuid: d4823bbc8d9849e0bb36e5418168fe06
name: 'Interrupts per second'
type: ZABBIX_ACTIVE
key: system.cpu.intr
delay: '60'
history: 27d
units: ips
preprocessing:
- type: CHANGE_PER_SECOND
parameters:
- ''
tags:
- tag: Application
value: CPU
- uuid: ff36a3e91fd44e7981874e8e363069df
name: 'Processor load (1min/core)'
type: ZABBIX_ACTIVE
key: 'system.cpu.load[percpu,avg1]'
delay: '60'
history: 27d
value_type: FLOAT
description: 'The processor load is calculated as system CPU load divided by number of CPU cores.'
tags:
- tag: Application
value: CPU
triggers:
- uuid: b9bdc3be79eb40f0be33931a5c6f5378
expression: 'avg(/Template pfSense Active/system.cpu.load[percpu,avg1],5m)>5'
name: 'Processor load is too high on {HOST.NAME}'
priority: WARNING
- uuid: 6ac7d111b73d4150aaead8f470ff41ba
name: 'Processor load (5min/core)'
type: ZABBIX_ACTIVE
key: 'system.cpu.load[percpu,avg5]'
delay: '60'
history: 27d
value_type: FLOAT
description: 'The processor load is calculated as system CPU load divided by number of CPU cores.'
tags:
- tag: Application
value: CPU
- uuid: d244b629aaf74fa1af608332df014df4
name: 'Processor load (15min/core)'
type: ZABBIX_ACTIVE
key: 'system.cpu.load[percpu,avg15]'
delay: '60'
history: 27d
value_type: FLOAT
description: 'The processor load is calculated as system CPU load divided by number of CPU cores.'
tags:
- tag: Application
value: CPU
- uuid: d450e0b3d0b441f191d7f7e5faab4f38
name: 'Context switches per second'
type: ZABBIX_ACTIVE
key: system.cpu.switches
delay: '60'
history: 27d
units: sps
preprocessing:
- type: CHANGE_PER_SECOND
parameters:
- ''
tags:
- tag: Application
value: CPU
- uuid: 8bc963352bef46e5a92763b9c866d0a7
name: 'CPU idle time'
type: ZABBIX_ACTIVE
key: 'system.cpu.util[,idle]'
delay: '60'
history: 27d
value_type: FLOAT
units: '%'
description: 'The time the CPU has spent doing nothing.'
tags:
- tag: Application
value: CPU
- uuid: f2f60c68e4604f55b0a437542507fd86
name: 'CPU interrupt time'
type: ZABBIX_ACTIVE
key: 'system.cpu.util[,interrupt]'
delay: '60'
history: 27d
value_type: FLOAT
units: '%'
description: 'The amount of time the CPU has been servicing hardware interrupts.'
tags:
- tag: Application
value: CPU
- uuid: b81c545ae21b417b85b62ce115e1dd8e
name: 'CPU nice time'
type: ZABBIX_ACTIVE
key: 'system.cpu.util[,nice]'
delay: '60'
history: 27d
value_type: FLOAT
units: '%'
description: 'The time the CPU has spent running users'' processes that have been niced.'
tags:
- tag: Application
value: CPU
- uuid: e0ddfcc0ffe34a60a575cdae1f1d8a98
name: 'CPU System time'
type: ZABBIX_ACTIVE
key: 'system.cpu.util[,system]'
delay: '60'
history: 27d
value_type: FLOAT
units: '%'
description: 'The time the CPU has spent running the kernel and its processes.'
tags:
- tag: Application
value: CPU
- uuid: b99746ff4914473f9c2d3e39dfb9d6fc
name: 'CPU user time'
type: ZABBIX_ACTIVE
key: 'system.cpu.util[,user]'
delay: '60'
history: 27d
value_type: FLOAT
units: '%'
description: 'The time the CPU has spent running users'' processes that are not niced.'
tags:
- tag: Application
value: CPU
- uuid: b2797942c3404742a068e2c5f90a796f
name: 'Host name'
type: ZABBIX_ACTIVE
key: system.hostname
delay: '3600'
history: 27d
trends: '0'
value_type: CHAR
description: 'System host name.'
inventory_link: NAME
tags:
- tag: Application
value: OS
triggers:
- uuid: ef84b7baa0564b50a8ad6537ec8c81b9
expression: '(last(/Template pfSense Active/system.hostname,#1)<>last(/Template pfSense Active/system.hostname,#2))>0'
name: 'Hostname was changed on {HOST.NAME}'
priority: INFO
- uuid: def69b566341465f971635459ecf3a93
name: 'Host local time'
type: ZABBIX_ACTIVE
key: system.localtime
delay: '60'
history: 27d
units: unixtime
tags:
- tag: Application
value: OS
- uuid: 9370c5052d564338b74bbd3d38847d35
name: 'Free swap space'
type: ZABBIX_ACTIVE
key: 'system.swap.size[,free]'
delay: '60'
history: 27d
units: B
tags:
- tag: Application
value: Memory
- uuid: 709cac33a5384f85b62fd3ff1b35d173
name: 'Free swap space in %'
type: ZABBIX_ACTIVE
key: 'system.swap.size[,pfree]'
delay: '60'
history: 27d
value_type: FLOAT
units: '%'
tags:
- tag: Application
value: Memory
triggers:
- uuid: 7ad93b922ed8416495109bf6eb14bdf4
expression: 'last(/Template pfSense Active/system.swap.size[,pfree])<50'
name: 'Lack of free swap space on {HOST.NAME}'
priority: WARNING
description: 'It probably means that the systems requires more physical memory.'
- uuid: b902dc19ad4e48e0bfc8bf90773f7f64
name: 'Total swap space'
type: ZABBIX_ACTIVE
key: 'system.swap.size[,total]'
delay: '3600'
history: 27d
units: B
tags:
- tag: Application
value: Memory
- uuid: b4516badf0ab41cba862482a3c9ebf37
name: 'Used swap space'
type: ZABBIX_ACTIVE
key: 'system.swap.size[,used]'
delay: '60'
history: 27d
units: B
tags:
- tag: Application
value: Memory
- uuid: 4266ddd2f44546e4b4856c7edfe5c37e
name: 'System information'
type: ZABBIX_ACTIVE
key: system.uname
delay: '3600'
history: 27d
trends: '0'
value_type: CHAR
description: 'The information as normally returned by ''uname -a''.'
inventory_link: OS
tags:
- tag: Application
value: OS
triggers:
- uuid: 299fcdc70a8c4b3aa1b187f05eebf983
expression: '(last(/Template pfSense Active/system.uname,#1)<>last(/Template pfSense Active/system.uname,#2))>0'
name: 'Host information was changed on {HOST.NAME}'
priority: INFO
- uuid: adde548d1da74e72ba7d25d30515cf31
name: 'System uptime'
type: ZABBIX_ACTIVE
key: system.uptime
delay: '600'
history: 27d
units: uptime
tags:
- tag: Application
value: OS
triggers:
- uuid: 982e988c84bb43d197b157b9d85f5d46
expression: 'change(/Template pfSense Active/system.uptime)<0'
name: '{HOST.NAME} has just been restarted'
priority: INFO
- uuid: c0543949d4004092a1c0446b5615b5e8
name: 'Number of logged in users'
type: ZABBIX_ACTIVE
key: system.users.num
delay: '60'
history: 27d
description: 'Number of users who are currently logged in.'
tags:
- tag: Application
value: OS
- uuid: bbaf67d0ca854704b1d13ba08f4108fe
name: 'Checksum of /etc/passwd'
type: ZABBIX_ACTIVE
key: 'vfs.file.cksum[/etc/passwd]'
delay: '3600'
history: 27d
tags:
- tag: Application
value: OS
triggers:
- uuid: 703ce0e80d0b45009d714413a3c336b4
expression: '(last(/Template pfSense Active/vfs.file.cksum[/etc/passwd],#1)<>last(/Template pfSense Active/vfs.file.cksum[/etc/passwd],#2))>0'
name: '/etc/passwd has been changed on {HOST.NAME}'
priority: WARNING
- uuid: a6d63cd84a314056bd638e25c5f0308b
name: 'Active memory'
type: ZABBIX_ACTIVE
key: 'vm.memory.size[active]'
delay: '60'
history: 28d
units: B
description: 'Amount of memory being used by processes'
tags:
- tag: Application
value: Memory
- uuid: 092eb762e52a45db9aa27a167b517dfa
name: 'Available memory'
type: ZABBIX_ACTIVE
key: 'vm.memory.size[available]'
delay: '60'
history: 27d
units: B
description: 'Available memory is defined as free+cached+buffers memory.'
tags:
- tag: Application
value: Memory
triggers:
- uuid: 8146acaf455344c39add5460c7d48186
expression: 'last(/Template pfSense Active/vm.memory.size[available])<20M'
name: 'Lack of available memory on server {HOST.NAME}'
priority: AVERAGE
- uuid: 75329478c6da472894fc3afd9bc4ff78
name: 'Buffered memory'
type: ZABBIX_ACTIVE
key: 'vm.memory.size[buffers]'
delay: '60'
history: 28d
status: DISABLED
units: B
description: 'Disk IO input cache. (Item disabled due to bug)'
tags:
- tag: Application
value: Memory
- uuid: 112b875916c74b418e33964e4134d88a
name: 'Cached memory'
type: ZABBIX_ACTIVE
key: 'vm.memory.size[cached]'
delay: '60'
history: 28d
units: B
description: 'Amount of memory used to cache data'
tags:
- tag: Application
value: Memory
- uuid: d403943f72ef41c6ac893d55f56991cc
name: 'Free memory'
type: ZABBIX_ACTIVE
key: 'vm.memory.size[free]'
delay: '60'
history: 28d
units: B
description: 'quantité de mémoire complètement libre et prête a être utilisée directement.'
tags:
- tag: Application
value: Memory
- uuid: 6299a6e55f394ed8bb888443c6cf9c12
name: 'Inactive memory'
type: ZABBIX_ACTIVE
key: 'vm.memory.size[inactive]'
delay: '60'
history: 28d
units: B
description: 'quantité de mémoire qui contient des données qui ne sont plus utilisées (peut être directement libéré si besoin)'
tags:
- tag: Application
value: Memory
- uuid: 2600308db79349a2884b3e44099fe486
name: 'Available memory (percent)'
type: ZABBIX_ACTIVE
key: 'vm.memory.size[pavailable]'
delay: '60'
history: 28d
value_type: FLOAT
units: '%'
description: 'Available memory is defined as free+cached+buffers memory.'
preprocessing:
- type: MULTIPLIER
parameters:
- '1'
tags:
- tag: Application
value: Memory
- uuid: 1f4b1470af3f408aa08001620ff0ec5d
name: 'Shared memory'
type: ZABBIX_ACTIVE
key: 'vm.memory.size[shared]'
delay: '60'
history: 28d
status: DISABLED
units: B
description: |
quantité de mémoire partagée entre plusieurs processus
(Item désactivé car non utilisé)
tags:
- tag: Application
value: Memory
- uuid: 69bec6035e964582832732239f8c07a4
name: 'Total memory'
type: ZABBIX_ACTIVE
key: 'vm.memory.size[total]'
delay: '3600'
history: 27d
units: B
description: 'quantité de mémoire totale'
tags:
- tag: Application
value: Memory
- uuid: 3214f881ee01414cb1d824671ae0074b
name: 'Used memory'
type: ZABBIX_ACTIVE
key: 'vm.memory.size[used]'
delay: '60'
history: 28d
status: DISABLED
units: B
description: 'Item désactivé car non utilisé'
tags:
- tag: Application
value: Memory
- uuid: 79a6075f223d442199accef75762f8b4
name: 'Wired memory'
type: ZABBIX_ACTIVE
key: 'vm.memory.size[wired]'
delay: '60'
history: 28d
units: B
description: 'quantité de mémoire utilisée par le kernel, ne peut être ni déchargée en swap, ni compressée.'
tags:
- tag: Application
value: Memory
discovery_rules:
- uuid: f389a9bc18e34c97941451f19aaa387c
name: 'Certificates Discovery'
type: ZABBIX_ACTIVE
key: 'pfsense.discovery[certificates]'
delay: 3600s
description: 'Certificates Discovery'
item_prototypes:
- uuid: a3521a3bb0be4525be1462ac7f1ab56e
name: '{#CERT_TYPE} "{#CERT_NAME}": algorithm'
key: 'pfsense.value[cert_algo, {#CERT_INDEX}]'
delay: 900s
trends: '0'
value_type: TEXT
- uuid: 266a387f14d6486d918fa6d831d75f23
name: '{#CERT_TYPE} "{#CERT_NAME}": key length'
key: 'pfsense.value[cert_algo_bits, {#CERT_INDEX}]'
delay: 900s
- uuid: 935171af2228470284fd6c6bb4cea56b
name: '{#CERT_TYPE} "{#CERT_NAME}": algo security bits'
key: 'pfsense.value[cert_algo_secbits, {#CERT_INDEX}]'
delay: 900s
- uuid: aafb159ad8024d94b09d1ab33ef1b230
name: '{#CERT_TYPE} "{#CERT_NAME}": hash algorithm'
key: 'pfsense.value[cert_hash, {#CERT_INDEX}]'
delay: 900s
trends: '0'
value_type: TEXT
- uuid: 7043dab3a32e49a7b1128747fbaab7be
name: '{#CERT_TYPE} "{#CERT_NAME}": hash security bits'
key: 'pfsense.value[cert_hash_secbits, {#CERT_INDEX}]'
delay: 900s
- uuid: 30710705d622493a81320f7dffc7c63c
name: '{#CERT_TYPE} "{#CERT_NAME}": valid from'
key: 'pfsense.value[cert_ref_date, validFrom, {#CERT_INDEX}]'
delay: 3600s
units: unixtime
- uuid: 2cb4d931571e4089b944dd813c7f35e4
name: '{#CERT_TYPE} "{#CERT_NAME}": valid to'
key: 'pfsense.value[cert_ref_date, validTo, {#CERT_INDEX}]'
delay: 900s
units: unixtime
trigger_prototypes:
- uuid: 29a7d692c79c4c53bd9e613e71970b98
expression: 'last(/Template pfSense Active/pfsense.value[cert_ref_date, validTo, {#CERT_INDEX}])-now()<0'
name: 'Certificate "{#CERT_NAME}" ({#CERT_TYPE}) has expired.'
priority: HIGH
- uuid: b77a404a43de48c997750fe87574c54e
expression: 'last(/Template pfSense Active/pfsense.value[cert_ref_date, validTo, {#CERT_INDEX}])-now()<2419200 and last(/Template pfSense Active/pfsense.value[cert_ref_date, validTo, {#CERT_INDEX}])-now()>0'
name: 'Certificate "{#CERT_NAME}" ({#CERT_TYPE}) will expire soon.'
priority: AVERAGE
trigger_prototypes:
- uuid: 87cfe7be3f824782a22b3249ec8e37fe
expression: |
last(/Template pfSense Active/pfsense.value[cert_algo_secbits, {#CERT_INDEX}])< {$CERT_SECURITY_BITS} or
last(/Template pfSense Active/pfsense.value[cert_hash_secbits, {#CERT_INDEX}])< {$CERT_SECURITY_BITS}
name: 'Certificate "{#CERT_NAME}" ({#CERT_TYPE}) has low security'
priority: WARNING
- uuid: 4db6be9bdf7b4876a13f9b936cdd3321
name: 'Gateways Discovery'
type: ZABBIX_ACTIVE
key: 'pfsense.discovery[gw]'
delay: 300s
description: 'Gateway Discovery'
item_prototypes:
- uuid: db89e0dd738148e19c52f08bbc7723f7
name: 'Gateway {#GATEWAY} RTT'
type: ZABBIX_ACTIVE
key: 'pfsense.value[gw_value,{#GATEWAY},delay]'
delay: 60s
value_type: FLOAT
units: ms
preprocessing:
- type: RTRIM
parameters:
- ms
tags:
- tag: Application
value: Gateways
- uuid: ba759ceb73f949108fddbc4029cfc9f2
name: 'Gateway {#GATEWAY} Packet Loss'
type: ZABBIX_ACTIVE
key: 'pfsense.value[gw_value,{#GATEWAY},loss]'
delay: 60s
units: '%'
preprocessing:
- type: RTRIM
parameters:
- '%'
tags:
- tag: Application
value: Gateways
- uuid: 7522dfc8c6724534a8fd4efc4bbf87f8
name: 'Gateway {#GATEWAY} Status'
type: ZABBIX_ACTIVE
key: 'pfsense.value[gw_value,{#GATEWAY},status]'
delay: 60s
description: 'Status of Gateway'
valuemap:
name: 'pfSense Gateway Status'
tags:
- tag: Application
value: Gateways
trigger_prototypes:
- uuid: 2523755541f242d190825ae67f8039fb
expression: 'avg(/Template pfSense Active/pfsense.value[gw_value,{#GATEWAY},status],#3)=5'
name: 'Gateway {#GATEWAY} is down'
priority: DISASTER
description: 'Gateway is Down'
- uuid: 4c306732349b4cfe8e66d7656bc0d397
expression: 'avg(/Template pfSense Active/pfsense.value[gw_value,{#GATEWAY},status],#3)=4'
name: 'Gateway {#GATEWAY} is forced down'
priority: INFO
description: 'Gateway is forced down by system administrator'
- uuid: faaa981f96444c90accf769c5d1949a7
expression: 'avg(/Template pfSense Active/pfsense.value[gw_value,{#GATEWAY},status],#3)=2'
name: 'High Delay on gateway {#GATEWAY}'
priority: WARNING
description: 'Gateway is lagging'
- uuid: a89a7d0dbd87432fa13ee7e4d15a4bdf
expression: 'avg(/Template pfSense Active/pfsense.value[gw_value,{#GATEWAY},status],#3)=3'
name: 'High packet Loss on {#GATEWAY}'
priority: HIGH
description: 'High Packet Loss on Gateway'
- uuid: f5e9d80e672042aeb609f9ad82a019e4
expression: 'avg(/Template pfSense Active/pfsense.value[gw_value,{#GATEWAY},status],#3)=1'
name: 'Packet Loss on {#GATEWAY}'
priority: WARNING
description: 'Packet loss on Gateway'
- uuid: c6c8376ac666461a91df53eacdaf5f8b
name: 'Gateway {#GATEWAY} RTT Std Deviation'
type: ZABBIX_ACTIVE
key: 'pfsense.value[gw_value,{#GATEWAY},stddev]'
delay: 60s
value_type: FLOAT
units: ms
preprocessing:
- type: RTRIM
parameters:
- ms
tags:
- tag: Application
value: Gateways
graph_prototypes:
- uuid: 25f10d4fe86549e893bf8ebb8de8f39c
name: 'Gateway {#GATEWAY} Availability'
graph_items:
- color: 199C0D
calc_fnc: ALL
item:
host: 'Template pfSense Active'
key: 'pfsense.value[gw_value,{#GATEWAY},delay]'
- sortorder: '1'
color: FF5722
calc_fnc: ALL
item:
host: 'Template pfSense Active'
key: 'pfsense.value[gw_value,{#GATEWAY},loss]'
- uuid: 05c556c8a8c24703a06be8d2b6a7a082
name: 'Gateway {#GATEWAY} Status'
yaxismax: '5'
ymin_type_1: FIXED
ymax_type_1: FIXED
graph_items:
- color: 199C0D
calc_fnc: ALL
item:
host: 'Template pfSense Active'
key: 'pfsense.value[gw_value,{#GATEWAY},status]'
- uuid: baa842b8e5bf40b3bfbeb4d3b6507d08
name: 'Network interface discovery'
type: ZABBIX_ACTIVE
key: 'pfsense.discovery[interfaces]'
delay: 3600s
filter:
conditions:
- macro: '{#IFNAME}'
value: '@Network interfaces for discovery'
formulaid: A
lifetime: 7d
description: 'Discovery of network interfaces as defined in global regular expression "Network interfaces for discovery".'
item_prototypes:
- uuid: 71301cd82a0749b4abed0feb58061a37
name: 'Incoming Errors on {#IFDESCR}'
type: ZABBIX_ACTIVE
key: 'net.if.in[{#IFNAME},errors]'
delay: '60'
history: 7d
preprocessing:
- type: CHANGE_PER_SECOND
parameters:
- ''
tags:
- tag: Application
value: 'Network interfaces'
- uuid: cbadb376e2924e438a81f068fd8553ef
name: 'Incoming network traffic on {#IFDESCR}'
type: ZABBIX_ACTIVE
key: 'net.if.in[{#IFNAME}]'
delay: '60'
history: 7d
units: bps
preprocessing:
- type: CHANGE_PER_SECOND
parameters:
- ''
- type: MULTIPLIER
parameters:
- '8'
tags:
- tag: Application
value: 'Network interfaces'
- uuid: a885e855bdda4eeda877a91ac30bbcb1
name: 'Outgoing errors on {#IFDESCR}'
type: ZABBIX_ACTIVE
key: 'net.if.out[{#IFNAME},errors]'
delay: '60'
history: 7d
preprocessing:
- type: CHANGE_PER_SECOND
parameters:
- ''
tags:
- tag: Application
value: 'Network interfaces'
- uuid: 74c6ae5e88bb4be49a23f82c50a957ac
name: 'Outgoing network traffic on {#IFDESCR}'
type: ZABBIX_ACTIVE