Page 1 of 1

Suspend notification on major issue

Posted: Thu Sep 21, 2017 3:55 am
by amprantino
Hello all,

this is my topology:

Code: Select all

          Site A                                                         Site B
|-----------------------|                                      |-----------------------| 
|                       | -------------  Line ---------------  |                       | 
| Host A1 --- Host A2   |                                      | Host B1 --- Host B2   | 
|                       |                                      |                       | 
|-----------------------|                                      |-----------------------|

Nagios is hosted on Site 1.
When line is down, I want to receive notifications that line is down and not notifications for all hosts and services of Site 2.
However, if Host B1 is down I want to receive that both host (B1 and B2) are down.
So, I cant remove the option "unreachable" from Host B1 and Host B2.
[ I think this is the logic that allows to suppress notification for hosts being down "downstream" if a parent fails].

Is there a workaround to achieve that?

Best Regards

Re: Suspend notification on major issue

Posted: Thu Sep 21, 2017 6:20 am
by amprantino
Should this work?

Code: Select all

define hostdependency{
        host_name                       B1
        dependent_host_name             B2,!B1
        dependent_hostgroup_name        Group-B1-B2
        notification_failure_criteria   d,u
}
Group-B1-B2 includes B1 and B2

Re: Suspend notification on major issue

Posted: Thu Sep 21, 2017 10:47 am
by scottwilkerson
This should work as long as you do not set B1 to be B2's parent.

On that note, if you were checking the connection on "Line" you could just set "Line" as both B1 & B2 parent and would get the same affect.

Re: Suspend notification on major issue

Posted: Wed Nov 01, 2017 4:27 am
by amprantino
B1 is the parent of B2 host. All hosts inside "Site B" are directly or indirectly attached to host B1

Still I havent found a way to do it sucesfully :(

Re: Suspend notification on major issue

Posted: Thu Nov 02, 2017 3:29 pm
by kyang
@amprantino,

Did you make any changes to the host dependency? Or is it the same as you have it listed.

Re: Suspend notification on major issue

Posted: Thu Nov 16, 2017 2:59 am
by amprantino
The same as listed.
The dependency cannot be removed as the two datacenter are all connected and all hosts are attached directly or indirectly to B1

Re: Suspend notification on major issue

Posted: Thu Nov 16, 2017 5:56 pm
by dwasswa
Hi @amprantino,

Given your use case, I recommend that you consider using the BPI addon.

BPI(Business Process Intelligence) is an advanced grouping tool that allows you to set more complex dependencies to determine group states in Nagios.

The following kb article contains instructions for installing and configuring BPI in Nagios:
Using_The_BPI_Addon.pdf

Please follow that kb article and let me know if it solves your issue.

Re: Suspend notification on major issue

Posted: Tue Nov 28, 2017 2:36 pm
by kyang
Hey amprantino, just checking in to see if your issue is resolved?

Are we okay to close this thread? Or did you have any more questions?