Nagios/Icinga check for OpenVPN availability monitoring
The checks must be run on the monitoring server
The plugin is a normal check which must be run on the monitoring server. It queries the target OpenVPN server and outputs OK, etc.
$ python check_openvpn --help
usage: openvpn.py [-h] [-p PORT] [-t] [--timeout TIMEOUT] [--digest DIGEST]
[--digest-size DIGEST_SIZE] [--digest-key DIGEST_KEY]
[--tls-auth TLS_AUTH]
host
positional arguments:
host the OpenVPN host name or ip
optional arguments:
-h, --help show this help message and exit
-p PORT, --port PORT set port number (default is %default)
-t, --tcp use tcp instead of udp
--timeout TIMEOUT set timeout (default is %default)
--digest DIGEST set HMAC digest (default is %default)
--digest-size DIGEST_SIZE
set HMAC digest size
--digest-key DIGEST_KEY
set HMAC key
--tls-auth TLS_AUTH set tls-auth file