OPNsense Forum

Archive => 17.7 Legacy Series => Topic started by: fabio on October 01, 2017, 01:16:20 PM

Title: Collectd and openvpn stats
Post by: fabio on October 01, 2017, 01:16:20 PM
Hi
I would like to collect openvpn stats via collectd so I've manually added:
LoadPlugin openvpn
<Plugin openvpn>
StatusFile "/var/run/openvpn-status.log"
CollectIndividualUsers true
CollectUserCount true
CollectCompression true
ImprovedNamingSchema false
</Plugin>

to my /usr/local/etc/collectd.conf

and
status /var/run/openvpn-status.log


in the Advanced field of "VPN: OpenVPN: Servers"

This seems works fine so I'm asking you, if it's possibile, to add an "Advanced" field also in collectd
field simply appended to /usr/local/etc/collectd.conf


Thank you for all your great work and sorry if I've only requests and not code


Title: Re: Collectd and openvpn stats
Post by: fabian on October 01, 2017, 01:45:28 PM
if this gets added to the core package with an automatically generated name, extending the plugin would be simple. You may want to add a feature request on the plugins and the core package on GitHub
Title: Re: Collectd and openvpn stats
Post by: fabio on October 01, 2017, 02:37:38 PM
perfect I'll add this request on GitHub

Thansk again