[Nagiosplug-devel] AIX 5.3 np 1.4.13 check_procs

Ton Voon ton.voon at opsera.com
Wed Mar 4 00:21:13 CET 2009


Hi Kyle,

On 3 Mar 2009, at 20:09, Kyle O'Donnell wrote:

> It appears the the default ps command for AIX does not include the rss
> and etime output.  I have not been able to formulate a proper
> /usr/bin/ps command to obtain all of the required ps fields for check
> procs.  However, I have been able to use /usr/sysv/bin/ps which can be
> used in the following way:
>
> --with-ps-command=/usr/sysv/bin/ps -eo 's uid pid ppid vsz rss pcpu
> etime comm args' --with-ps-format=%s %d %d %d %d %d %f %s %s %n
> --with-ps-cols=10
> --with-ps- 
> varlist 
> = 
> procstat 
> ,&procuid 
> ,&procpid 
> ,&procppid,&procvsz,&procrss,&procpcpu,procetime,procprog,&pos
>
> Here is the default compiled check_procs
> /opt/nagios/libexec/check_procs -w 1 -c 1 -m RSS -C init -vv
> CMD: /usr/bin/ps -eo 'stat uid pid ppid vsz pcpu comm args'
> RSS OK: 1 process with command name 'init'
>
> /opt/nagios/libexec/check_procs -w 420 -c 420 -m RSS -C init -vv
> CMD: /usr/bin/ps -eo 'stat uid pid ppid vsz pcpu comm args'
> RSS OK: 1 process with command name 'init'
>
>
> Here is the one I compiled with the options above:
> ./plugins/check_procs -w 1 -c 1 -m RSS -C init -vv
> CMD: /usr/sysv/bin/ps -eo 's uid pid ppid vsz rss pcpu etime comm  
> args'
> Matched: uid=0 vsz=636 rss=420 pid=1 ppid=0 pcpu=0.00 stat=A
> etime=209-02:58:19 prog=init args=/etc/init
> RSS CRITICAL: 1 crit, 0 warn out of 1 process with command name  
> 'init' [init]
>
> ./plugins/check_procs -w 420 -c 420 -m RSS -C init -vv
> CMD: /usr/sysv/bin/ps -eo 's uid pid ppid vsz rss pcpu etime comm  
> args'
> Matched: uid=0 vsz=636 rss=420 pid=1 ppid=0 pcpu=0.00 stat=A
> etime=209-03:00:03 prog=init args=/etc/init
> RSS OK: 1 process with command name 'init'
>
>
> I'll continue working on the /usr/bin/ps syntax, but here is a work  
> around.

That's an interesting workaround.

Can you send me a complete ps output for that sysv ps (with any  
sensitive data scrubbed) as I want to create a test case for this.

I'm always a little bit wary of putting changes to the configure  
script for the ps syntax checking, especially if we can't see the  
impact it has made on other OSes.

Also, would you be interested in donating a tinderbox build server: http://tinderbox.opsera.com/nagiosplug/status.html 
. This helps us see what is building and what is failing on your  
favourite OS. Instructions here: http://nagiosplugins.opsera.com/tinderbox

Ton






More information about the Devel mailing list