Can this be possible?

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
hqin
Posts: 28
Joined: Thu Oct 11, 2012 8:16 am

Can this be possible?

Post 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
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Can this be possible?

Post 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.
Former Nagios employee
455157
Posts: 51
Joined: Mon Sep 10, 2012 7:35 pm

Re: Can this be possible?

Post 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
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Can this be possible?

Post by slansing »

Excellent suggestion 455157,

That would be a perfect use case!
hqin
Posts: 28
Joined: Thu Oct 11, 2012 8:16 am

Re: Can this be possible?

Post by hqin »

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?

Post by slansing »

Great, let us know, it can get complicated.
hqin
Posts: 28
Joined: Thu Oct 11, 2012 8:16 am

Re: Can this be possible?

Post 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.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Can this be possible?

Post by tmcdonald »

Glad you got it working, and thanks again to 455157 for the suggestion!
Former Nagios employee
Locked