pfsense-zabbix/zabbix6/pfsense_active.yaml

1776 lines
56 KiB
YAML

zabbix_export:
version: '6.0'
date: '2023-02-26T13:18:42Z'
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 1.0.2
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: 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: 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: 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 $2 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 $2 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 $2 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 $2 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 $2 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 $1'
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: 'quantité de mémoire en cours d''utilisation par les processus'
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: |
Cache d'entrées des IO disque.
(Item désactivé car buggé)
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: 'quantité de mémoire utilisée pour mettre des données en cache'
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: 4db6be9bdf7b4876a13f9b936cdd3321
name: 'Gateways Discovery'
type: ZABBIX_ACTIVE
key: 'pfsense.discovery[gw]'
delay: 300s
description: 'Gateway Discovery'
item_prototypes:
-
uuid: db89e0dd738148e19c52f08bbc7723f7
name: 'Gateway $2 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 $2 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 $2 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 $2 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
key: 'net.if.out[{#IFNAME}]'
delay: '60'
history: 7d
units: bps
preprocessing:
-
type: CHANGE_PER_SECOND
parameters:
- ''
-
type: MULTIPLIER
parameters:
- '8'
tags:
-
tag: Application
value: 'Network interfaces'
graph_prototypes:
-
uuid: adcaff7d4cdf4dbb8df4a5c1069a9fff
name: 'Network traffic on {#IFDESCR}'
show_triggers: 'NO'
show_legend: 'NO'
ymin_type_1: FIXED
graph_items:
-
drawtype: GRADIENT_LINE
color: '29E900'
item:
host: 'Template pfSense Active'
key: 'net.if.in[{#IFNAME}]'
-
sortorder: '1'
drawtype: GRADIENT_LINE
color: FD0000
item:
host: 'Template pfSense Active'
key: 'net.if.out[{#IFNAME}]'
-
uuid: 111d1d4374084b4d94bd930dfa16e216
name: 'OpenVPN Client Discovery'
type: ZABBIX_ACTIVE
key: 'pfsense.discovery[openvpn_client]'
delay: 300s
description: 'OpenVPN Client Discovery'
item_prototypes:
-
uuid: 15e5067016824fc7963ae22df7a675ea
name: 'OpenVPN Client {#NAME} Tunnel Status'
type: ZABBIX_ACTIVE
key: 'pfsense.value[openvpn_clientvalue,{#CLIENT},status]'
delay: 60s
valuemap:
name: 'pfSense OpenVPN Interface Status'
tags:
-
tag: Application
value: 'OpenVPN Client'
trigger_prototypes:
-
uuid: 33ac9b529a1f485394bca3b7a04d113f
expression: 'avg(/Template pfSense Active/pfsense.value[openvpn_clientvalue,{#CLIENT},status],#3)=0'
name: 'OpenVPN Client {#NAME} Tunnel is Down'
priority: HIGH
description: 'OpenVPN Tunnel Down'
-
uuid: 9afe1fad6b6a4ec88ae81969a57c6107
name: 'OpenVPN Server Discovery'
type: ZABBIX_ACTIVE
key: 'pfsense.discovery[openvpn_server]'
delay: 300s
item_prototypes:
-
uuid: 0a6ee94cefe8457eb56ef832d8734790
name: 'OpenVPN Server {#NAME} Clients Connected'
type: ZABBIX_ACTIVE
key: 'pfsense.value[openvpn_servervalue,{#SERVER},conns]'
delay: 60s
tags:
-
tag: Application
value: 'OpenVPN Server'
-
uuid: d3cadc40e5d74acf8e0549e9d28771ea
name: 'OpenVPN Server {#NAME} Mode'
type: ZABBIX_ACTIVE
key: 'pfsense.value[openvpn_servervalue,{#SERVER},mode]'
delay: 300s
valuemap:
name: 'pfSense OpenVPN Mode'
tags:
-
tag: Application
value: 'OpenVPN Server'
-
uuid: c2187f680f92432d9dc3b1609b1f7fa7
name: 'OpenVPN Server {#NAME} Port'
type: ZABBIX_ACTIVE
key: 'pfsense.value[openvpn_servervalue,{#SERVER},port]'
delay: 300s
tags:
-
tag: Application
value: 'OpenVPN Server'
-
uuid: be75ce1d23fa48cf80d8ba7ab181ad12
name: 'OpenVPN Server {#NAME} Tunnel Status'
type: ZABBIX_ACTIVE
key: 'pfsense.value[openvpn_servervalue,{#SERVER},status]'
delay: 60s
valuemap:
name: 'pfSense OpenVPN Interface Status'
tags:
-
tag: Application
value: 'OpenVPN Server'
trigger_prototypes:
-
uuid: ea2851d79a11460fa467f3c02038dcf9
expression: 'avg(/Template pfSense Active/pfsense.expected_carp_status,#3)<>2 and last(/Template pfSense Active/pfsense.value[openvpn_servervalue,{#SERVER},status],#3)=0'
name: 'OpenVPN Server {#NAME} is Down'
priority: HIGH
description: 'OpenVPN Tunnel is Down'
-
uuid: f99425c237ad457b8c17ac6e87fb26fc
name: 'Services Discovery'
type: ZABBIX_ACTIVE
key: 'pfsense.discovery[services]'
delay: 300s
item_prototypes:
-
uuid: 072e3f3d659c4414adb7054e268383e9
name: 'Service {#DESCRIPTION} enabled on CARP Slave'
key: 'pfsense.value[service_value,{#SERVICE},run_on_carp_slave]'
delay: 600s
valuemap:
name: 'Generic YesNo'
tags:
-
tag: Application
value: Services
-
uuid: a082002e7599481b8b58ad2d5e1d4e43
name: 'Service {#DESCRIPTION} Status'
key: 'pfsense.value[service_value,{#SERVICE},status]'
delay: 60s
valuemap:
name: 'Service state'
tags:
-
tag: Application
value: Services
trigger_prototypes:
-
uuid: f9f34f0546b24f30b098254d052507f1
expression: |
avg(/Template pfSense Active/pfsense.value[service_value,{#SERVICE},status],#3)=0 and (
(last(/Template pfSense Active/pfsense.value[service_value,{#SERVICE},run_on_carp_slave])=1 and
avg(/Template pfSense Active/pfsense.value[carp_status],#3)=2)
or
( last(/Template pfSense Active/pfsense.value[carp_status])=1)
or
(last(/Template pfSense Active/pfsense.value[carp_status])=0)
)
name: 'Service {#DESCRIPTION} is not running'
priority: HIGH
description: 'Service is not running'
-
uuid: 06f42546705d4a7b89178d8f024f4a03
name: 'Mounted filesystem discovery'
type: ZABBIX_ACTIVE
key: vfs.fs.discovery
delay: '3600'
filter:
conditions:
-
macro: '{#FSTYPE}'
value: '@File systems for discovery'
formulaid: A
lifetime: 7d
description: 'Discovery of file systems of different types as defined in global regular expression "File systems for discovery".'
item_prototypes:
-
uuid: 96acea60f88b42cb8fbc9c7d47881d26
name: 'Free inodes on $1 (percentage)'
type: ZABBIX_ACTIVE
key: 'vfs.fs.inode[{#FSNAME},pfree]'
delay: '60'
history: 7d
value_type: FLOAT
units: '%'
tags:
-
tag: Application
value: Filesystems
trigger_prototypes:
-
uuid: 1ea81cdc56fd483d82f187d209cff516
expression: 'last(/Template pfSense Active/vfs.fs.inode[{#FSNAME},pfree])<20'
name: 'Free inodes is less than 20% on volume {#FSNAME}'
priority: WARNING
-
uuid: ff42876417ee4d6b9a69341f69c3cb5c
name: 'Free disk space on $1'
type: ZABBIX_ACTIVE
key: 'vfs.fs.size[{#FSNAME},free]'
delay: '60'
history: 7d
units: B
tags:
-
tag: Application
value: Filesystems
-
uuid: 04c24f47f7ea4ed68416b0b465fc7de5
name: 'Free disk space on $1 (percentage)'
type: ZABBIX_ACTIVE
key: 'vfs.fs.size[{#FSNAME},pfree]'
delay: '60'
history: 7d
value_type: FLOAT
units: '%'
tags:
-
tag: Application
value: Filesystems
trigger_prototypes:
-
uuid: 41119ea7e7924b95ba5e148277745f3c
expression: 'last(/Template pfSense Active/vfs.fs.size[{#FSNAME},pfree])<20'
name: 'Free disk space is less than 20% on volume {#FSNAME}'
priority: WARNING
-
uuid: 6466404aa20a40bb95ccadc0662f7eeb
name: 'Total disk space on $1'
type: ZABBIX_ACTIVE
key: 'vfs.fs.size[{#FSNAME},total]'
delay: '3600'
history: 7d
units: B
tags:
-
tag: Application
value: Filesystems
-
uuid: bcd151df26344c1580b68a88b80a919e
name: 'Used disk space on $1'
type: ZABBIX_ACTIVE
key: 'vfs.fs.size[{#FSNAME},used]'
delay: '60'
history: 7d
units: B
tags:
-
tag: Application
value: Filesystems
graph_prototypes:
-
uuid: e0fcad45031446ee81562fa2c5a19740
name: 'Disk space usage {#FSNAME}'
width: '600'
height: '340'
yaxismax: '0'
show_work_period: 'NO'
show_triggers: 'NO'
type: PIE
show_3d: 'YES'
graph_items:
-
color: CC0000
type: GRAPH_SUM
item:
host: 'Template pfSense Active'
key: 'vfs.fs.size[{#FSNAME},total]'
-
sortorder: '1'
color: 5B5B5B
item:
host: 'Template pfSense Active'
key: 'vfs.fs.size[{#FSNAME},free]'
-
sortorder: '2'
color: AEEE00
item:
host: 'Template pfSense Active'
key: 'vfs.fs.size[{#FSNAME},used]'
macros:
-
macro: '{$CARP_SERVICES_STOPPED}'
value: ^(haproxy|openvpn)$
-
macro: '{$CARP_SLAVE_SERVICES:"haproxy"}'
value: '0'
-
macro: '{$CARP_SLAVE_SERVICES:"openvpn"}'
value: '0'
-
macro: '{$EXPECTED_CARP_STATUS}'
value: '0'
dashboards:
-
uuid: a88c02addc374f83ade5063845b7a828
name: 'System performance'
pages:
-
widgets:
-
type: GRAPH_CLASSIC
width: '12'
height: '7'
fields:
-
type: GRAPH
name: graphid
value:
host: 'Template pfSense Active'
name: 'Active Connections (pie)'
-
type: GRAPH_CLASSIC
x: '12'
width: '12'
height: '7'
fields:
-
type: GRAPH
name: graphid
value:
host: 'Template pfSense Active'
name: 'Network Memory Buffer (pie)'
-
type: GRAPH_CLASSIC
'y': '7'
width: '12'
height: '7'
fields:
-
type: GRAPH
name: graphid
value:
host: 'Template pfSense Active'
name: 'CPU load'
-
type: GRAPH_CLASSIC
x: '12'
'y': '7'
width: '12'
height: '7'
fields:
-
type: GRAPH
name: graphid
value:
host: 'Template pfSense Active'
name: 'Memory Usage simple (pie)'
valuemaps:
-
uuid: c1dcf6e418b94f07bf15ca15844d3eb3
name: 'Generic YesNo'
mappings:
-
value: '0'
newvalue: 'No'
-
value: '1'
newvalue: 'Yes'
-
uuid: cc85f86bc6974aaca6cf474d69d404fa
name: 'pfSense CARP Status'
mappings:
-
value: '0'
newvalue: Disabled
-
value: '1'
newvalue: Master
-
value: '2'
newvalue: Backup
-
value: '3'
newvalue: Inconsistent
-
value: '4'
newvalue: Problem
-
uuid: e5ef9028f13144a994c65b1b0fd866ee
name: 'pfSense Gateway Status'
mappings:
-
value: '0'
newvalue: Up
-
value: '1'
newvalue: 'Packet Loss'
-
value: '2'
newvalue: 'High Delay'
-
value: '3'
newvalue: 'High Packet Loss'
-
value: '4'
newvalue: 'Forced Down'
-
value: '5'
newvalue: Down
-
uuid: 0230121a072c459582593d9d70686f6e
name: 'pfSense OpenVPN Interface Status'
mappings:
-
value: '0'
newvalue: Down
-
value: '1'
newvalue: Up
-
value: '2'
newvalue: None
-
value: '3'
newvalue: Reconnecting
-
value: '4'
newvalue: Waiting
-
value: '5'
newvalue: Up/Listening
-
uuid: e394e9e9642e4999aaeb4bae2f67e612
name: 'pfSense OpenVPN Mode'
mappings:
-
value: '1'
newvalue: 'Peer to Peer (SSL/TLS)'
-
value: '2'
newvalue: 'P2P Shared Key'
-
value: '3'
newvalue: 'Remote Access (SSL/TLS)'
-
value: '4'
newvalue: 'Remote Access (User Auth)'
-
value: '5'
newvalue: 'Remote Access 8SSL/TLS + User Auth)'
-
uuid: 8e060d1f44054f2499c649a299dd6f42
name: 'Service state'
mappings:
-
value: '0'
newvalue: Down
-
value: '1'
newvalue: Up
triggers:
-
uuid: ba26b37d090c439faf2ed71f0e8b2be3
expression: 'last(/Template pfSense Active/pfsense.expected_carp_status)<>0 and last(/Template pfSense Active/pfsense.value[carp_status])<>{$EXPECTED_CARP_STATUS}'
name: 'CARP Status not Expected on {HOST.NAME}'
priority: HIGH
description: 'pfSense CARP is not in the state Expected. This means that a failover could be in process.'
graphs:
-
uuid: 499d867c58974a8e914b0423bdbf3d01
name: 'Active Connections'
show_triggers: 'NO'
ymin_type_1: FIXED
ymax_type_1: ITEM
ymax_item_1:
host: 'Template pfSense Active'
key: pfsense.states.max
graph_items:
-
drawtype: GRADIENT_LINE
color: FF2C27
item:
host: 'Template pfSense Active'
key: pfsense.states.current
-
uuid: 6cd23b5084844a2481beb5c34f1e603a
name: 'Active Connections (pie)'
width: '600'
height: '340'
yaxismax: '0'
show_work_period: 'NO'
show_triggers: 'NO'
type: PIE
graph_items:
-
color: 5B5B5B
type: GRAPH_SUM
item:
host: 'Template pfSense Active'
key: pfsense.states.max
-
sortorder: '1'
drawtype: GRADIENT_LINE
color: FF2C27
item:
host: 'Template pfSense Active'
key: pfsense.states.current
-
uuid: 15db8adacf6e4b35ba5a6b36b2ddef1f
name: 'CPU jumps'
graph_items:
-
drawtype: GRADIENT_LINE
color: '009900'
item:
host: 'Template pfSense Active'
key: system.cpu.switches
-
sortorder: '1'
drawtype: GRADIENT_LINE
color: '000099'
item:
host: 'Template pfSense Active'
key: system.cpu.intr
-
uuid: c515614caf3445e6b28858907b1d1713
name: 'CPU load'
type: STACKED
ymin_type_1: FIXED
graph_items:
-
color: FFA619
item:
host: 'Template pfSense Active'
key: 'system.cpu.load[percpu,avg1]'
-
sortorder: '1'
color: E86E30
item:
host: 'Template pfSense Active'
key: 'system.cpu.load[percpu,avg5]'
-
sortorder: '2'
color: FF2F26
item:
host: 'Template pfSense Active'
key: 'system.cpu.load[percpu,avg15]'
-
uuid: aa694daef9004553952ec7cf3fa153b1
name: 'CPU utilization (Line)'
show_triggers: 'NO'
ymin_type_1: FIXED
ymax_type_1: FIXED
graph_items:
-
drawtype: GRADIENT_LINE
color: FFE819
item:
host: 'Template pfSense Active'
key: 'system.cpu.util[,interrupt]'
-
sortorder: '1'
drawtype: GRADIENT_LINE
color: E85D17
item:
host: 'Template pfSense Active'
key: 'system.cpu.util[,nice]'
-
sortorder: '2'
drawtype: GRADIENT_LINE
color: DF26FF
item:
host: 'Template pfSense Active'
key: 'system.cpu.util[,system]'
-
sortorder: '3'
drawtype: GRADIENT_LINE
color: '1775E8'
item:
host: 'Template pfSense Active'
key: 'system.cpu.util[,user]'
-
sortorder: '4'
color: 03D933
item:
host: 'Template pfSense Active'
key: 'system.cpu.util[,idle]'
-
uuid: 61378e27951a4882b1f88d041922ad16
name: 'Memory Available details (pie)'
width: '600'
height: '340'
yaxismax: '0'
show_work_period: 'NO'
show_triggers: 'NO'
type: PIE
graph_items:
-
color: '003300'
type: GRAPH_SUM
item:
host: 'Template pfSense Active'
key: 'vm.memory.size[available]'
-
sortorder: '1'
color: '005500'
item:
host: 'Template pfSense Active'
key: 'vm.memory.size[free]'
-
sortorder: '2'
color: '007700'
item:
host: 'Template pfSense Active'
key: 'vm.memory.size[cached]'
-
sortorder: '3'
color: '009900'
item:
host: 'Template pfSense Active'
key: 'vm.memory.size[inactive]'
-
uuid: 625d8fc33a5d410ab2229dd2e8e99762
name: 'Memory usage'
show_triggers: 'NO'
type: STACKED
ymin_type_1: FIXED
ymax_type_1: ITEM
ymax_item_1:
host: 'Template pfSense Active'
key: 'vm.memory.size[total]'
graph_items:
-
color: 00EE00
item:
host: 'Template pfSense Active'
key: 'vm.memory.size[wired]'
-
sortorder: '1'
color: 00CC00
item:
host: 'Template pfSense Active'
key: 'vm.memory.size[active]'
-
sortorder: '2'
color: '007700'
item:
host: 'Template pfSense Active'
key: 'vm.memory.size[inactive]'
-
sortorder: '3'
color: '005500'
item:
host: 'Template pfSense Active'
key: 'vm.memory.size[cached]'
-
sortorder: '4'
color: '003300'
item:
host: 'Template pfSense Active'
key: 'vm.memory.size[free]'
-
uuid: eeb86545b71145949b241b7d89b3a79b
name: 'Memory Usage simple (pie)'
width: '600'
height: '340'
yaxismax: '0'
show_work_period: 'NO'
show_triggers: 'NO'
type: PIE
graph_items:
-
color: '003300'
item:
host: 'Template pfSense Active'
key: 'vm.memory.size[available]'
-
sortorder: '1'
color: 00DD00
item:
host: 'Template pfSense Active'
key: kt.mem.used
-
uuid: ab954e447cb14b10bb902e7c43a6d31a
name: 'Network Memory Buffer'
show_triggers: 'NO'
type: STACKED
ymin_type_1: FIXED
ymax_type_1: ITEM
ymax_item_1:
host: 'Template pfSense Active'
key: pfsense.mbuf.max
graph_items:
-
color: B26E16
item:
host: 'Template pfSense Active'
key: pfsense.mbuf.current
-
sortorder: '1'
color: FFCE8E
item:
host: 'Template pfSense Active'
key: pfsense.mbuf.cache
-
uuid: eab355b1ef2f450a938441c913b7631a
name: 'Network Memory Buffer (pie)'
width: '600'
height: '340'
yaxismax: '0'
show_work_period: 'NO'
show_triggers: 'NO'
type: PIE
graph_items:
-
color: 5B5B5B
type: GRAPH_SUM
item:
host: 'Template pfSense Active'
key: pfsense.mbuf.max
-
sortorder: '1'
color: FFCE8E
item:
host: 'Template pfSense Active'
key: pfsense.mbuf.cache
-
sortorder: '2'
color: B26E16
item:
host: 'Template pfSense Active'
key: pfsense.mbuf.current
-
uuid: 9522838e31244b6e88a9a020bdd07602
name: 'Swap usage'
width: '600'
height: '340'
yaxismax: '0'
show_work_period: 'NO'
show_triggers: 'NO'
type: PIE
show_3d: 'YES'
graph_items:
-
color: 5B5B5B
type: GRAPH_SUM
item:
host: 'Template pfSense Active'
key: 'system.swap.size[,total]'
-
sortorder: '1'
color: FFFF33
item:
host: 'Template pfSense Active'
key: 'system.swap.size[,used]'