[Nagiosplug-help] Checking for a process

Voon, Ton Ton.Voon at egg.com
Wed Jan 29 05:13:02 CET 2003


I think this should do what you want:

check_procs -c 1:1 -C fetchmailx

Be aware that the -C is not a pattern-match: it must be the full name of the
command. Run "check_procs -v" to see the ps command used and it should be
the process name in the last column.


-----Original Message-----
From: David Corbin [mailto:dcorbin at machturtle.com]
Sent: 29 January 2003 12:23
To: Voon, Ton
Cc: nagiosplug-help at lists.sourceforge.net
Subject: Re: [Nagiosplug-help] Checking for a process

I don't mean to be stupid, but ....  It's clear I don't understand  the 
command line arguments.  I've tried playing with several combinations of 
arguments, but they all yield "OK".   What should the arguments be to 
verify that exactly one instance of the process is running?  (I think 
I've got the -C part right, it's the rest that's causing me grief).

oboe:/usr/local/nagios/libexec# ./check_procs -w 1-1 -c 1-1 -C fetchmailx
OK - 0 processes running with command name fetchmailx


Voon, Ton wrote:

>check_procs ;-)
>-----Original Message-----
>From: David Corbin [mailto:dcorbin at machturtle.com]
>Sent: 29 January 2003 11:55
>To: nagiosplug-help at lists.sourceforge.net
>Subject: [Nagiosplug-help] Checking for a process
>Is there a plugin that is designed to check that a particular process is 

This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
Nagiosplug-help mailing list
Nagiosplug-help at lists.sourceforge.net

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

More information about the Help mailing list