Re: [Nagios-devel] add eventhandler override
Posted: Sat Aug 28, 2010 7:47 am
Hi,
On 2010-08-17 16:59, Sven Nierlein wrote:
> 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".
>
Very nice patch, thanks. Since we've talked about the main purpose too,
I'll make sure it reaches next upstream release.
Kind regards,
Michael
--
DI (FH) Michael Friedrich
Vienna University Computer Center
Universitaetsstrasse 7 A-1010 Vienna, Austria
email: [email protected]
phone: +43 1 4277 14359
fax: +43 1 4277 14279
web: http://www.univie.ac.at/zid
Icinga Core& IDOUtils Developer
http://www.icinga.org
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
On 2010-08-17 16:59, Sven Nierlein wrote:
> 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".
>
Very nice patch, thanks. Since we've talked about the main purpose too,
I'll make sure it reaches next upstream release.
Kind regards,
Michael
--
DI (FH) Michael Friedrich
Vienna University Computer Center
Universitaetsstrasse 7 A-1010 Vienna, Austria
email: [email protected]
phone: +43 1 4277 14359
fax: +43 1 4277 14279
web: http://www.univie.ac.at/zid
Icinga Core& IDOUtils Developer
http://www.icinga.org
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]