> On 29 Nov 2007, at 08:53, Giles Coochey wrote: > > > Is anyone using Francois Meehan's snmptraphandling.py script? > > > > There's a part of the script where it opens the Nagios.cmd file. > > I'm not > > a python coder, but it appears to me that it writes to the file > > with 'w' > > which would overwrite any pending commands that Nagios has not yet > > processed: > > > > nagios.cmd is a pipe, not an ordinary file and the contents cannot be > overwritten as such - whatever gets written into the pipe will be > read out of the pipe by the controlling binary in the same order. > > If you cat the pipe then the contents will be lost to nagios, as when > items are read from the pipe they are automatically removed from it. > > Pipes have the first letter as a 'p' on 'ls -l'. >
Thanks Duncan, so it's a FIFO. So now I need to find out why I'm losing events along the way :-( ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null