[Nagiosplug-help] Continuing check_procs bugs?

Voon, Ton Ton.Voon at egg.com
Fri Dec 5 10:13:02 CET 2003


On my Solaris 8, this works fine. 

After investigation, I think your problem is that /usr/ucb is before
/usr/bin in your PATH when you run ./configure. Nagiosplug does not appear
to pick up the correct output for /usr/ucb/bin. Have fixed in configure.in
that the /usr/ucb/ps is not correctly parsed, so will now error.

I would change your PATH and rerun ./configure. If it is a requirement that
/usr/ucb should work, then I could do a bit more work in making sure that
was okay.

Ton

> -----Original Message-----
> From: Ben Whaley [mailto:bwhaley at costrack.com] 
> Sent: Friday, December 05, 2003 5:40 PM
> To: nagiosplug-help at lists.sourceforge.net
> Subject: [Nagiosplug-help] Continuing check_procs bugs?
> 
> 
> 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
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: SF.net Giveback Program.
> Does SourceForge.net help you be more productive?  Does it
> help you create better code?  SHARE THE LOVE, and help us help
> YOU!  Click Here: http://sourceforge.net/donate/
> _______________________________________________
> Nagiosplug-help mailing list
> Nagiosplug-help at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagiosplug-help
> ::: Please include plugins version (-v) and OS when reporting 
> any issue. 
> ::: Messages without supporting info will risk being sent to /dev/null
> 


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.





More information about the Help mailing list