5.0
2021-06-19T12:17:25Z
Modèles
Templates
Template_OS_PfSense2
Template_OS_PfSense2
Template_Ping
Modèles
Templates
Disks
Integrity
Memory
Network
Processor
Processus
System
-
TCP ping of the agent
agent.ping
5m
60d
1825d
Network
Service state
POST
{nodata({$ZBX_UNREACHABLE_TIMEOUT})}=1
Unreachable Zabbix agent
DISASTER
No ping response from {HOST.IP1}
{Template_OS_PfSense2:icmpping[,2,,,2000].nodata(180,strict)}=0 and {Template_OS_PfSense2:icmpping[,2,,,2000].sum({$DOWN_CRITICAL})}=0 and {Template_OS_PfSense2:icmpping[,2,,,2000].dayofweek(0)}>={$PING_ALERT_FROM_DAY} and {Template_OS_PfSense2:icmpping[,2,,,2000].dayofweek(0)}<={$PING_ALERT_TO_DAY} and {Template_OS_PfSense2:icmpping[,2,,,2000].time(0)}>={$PING_ALERT_FROM_HOUR} and {Template_OS_PfSense2:icmpping[,2,,,2000].time(0)}<={$PING_ALERT_TO_HOUR}
{Template_OS_PfSense2:icmpping[,2,,,2000].sum(180)}>3
-
Maximum number of opened files
kernel.maxfiles
2h
60d
1825d
It could be increased by using sysctrl utility or modifying file /etc/sysctl.conf.
System
-
Maximum number of processes
kernel.maxproc
2h
60d
1825d
It could be increased by using sysctrl utility or modifying file /etc/sysctl.conf.
System
-
DNS Resolution response for $2
net.dns.record[127.0.0.1,{$DNS_NAME_CHECK},A,,]
5m
15d
0
TEXT
Network
POST
-
DNS resolution for $2 is working
net.dns[127.0.0.1,{$DNS_NAME_CHECK},A,,]
5m
15d
0
Network
POST
{max(5m)}<1
DNS resolution problem
WARNING
-
MBUF Cache
pfsense.mbuf.cache
5m
60d
1825d
Memory
Network
-
MBUF Current
pfsense.mbuf.current
5m
60d
1825d
Memory
Network
-
MBUF Max
pfsense.mbuf.max
1h
60d
1825d
Memory
Network
-
MBUF Total Used (percent)
CALCULATED
pfsense.mbuf.ptotal
5m
60d
1825d
((last(pfsense.mbuf.current) + last(pfsense.mbuf.cache)) * 100) / last(pfsense.mbuf.max)
Memory
Network
{last()}>80
RECOVERY_EXPRESSION
{last()}<75
MBUF used at {ITEM.LASTVALUE1}
WARNING
MBUF used at {ITEM.LASTVALUE1}
{Template_OS_PfSense2:pfsense.mbuf.ptotal.last()}>90
{Template_OS_PfSense2:pfsense.mbuf.ptotal.last()}<85
{last()}>90
RECOVERY_EXPRESSION
{last()}<85
MBUF used at {ITEM.LASTVALUE1}
HIGH
-
States Table Current
pfsense.states.current
2m
60d
1825d
Memory
-
States Table Max
pfsense.states.max
10m
60d
1825d
Memory
DISCARD_UNCHANGED_HEARTBEAT
2h
-
States Table Current (percent)
CALCULATED
pfsense.states.pused
2m
60d
1825d
FLOAT
%
(last(pfsense.states.current) * 100) / last(pfsense.states.max)
Memory
{last()}>80
RECOVERY_EXPRESSION
{last()}<75
States table used at {ITEM.LASTVALUE1}
WARNING
States table used at {ITEM.LASTVALUE1}
{Template_OS_PfSense2:pfsense.states.pused.last()}>90
{Template_OS_PfSense2:pfsense.states.pused.last()}<85
{last()}>90
RECOVERY_EXPRESSION
{last()}<85
States table used at {ITEM.LASTVALUE1}
HIGH
-
pfSense Installed Version
pfsense.value[system,installed_version]
1h
60d
0
TEXT
DISCARD_UNCHANGED_HEARTBEAT
1d
-
Number of active processes
proc.num[,,run]
2m
60d
1825d
processus
Processus
POST
{last(0)}>{$MAX_RUNNING_PROCESSES}
Lots of active processes
AVERAGE
-
Number of sshd processes
proc.num[sshd]
5m
60d
0
Processus
POST
{last(0)}<1
sshd daemon isn't running
AVERAGE
-
Number of processes
proc.num[]
5m
60d
1825d
processus
POST
{last(0)}>{$MAX_PROCESSES}
Lots of processes
INFO
-
CPU Load
system.cpu.load[,avg1]
60d
1825d
FLOAT
Processor
POST
-
CPU Load (5min)
system.cpu.load[,avg5]
5m
60d
1825d
FLOAT
Processor
POST
-
CPU Load (15min)
system.cpu.load[,avg15]
15m
60d
1825d
FLOAT
Processor
POST
-
Context switches per second
system.cpu.switches
60
60d
1825d
sps
Processor
CHANGE_PER_SECOND
-
CPU usage: $2
system.cpu.util[,interrupt,avg1]
45s
60d
1825d
FLOAT
%
Processor
POST
-
CPU usage: $2
system.cpu.util[,nice,avg1]
45s
60d
1825d
FLOAT
%
Processor
POST
-
CPU usage: $2
system.cpu.util[,system,avg1]
45s
60d
1825d
FLOAT
%
Processor
POST
-
CPU usage: $2
system.cpu.util[,user,avg1]
45s
60d
1825d
FLOAT
%
Processor
POST
-
Swap: used
CALCULATED
system.swap.size.used
10m
60d
1825d
B
last("system.swap.size[,total]")-last("system.swap.size[,free]")
Memory
POST
-
Swap: $2
system.swap.size[,free]
10m
60d
1825d
B
Memory
POST
-
Free swap space in %
interfaces.ifTable.ifEntry.ifInOctets.1
system.swap.size[,pfree]
5m
60d
1825d
FLOAT
%
POST
-
Swap: $2
system.swap.size[,pused]
10m
60d
1825d
FLOAT
%
Memory
POST
{last(0)}>50
High swap usage
AVERAGE
-
Swap: $2
system.swap.size[,total]
1h
60d
1825d
B
Memory
POST
-
Uptime
system.uptime
10m
60d
1825d
s
POST
({last(0)}<{$REBOOT_WARN_DAY} and ({time(0)}>090000 and {time(0)}<230000)) or ({last(0)}<{$REBOOT_WARN_NIGHT} and ({time(0)}>230000 or {time(0)}<090000))
System has rebooted
INFO
-
Connected users
system.users.num
5m
60d
1825d
System
POST
{last(0)}>{$MAX_USERS}
Lots of connected users
WARNING
-
$1 hash
vfs.file.md5sum[/etc/passwd]
1h
30d
0
CHAR
Integrity
POST
{diff(0)}>0
/etc/passwd changed
INFO
-
$1 hash
vfs.file.md5sum[/etc/services]
1h
30d
0
CHAR
Integrity
POST
-
$1 hash
vfs.file.md5sum[/usr/sbin/sshd]
1h
30d
0
CHAR
Integrity
POST
-
Memory: $1
vm.memory.size[active]
60d
1825d
B
Memory
POST
-
Memory: $1
vm.memory.size[buffers]
60d
1825d
B
Memory
POST
-
Memory: $1
vm.memory.size[cached]
60d
1825d
B
Memory
POST
-
Memory: $1
vm.memory.size[free]
60d
1825d
B
Memory
POST
-
Memory: $1
vm.memory.size[inactive]
60d
1825d
B
Memory
POST
-
Memory: $1
CALCULATED
vm.memory.size[pfree]
60d
1825d
%
100*last("vm.memory.size[free]")/last("vm.memory.size[total]")
Memory
POST
-
Memory: $1
CALCULATED
vm.memory.size[pused]
60d
1825d
%
100*last("vm.memory.size[used]")/last("vm.memory.size[total]")
POST
-
Memory: $1
vm.memory.size[shared]
60d
1825d
B
Memory
POST
-
Memory: $1
vm.memory.size[total]
1h
60d
1825d
B
Memory
POST
-
Memory: $1
vm.memory.size[used]
60d
1825d
B
Memory
POST
-
Memory: $1
vm.memory.size[wired]
60d
1825d
B
Memory
POST
Gateway discovery
pfsense.discovery[gw]
1h
1d
Gateway $2 RTT
pfsense.value[gw_value,{#GATEWAY},delay]
3m
30d
1825d
FLOAT
s
Network
RTRIM
ms
MULTIPLIER
0.001
Gateway $2 Packet Loss
pfsense.value[gw_value,{#GATEWAY},loss]
3m
60d
1825d
FLOAT
%
Network
RTRIM
%
Gateway $2 Status
pfsense.value[gw_value,{#GATEWAY},status]
3m
30d
1825d
Network
{$PFS_MONITOR_GW}=1 and {last()}=5 and {last(#2)}=5
Gateway {#GATEWAY} is down
HIGH
YES
{$PFS_MONITOR_GW}=1 and {last()}=2 and {last(#2)}=2
High Delay on gateway {#GATEWAY}
WARNING
YES
{$PFS_MONITOR_GW}=1 and {last()}=3 and {last(#2)}=3
High packet loss on {#GATEWAY}
WARNING
YES
Gateway $2 RTT Std Deviation
pfsense.value[gw_value,{#GATEWAY},stddev]
3m
30d
1825d
FLOAT
s
Network
RTRIM
ms
MULTIPLIER
0.001
Network interface discovery
pfsense.discovery[interfaces]
1h
{#IFNAME}
@decouverte_interfaces_rzo
A
10d
Inbound trafic on {#IFDESCR} ({#IFNAME})
net.if.in[{#IFNAME},bytes]
45s
1825d
FLOAT
bps
Network
CHANGE_PER_SECOND
MULTIPLIER
8
POST
Errors on inbound trafic for {#IFDESCR} ({#IFNAME})
net.if.in[{#IFNAME},errors]
15m
1825d
FLOAT
erreurs
Network
CHANGE_PER_SECOND
POST
Outbound trafic on {#IFDESCR} ({#IFNAME})
net.if.out[{#IFNAME},bytes]
45s
1825d
FLOAT
bps
Network
CHANGE_PER_SECOND
MULTIPLIER
-8
POST
Errors on outbound trafic for {#IFDESCR} ({#IFNAME})
net.if.out[{#IFNAME},errors]
15m
1825d
FLOAT
erreurs
Network
CHANGE_PER_SECOND
POST
Network: trafic: {#IFDESCR} ({#IFNAME})
1
FILLED_REGION
009900
-
Template_OS_PfSense2
net.if.in[{#IFNAME},bytes]
2
FILLED_REGION
FF6666
-
Template_OS_PfSense2
net.if.out[{#IFNAME},bytes]
3
BOLD_LINE
EE00EE
RIGHT
-
Template_OS_PfSense2
net.if.in[{#IFNAME},errors]
4
BOLD_LINE
EE00EE
RIGHT
-
Template_OS_PfSense2
net.if.out[{#IFNAME},errors]
POST
IPsec Phase 1 Discovery
pfsense.discovery[ipsec_ph1]
2h
IPsec Tunnel {#IKEID} {#NAME} Tunnel Disabled
pfsense.value[ipsec_ph1,{#IKEID},disabled]
1h
60d
1825d
Network
IPsec Tunnel {#IKEID} {#NAME} Phase 1 Status
pfsense.value[ipsec_ph1,{#IKEID},status]
3m
30d
1825d
Network
{Template_OS_PfSense2:pfsense.value[ipsec_ph1,{#IKEID},disabled].last()}<>1 and {Template_OS_PfSense2:pfsense.value[ipsec_ph1,{#IKEID},status].last()}<>1 and {Template_OS_PfSense2:pfsense.value[ipsec_ph1,{#IKEID},status].last(#2)}<>1
IPsec Tunnel {#IKEID} ({#NAME}) Not Connected
WARNING
YES
OpenVPN Client Discovery
pfsense.discovery[openvpn_client]
1h
OpenVPN Client {#NAME} Tunnel Status
pfsense.value[openvpn_clientvalue,{#CLIENT},status]
3m
30d
1825d
Network
{last()}=0 and {last(#2)}=0
OpenVPN Client {#NAME} Tunnel is Down
WARNING
YES
OpenVPN Server Discovery
pfsense.discovery[openvpn_server]
1h
OpenVPN Server {#NAME} Clients Connected
pfsense.value[openvpn_servervalue,{#SERVER},conns]
3m
60d
1825d
Network
OpenVPN Server {#NAME} Tunnel Status
pfsense.value[openvpn_servervalue,{#SERVER},status]
3m
30d
1825d
Network
{last()}=0 and {last(#2)}=0
OpenVPN Server {#NAME} is Down
WARNING
YES
Network: OpenVPN {#NAME} connections
1
GRADIENT_LINE
FFD54F
-
Template_OS_PfSense2
pfsense.value[openvpn_servervalue,{#SERVER},conns]
Services Discovery
pfsense.discovery[services]
1h
{#SERVICE}
^openvpn
NOT_MATCHES_REGEX
A
{#SERVICE}
^iperf
NOT_MATCHES_REGEX
B
Service {#DESCRIPTION} Status
pfsense.value[service_value,{#SERVICE},status]
5m
30d
0
Processus
System
{last()}=0
Service {#DESCRIPTION} is not running
AVERAGE
Filesystem discovery
vfs.fs.discovery
2h
{#FSTYPE}
@decouverte_fs
A
10d
Free space on {#FSNAME}
vfs.fs.size[{#FSNAME},free]
10m
1825d
B
Disks
POST
Used space on {#FSNAME} (%)
vfs.fs.size[{#FSNAME},pused]
10m
1825d
FLOAT
%
Disks
POST
{last(0)}>{$DF_CRITICAL}
RECOVERY_EXPRESSION
{last(0)}<({$DF_WARN}-2)
{#FSNAME} is {ITEM.LASTVALUE1} full
AVERAGE
{last(0)}>{$DF_WARN}
RECOVERY_EXPRESSION
{last(0)}<({$DF_WARN}-2)
{#FSNAME} is {ITEM.LASTVALUE1} full
WARNING
{#FSNAME} is {ITEM.LASTVALUE1} full
{Template_OS_PfSense2:vfs.fs.size[{#FSNAME},pused].last(0)}>{$DF_CRITICAL}
{Template_OS_PfSense2:vfs.fs.size[{#FSNAME},pused].last(0)}<({$DF_WARN}-2)
Used space on {#FSNAME}
vfs.fs.size[{#FSNAME},used]
10m
1825d
B
Disks
POST
POST
{$DF_CRITICAL}
90
{$DF_WARN}
80
{$DNS_NAME_CHECK}
zbx.fws.fr.
{$MAX_FILES}
12328
{$MAX_PROCESSES}
200
{$MAX_RUNNING_PROCESSES}
15
{$MAX_USERS}
5
{$PFS_MONITOR_GW}
1
{$REBOOT_WARN_DAY}
7200
{$REBOOT_WARN_NIGHT}
21600
{$ZBX_UNREACHABLE_TIMEOUT}
900
Network: Connection states
ITEM
Template_OS_PfSense2
pfsense.states.max
1
GRADIENT_LINE
B39DDB
-
Template_OS_PfSense2
pfsense.states.current
System: CPU: Load
1
009900
-
Template_OS_PfSense2
system.cpu.load[,avg1]
2
FF0000
-
Template_OS_PfSense2
system.cpu.load[,avg15]
3
CCCC00
-
Template_OS_PfSense2
system.cpu.load[,avg5]
4
0040FF
RIGHT
-
Template_OS_PfSense2
system.cpu.switches
System: CPU: Usage
STACKED
FIXED
FIXED
FILLED_REGION
DD00DD
-
Template_OS_PfSense2
system.cpu.util[,interrupt,avg1]
1
FILLED_REGION
EEEE00
-
Template_OS_PfSense2
system.cpu.util[,user,avg1]
2
FILLED_REGION
EE0000
-
Template_OS_PfSense2
system.cpu.util[,system,avg1]
3
FILLED_REGION
0000DD
-
Template_OS_PfSense2
system.cpu.util[,nice,avg1]
System: Mbuf usage
STACKED
ITEM
Template_OS_PfSense2
pfsense.mbuf.max
1
81C784
-
Template_OS_PfSense2
pfsense.mbuf.current
2
7986CB
-
Template_OS_PfSense2
pfsense.mbuf.cache
System: Memory
NO
NO
STACKED
0000CC
-
Template_OS_PfSense2
vm.memory.size[used]
1
00BB00
-
Template_OS_PfSense2
vm.memory.size[inactive]
2
FILLED_REGION
99FFFF
-
Template_OS_PfSense2
vm.memory.size[free]
System: Processes
FILLED_REGION
EE0000
-
Template_OS_PfSense2
proc.num[,,run]
1
FILLED_REGION
FFFF33
-
Template_OS_PfSense2
proc.num[]
System: Uptime
FILLED_REGION
FF0000
-
Template_OS_PfSense2
system.uptime
Service state
0
Down
1
Up