Ad Widget

Collapse

Re-starting the agents

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mudbone333
    Junior Member
    • Sep 2011
    • 7

    #1

    Re-starting the agents

    I am new to Zabbix, so I am pretty sure that this question has already been answered.
    Sometimes we have scheduled shutdowns or the server may crash for whatever reason, and of course the zabbix agents would stop. And I won't find out until I log into Zabbix and I see some servers are not monitored. So I would have to log into the servers and res-tart zabbix. This can be very tedious with a lot of scheduled shutdowns or crashes. I know that I probaly would have to put in a script in /etc/init.d to start the zabbix agents once the server comes back up, but I was wondering is that the only way to re-start zabbix, or is there a script already written for this, or is there another way to do it? Is there a parameter that I can use to get that done? It doesn't matter to me how it gets done and long as I can get the zabbix agents running again without having to log into all of the servers one by one.

    Thanks
  • guesommer
    Junior Member
    • Feb 2009
    • 4

    #2
    There is service watchdog packages existing for linux, you could use to check and restart the zabbix service

    Originally posted by stevewipro
    I am new to Zabbix, so I am pretty sure that this question has already been answered.
    Sometimes we have scheduled shutdowns or the server may crash for whatever reason, and of course the zabbix agents would stop. And I won't find out until I log into Zabbix and I see some servers are not monitored. So I would have to log into the servers and res-tart zabbix. This can be very tedious with a lot of scheduled shutdowns or crashes. I know that I probaly would have to put in a script in /etc/init.d to start the zabbix agents once the server comes back up, but I was wondering is that the only way to re-start zabbix, or is there a script already written for this, or is there another way to do it? Is there a parameter that I can use to get that done? It doesn't matter to me how it gets done and long as I can get the zabbix agents running again without having to log into all of the servers one by one.

    Thanks

    Comment

    • richlv
      Senior Member
      Zabbix Certified Trainer
      Zabbix Certified SpecialistZabbix Certified Professional
      • Oct 2005
      • 3112

      #3
      sounds like here a basic initscript would solve the problem. you can probably take an existing one from packages for your distribution and slightly adapt it
      Zabbix 3.0 Network Monitoring book

      Comment

      • mezi
        Junior Member
        • Sep 2013
        • 2

        #4
        scheduled scripts

        I have seen the mention of this schedule script here https://www.zabbix.com/documentation...tion/appliance

        However, my instllation does not have this one, Actually, the zabbix dir: /var/lib/zabbix does not have any bin directory.

        Comment

        Working...