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
Can this be possible?
Re: Can this be possible?
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.
- 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.
Former Nagios employee
Re: Can this be possible?
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
Just goto Home -> Nagios BPI to check it out.
Here's a doc:
http://assets.nagios.com/downloads/nagi ... _Addon.pdf
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Can this be possible?
Excellent suggestion 455157,
That would be a perfect use case!
That would be a perfect use case!
Re: Can this be possible?
Thanks a lot. Let me try.
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Can this be possible?
Great, let us know, it can get complicated.
Re: Can this be possible?
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?
Glad you got it working, and thanks again to 455157 for the suggestion!
Former Nagios employee