Multiple parent for a child, failed

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
absarcompass
Posts: 182
Joined: Thu May 14, 2015 9:57 pm

Multiple parent for a child, failed

Post by absarcompass »

Hi,Guys,
I monitoring device whose layer 2 link is on a cisco switch but layer 3 connectivity is via Router.
if either of the connectivity is unreachable the child should not alarm, to achieve this I have added both the devices as parent to the host, but when the layer2 link was down it kept generating alarm for child host.
I was under the impression that having multiple parent for a host will imply that if either of the parent is unreachable child should not be checked
so wanted to confirm if having multiple parent actually apply an 'AND' gate or 'OR'
I want it to be worked as OR if either of parent is down child should not be checked and alerted for unavailability.
can you guys please help me achieve this functionality?

Thanks
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Multiple parent for a child, failed

Post by lmiltchev »

I haven't really tried that, so I cannot guarantee that it is going to work, but you could set up one (parent) host with two IP addresses then use check_multiaddr plugin for checking the status of the "child" host.

https://exchange.nagios.org/directory/P ... dr/details
Be sure to check out our Knowledgebase for helpful articles and solutions!
absarcompass
Posts: 182
Joined: Thu May 14, 2015 9:57 pm

Re: Multiple parent for a child, failed

Post by absarcompass »

Thanks lmiltchev,
i'll check that, but I am confused a bit here, I already have two physical separate hosts with different IP address who are actual parents in hierarchy for the child host. what i am comprehending here is that a parent with two IP address on single host will be out of my scope??
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Multiple parent for a child, failed

Post by scottwilkerson »

absarcompass wrote:Thanks lmiltchev,
i'll check that, but I am confused a bit here, I already have two physical separate hosts with different IP address who are actual parents in hierarchy for the child host. what i am comprehending here is that a parent with two IP address on single host will be out of my scope??
If you are monitoring each IP separately as a host and have both specified as a parent that should work fine as well.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
absarcompass
Posts: 182
Joined: Thu May 14, 2015 9:57 pm

Re: Multiple parent for a child, failed

Post by absarcompass »

Hi guys,
i hope i can elaborate it clearly now
Host C has two parents Host A(Physically connected to C) and Host B (IP connectivity to C)
Now either host A or B goes down my child Host C should not be reachable and should not send email or sms alert, specially when i have setup 'Notification options' only for Down and Recovery.
Either i put Host B or Host A down i receive Down alert for Host C, where as it should be unreachable and should not be sending alert.
is there anything in config that I am missing or it is like that if either of parent is up child be alerting as down i-e to not send child host alert as down both parents have to be down.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Multiple parent for a child, failed

Post by scottwilkerson »

This sounds correct if you have A & B as parents of C with 'Notification options' only for Down and Recovery.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked