Page 1 of 1

Notification triggered on what conditions?

Posted: Wed Oct 11, 2017 9:14 am
by raamardhani7
The notifications are triggered on the basis of which condition? .

Specify the parameters that determine how notifications should be sent for the host.
When a problem is detected:
Don't send any notifications
• Send a notification immediately
Wait 15 minutes before sending a notification

Or the condition that we have under monitoring
Under normal circumstances:
Monitor the host 5 every minutes.
When a potential problem is first detected:
Re-check the host every 1 minutes up to 15 times before generating an alert.

We don't want the notification to be sent immediately until our condition is met, so what changes do we need to make and where?

Re: Notification triggered on what conditions?

Posted: Wed Oct 11, 2017 11:07 am
by kyang
It depends on how you have your check_interval and notification_intevals set up?

If you don't want notifications immediately then you would set the notification_interval to specific mins when you want to be alerted on a host problem.

Did you still want to monitor the hosts every 5 mins, how many max_check_attempts or retry?

You can edit these settings in the -- > Configure --> Core Config Manager --> Hosts (click a host) --> Checking settings for checks & alert settings for notifications)

Re: Notification triggered on what conditions?

Posted: Thu Oct 12, 2017 7:58 am
by raamardhani7
So to make the no of attempts before sending the alert to 15 from 5 times i just need to change it monitoring. The condition that is under notification which is send the notification immediately will not happen. It will send the notification only after the 15th check if it finds that the host is still unreachable right?

Or do we need to make any changes in some other files as well?

Re: Notification triggered on what conditions?

Posted: Thu Oct 12, 2017 10:13 am
by kyang
Yes, I tested myself.

Here's an example of how I set it up.

First I set my check_interval to 5mins (normal) --> and then a 1 min retry_interval --> 15 max check attempts (checks every minute up to 15 times) --> set my notification interval at 15 mins, so at the 15th check I will be alerted give or take.

You can change your notification interval to whenever you want to get a notification (minute-wise), just make sure the addition is correct.

But for my example, I do normal checks every 5 minutes, if there's a warning or critical state retry every minute up to 15 times. At 15 mins I get a notification for my host.

Does this help?

Re: Notification triggered on what conditions?

Posted: Wed Oct 25, 2017 12:45 am
by raamardhani7
It helped.
Thanks, you can close the thread.

Re: Notification triggered on what conditions?

Posted: Wed Oct 25, 2017 9:01 am
by kyang
Sounds great! I'll be closing this topic as resolved!

If you have any more questions, feel free to create another thread!

Thank you for using the Nagios Support Forum!