Notification for Critical state after 1 minute period

Stephan Janosch stephan.janosch at interface-business.de
Tue Jan 11 14:55:22 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
> 
> Is there that option /
> Thanks a lot
> peter
> 

Timeperiods are only used, to determein periods, in which nagios makes a 
check.

You want to modify following 2 parameters in your service definition:

max_check_attempts   [number]
retry_check_interval [number of "timeunits" configured in nagios.conf]

If you want an alarm after more than 4 minutes CRTTICAL you do it that 
way: max_check_attempts 2, retry_check_interval 5.

So if nagios checks and finds a critical value, it will recheck it after 
5 minutes. If there is no critical value anymore, there won't be a 
notification.

Read the docu carefully, please.



-------------------------------------------------------
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