How to ignore an alert for a period of time ?

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
nagmoto
Posts: 195
Joined: Fri Jan 09, 2015 8:05 am

How to ignore an alert for a period of time ?

Post 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.
nagmoto
Posts: 195
Joined: Fri Jan 09, 2015 8:05 am

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

Post 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 ?
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

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

Post by tmcdonald »

Set the first_notification_delay for that service to 240 (4 hours).

http://nagios.sourceforge.net/docs/3_0/ ... ml#service
Former Nagios employee
nagmoto
Posts: 195
Joined: Fri Jan 09, 2015 8:05 am

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

Post 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).
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

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

Post 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
Former Nagios employee
Locked