Page 1 of 1

How to ignore an alert for a period of time ?

Posted: Wed Jan 21, 2015 12:54 pm
by nagmoto
Hi,

Another beginner question.

Ex. I don't want to have high CPU load to get into critical state to trigger critical alert, if high CPU load duration is not over 4 hours.

Re: How to ignore an alert for a period of time ?

Posted: Wed Jan 21, 2015 12:59 pm
by nagmoto
correction of subject:
before:
How to ignore an alert for a period of time ?
after:
How to ignore a critical state for a period of time ?

Re: How to ignore an alert for a period of time ?

Posted: Wed Jan 21, 2015 1:02 pm
by tmcdonald
Set the first_notification_delay for that service to 240 (4 hours).

http://nagios.sourceforge.net/docs/3_0/ ... ml#service

Re: How to ignore an alert for a period of time ?

Posted: Wed Jan 21, 2015 2:12 pm
by nagmoto
Thanks for the pointer, first_notification_delay is to delay the notification(by email), not really what I need.

Is there a time delay setting for entering into non-OK(critical) state ?
ie, CPU can be in high-load for 4 hours before go into critical state.(then first_notifcation_day can delay alerting sending furhter).

Re: How to ignore an alert for a period of time ?

Posted: Wed Jan 21, 2015 2:17 pm
by tmcdonald
You can't really ignore them, but you can fiddle around with the check_interval, retry_interval, and max_check_attempts to get close to what you need. Essentially you would say "Keep checking every X minutes for Y total checks until determining it is a real problem".

You might want to look into hard vs soft states:

http://nagios.sourceforge.net/docs/3_0/statetypes.html