Openvpn nagios pluging

You can use Nagios to monitor all sorts of hardware and software. The opportunity to write your own plug-ins makes it possible to monitor everything that your Nagios server can communicate with. As you can use any computing language that manages command-line arguments and exit status.
Here you find a nagios pluging developed with python.
The pluging named check_openvpn, it connects to the management OpenVPN server checks for actives connection and return the amount connected OpenVPN clients. it’s forked from openvpn-status scripts.

First of all download the check_openvpn script into your pluging directory on debian it’s /usr/lib/nagios/plugins/.

To use the new plug-in, you have to register it first, create the file command called openvpn.cfg with contents as below:

my Sr. has created one user account on that machine for my access.i just want to know VPN console management password is different with a normal accout if yes….can you share any doc to create VPN console management password.

You have to change port on your Linux VPN service file to 9191, what you specified on the openvpn.conf file.
In this line : check_command check_openvpn!10.120.120.1!11940!mypassword, also verify that this IP address is OK.

Verify that the port 9191 is open, for that you can telnet your server as :
telnet 10.120.120.1 9191, if you got a prompt than you could be OK.
Else check if there are a firewall or something that block access to server on that port.