service alert notified when all services are in C/W state

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
iam33
Posts: 58
Joined: Mon Mar 18, 2013 5:30 am

service alert notified when all services are in C/W state

Post by iam33 »

Hi, thanks in advance!

How to notify service alert in host only when all services in this host are critcal or warning state. If one of them is OK, all of them couldn´t notify an alert.

Only one could be notified, when all services are in warning or critical state.

Thanks!
gormank
Posts: 1114
Joined: Tue Dec 02, 2014 12:00 pm

Re: service alert notified when all services are in C/W stat

Post by gormank »

Have a look the BPI addon. It should allow what you want.
https://assets.nagios.com/downloads/nag ... -Addon.pdf
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: service alert notified when all services are in C/W stat

Post by mcapra »

check_multi is one option. Else something like BPI but the community edition is pretty long-in-the-tooth.

With check_multi I think you'd just disable notifications for all of your services under the host, except for the check_multi service check.
Former Nagios employee
https://www.mcapra.com/
iam33
Posts: 58
Joined: Mon Mar 18, 2013 5:30 am

Re: service alert notified when all services are in C/W stat

Post by iam33 »

thank you so much for your answers!

I would prefer to do it without the execution of third-party plugins, through Nagios configuration, but I will test it with the check_multi.
Locked