On 2.2.2, Ubuntu 12.04 LTS (Precise)...
I have an external check to monitor that a certain file is getting updated. I want this to be run periodically on each of the hosts for which this is important.
Did the Admin -> Scripts thing, created a script called check_foo.pl (which is the name of the actual script). "Execute On" is set to "Agent"; the "Commands" block just has /usr/lib/zabbix/externalscripts/check_foo.pl and I have made that dir and copied the file to there and set mode to executable on all desired agent-nodes.
We have a template for this, called "Template foo check" and in it an item called "foo is active"... its key says check_foo.pl["10","/path/to/file"]
It seems to always run on the zabbix server, and say "File foo doesn't exist" which is what the script says (and indeed the file doesn't exist on the zabbix server host), not on the agented hosts, which is what we want.
Can someone please point me to the bit in the documentation I'm missing here? Or tell me where the disconnect is?
Thanks
I have an external check to monitor that a certain file is getting updated. I want this to be run periodically on each of the hosts for which this is important.
Did the Admin -> Scripts thing, created a script called check_foo.pl (which is the name of the actual script). "Execute On" is set to "Agent"; the "Commands" block just has /usr/lib/zabbix/externalscripts/check_foo.pl and I have made that dir and copied the file to there and set mode to executable on all desired agent-nodes.
We have a template for this, called "Template foo check" and in it an item called "foo is active"... its key says check_foo.pl["10","/path/to/file"]
It seems to always run on the zabbix server, and say "File foo doesn't exist" which is what the script says (and indeed the file doesn't exist on the zabbix server host), not on the agented hosts, which is what we want.
Can someone please point me to the bit in the documentation I'm missing here? Or tell me where the disconnect is?
Thanks
Comment