RFC: New IPC Method for Check Results
Ethan Galstad
nagios at nagios.org
Thu Apr 12 06:25:02 CEST 2007
Marantz, Roy wrote:
> Maildir is such a big win over mbox that I also agree that this is a
> good idea. I'd suggest you worry about the writer and read locking.
> Do something that works on many implementations of file systems (i.e.
> avoid flock). I believe that some similar code uses the file mode or
> name to intricate if it is being written. Of course you then need to
> clean up files that are too old which are left over from crashed
> writers. Roy
>[snip]
I'm not even planning with trying to implement file level locking, as it
looks to be poorly implemented (and inconsistent) across different file
systems. The file naming method is the simplest method - write data to
files named 'dXXXXX' and rename them to 'cXXXXX' when done. Nagios will
only process check results from files named 'cXXXXX' and will happily
deleted other files in the queue directory that are older than a certain
threshold.
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