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

Directory Tree

check_openvpn (hoschie)

Rating
0 votes
Favoured:
0
Hits
96332
Files:
FileDescription
check_openvpn.phpcheck_openvpn.php
utils.phputils.php
Nagios CSP

Meet The New Nagios Core Services Platform

Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.

Monitoring Made Magically Better

  • Nagios Core on Overdrive
  • Powerful Monitoring Dashboards
  • Time-Saving Configuration Wizards
  • Open Source Powered Monitoring On Steroids
  • And So Much More!
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.