Notification for Critical state after 1 minute period

Andreas Ericsson ae at op5.se
Tue Jan 11 14:45:57 CET 2005


Jevos, Peter wrote:
> Hello
>  I've one simple question. 
>  I'd like to send notification when CPU is in critical state for 1 minute or
> longer.I'd like to know where could I configure time period for a service
> when it is in critical ( or warning) state. I know there's directive
> "max_check_attempts" but it define the number of times that Nagios will
> retry the host check command. But I need to define when service is in
> critical state for 1 or 2 minute and then send notification. Cause CPU could
> be in critical state for 20 sec and it is confusing to send a notification
> that CPU is in critical state for that short time period

This is why you really can't measure CPU load on too short a time 
(without some kernel hacking, anyway). You'll usually just get the 
average over 1,5 and 15 minutes, which is what you set your alerts for.

The max_check_attempts variable for settings lets you skip receiving 
notifications for services that spike temporarily (by scheduling 
re-checks and sending a notification only if it receives a non-ok state 
max_check_attempts in a row). Raise it for your CPU load services if you 
think you're receiving too many false positives.


-- 
Andreas Ericsson                   andreas.ericsson at op5.se
OP5 AB                             www.op5.se
Lead Developer


-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
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