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
Notification flow Control
-
avandemore
- Posts: 1597
- Joined: Tue Sep 27, 2016 4:57 pm
Re: Notification flow Control
Please show the service definition of memory usage service of host.
Previous Nagios employee
-
Ayush Jain
- Posts: 28
- Joined: Sat Mar 05, 2016 6:38 pm
Re: Notification flow Control
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.
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.
-
Ayush Jain
- Posts: 28
- Joined: Sat Mar 05, 2016 6:38 pm
Re: Notification flow Control
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
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
-
avandemore
- Posts: 1597
- Joined: Tue Sep 27, 2016 4:57 pm
Re: Notification flow Control
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.
Please include the zip file in your response. You can PM myself or other support personnel if you have privacy concerns.
Previous Nagios employee
-
Ayush Jain
- Posts: 28
- Joined: Sat Mar 05, 2016 6:38 pm
Re: Notification flow Control
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
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
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
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
Former Nagios Employee
-
Ayush Jain
- Posts: 28
- Joined: Sat Mar 05, 2016 6:38 pm
Re: Notification flow Control
Thanks rkennedy and avandemore for checking on this..
Will try to set up service escalation and get back if any help is required.
Will try to set up service escalation and get back if any help is required.
Re: Notification flow Control
Let us know if you need additional assistance with this!
Former Nagios employee
https://www.mcapra.com/
https://www.mcapra.com/