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:
Code: [Select]
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
Code: [Select]
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