add eventhandler override
Andreas Ericsson
ae at op5.se
Thu Aug 19 09:32:41 CEST 2010
On 08/17/2010 04:59 PM, Sven Nierlein wrote:
> Hi,
>
> Currently eventhandlers are executed in the main thread of nagios and block the core until the eventhandler is finished.
> Attached is a patch, which makes it possible for eventhandling neb modules to cancel/override the execution of eventhandlers.
> This is currently only possible with service and host checks. This patch would allow neb modules to stack eventhandlers on
> external queues or even distribute execution of eventhandler.
> This patch should not break the behavior of current neb modules, because their return value is currently ignored and
> execution of eventhandler will only be canceled on returning "NEBERROR_CALLBACKOVERRIDE".
>
Excellent patch. Thanks :)
I needed this for Merlin anyways, and now you saved me a days work. Is it
ok if I forge your Signed-off-by: line for the scm? I think some minor
mangling of the email text will make it usable as a commit message, so
I'll use that.
--
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.
------------------------------------------------------------------------------
This SF.net email is sponsored by
Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev
More information about the Developers
mailing list