Check_procs question

Andreas Ericsson ae at op5.se
Thu May 13 09:05:44 CEST 2004


wim.degeeter at bt.com wrote:
> Hi,
> I am trying to monitor processes on a remote server.
> For example I try to get a Critical state when no ftp processes are
> running.
> The output of ps -ef | grep ftp gives me 'proftpd' so my command to
> execute can be 
> $ check_procs -C proftpd -w 1 -c 2

You're supposed to specify a range of low:high
check_procs -C proftpd -w 1:1 -c 2:
will do what you want (I think. prod around a little)

> But this give me an OK state when no ftp process is running. How can I
> change so that when no ftp process is running I got a Critical state.
> Maybe I overlook something.
> 
> Thanks for the help
> Wim
> 

-- 
Mvh
Andreas Ericsson
OP5 AB
+46 (0)733 709032
andreas.ericsson at op5.se


-------------------------------------------------------
This SF.Net email is sponsored by: SourceForge.net Broadband
Sign-up now for SourceForge Broadband and get the fastest
6.0/768 connection for only $19.95/mo for the first 3 months!
http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click
_______________________________________________
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