Page 1 of 1
Notifications for different thresholds on same service
Posted: Tue May 01, 2018 10:58 pm
by vusaravi
Hi Experts
I would like to send notifications to different contacts for different threshold on one service, say check_disk.
If the threshold is set to 80%, alert should go to contact A.
If it reaches to 85% usage, alert should go to Contact B.
If the usage go beyond 90%, then contact C should be notified.
Can we achieve this with Nagios core?
Kindly advise.
Re: Notifications for different thresholds on same service
Posted: Wed May 02, 2018 8:23 am
by mcapra
I think you'd need to setup individual service checks for each desired threshold. Then assign unique contacts (or contact groups) for each of your 80/85/90 checks. Nagios Core itself, which is what will handle the alerting logic, doesn't actually have a concept of "thresholds"; It just reads STDOUT and a given command's return code. Nagios "plugins" turn those thresholds into something Nagios Core can interpret.
Here's a post from a few months ago regarding
white-box versus black-box monitoring strategies. The short answer is Nagios Core takes on more of a "black-box" approach to monitoring and what you want to do here is more in the style of "white-box" monitoring.
Escalations do something similar, but with respect to the duration of a problem state rather than thresholds.
Re: Notifications for different thresholds on same service
Posted: Wed May 02, 2018 1:08 pm
by kyang
Thanks for the help
@mcapra!
@vusaravi, let us know if you have any more questions.
Re: Notifications for different thresholds on same service
Posted: Wed May 02, 2018 10:16 pm
by vusaravi
Hi
@mcapra
I was also in thoughts of adding different services with different threshold.
But i was looking for better option than that one.
As don't have any better option, we can close this thread.
Thanks for your support.
Regards,
Ravi Kumar Vusa
Re: Notifications for different thresholds on same service
Posted: Thu May 03, 2018 10:46 am
by kyang
Closing thread.
Thanks for using the Nagios Support Forums!
Feel free to create a new thread if you have any more issues.
Have a great day!