[Nagiosplug-devel] AIX 5.3 np 1.4.13 check_procs
Kyle O'Donnell
kyleodonnell at gmail.com
Tue Mar 3 21:09:52 CET 2009
Hi,
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.
More information about the Devel
mailing list