Re: [Nagios-users] obsessing and event handlers

2007-12-12 Thread mark redding
Hi all,

On 29/11/2007, mark redding [EMAIL PROTECTED] wrote:
 Hi all,

 Can anyone here tell me where I'm going wrong in my attempts to
 correctly setup a slave nagios server.

 ...

 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.

It seems that when I restarted nagios using the root account then the
event handlers would not fire (although the process itself became
nagios), but was fixed by ensuring that the restart took place using
the nagios account itself (achieved using su - nagios -C ...)

Just posting this in case it catches any one else out.

-- 
bright blessings,
Mark

-
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Nagios-users mailing list
Nagios-users@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


[Nagios-users] obsessing and event handlers

2007-11-29 Thread mark redding
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@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