Page 1 of 1
check_procs on Solaris fails sometimes
Posted: Mon Dec 15, 2014 2:13 pm
by jwinkle
On Solaris, check_procs uses pst3 instead of /bin/ps (see
http://nagios-plugins.org/doc/faq/ps-on-solaris.html for background). There's a small bug in pst3 which causes it to NOT report some processes that are at the end of the process table, at least on very busy systems (we noticed this on a CoolThreads T5240 with load averages up to 90).
The bug is that a filehandle is not properly closed. See
http://tracker.nagios.org/view.php?id=658 for the patch.
Re: check_procs on Solaris fails sometimes
Posted: Mon Dec 15, 2014 2:17 pm
by sreinhardt
Considering this is not actually a Core issue, but an issue with plugins, could I ask you to post on our github at:
https://github.com/nagios-plugins/nagios-plugins/issues
Otherwise, I will do my best to remember to check this. You might also check the 2.1 beta branch and see if that resolves any of your issues, instructions can be found here:
http://support.nagios.com/forum/viewtop ... 35&t=30546
Finally, is your patch for internal solaris code, or code included with plugins, I don't recall seeing a pst3.c anywhere in our source.
Re: check_procs on Solaris fails sometimes
Posted: Mon Dec 15, 2014 2:32 pm
by jwinkle
I posted on github at
https://github.com/nagios-plugins/nagio ... /issues/64
pst3.c is code included with plugins:
-rw-r--r-- 1 jwinkle jwinkle 7099 Mar 4 2014 nagios-plugins-2.0.3/plugins-root/pst3.c
Re: check_procs on Solaris fails sometimes
Posted: Mon Dec 15, 2014 3:04 pm
by sreinhardt
Cool thanks! I'll look into adding it to the plugins beta