-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathREADME
62 lines (42 loc) · 2.07 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
README
============
This plugin for munin parses OpenVPN status output. It graphs:
* Count of connected users
* Sent and received bytes for each user
This plugin is written in bash. It has no specific requirements. It auto-detects
OpenVPN status-version configuration option value.
Installation
============
Install the plugin with:
command wget 'https://raw.github.com/biapy/munin-openvpn/master/openvpn_usercount' \
--no-check-certificate --output-document='/usr/share/munin/plugins/openvpn_usercount'
command chmod +x '/usr/share/munin/plugins/openvpn_usercount'
command wget 'https://raw.github.com/biapy/munin-openvpn/master/openvpn_usertransfer' \
--no-check-certificate --output-document='/usr/share/munin/plugins/openvpn_usertransfer'
command chmod +x '/usr/share/munin/plugins/openvpn_usertransfer'
Enable it with:
command ln -s '/usr/share/munin/plugins/openvpn_usertransfer' '/etc/munin/plugins/openvpn_usertransfer'
command ln -s '/usr/share/munin/plugins/openvpn_usercount' '/etc/munin/plugins/openvpn_usercount'
You can graph multiple OpenVPN networks by appending the network name to plugin alias (here for 'network.vpn'):
command ln -s '/usr/share/munin/plugins/openvpn_usertransfer' '/etc/munin/plugins/openvpn_usertransfer_network.vpn'
command ln -s '/usr/share/munin/plugins/openvpn_usercount' '/etc/munin/plugins/openvpn_usercount_network.vpn'
Add these lines (adapted to your need) to munin-node configuration:
[openvpn_usertransfer]
user root
env.statusfile /var/log/openvpn-status.log
[openvpn_usercount]
user root
env.statusfile /var/log/openvpn-status.log
[openvpn_usertransfer_network.vpn]
user root
env.statusfile /var/log/openvpn/network.vpn/openvpn-status.log
[openvpn_usercount_network.vpn]
user root
env.statusfile /var/log/openvpn/network.vpn/openvpn-status.log
Credits
=======
This plugin was originaly created by Jeffrey Forman ( https://github.com/jforman )
Its current version has been written by Pierre-Yves Landure for Biapy:
* http://www.biapy.fr/
* http://howto.biapy.com/
* https://github.com/biapy