Hello everyone! I'm currently using Zabbix 3.2 and I'm loving it so far!
I'm monitoring the operational status of the network interfaces on a Ubuntu 16.04 LTS VM using SNMP v2. When SNMP gives the value of '1' the interface is up and the value '2' indicates that the interface is down.
I'm trying to create a trigger prototype to alert me when a network interface is down for 3 minutes. But I can't seem to get my trigger prototype for the network interface status to work properly. What happens now is that as soon as the network interface is down, the trigger activates.
But what I want is that the trigger only activates when the network interface has been down for 3 minutes. The following trigger expressions I have tried to no avail:
{LLD template:ifOperStatus[{#IFNAME}].last(0)}=2 and {LLD template:ifOperStatus[{#IFNAME}].last(180)}<>1
{LLD template:ifOperStatus[{#IFNAME}].last(0)}=2 and {LLD template:ifOperStatus[{#IFNAME}].nodata(3m)}=1
({LLD template:ifOperStatus[{#IFNAME}].last(0)}=2) and ({LLD template:ifOperStatus[{#IFNAME}].last(3m)}<>1)
{LLD template:ifOperStatus[{#IFNAME}].min(180)}=2
{LLD template:ifOperStatus[{#IFNAME}].max(180)}=2
{LLD template:ifOperStatus[{#IFNAME}].avg(3m)}=2
None of the above expressions yield the result I want. There must be something I have missed, but I don't know what it is.
Can anyone point me in the right direction please? Thanks in advance!
I'm monitoring the operational status of the network interfaces on a Ubuntu 16.04 LTS VM using SNMP v2. When SNMP gives the value of '1' the interface is up and the value '2' indicates that the interface is down.
I'm trying to create a trigger prototype to alert me when a network interface is down for 3 minutes. But I can't seem to get my trigger prototype for the network interface status to work properly. What happens now is that as soon as the network interface is down, the trigger activates.
But what I want is that the trigger only activates when the network interface has been down for 3 minutes. The following trigger expressions I have tried to no avail:
{LLD template:ifOperStatus[{#IFNAME}].last(0)}=2 and {LLD template:ifOperStatus[{#IFNAME}].last(180)}<>1
{LLD template:ifOperStatus[{#IFNAME}].last(0)}=2 and {LLD template:ifOperStatus[{#IFNAME}].nodata(3m)}=1
({LLD template:ifOperStatus[{#IFNAME}].last(0)}=2) and ({LLD template:ifOperStatus[{#IFNAME}].last(3m)}<>1)
{LLD template:ifOperStatus[{#IFNAME}].min(180)}=2
{LLD template:ifOperStatus[{#IFNAME}].max(180)}=2
{LLD template:ifOperStatus[{#IFNAME}].avg(3m)}=2
None of the above expressions yield the result I want. There must be something I have missed, but I don't know what it is.
Can anyone point me in the right direction please? Thanks in advance!
Comment