Good morning,
I am trying to monitor IPSEC Tunnel via SNMP get on a fortigate. Zabbix does an SNMP GET every 1 minute, if the value is 1 tunnel is down, if the value is 2 tunnel is UP.
My goal is to create a problem only if the last 5 values are at 1 (to avoid false positive). I have tried multiple things and searched multiple posts but it doesn't seem to work for me. Here is the configuration I've already tried :
min(/FIREWALLS-FORTIGATE-VPN/fgVpnTunEntStatus[{#SNMPINDEX}],#5)=1 : For some reason, this create a problem instantly when a 1 is received
last(/FIREWALLS-FORTIGATE-VPN/fgVpnTunEntStatus[{#SNMPINDEX}],#5)=1 : Doesn't always work, I've read the documentation about this function but I do not fully understand what it does.
min(/FIREWALLS-FORTIGATE-VPN/fgVpnTunEntStatus[{#SNMPINDEX}],#5:now-6m)=1 : I thought this meant trigger only if 5 data is 1 in a 6min intervale but even if I only receive one this opens a problem but 6 minutes after receiving it. I've tried the same thing with the last function.
I've seen some trigger expression in the forums like these posts :
https://www.zabbix.com/forum/zabbix-...values-trigger
https://www.zabbix.com/forum/zabbix-...are-equal-to-1
But these posts are old and the trigger are not written in the same way as in 6.x it seems.
I am new to zabbix and still trying to understand some of the features, any help/documentation would be much appreciated !
I am using Discovery item/trigger and zabbix 6.0.12
Wish you all a happy new year!
I am trying to monitor IPSEC Tunnel via SNMP get on a fortigate. Zabbix does an SNMP GET every 1 minute, if the value is 1 tunnel is down, if the value is 2 tunnel is UP.
My goal is to create a problem only if the last 5 values are at 1 (to avoid false positive). I have tried multiple things and searched multiple posts but it doesn't seem to work for me. Here is the configuration I've already tried :
min(/FIREWALLS-FORTIGATE-VPN/fgVpnTunEntStatus[{#SNMPINDEX}],#5)=1 : For some reason, this create a problem instantly when a 1 is received
last(/FIREWALLS-FORTIGATE-VPN/fgVpnTunEntStatus[{#SNMPINDEX}],#5)=1 : Doesn't always work, I've read the documentation about this function but I do not fully understand what it does.
min(/FIREWALLS-FORTIGATE-VPN/fgVpnTunEntStatus[{#SNMPINDEX}],#5:now-6m)=1 : I thought this meant trigger only if 5 data is 1 in a 6min intervale but even if I only receive one this opens a problem but 6 minutes after receiving it. I've tried the same thing with the last function.
I've seen some trigger expression in the forums like these posts :
https://www.zabbix.com/forum/zabbix-...values-trigger
https://www.zabbix.com/forum/zabbix-...are-equal-to-1
But these posts are old and the trigger are not written in the same way as in 6.x it seems.
I am new to zabbix and still trying to understand some of the features, any help/documentation would be much appreciated !
I am using Discovery item/trigger and zabbix 6.0.12
Wish you all a happy new year!
Comment