[Nagiosplug-devel] AIX 5.3 np 1.4.13 check_procs
Kyle O'Donnell
kyleodonnell at gmail.com
Wed Mar 4 00:57:03 CET 2009
I'll send the output when I get back to the office tomorrow. I have also
asked our AIX guru about the general availability of /usr/sysv/bin/ps
binary. When you read the man page both versions of ps are covered so I
imagine it is part of the base OS, but I will confirm.
I have still yet to find the proper syntax of /usr/bin/ps. It seems
printing all the required fields in one command is not possible (stat, uid,
pid, ppid, vsz, rss, pcpu, etime, comm, args).
I'd love to donate to tinderbox, but I don't think my employer would allow
it, that and our network is fairly restricted.
Our shop has pretty much everything (aix 5.2 5.3 6.1 sol 8,9,10, hpux
10.20,11.00, 11.11, 11.23, linux*), so if there is anything I can do to
assist, let me know.
FYI
I just tested the exact same ps options on solaris 8 (using /usr/bin/ps
instead) and it fixed my etime issue. I believe my currently compiled
check_procs on solaris10 is working, but I think i modified the ps command
during compile time as well (this was a build against 1.4.11)
I started trying to figure out pst3 but it appears that /usr/ucb/ps does not
behave the same as /usr/bin/ps and some of the fields are named
differently. I need to get a better understand of the /proc structure in
solaris.
--kyleo
On Tue, Mar 3, 2009 at 6:21 PM, Ton Voon <ton.voon at opsera.com> wrote:
> 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
>
>
>
>
> ------------------------------------------------------------------------------
> Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco,
> CA
> -OSBC tackles the biggest issue in open source: Open Sourcing the
> Enterprise
> -Strategies to boost innovation and cut costs with open source
> participation
> -Receive a $600 discount off the registration fee with the source code:
> SFAD
> http://p.sf.net/sfu/XcvMzF8H
> _______________________________________________________
> Nagios Plugin Development Mailing List
> Nagiosplug-devel at lists.sourceforge.net
> Unsubscribe at
> https://lists.sourceforge.net/lists/listinfo/nagiosplug-devel
> ::: Please include plugins version (-v) and OS when reporting any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-plugins.org/archive/devel/attachments/20090303/2d17bd06/attachment.html>
More information about the Devel
mailing list