Suspend notification on major issue

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
amprantino
Posts: 140
Joined: Thu Apr 18, 2013 8:25 am
Location: libexec

Suspend notification on major issue

Post 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
amprantino
Posts: 140
Joined: Thu Apr 18, 2013 8:25 am
Location: libexec

Re: Suspend notification on major issue

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Suspend notification on major issue

Post 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.
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
amprantino
Posts: 140
Joined: Thu Apr 18, 2013 8:25 am
Location: libexec

Re: Suspend notification on major issue

Post 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 :(
kyang

Re: Suspend notification on major issue

Post by kyang »

@amprantino,

Did you make any changes to the host dependency? Or is it the same as you have it listed.
amprantino
Posts: 140
Joined: Thu Apr 18, 2013 8:25 am
Location: libexec

Re: Suspend notification on major issue

Post 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
dwasswa

Re: Suspend notification on major issue

Post 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.
kyang

Re: Suspend notification on major issue

Post 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?
Locked