Check openvpn or ping to an IP

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
supportcl
Posts: 39
Joined: Wed Oct 07, 2020 12:19 pm

Check openvpn or ping to an IP

Post 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
User avatar
jdunitz
Posts: 235
Joined: Wed Feb 05, 2020 2:50 pm

Re: Check openvpn or ping to an IP

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
supportcl
Posts: 39
Joined: Wed Oct 07, 2020 12:19 pm

Re: Check openvpn or ping to an IP

Post 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
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Check openvpn or ping to an IP

Post 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
Locked