Ad Widget

Collapse

Start client zabbix agent from server

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jrowe
    Junior Member
    • Dec 2025
    • 0

    #1

    Start client zabbix agent from server

    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.
  • cyber
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2006
    • 4806

    #2
    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.

    Comment

    • guntis_liepins
      Junior Member
      • Oct 2025
      • 12

      #3
      Zabbix uses "actions" which act when trigger is fired.
      To execute script - you must first create Action Operation as SSH under Alerts->Scripts
      Click image for larger version

Name:	image.png
Views:	8
Size:	27.0 KB
ID:	510309
      Then when you will create action you can choose to execute this Action Operation instead of Sending message
      Click image for larger version

Name:	image.png
Views:	7
Size:	34.7 KB
ID:	510310
      This video may be useful to you https://www.youtube.com/watch?v=zgxrqKvoL0w

      Comment

      Working...