about check_procs + openbsd
Julien TOUCHE
touche at sigil.homeunix.net
Mon May 19 12:00:17 CEST 2003
as chris said, i've just view it
same results on 3.2
and a bit confusing on 3.3
bash-2.05b$ /opt/nagios/libexec/check_procs getty -c 6,8
WARNING - 22 processes running
bash-2.05b$ ps ax|grep getty
8097 p3 R+ 0:00.02 grep getty (bash)
3539 C0 Is+ 0:00.05 /usr/libexec/getty Pc ttyC0
14473 C1 Is+ 0:00.04 /usr/libexec/getty Pc ttyC1
21671 C2 Is+ 0:00.05 /usr/libexec/getty Pc ttyC2
21546 C3 Is+ 0:00.05 /usr/libexec/getty Pc ttyC3
18899 C5 Is+ 0:00.04 /usr/libexec/getty Pc ttyC5
bash-2.05b$ /opt/nagios/libexec/check_procs snmpd -c 1,2
WARNING - 22 processes running
bash-2.05b$ ps ax|wc -l
54
plugins are 1.3.0beta3 for me
i check also 1.3.0
bash-2.05b$ ps -weo 'stat comm vsz rss user ppid args'|wc -l
20
bash-2.05b$ /opt/nagios/libexec/check_procs snmpd -c 1,2
WARNING - 19 processes running
small test: on openbsd
bash-2.05b$ ps -weo 'stat comm vsz rss user ppid args'|wc -l
20
bash-2.05b$ ps ax |wc -l
51
bash-2.05b$ ps axe |wc -l
51
bash-2.05b$ ps -axweo 'stat comm vsz rss user ppid args'|wc -l
51
on linux
$ ps -weo 'stat comm vsz rss user ppid args'|wc -l
87
$ ps ax|wc -l
87
$ ps axe|wc -l
87
$ ps -axweo 'stat comm vsz rss user ppid args'|wc -l
87
i think a change is needed for ps args on openbsd (need 'ax') :)
Regards
Julien
-------------------------------------------------------
This SF.net email is sponsored by: If flattening out C++ or Java
code to make your application fit in a relational database is painful,
don't do it! Check out ObjectStore. Now part of Progress Software.
http://www.objectstore.net/sourceforge
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list