Re: [Nagios-devel] command pipe concatenated messages
Posted: Tue Dec 30, 2003 6:42 am
On Tue, 2003-12-30 at 04:07, Jim Mozley wrote:
> >
> > The only thing I can think of is manually flushing the filehandle. I
> > wouldn't expect that to have an effect since the code that Jim wrote
> > sets $| on the PIPE filehandle, or he used syswrite which should
> > bypass buffering, but if it works with a 2 second sleep, but not
> > without it, it sounds like something isn't getting flushed properly,
> > or maybe some kernel wierdness. The size of the write is far below the
> > block size on linux let alone solaris (4K right?)
> >
> > I'll go into the corner and shut up now.
>
> Please don't, all comments have been useful. I can now replicate the
> problem which is great. I will now try Al's Nagios::Cmd module and see
> if that sorts out the issue, although the test that comes with it for
> checking this issue passes on Solaris.
Please send me anything you can so I can better replicate your problem
and add a test to Nagio::Cmd.
** ** ** PRIVILEGED AND CONFIDENTIAL ** ** **
This email transmission contains privileged and confidential information
intended only for the use of the individual or entity named above. Any
unauthorized review, use, disclosure or distribution is prohibited and
may be a violation of law. If you are not the intended recipient or a
person responsible for delivering this message to an intended recipient,
please delete the email and immediately notify the sender via the email
return address or mailto:[email protected]. Thank you.
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
> >
> > The only thing I can think of is manually flushing the filehandle. I
> > wouldn't expect that to have an effect since the code that Jim wrote
> > sets $| on the PIPE filehandle, or he used syswrite which should
> > bypass buffering, but if it works with a 2 second sleep, but not
> > without it, it sounds like something isn't getting flushed properly,
> > or maybe some kernel wierdness. The size of the write is far below the
> > block size on linux let alone solaris (4K right?)
> >
> > I'll go into the corner and shut up now.
>
> Please don't, all comments have been useful. I can now replicate the
> problem which is great. I will now try Al's Nagios::Cmd module and see
> if that sorts out the issue, although the test that comes with it for
> checking this issue passes on Solaris.
Please send me anything you can so I can better replicate your problem
and add a test to Nagio::Cmd.
** ** ** PRIVILEGED AND CONFIDENTIAL ** ** **
This email transmission contains privileged and confidential information
intended only for the use of the individual or entity named above. Any
unauthorized review, use, disclosure or distribution is prohibited and
may be a violation of law. If you are not the intended recipient or a
person responsible for delivering this message to an intended recipient,
please delete the email and immediately notify the sender via the email
return address or mailto:[email protected]. Thank you.
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]