[Nagiosplug-help] Continuing check_procs bugs?

Ben Whaley bwhaley at costrack.com
Fri Dec 5 09:34:01 CET 2003


I am attempting to check if a certain number of processes
with a particular argument are running on a box. When
checking with ps, it reports correctly but when checking
with check_procs it does not. Consider the following:


(marcopolo:nrpe)[10:25am]%./check_procs -vv -w 1: -c 1: -a
cshttpd
/usr/ucb/ps -laxnwww
Not parseable: 19     0     0     0  0  96  0    0    0
T ?         0:00 sched
Not parseable:  8     0   244     1  0  58 201424013064
30008a44d2a S ?        25:23 /usr/local/stunnel/sbin/stunnel
/usr/local/stunnel/stunnel.conf.server
Not parseable:  8 43383 17836     1  0  59 1811392 7360
? S ?         0:04 /calendar/SUNWics5/cal/bin/csnotifyd
Not parseable:  8 43383 17840     1  0  59 182969615312
3000be3e432 S ?         1:24 /calendar/SUNWics5/cal/bin/csadmind
CRITICAL - 0 processes running with args cshttpd

As you can see, check_procs reports 0 of these processes
running, in addition to some "Not parseable processes." 

When using ps instead:

(xxxx:nrpe)[10:30am]%/usr/ucb/ps -laxnwww | grep -v grep |
grep cshttpd
 8 43383 17844     1  0  59 1810760089640 30002c8f4f2 S ?
84:29 /calendar/SUNWics5/cal/bin/cshttpd -d 6
 8 43383 17845 17844  0  59 1810895290304 fd179e64 S ?
72:09 /calendar/SUNWics5/cal/bin/cshttpd -0 -d 0 -D -1 -b 1
 8 43383 17846 17844  0  59 18118896100256 30002300a38 S ?
85:51 /calendar/SUNWics5/cal/bin/cshttpd -0 -d 0 -D -1 -b 2
 8 43383 17847 17844  0  59 1810977691128 3000b5a8d82 S ?
77:56 /calendar/SUNWics5/cal/bin/cshttpd -0 -d 0 -D -1 -b 3

4 processes with argument "cshttpd" are indeed running.

Anyone know what's up with this? I tried with nagios-plugins
1.3.1 and 1.4alpha. This is running on a solaris 8 (sparc)
box.

Thanks,
Ben Whaley

---
Boy, times like these are when I wish color pictures could
be transmitted over the net :->
    -- Aug. 1992 USENET post




More information about the Help mailing list