Notifications for different thresholds on same service

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
vusaravi
Posts: 23
Joined: Fri Mar 13, 2015 7:41 am

Notifications for different thresholds on same service

Post 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.
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Notifications for different thresholds on same service

Post 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.
Former Nagios employee
https://www.mcapra.com/
kyang

Re: Notifications for different thresholds on same service

Post by kyang »

Thanks for the help @mcapra!

@vusaravi, let us know if you have any more questions.
vusaravi
Posts: 23
Joined: Fri Mar 13, 2015 7:41 am

Re: Notifications for different thresholds on same service

Post 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
kyang

Re: Notifications for different thresholds on same service

Post 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!
Locked