I am on Zabbix 6.2.4 and have a script that collects the status of interfaces on freebsd (pfsense), which returns a text value of active or inactive (thanks bsd for not having /sys/class/net)
I am trying to build a trigger so any time that the returned text value is NOT active, it triggers. But it appears the trigger expression builder expects to only parse numeric values... an unfortunate limitation.
I saw some stuff online, but its very limited. So far I have tried this:
{last(/host/system.wan.status).str(active)}=0
But zabbix says
How can I compare the last value of the item to a string?
I am trying to build a trigger so any time that the returned text value is NOT active, it triggers. But it appears the trigger expression builder expects to only parse numeric values... an unfortunate limitation.
I saw some stuff online, but its very limited. So far I have tried this:
{last(/host/system.wan.status).str(active)}=0
But zabbix says
- Invalid parameter "/1/expression": incorrect expression starting from "{last(/host/system.wan.status).str(active)}=0".
How can I compare the last value of the item to a string?
Comment