Page 1 of 1

Multiple parent for a child, failed

Posted: Mon Jul 23, 2018 8:26 pm
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

Re: Multiple parent for a child, failed

Posted: Tue Jul 24, 2018 3:58 pm
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

Re: Multiple parent for a child, failed

Posted: Tue Jul 24, 2018 4:39 pm
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??

Re: Multiple parent for a child, failed

Posted: Wed Jul 25, 2018 11:11 am
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.

Re: Multiple parent for a child, failed

Posted: Sun Jul 29, 2018 5:35 pm
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.

Re: Multiple parent for a child, failed

Posted: Mon Jul 30, 2018 7:29 am
by scottwilkerson
This sounds correct if you have A & B as parents of C with 'Notification options' only for Down and Recovery.