> -----Original Message----- > From: [EMAIL PROTECTED] [mailto:nagios-users- > [EMAIL PROTECTED] On Behalf Of Marcel Mitsuto Fucatu Sugano > Sent: Thursday, August 10, 2006 3:23 PM > To: Patrick Morris > Cc: nagios-users@lists.sourceforge.net > Subject: Re: [Nagios-users] nagios.cmd write order (cronological?) > > On Wed, 2006-08-09 at 15:56 -0700, Patrick Morris wrote: > > On Wed, 09 Aug 2006, Marcel Mitsuto Fucatu Sugano wrote: > > > > > Hi, > > > > > > Nagios 2.5, SuSE9.3. > > > Syslog-ng 1.6.8. > > > > > > I am configuring some passive checks to be transported by syslog-ng. > > > > > > So i've configured syslog to write directly to nagios.cmd. Everything > > > working fine, but as we are receiving check results from diferent > > > distributed nagios servers, I wonder if whether or not msgs written at > > > nagios.cmd has to be cronological. I mean, if some distributed server > > > lost the synchronization with ntp, and the epoch time of one msg gets > > > written to the nagios pipe with a timestamp lower than the one before > > > that, will Nagios drop the delayed check result? > > > > > > Thanks for any comments on this matter. > > > > Timestamps are important, but the order isn't. > > > > By observation, it shows that timestamp and arrival (written) order does > matter! Does anyone else knows anything about concurrent writes to
Are you sure about that? My reading of commands.c (ver 2.3) is that the timestamp (entry_time) is used for logging/debugging purposes only. This is in line with my past experience. > matter! Does anyone else knows anything about concurrent writes to > nagios.cmd? Syslog-ng and nsca are writing to nagios.cmd pipe, but nsca > is configured to append mode. Not really but... I'm surprised that using append mode for nsca works. That was originally used because the external command file used to be a real file, not a pipe. Since Netsaint 0.0.7 that functionality shouldn't be used for Nagios' external command functions. Could it be that your submissions to nagios.cmd are clobbering each other? Are they all atomic writes under the max pipe size for your OS (~512 bytes)? -- Marc ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ 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