Page 1 of 1
Check openvpn or ping to an IP
Posted: Fri Nov 06, 2020 1:09 pm
by supportcl
Hello, I have the need to check the status of a VPN, I don't know how to solve this problem, I have 2 ideas, one is to ping the VPN IP, but since it is an IP between one server and another, from nagios How can I ping that ip?
Another way is to verify that the VPN client (openVPN) is effectively connected. How can I do that?
Thank you!
IP nagios 172.16.1.10
IP server 172.24.2.100
VPN IP 172.16.0.1
Re: Check openvpn or ping to an IP
Posted: Fri Nov 06, 2020 2:43 pm
by jdunitz
Can the machine on the other side of the VPN reach the Nagios machine?
If so, you could set up a passive check and have the VPN-connected machine submit a passive check result to XI on a schedule.
Would that solve your problem?
--Jeffrey
Re: Check openvpn or ping to an IP
Posted: Mon Nov 09, 2020 7:24 am
by supportcl
Thanks for your answer, but unfortunately we do not have control of the vpn server, so the alternative that you indicate does not work for me, my idea is to make the client ping the VPN server and that nagios can read that and alert when that ping doesn't work
Re: Check openvpn or ping to an IP
Posted: Mon Nov 09, 2020 6:23 pm
by ssax
Can the XI server ping any of the IPs behind the VPN? If not, you'll likely need to use an openVPN plugins to check it:
https://exchange.nagios.org/index.php?o ... rd=openvpn