On 25 Mar 2010, at 22:37, Jon Schulz wrote:
Are there any opsview/nagios variables that force eventhandler
execution to timeout?
event_handler_timeout is the nagios.cfg variable. You can override in
opsview.conf. However be aware that Nagios blocks which waiting for
this timeout.
I have an eventhandler that calls a php script on my opsview machine
that during some failure conditions cause the php script to take a
long time to return (script times out at 60 seconds). After this
script times out I have some logic to read my return value and then
send an alert based off the return code.
When I execute the eventhandler directly as the nagios user
everything works as expected.
If it works on the command line every time, then there's probably
something about your environment that is making it work
(terminal? .profile settings? environment variables?).
When I have opsview trigger it, I see it going into the
eventhandler, it executes the php and then just seems to die
silently. This makes me think I’m hitting a timeout somewhere.
You'll need some debugging around your event handler to find out where
it is hanging.
Ton
_______________________________________________
Opsview-users mailing list
[email protected]
http://lists.opsview.org/lists/listinfo/opsview-users