check_procs (nagios-plugins 1.3.1) 1.9.2.1

Ford, Andy andyford at AGEDWARDS.com
Tue May 22 22:24:41 CEST 2007


If you add "-vv" to your check_procs invocation, you will see the form of "ps" that check_procs is using and verify for yourself exactly why it's broken.

Andy Ford
x56647
andyford at agedwards.com
 

> -----Original Message-----
> From: nagios-users-bounces at lists.sourceforge.net 
> [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf 
> Of Sandor W. Sklar
> Sent: Tuesday, May 22, 2007 3:18 PM
> To: Christian Nilsson - op5
> Cc: Nagios-users at lists.sourceforge.net
> Subject: Re: [Nagios-users] check_procs (nagios-plugins 1.3.1) 1.9.2.1
> 
> Ah, yes, I think is exactly the problem:  a bug in the check_procs  
> command.  I just wasn't sure if this was "known" bug being 
> worked on,  
> or if I was the only one to encounter this problem.
> 
> Thanks,
> 	-s-
> 
> On May 22, 2007, at 1:13 PM, Christian Nilsson - op5 wrote:
> 
> > I think this is a bug in check_proc. At least I never got it to  
> > work on Solaris 8 and 9. If i remember it correctly it had  
> > something to do with the ps command... with the -C flag nothing  
> > matches but i got it to work with -a but in this case you also get  
> > a result matching "grep procname". Maybe something you can live  
> > with until it's fixed?
> >
> > Regards
> > Christian
> >
> > Sandor W. Sklar wrote:
> >> thanks for the tip, but I tried as both root and an unprivilaged   
> >> user, with the same result.  On Solaris, it can't match 
> against a   
> >> process name, but it works fine on AIX 5.2 and RHEL4.
> >>
> >> 	-s-
> >>
> >> On May 22, 2007, at 2:07 AM, Hari Sekhon wrote:
> >>
> >>
> >>> I'm not sure about your cases but when running check_procs on   
> >>> hardened gentoo servers, their hardened kernels stop user  
> >>> accounts  from seeing all other users processes. The only user  
> >>> who can see  other user's processes is the root user.
> >>>
> >>> Therefore I run my proc checks with sudo and then it works.
> >>>
> >>> Are you running check_procs as the nagios user? Have you tried   
> >>> running it as root?
> >>>
> >>> -h
> >>>
> >>> Hari Sekhon
> >>>
> >>>
> >>>
> >>> Sandor W. Sklar wrote:
> >>>
> >>>> This is not useful, but I reported an identical problem on  
> >>>> Solaris  8,  and got no replies.
> >>>>
> >>>> 	-s-
> >>>>
> >>>> On May 21, 2007, at 12:12 PM, abid dar wrote:
> >>>>
> >>>>
> >>>>
> >>>>> That didn't work either.
> >>>>>
> >>>>> ----- Original Message ----
> >>>>> From: "Mies, Christian" <c.mies at itnovum.de>
> >>>>> To: abid dar <snyper9311 at yahoo.com>; Nagios-   
> >>>>> users at lists.sourceforge.net
> >>>>> Sent: Monday, May 21, 2007 2:50:52 PM
> >>>>> Subject: AW: [Nagios-users] check_procs (nagios-plugins 
> 1.3.1)   
> >>>>> 1.9.2.1
> >>>>>
> >>>>> Hi,
> >>>>> try it with the '-a' Parameter.
> >>>>>
> >>>>> Regards
> >>>>> Christian
> >>>>>
> >>>>>
> >>>>>
> >>>>>> -----Ursprüngliche Nachricht-----
> >>>>>> Von: nagios-users-bounces at lists.sourceforge.net
> >>>>>> [mailto:nagios-users-bounces at lists.sourceforge.net] Im Auftrag
> >>>>>> von abid dar
> >>>>>> Gesendet: Montag, 21. Mai 2007 20:04
> >>>>>> An: Nagios-users at lists.sourceforge.net
> >>>>>> Betreff: [Nagios-users] check_procs (nagios-plugins 1.3.1)  
> >>>>>> 1.9.2.1
> >>>>>>
> >>>>>> When I run check_procs I get:
> >>>>>>
> >>>>>> ../libexec/check_procs
> >>>>>> OK - 4 processes running
> >>>>>>
> >>>>>> ../libexec/check_procs -C nrpe
> >>>>>> OK - 0 processes running with command name nrpe
> >>>>>>
> >>>>>>
> >>>>>> ../libexec/check_procs -C "/usr/local/nagios/nrpe -c
> >>>>>> /usr/local/nagios/nrpe.cfg -d"
> >>>>>> OK - 0 processes running with command name
> >>>>>> /usr/local/nagios/nrpe -c /usr/local/nagios/nrpe.cfg -d
> >>>>>>
> >>>>>> This is on a Tru64 (alpha) box.
> >>>>>>
> >>>>>> Why doesnt is show the process that I specify (no matter how I
> >>>>>> call it) is running?
> >>>>>>
> >>>>>> suggestions?
> >>>>>>
> >>>>>> TIA
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>> _______________________________________________________________
> >>>>>> _____________________Get the Yahoo! toolbar and be alerted to
> >>>>>> new email wherever you're surfing.
> >>>>>> http://new.toolbar.yahoo.com/toolbar/features/mail/index.php
> >>>>>>
> >>>>>> ---------------------------------------------------------------
> >>>>>> ----------
> >>>>>> This SF.net email is sponsored by DB2 Express Download DB2
> >>>>>> Express C - the FREE version of DB2 express and take control
> >>>>>> of your XML. No limits. Just data. Click to get it now.
> >>>>>> http://sourceforge.net/powerbar/db2/
> >>>>>> _______________________________________________
> >>>>>> 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
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>
> >>>>>
> >>>>> 
> __________________________________________________________________ 
> >>>>> __ __ ______________
> >>>>> Finding fabulous fares is fun.
> >>>>> Let Yahoo! FareChase search your favorite travel sites to  
> >>>>> find   flight and hotel bargains.
> >>>>> http://farechase.yahoo.com/promo-generic-14795097
> >>>>>
> >>>>> 
> ------------------------------------------------------------------ 
> >>>>> -- -- ---
> >>>>> This SF.net email is sponsored by DB2 Express
> >>>>> Download DB2 Express C - the FREE version of DB2 
> express and take
> >>>>> control of your XML. No limits. Just data. Click to get it now.
> >>>>> http://sourceforge.net/powerbar/db2/
> >>>>> _______________________________________________
> >>>>> 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
> >>>>>
> >>>>>
> >>>> --
> >>>> Sandor W. Sklar
> >>>> Unix Systems Administrator
> >>>> Stanford University Libraries & Academic Information Resources
> >>>> Digital Libraries Systems & Services
> >>>>
> >>>>
> >>>>
> >>>> 
> ------------------------------------------------------------------- 
> >>>> -- ----
> >>>> This SF.net email is sponsored by DB2 Express
> >>>> Download DB2 Express C - the FREE version of DB2 express and take
> >>>> control of your XML. No limits. Just data. Click to get it now.
> >>>> http://sourceforge.net/powerbar/db2/
> >>>> _______________________________________________
> >>>> 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
> >>>>
> >>>>
> >>>>
> >>
> >> --
> >> Sandor W. Sklar
> >> Unix Systems Administrator
> >> Stanford University Libraries & Academic Information Resources
> >> Digital Libraries Systems & Services
> >>
> >>
> >>
> >> 
> --------------------------------------------------------------------- 
> >> ----
> >> This SF.net email is sponsored by DB2 Express
> >> Download DB2 Express C - the FREE version of DB2 express and take
> >> control of your XML. No limits. Just data. Click to get it now.
> >> http://sourceforge.net/powerbar/db2/
> >> _______________________________________________
> >> 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
> >>
> 
> --
> Sandor W. Sklar
> Unix Systems Administrator
> Stanford University Libraries & Academic Information Resources
> Digital Libraries Systems & Services
> 
> 
> 
> --------------------------------------------------------------
> -----------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> 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
> 


-------------------------------------------------------------------------------------
A.G. Edwards & Sons' outgoing and incoming e-mails are electronically
archived and subject to review and/or disclosure to someone other 
than the recipient.

-------------------------------------------------------------------------------------


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
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