Page 1 of 1
Can this be possible?
Posted: Tue Jan 21, 2014 4:34 pm
by hqin
We have about 10 hosts that were configured in Nagios XI. now we need to send alerts whenever there are more than 5 hosts down. In other cases, for example, 3 of them are down, we don't need Nagios XI to send alerts to us. Can it be possible in Nagios XI?
Thanks
Re: Can this be possible?
Posted: Tue Jan 21, 2014 4:57 pm
by tmcdonald
This is not built in to Nagios XI directly, but it shouldn't be incredibly hard to write a plugin for. Basically:
- Disable alerts for those hosts
- Write a plugin that checks to number of down hosts
- Alert off that one host
The drawback to this is that you would get one alert for that meta-service, instead of having it enable alerts for the rest. You could probably get around this with
external commands using
ENABLE_NOTIFICATIONS.
Re: Can this be possible?
Posted: Tue Jan 21, 2014 5:32 pm
by 455157
The BPI (business process intelligence) component may be useful for this one too.
Just goto Home -> Nagios BPI to check it out.
Here's a doc:
http://assets.nagios.com/downloads/nagi ... _Addon.pdf
Re: Can this be possible?
Posted: Tue Jan 21, 2014 5:36 pm
by slansing
Excellent suggestion 455157,
That would be a perfect use case!
Re: Can this be possible?
Posted: Tue Jan 21, 2014 5:39 pm
by hqin
Thanks a lot. Let me try.
Re: Can this be possible?
Posted: Tue Jan 21, 2014 6:01 pm
by slansing
Great, let us know, it can get complicated.
Re: Can this be possible?
Posted: Wed Jan 22, 2014 11:47 am
by hqin
the zip file looks outdated and doesn't work after installed in Nagios XI - some files are missing. However, I searched this forum and found this
http://support.nagios.com/forum/viewtop ... .sh#p59516. I downloaded the updated zip file provided in this post and it works finally. Thanks everyone.
Re: Can this be possible?
Posted: Wed Jan 22, 2014 11:57 am
by tmcdonald
Glad you got it working, and thanks again to 455157 for the suggestion!