Custom notification problem

Subhendu Ghosh sghosh at sghosh.org
Wed Feb 25 23:30:33 CET 2004


On Tue, 24 Feb 2004, Ben Whaley wrote:

> Greetings all,
> 
> I have a rather unique notification problem that I have been unable to find
> a way to address. I am checking total processes, imap processes, sendmail
> processes, etc, as well as system load. I would like to be notified if a)
> load is CRITICAL for 3 checks (max_check_attempts=3) or b) load is CRITICAL
> and any other service is CRITICAL for just 1 check (max_check_attempts=1).
> Is there any way to set this up?
> 
> Here were some of my ideas:
> 
> Use event handlers. When load enters SOFT CRITICAL, execute the handler that
> checks if any other service is CRITICAL for that host. If so, notify
> immediately. The problem is then disabling the notification for when load
> and the other service enter their respective HARD states.
> 
> Service Dependencies. Have load depend on other services. I didn't think
> this one through very carefully because it would require a very large number
> of definitions - load depends on every service on every host. Wildcards
> wouldn't work in this case.
> 
> Anyone have other suggestions?

I would seriously consider ignoring soft states.  It is not meant for 
end-user consumption.

Try the check_cluster plugin from contrib to aggregate hard results from 
multiple services.

-sg



-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&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