about check_procs + openbsd

Julien TOUCHE touche at sigil.homeunix.net
Wed May 21 12:38:53 CEST 2003



Voon, Ton wrote:
> Julien,
> 
> Thanks for the patch. There is already an OpenBSD specific ps in
> configure.in (line 494), which is a bit baffling. Which version of OpenBSD
> are you using?
> 
test on 3.2 & 3.3
but when i configure, it's the first entry which matched: ps -weo '...', 
not ps -axo

> I'm not happy about updating the first entry, so I will probably add it as a
> new dedicated entry first, but needs commenting!
> 
> Can I have an example ps -axweo 'stat comm vsz rss user ppid args' output
> please? Does it take pcpu as another option?
> 


bash-2.05b$ ps -axweo 'stat comm vsz rss user ppid args' |head -5
  STAT UCOMM              VSZ   RSS USER      PPID COMMAND
Is    init               344    80 root         0 /sbin/init
Is    syslogd            104   236 root         1 
PATH=/sbin:/bin:/usr/sbin:/usr/bin HOME=/ syslogd -a /var/named/dev/log 
-a /var/e
Is    pflogd             368    76 root         1 
PATH=/sbin:/bin:/usr/sbin:/usr/bin HOME=/ pflogd
Is    named             4012  2224 named        1 
PATH=/sbin:/bin:/usr/sbin:/usr/bin HOME=/ named

'e' maybe is not needed (man: '-e      Display the environment as well.'):

bash-2.05b$ ps -axwo 'stat comm vsz rss user ppid args' |head -5
  STAT UCOMM              VSZ   RSS USER      PPID COMMAND
Is    init               344    80 root         0 /sbin/init
Is    syslogd            104   236 root         1 syslogd -a 
/var/named/dev/log -a /var/empty/dev/log
Is    pflogd             368    76 root         1 pflogd
Is    named             4012  2224 named        1 named


pcpu & pmem are supported (alias of %cpu, %mem)

bash-2.05b$ ps -axwo 'stat comm vsz rss user ppid pcpu pmem args' |head -5
  STAT UCOMM              VSZ   RSS USER      PPID %CPU %MEM COMMAND
Is    init               344    80 root         0  0.0  0.4 /sbin/init
Ss    syslogd            104   236 root         1  0.0  1.0 syslogd -a 
/var/named/dev/log -a /var/empty/dev/log
Ss    pflogd             368    76 root         1  0.0  0.3 pflogd
Ss    named             4012  2224 named        1  0.0  9.2 named





-------------------------------------------------------
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