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
...
Code: Select all
mkdir /var/log/openvpn
touch /var/log/openvpn/openvpn-status.log
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.