Re: [Nagios-devel] OSX processor usage

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Guest

Re: [Nagios-devel] OSX processor usage

Post by Guest »

saggau wrote:
> Hello folks. Long - time Nagios user. I hope this is the right place
> to report a bug + a fix.
>
> I ran into a (possible) bug in OS X 10.5.4, which I tracked-down to
> poll() never timing out in the cmd file worker thread on that
> platform. It looks like poll() always returns 1, whether there is
> data on the pipe or not. A quick fix that shouldn't break Nagios on
> other platforms and which doesn't require any configure checking of
> poll() is to manually pause if poll() returns 1 with an empty pipe.
>
> Much much longer description here:
>
> http://www.jonathansaggau.com/blog/2008 ... trace.html
>
> Cheers,
> Jonathan Saggau

Nice article! I implemented the patch you suggested.

William's select() patch was also an option, but I seem to remember
there being a bug under Solaris, and/or different Linux distros that
caused the switch to poll().


- Ethan Galstad





This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
Locked