Ad Widget

Collapse

Start client zabbix agent from server

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

    #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
    • 4807

    #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
      • 14

      #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:	14
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:	11
Size:	34.7 KB
ID:	510310
      This video may be useful to you https://www.youtube.com/watch?v=zgxrqKvoL0w

      Comment

      • jrowe
        Junior Member
        • Dec 2025
        • 1

        #4
        Originally posted by guntis_liepins
        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:	14
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:	11
Size:	34.7 KB
ID:	510310
        This video may be useful to you https://www.youtube.com/watch?v=zgxrqKvoL0w
        This Tells me how to ssh into the client an execute a command. I have a script in the server external script folder that I want to run. I am not ssh'ing into my server to run a local script. Where is a browse button to point to the script I want to use? Why is there an external scripts folder with no actions to use it?

        Comment

        Working...