obsessing and event handlers
mark redding
mwjredding at gmail.com
Thu Nov 29 15:25:59 CET 2007
Hi all,
Can anyone here tell me where I'm going wrong in my attempts to
correctly setup a slave nagios server.
What I have is as follows :-
1 master nagios host (running FreeBSD 6.2). This host executes active
checks some of which trigger event handlers (ie. to restart web
servers, etc... the usual stuff).
1 slave nagios host (running FreeBSD 5.5). This host rsyncs the nagios
configuration files from the master, and performs the check_nagios
plugin to determine if the master is running. If it is not, then it
takes over active checks.
The above has been setup using the documentation accompanying the
nagios installation and has v 2.10 installed.
Yesterday I tried to get the slave to receive service check results
from the master by running the nsca daemon on the slave and adding
commands to enable send_nsca on the master to transmit results to the
slave. To achieve this I forced the master to obsess over services and
this all worked correctly.
However, when I checked the system today I have found that although an
event handler should have been executed overnight, it did NOT get
executed.
The only way I've been able to get the master to actually run the
event handlers as needed has been to disable obsessing on the master -
hence I no longer have the slave passively receiving service check
results.
I've sort of worked round this by enabling a global event handler on
the master which calls the send_nsca command, so at the moment the
slave is passively gettings the changes of state to services (but, as
the http://nagios.sourceforge.net/docs/2_0/distributed.html page says,
"We could use event handlers to report changes in the state of a
service, but that just doesn't cut it.") and the master is happily
executing event handlers as needed.
Anyone else had this problem with event handlers when obsessing is
enabled ? And does anyone have this working correctly ?
thanks,
Mark
-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell. From the desktop to the data center, Linux is going
mainstream. Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list