Ad Widget

Collapse

Monitoring OpenVPN plugin

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • muratkoc
    Junior Member
    • Mar 2008
    • 23

    #1

    Monitoring OpenVPN plugin

    Hi,

    This is the basic openvpn monitoring plugin, it can monitor number of connected clients, total bytes in and total bytes out. You can enhance it to whatever your needs.

    Here are the steps;

    1-) Download the script and rename it to check_openvpn.sh
    2-) Copy to /home/zabbix/bin/check_openvpn.sh on the openvpn server
    3-) Add this line to openvpn's server.conf and restart openvpn

    management 127.0.0.1 1150

    4-) add items as openvpn[nclients], openvpn[bytesin] and openvpn[bytesout]

    That's all, it is easy to make graphs etc so I don't provide template.

    Hope this helps to openvpn users to give idea.
    Attached Files
  • muratkoc
    Junior Member
    • Mar 2008
    • 23

    #2
    Forgot to say add userparameter as follow;

    UserParameter=openvpn[*],/home/zabbix/bin/check_openvpn.sh $1

    Comment

    • Slash
      Member
      • May 2011
      • 64

      #3
      Hello,

      I have done this differently : I used the "short status file".

      Also my script is not just for Zabbix since it create a log file containing all terminated sessions, wtih their duration in minute, which is very useful to actually know how your OpenVPN server is used ;-)

      I have written everything on my wiki here : http://aceslash.net/index.php?title=...VPN_monitoring

      Comment

      • yoogyrt
        Junior Member
        • Feb 2013
        • 4

        #4
        Originally posted by Slash
        Hello,

        I have done this differently : I used the "short status file".

        Also my script is not just for Zabbix since it create a log file containing all terminated sessions, wtih their duration in minute, which is very useful to actually know how your OpenVPN server is used ;-)

        I have written everything on my wiki here : http://aceslash.net/index.php?title=...VPN_monitoring
        What the settings should be on the zabbix server and see how it should look?

        Comment

        • Astrid
          Junior Member
          • Nov 2022
          • 2

          #5
          Originally posted by Slash
          Hello,

          I have done this differently : I used the "short status file".

          Also my script is not just for Zabbix since it create a log file containing all terminated sessions, wtih their duration in minute, which is very useful to actually know how your OpenVPN server is used ;-)

          I have written everything on my wiki here : http://aceslash.net/index.php?title=...VPN_monitoring
          Hi Slash. can you share us the script and also how to do it. Thank you.

          Comment

          Working...