Host Child/Parent Issue
Posted: Tue Mar 29, 2016 9:36 am
Hello,
I've deleted my previous post as it had messy name. The thing I'm trying to resolve is not the dependency issue, but child/parent issue
Dear community and devs, I need some advice how to solve such an issue.
I've got a situation like this:
_______________GW1 (nagios default GW)
________________|
Nagios --- SW1 --- SW2 --- SW3 --- SW5 --- Host
______________________|
_____________________SW4
______________________|
GW2 (host defalt GW)-----|
How do I solve the child/parent issue here? The monitored host considered to be down if either L2 switches in the Nagios line OR GW2 or switches in GW2 line are down...
There is VLANs divided common L2 infrastructure.
If I set the SW5 as the parent for Host, Nagios won't report any issues, when the GW2 or SW4 will be Down, which means Host is not accessible also.
If I set the GW2 as the parent for Host, Nagios won't report any issues, when the SW5 or some switches before it in the line will be Down, which means the Host is not accessible also.
It's like same L2 but different L3 for that host.
How does the Parent logic works is it OR or AND?
Nagios goes to the Host by this way:
Nagios - SW1 -SW2 - GW1 - GW2 - SW4 - SW5 - Host
All the switches are in the same mgmt subnet, which is terminated at GW1. Host is in different external subnet, which is terminated at GW2.
So the switches are visible for the Nagios as this line of Parent/Child
Nagios - SW1 - SW2 - SW3 - SW5
___________________|
__________________SW4
As an option, I could create a new command for the Host check to ping the default GW from nagios and set the SW5 as parent... But it seems like a workaround more than solution.
As an other option I could add this Host as a service to the GW2 (using modified chec_host_alive command to ping this host instead of GW2 IP) and as a host to the SW5. This is workaround also.
I've deleted my previous post as it had messy name. The thing I'm trying to resolve is not the dependency issue, but child/parent issue
Dear community and devs, I need some advice how to solve such an issue.
I've got a situation like this:
_______________GW1 (nagios default GW)
________________|
Nagios --- SW1 --- SW2 --- SW3 --- SW5 --- Host
______________________|
_____________________SW4
______________________|
GW2 (host defalt GW)-----|
How do I solve the child/parent issue here? The monitored host considered to be down if either L2 switches in the Nagios line OR GW2 or switches in GW2 line are down...
There is VLANs divided common L2 infrastructure.
If I set the SW5 as the parent for Host, Nagios won't report any issues, when the GW2 or SW4 will be Down, which means Host is not accessible also.
If I set the GW2 as the parent for Host, Nagios won't report any issues, when the SW5 or some switches before it in the line will be Down, which means the Host is not accessible also.
It's like same L2 but different L3 for that host.
How does the Parent logic works is it OR or AND?
Nagios goes to the Host by this way:
Nagios - SW1 -SW2 - GW1 - GW2 - SW4 - SW5 - Host
All the switches are in the same mgmt subnet, which is terminated at GW1. Host is in different external subnet, which is terminated at GW2.
So the switches are visible for the Nagios as this line of Parent/Child
Nagios - SW1 - SW2 - SW3 - SW5
___________________|
__________________SW4
As an option, I could create a new command for the Host check to ping the default GW from nagios and set the SW5 as parent... But it seems like a workaround more than solution.
As an other option I could add this Host as a service to the GW2 (using modified chec_host_alive command to ping this host instead of GW2 IP) and as a host to the SW5. This is workaround also.