Ad Widget

Collapse

Automatic service restarting

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • v.rusinov
    Junior Member
    • Apr 2008
    • 22

    #1

    Automatic service restarting

    Hi, please advice.

    I have apache template, it have some items and triggers including trigger "apache is down".
    I also have N hosts with this template applied. Sometimes apache fails on this hosts and restart is required (doesn't matter why).

    I can create action on zabbix with conditions
    Trigger value = "PROBLEM" and Trigger = "Apache is down on host0, which runs remote command (host0: /etc/inid.d/apache2 restart). And this would restart apache on host0 when it's failed.

    But is there any way to do one action for all hosts: when apache failed on one of them, restart it on that host.
    How?
  • zalex_ua
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Oct 2009
    • 1286

    #2
    Originally posted by v.rusinov
    But is there any way to do one action for all hosts: when apache failed on one of them, restart it on that host.
    How?
    {HOSTNAME}: /etc/inid.d/apache2 restart

    http://www.zabbix.com/documentation/...remote_actions
    http://www.zabbix.com/documentation/.../config/macros

    Comment

    Working...