Does anyone have an example of an Action script that will automatically fire to fix a problem when an alert is generated? I can't seem to get them to run after a problem happens.
Ad Widget
Collapse
Fix it scripts
Collapse
X
-
For Linux (I don't have a working windows example)
The action is:
{HOSTNAME}:sudo /usr/local/iprint/bin/zabbix-restart.sh
The "magic" is that the zabbix user on {HOSTNAME} must have sudo access to run this script. The agent on {HOSTNAME} must allow remote commands and the zabbix server must be able to contact the agent.
You can test that by tweaking the zabbix userid on that host to be able to get a login shell, then you can manually test the sudo. -
Comment
Comment