Every 3 minutes, I am running a smoke test using an external script with the total time, in seconds, as the output. Ubuntu 12.04 server, Zabbix 2.0.4.
I created a trigger with the nodata function, but it doesn't get activated.
Here is an example of running it manually:
zabbix@zabbix:~/externalscripts$ ./smoke -U file:/home/zabbix/externalscripts/portal.html -username "viewer" -password "<somepassword>"
10
zabbix@zabbix:~/externalscripts$
I am able to graph the item, and if the script fails to return data, the graph properly stops showing it.
However, my trigger doesn't get activated:
{SmokeTST:smoke["-U","file:/home/zabbix/externalscripts/{HOST.NAME}.html","-username","viewer","-password","somepasswd"].nodata(240)}=1
Here is an example of a manual run with a bad password:
zabbix@zabbix:~/externalscripts$ ./smoke -U file:/home/zabbix/externalscripts/portal.html -username "viewer" -password "bad password"
zabbix@zabbix:~/externalscripts$
What am I missing?
Thanks in advance.
I created a trigger with the nodata function, but it doesn't get activated.
Here is an example of running it manually:
zabbix@zabbix:~/externalscripts$ ./smoke -U file:/home/zabbix/externalscripts/portal.html -username "viewer" -password "<somepassword>"
10
zabbix@zabbix:~/externalscripts$
I am able to graph the item, and if the script fails to return data, the graph properly stops showing it.
However, my trigger doesn't get activated:
{SmokeTST:smoke["-U","file:/home/zabbix/externalscripts/{HOST.NAME}.html","-username","viewer","-password","somepasswd"].nodata(240)}=1
Here is an example of a manual run with a bad password:
zabbix@zabbix:~/externalscripts$ ./smoke -U file:/home/zabbix/externalscripts/portal.html -username "viewer" -password "bad password"
zabbix@zabbix:~/externalscripts$
What am I missing?
Thanks in advance.