Re: [Nagios-devel] command pipe concatenated messages
Posted: Tue Dec 30, 2003 1:07 am
>
> 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.
Jim
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.
Jim
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]