Home Directory Plugins Security VPN Software check_openvpn (hoschie)

Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

check_openvpn (hoschie)

Rating
0 votes
Favoured:
0
Hits
92420
Files:
FileDescription
check_openvpn.phpcheck_openvpn.php
utils.phputils.php
Network Monitoring Software - Download Nagios XI
Log Management Software - Nagios Log Server - Download
Netflow Analysis Software - Nagios Network Analyzer - Download
Check if a particular user is logged in depending on his **CommonName**.
**Required:** OpenVPN 2.0+ status logfile v2
in your server config just add:
status /path/to/logfile
status-version 2

**Usage:** ./check_openvpn.php CommonName

**Results in:** VPN IP, Connected since, Received, Transmit:
OK: IP 10.10.10.9, Online Mon, 10:25 Uhr, RX: 9.25 kb, TX: 9.59 kb

or

OK: Client $client is not connected.

Currently BOTH vpn states report OK, because i just want to know the IP of the people logged in, not real Monitoring on it. But you can change this easily to state CRITICAL for monitoring permanent links.