Page 1 of 1

Notification flow Control

Posted: Mon Dec 05, 2016 5:50 am
by Ayush Jain
Hi Team,

We want to control Notifications for services.

We have increased threshold for check_max_attemps=10 and retry interval=4 for memory usage service of host

That means notification will be sent after 40 mins (10*4) , if there is Continuous alert . Our requirement is if memory usage will be more than 95% then irrespective of checks/attempts it should send notification.

Current threshold for memory check :

Warning : 85%
Critical: 90%

Note: We have delayed notification intentionally, but if there is sudden spike then we should be notified.


Is it possible to set check_attempts and retry interval for critical and warning separately ?

Or if there is any other scenario in Nagios which helps us in achieving above request , please guide.

Thanks and Regards,
Ayush Jain

Re: Notification flow Control

Posted: Mon Dec 05, 2016 3:57 pm
by avandemore
Please show the service definition of memory usage service of host.

Re: Notification flow Control

Posted: Tue Dec 06, 2016 2:16 am
by Ayush Jain
define service {
host_name <host name>
service_description CPU_LOAD
use generic-service
check_command check_nrpe!check_load!!!!!!!
max_check_attempts 10
retry_interval 4
contact_groups SNMP-TRAP-SUPPORT
register 1
}


In above desciprtion notification will be sent after 40 mins (10 * 4 ) , But is it possible to add one more condition like if there is sudden spike in load we will get notification immediately irrespective of check attempts and retry interval.

Re: Notification flow Control

Posted: Tue Dec 06, 2016 7:22 am
by Ayush Jain
Is it possible to make notification delay only for warning alerts , as soon as critical alert will come it will immediately send Notification.

If so , i can change my threshold based on our requirement.


command[check_load]=/users/psnagios/nrpe-agent/nrpe/libexec/check_load -w 15,10,5 -c 30,25,20

Re: Notification flow Control

Posted: Tue Dec 06, 2016 4:45 pm
by avandemore
XI > Admin > System Profile > Download Profile

Please include the zip file in your response. You can PM myself or other support personnel if you have privacy concerns.

Re: Notification flow Control

Posted: Wed Dec 07, 2016 2:27 am
by Ayush Jain
Hi Avandemore,

I have sent you zip file .

Not sure how it will be helpful ... We are using Nagiosxi 5.3.3


Req: Whenever any warning alert will come then notification should be delayed for 50 mins but for critical alerts, there should not be any delay.

Thanks and Regards,
Ayush Jain

Re: Notification flow Control

Posted: Wed Dec 07, 2016 11:20 am
by rkennedy
You could apply an escalation clause to to pick up on the critical notification by using service escalations.

It would need to be set up in a fashion where it would get triggered every x minutes though, since escalations depend on the amount of times a notification has fired.

See these links -
https://assets.nagios.com/downloads/nag ... tions.html
https://assets.nagios.com/downloads/nag ... ations.pdf

Re: Notification flow Control

Posted: Thu Dec 08, 2016 1:44 am
by Ayush Jain
Thanks rkennedy and avandemore for checking on this.. :)

Will try to set up service escalation and get back if any help is required.

Re: Notification flow Control

Posted: Thu Dec 08, 2016 3:44 pm
by mcapra
Let us know if you need additional assistance with this!