[Nagiosplug-devel] BUG: check_proc doeas not work under FreeB SD 4

Tomasz Pilat poncki.lists at axelspringer.com.pl
Mon Dec 27 12:46:01 CET 2004


Ton,

Tuesday, December 21, 2004, 3:29:37 PM, you wrote:

> This looks promising (with the proviso that only the first 16 chars of the
> command are kept). Can I have a head -5 of:

> ps -axwo 'stat uid ppid vsz rss pcpu ucomm command'

> On all the FreeBSD and OpenBSD that you may have.

FreeBSD 4.10-STABLE #19: Fri Nov 19 16:59:02 CET 2004

STAT   UID  PPID   VSZ  RSS %CPU UCOMM            COMMAND
DLs      0     0     0    0  0,0 swapper           (swapper)
ILs      0     0   556   76  0,0 init             /sbin/init --
DL       0     0     0    0  0,0 taskqueue         (taskqueue)
DL       0     0     0    0  0,0 pagedaemon        (pagedaemon)

FreeBSD 4.11-PRERELEASE #602: Fri Dec 10 10:53:36 CET 2004

STAT   UID  PPID   VSZ  RSS %CPU UCOMM            COMMAND
DLs      0     0     0    0  0.0 swapper           (swapper)
ILs      0     0   552  328  0.0 init             /sbin/init --
DL       0     0     0    0  0.0 taskqueue         (taskqueue)
DL       0     0     0    0  0.0 pagedaemon        (pagedaemon)

FreeBSD 5.2.1-RELEASE #0: Mon Feb 23 20:45:55 GMT 2004

STAT   UID  PPID   VSZ  RSS %CPU UCOMM               COMMAND
DLs      0     0     0    4  0.0 swapper              (swapper)
ILs      0     0   760   84  0.0 init                /sbin/init --
DL       0     0     0   12  0.0 g_event              (g_event)
DL       0     0     0   12  0.0 g_up                 (g_up)

same, with sysctl security.bsd.see_other_uids=0

STAT   UID  PPID   VSZ  RSS %CPU UCOMM               COMMAND
S     1000 12388  5516 2404  0.4 sshd                sshd: poncki at ttyp0 (sshd)
Ss    1000 12390  1336  920  1.1 bash                -bash (bash)
R+    1000 12391  1348  752  0.0 ps                  /bin/ps -axwo stat uid ppid vsz rss pcpu ucomm command
S+    1000 12391  1204  596  0.0 head                head -5

These are provided by other people:

FreeBSD 5.3-RELEASE-p1 #16: Sun Nov 28 17:13:14 CET 2004

STAT   UID  PPID   VSZ  RSS %CPU UCOMM               COMMAND
Is    1001   656  2776  724  0,0 sh                  /bin/sh -c xmms
R     1001   737 28596 15864 24,4 xmms                xmms
R     1001   737 28596 15864 24,4 xmms                xmms
I     1001     1  5064 1332  0,0 gconfd-2            /usr/X11R6/libexec/gconfd-2 13
Is    1001   656  2776  788  0,0 sh                  /bin/sh -c Eterm

(FreeBSD fork) DragonFly 1.1-CURRENT #1: Fri Dec 17 17:51:59 CET 2004

STAT   UID  PPID   VSZ  RSS %CPU UCOMM            COMMAND
IL       0     0     0    0  0,0 ithread 4         (ithread 4)
IL       0     0     0    0  0,0 syncer            (syncer)
IL       0     0     0    0  0,0 bufdaemon         (bufdaemon)
IL       0     0     0    0  0,0 vmdaemon          (vmdaemon)



... i do not use OpenBSD. ;-)

Ponc





More information about the Devel mailing list