I have a network which is connected to the Internet.
Nagios server 'a' is connected to switch 'b' is connected to firewall 'c' is connected to ADSL router 'd' etc. It is easy to set the parents for these devices.
But I also have a VPN to another site.
Nagios server 'a' is connected to switch 'b' is connected to local VPN server 'f' is connected to remote VPN server 'g' etc.
The network connection between the local VPN server 'f' and the remote VPN server 'g' relies on the ADSL router 'd' (and the rest of the Internet).
My question is: how do I model that in Nagios' configuration files? I don't think I can model it with host parents alone. I need an "also relies upon" option, so that I can model the VPN parents correctly but also model that the ADSL router 'd' must be up for the remote VPN server 'g' to be up. When the ADSL router 'd' is down the remote VPN server 'g' should be 'unreachable' rather than 'down'.
I have not seen an 'also relies upon', or similar, option. Have I missed something?
Thanks in advance.
Monitoring VPNs
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: Monitoring VPNs
You could certainly work with host or service dependencies, however I think parents likely would be just fine to a large extent. If you were to set vpn server F as a child of your adsl connection or vpn server D, you would effectively limit the alerts and have close if not the correct layout for what you are looking to do. Host or service dependencies will allow you to define multiple dependencies though, and would all both the adsl and vpn D to be dependencies of vpn server F, however it will not display the same on graphing, and does cause some minor changes in how alerts are computed.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Re: Monitoring VPNs
Thanks - that gave me exactly the right things to look at.
I don't know how I missed hostdependency.
I don't know how I missed hostdependency.
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: Monitoring VPNs
You're welcome! Let us know if you run into any difficulties.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.