[Nagiosplug-help] Configuring check_procs to use /bin/ps on Solaris

Ton Voon tonvoon at mac.com
Fri Feb 2 14:47:37 CET 2007


Allan,

The last suggestion was to use the xpg4 version of ps because this  
gives us arguments over (I think) 32 chars. If you can get me a  
sample output with the ps command to invoke, I'll add that to the  
configure script.

Ton

On 2 Feb 2007, at 11:29, Allan Black wrote:

> 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,procp 
> rog,&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,
>





More information about the Help mailing list