add eventhandler override

Sven Nierlein sven at consol.de
Tue Aug 17 16:59:35 CEST 2010


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".

Regards,
 Sven
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-use_return_values_from_eventhandler_broker.patch
Type: text/x-patch
Size: 10455 bytes
Desc: not available
URL: <https://www.monitoring-lists.org/archive/developers/attachments/20100817/88eac157/attachment.bin>
-------------- next part --------------
------------------------------------------------------------------------------
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 
-------------- next part --------------
_______________________________________________
Nagios-devel mailing list
Nagios-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-devel


More information about the Developers mailing list