check_procs problems

Voon, Ton Ton.Voon at egg.com
Tue May 20 12:48:41 CEST 2003


Which version of the plugins?

If you run check_procs -v, it will show the ps command used. There maybe
differences between the command used and ps -ef that you have used for the
2nd case below.

For the 3rd case, -a matches substrings, so just use the start of the
command "/opt/CTXSmf/slib/ctxXtw -session".

Ton

> -----Original Message-----
> From:	Webster, Stuart SITI-ITDIUR [SMTP:Stuart.Webster at shell.com]
> Sent:	Tuesday, May 20, 2003 10:03 AM
> To:	nagios-users at lists.sourceforge.net
> Subject:	[Nagios-users] check_procs problems
> 
> Hello 
> 
> I am trying to monitor 3 Processes with nagios. 
> 
> /usr/sbin/inetd 
> pbs_server 
> 
> /opt/CTXSmf/slib/ctxXtw -session 835 -terminate -notransfills -frameexpose
> -not 
> 
> 
> I have tried the following. 
> 
> 
> check_procs -c 1:1 -C /usr/sbin/inetd                 this works fine  "OK
> - 1 processes running with command name /usr/sbin/inetd"
> 
> 
> check_procs -c 1:1 -C pbs_server            this reports "CRITICAL - 0
> processes running with command name pbs_server" 
> but ps -ef|grep pbs_server  reports          "root 19925     1  0   May 07
> ?        0:25 pbs_server" 
> so the service is up, but  check_procs is not seeing it?????  any ideas? 
> 
> also the third process i dont know how to check as the number in the
> command line changes with every instance of the process, so 
> 
> check_procs -c 1:20 -a "/opt/CTXSmf/slib/ctxXtw -session 835 -terminate
> -notransfills -frameexpose -not"            this will not work as only 1
> process has that number.
> 
> Any help from much appreciated. 
> 
> 
> Stuart 
> 


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.



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