Question about event handler processing
Ethan Galstad
nagios at nagios.org
Tue Dec 19 20:46:22 CET 2006
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: nagios at nagios.org
Website: http://www.nagios.org
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
More information about the Developers
mailing list