[Nagiosplug-devel] Solaris problems (check_procs resolution in CVS)
ton.voon at altinity.com
Tue Mar 6 18:36:38 CET 2007
On 8 Dec 2006, at 19:16, bobi at netshel.net wrote:
> Apparently nothing is wrong with "/usr/ucb/ps -uaxwww" except my
> of it...
> Assuming that it exists and works the same way on Solaris 9 and
> upwards, I
> vote that pst3 get removed from the distro ASAP and the ps string
> in the
> configration for Solaris be replaced with "/usr/ucb/ps -uaxwww"
I have only just got round to this as there have been lots of emails
recently about check_procs not working satisfactorily on Solaris.
On my 32 bit Solaris 9 server, I'm using the ps command /usr/ucb/ps -
alxwwn. The reason is that -l gives us the PPID field, which is not
available otherwise, and -n gives us the numeric userid, as on other
ps commands. According to the docs, -ww is sufficient for long output
If /usr/ucb/ps is not available, ./configure will drop down to using
the previous ps command spec (with the command argument limitations).
The only issue seems to be that I cannot get the procprog variable to
be set because the ps command does not output the command name field
(command arguments are okay). I guess we could add code into
check_procs to calculate procprog based on procargs, but that's not
I haven't removed pst3 completely from the distribution, because if
this doesn't work out, then maybe some more time devoted to pst3 in
64 bit mode would be beneficial.
The new ps detection is in CVS now. If you are interested in Solaris
functionality, I'd appreciate any feedback.
T: +44 (0)870 787 9243
F: +44 (0)845 280 1725
More information about the Devel