about check_procs + openbsd

Voon, Ton Ton.Voon at egg.com
Tue May 20 12:45:39 CEST 2003


Which version of check_procs are you using? 

If you run check_procs -v, it will tell you the ps command used

Check configure.in for the syntax checks that it is trying to find. A diff
-u patch will be most appreciated!

Ton

> -----Original Message-----
> From:	Julien TOUCHE [SMTP:touche at sigil.homeunix.net]
> Sent:	Monday, May 19, 2003 11:00 AM
> To:	nagios-users at lists.sourceforge.net
> Subject:	[Nagios-users] about check_procs + openbsd
> 
> 
> 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 private and confidential e-mail has been sent to you by Egg.
The Egg group of companies includes Egg Banking plc
(registered no. 2999842), Egg Financial Products Ltd (registered
no. 3319027) and Egg Investments Ltd (registered no. 3403963) which
carries out investment business on behalf of Egg and is regulated
by the Financial Services Authority.  
Registered in England and Wales. Registered offices: 1 Waterhouse Square,
138-142 Holborn, London EC1N 2NA.
If you are not the intended recipient of this e-mail and have
received it in error, please notify the sender by replying with
'received in error' as the subject and then delete it from your
mailbox.



-------------------------------------------------------
This SF.net email is sponsored by: ObjectStore.
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