VPN Monitoring - How to get notification when no link?

Need help configuring your VPN? Just post here and you'll get that help.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
torontob
OpenVpn Newbie
Posts: 14
Joined: Fri Sep 16, 2011 5:51 pm

VPN Monitoring - How to get notification when no link?

Post by torontob » Mon Oct 03, 2011 7:00 pm

Hi everyone,

I am wondering if there is a proven built-in feature to OpenVPN server and Client that can alert me when a link is down? I can use some bash scripting and do ping tests but I don't think that is the best way to do it. What is the corporate world accepted method for monitor a VPN connection and relaying information when a link is down?

Thanks in advance

User avatar
janjust
Forum Team
Posts: 2703
Joined: Fri Aug 20, 2010 2:57 pm
Location: Amsterdam
Contact:

Re: VPN Monitoring - How to get notification when no link?

Post by janjust » Mon Oct 03, 2011 8:52 pm

when using
keepalive 10 30
openvpn itself will try to keep the link alive; it does this using 'keepalive pings' which are internal to openvpn.

there are nagios probes for monitoring openvpn - most larger setups use a tool like nagios to verify the status of the network and VPN; these nagios probes often do ping scans themselves, BTW.

User avatar
Mimiko
Forum Team
Posts: 1564
Joined: Wed Sep 22, 2010 3:18 am

Re: VPN Monitoring - How to get notification when no link?

Post by Mimiko » Tue Oct 04, 2011 12:34 pm

Notification is done via scripts run on client dissconect. What is the purpose of that monitoring?

torontob
OpenVpn Newbie
Posts: 14
Joined: Fri Sep 16, 2011 5:51 pm

Re: VPN Monitoring - How to get notification when no link?

Post by torontob » Tue Oct 04, 2011 6:21 pm

Thanks for input guys. "keepalive 10 30" is great but won't cut it for me. I want to keep history of disconnections and have a radar display at my NOC for this.

I have explored Nagios and I find it really messy. I have decided to make my own interface and first thing that came to my mind was ping test as well but I was wondering if there is a built-in way or a better way to do this.

Mimiko: The VPN connection is used with a SIP Phones so I need it to be up all the time and if it's not up for some reason for us to know and fix the issue before the customer even notices the issue.

Thanks

Post Reply