We have problems with client pc's saying the zabbix agent is running but the zabbix server can't see it. I have created a bash script to ssh in from the server to restart the client agent and saved it to the external script folder. How do I tell zabbix to run that script when it detects the agent is down/bugged? Zabbix has an external script folder, I keep seeing that zabbix can run external scripts...but, how? Is there a simple way to have it run the script on an alert trigger? I see ways to set up alert triggers but it has me create a script, not use an external script.
Ad Widget
Collapse
Start client zabbix agent from server
Collapse
X
-
external scripts are for specific item type "external check". https://www.zabbix.com/documentation...types/external
But yu can easily use your as "alertscript"... Define a media type and use it in action. -
Zabbix uses "actions" which act when trigger is fired.
To execute script - you must first create Action Operation as SSH under Alerts->Scripts
Then when you will create action you can choose to execute this Action Operation instead of Sending message
This video may be useful to you https://www.youtube.com/watch?v=zgxrqKvoL0wComment
Comment