Openvpn clients connections

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

Post Reply
godlike
Posts: 1
Joined: Sat Sep 12, 2009 1:46 pm

Openvpn clients connections

Post by godlike »

Sorry for my awfully English.

For graphing the number of users, connected to openvpn server,
i wrote little script, and created few templates.
first of all, add these strings to your openvpn config (example):

Code: Select all

...
status-version 2
status /var/log/openvpn/openvpn-status.log
...
then create that file:

Code: Select all

mkdir /var/log/openvpn
touch /var/log/openvpn/openvpn-status.log
Then restart openvpn service.
Then put openvpn.sh(included) to <cacti_path>/scripts/

After that, import two templates - graph and data-source.
And for any local host, you may create such graphs, as included.

Thanks for attention, if you have any questions, post here, i'll try to answer.
Attachments
openvpn.sh
script
(147 Bytes) Downloaded 484 times
openvpn_data_template.xml
data template
(3.24 KiB) Downloaded 356 times
openvpn_graph_template.xml
graph template
(7.5 KiB) Downloaded 508 times
screenshot
screenshot
ovpn.png (15.87 KiB) Viewed 3286 times
cyberdam
Posts: 1
Joined: Thu Oct 15, 2009 10:34 am

Post by cyberdam »

hello

Thank you for the script:)
I wanted to try, I wanted to import into cacti and I get an error when importing: Error: XML: Hash version does not exist.

Why?

Info: Cacti v0.8.7b

thank you
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests