[Nagiosplug-help] Configuring check_procs to use /bin/ps on Solaris
Allan Black
Allan.Black at btconnect.com
Fri Feb 2 12:29:29 CET 2007
Like a few other users on this list, I've been forced to use
/bin/ps instead of pst3 (in my case, I've just changed from a
32-bit kernel to a 64, but I can't get pst3 to compile/work
in 64-bit mode).
I reckoned the best way to do it was to make /bin/ps do approx.
the same as pst3, and then use the same values for the format,
column count and varlist. So here's what I came up with:
with-ps-command="/bin/ps -e -o s,uid,ppid,vsz,rss,pcpu,fname,args"
with-ps-format="%s %d %d %d %d %f %s %n"
with-ps-cols=8
with-ps-varlist="procstat,&procuid,&procppid,&procvsz,&procrss,&procpcpu,procprog,&pos"
That works on Solaris 10 (x86 update 2, a.k.a. 06/06), Nagios 2.5
and nagios-plugins-HEAD-200610041152 (ironically enough, I only
downloaded a HEAD tarball instead of the stable one at the time,
because I needed it to get pst3 :-)
Anyway, hope this helps,
Allan
More information about the Help
mailing list