I have a script that checks a number of processes and will return a 0 when all is ok and 1 when all is not ok, it works fine with
zabbix_get -s xxxxxxxxxxxxxxx -p 10050 -k system.run["/etc/zabbix/scripts/roro.sh"]
1
But the trigger does not seem to work, as far as I can understand, is that the trigger will compare the value that it has in the DB with the value that comes in and will trigger is there is a diff? My trigger is defined as
system.run["/etc/zabbix/scripts/roro.sh"].last(0)}#0, so if the output of the script is not equal to zero, it should trigger? It does, but then when the scripts runs again, when the value in DB is 1 and the next value is 1, the alarm clears. Can anyone assist? Please
zabbix_get -s xxxxxxxxxxxxxxx -p 10050 -k system.run["/etc/zabbix/scripts/roro.sh"]
1
But the trigger does not seem to work, as far as I can understand, is that the trigger will compare the value that it has in the DB with the value that comes in and will trigger is there is a diff? My trigger is defined as
system.run["/etc/zabbix/scripts/roro.sh"].last(0)}#0, so if the output of the script is not equal to zero, it should trigger? It does, but then when the scripts runs again, when the value in DB is 1 and the next value is 1, the alarm clears. Can anyone assist? Please

Comment