Execute Reboot on satellite

Hi,

We are having a bunch of satellite at some “client” location. We are using “watchdog” to reboot them in case of hard failure… BUT…

Is there a way in icinga to execute a reboot by itself on the satellite if one check failed for 5 mins ?

HI,

it is a little bit difficult that if the icinga daemon dies on the satellite the master can trigger to reboot. You wrote you already tested the watchdog function. I think you mean e.g. systemctl.

You could do a workarround:

  1. the master notice - e.g. with the cluster check - the connection to the satellite is broken.
  2. icinga starts a script using the Eventcommand-Function.
  3. The Script (e.g. Bash) is connection to the satellite (e.g. using ssh) and restarts remote the daemon
2 Likes