Re: [Nagios-devel] Question about event handler processing

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Guest

Re: [Nagios-devel] Question about event handler processing

Post by Guest »

Horvath Tamas wrote:
> Hi Listmembers!
>
> Now I'm using Nagios 1.x, but I'm going to "upgrade" them to 2.x soon.
>
> I set up global host and service event handlers which increment the content
> of a file. The number in this file is a uniq error ID, which I use in my
> notification scripts.
>
> But I don't know how Nagios runs global event handlers if several
> services/hosts change their status nearly the same time. Does it run them
> serially, or paralell?
>
> It is important for me, because if more than one event handler have to read
> and write to the same file, I can write some locking mechanism.
>
> Do you have any info or idea about this?
>
> I don't speak "C", so please not say: "looking into xxx.c code".
>
> Any help would be appreciate.
>
> Tamas.
>

Hi Tamas -

Event handlers are run in serial. So are notifications, OCSP commands,
etc. The only things that are run in parallel in Nagios 1.x/2.x are
service check commands. Hope that helps.


Ethan Galstad,
Nagios Developer
---
Email: [email protected]
Website: http://www.nagios.org





This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
Locked