[op5-users] [PATCH] Fix poller node automatic (de)activate ipc message sending.

Andreas Ericsson ae at op5.se
Fri Nov 6 13:07:31 CET 2009


On 11/03/2009 10:42 PM, Sean Millichamp wrote:
> There is support for the daemon to send IPC control messages to
> the module to dynamically enable/disable checks on the NOC for
> hostgroups based on whether the poller associated with that
> hostgroup is connected or not.
>
> Currently, the code doesn't trigger the transition at key
> critical connection events with the poller.  Also, if Nagios
> was restarted without restarting the daemon there is no
> facility to remember the last state sent and to trigger a
> re-notification of the module to (de)activate the checks
> properly.
>
> This patch refactors the support a bit to add tracking of
> the last state sent, trigger the previously unused node
> action function to set the state at all connection events,
> and re-notifies the module via IPC of the last state for
> the hostgroups after each IPC re-connection.
>
> Signed-off-by: Sean Millichamp<sean at bruenor.org>

Applied. Thanks. Will be running some tests over the weekend
and push out the hopefully good result come monday.

-- 
Andreas Ericsson                   andreas.ericsson at op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231

Considering the successes of the wars on alcohol, poverty, drugs and
terror, I think we should give some serious thought to declaring war
on peace.


More information about the op5-users mailing list