ITRS-Group / monitor-merlin

Module for Effortless Redundancy and Loadbalancing In Naemon
https://itrs-group.github.io/monitor-merlin/
GNU General Public License v2.0
22 stars 14 forks source link

Slim poller: Support auto updating #90

Closed jacobbaungard closed 3 years ago

jacobbaungard commented 3 years ago

With this commit, we add support for a merlin node to run a specific script, in case a remote node signals that the cluster configuration is invalid.

To do so, we have a new CTRL command, INVALID_CLUSTER which will be sent when a node connects with incompatible cluster configuration. It will be sent next time a CTRL_ACTIVE was supposed to be sent. The reason for this is that we immediately disconnect from a node, when an incompatible config is seen (i.e before we can manage to send a pkt). However next time a connection attempt is made, the CTRL_INVALUD_CLUSTER packet will be sent instead of a CTRL_ACTIVE pkt as normal.

jacobbaungard commented 3 years ago

Note: build will fail untill https://github.com/ITRS-Group/monitor-merlin/pull/89 is merged and the slim-poller-2.0 branches rebased.