How to check if an application is up or not

Andreas Ericsson ae at op5.se
Fri Apr 23 16:04:23 CEST 2004


Jens Kruse wrote:
> Hi there,
> 
> I hope I haven't missed docs for this:
> 
> I'd like to monitor whether an Application ist up or not, conditions 
> should be
> 
> Green: At least 1 instance oc application is up
> Yellow: More than 1 instance of application is up
> Red: Less than 1 instance of application is up (i.e. application is down)
> 
> I tried it with
> 
> $ ./check_procs -C application -w 2: -c :0
> which tells me
> WARNING - 0 processes running with command name application
> when application is down
> or
> CRITICAL - 1 processes running with command name fetchmail
> when application is up
> 
> and
> $ ./check_negate './check_procs -C application'
> which tells me
> OK - 0 processes running with command name application
> when application is down ...
> 
> But this doesn't satisfy me ... :-)
> 
> Any ideas or hints?
> 
check_procs -C application -w :2 -c 1:
does what you want.

> Thanks, Jens
> 
You're welcome.

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


-------------------------------------------------------
This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek
For a limited time only, get FREE Ground shipping on all orders of $35
or more. Hurry up and shop folks, this offer expires April 30th!
http://www.thinkgeek.com/freeshipping/?cpg=12297
_______________________________________________
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