OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Archive »
  • 17.7 Legacy Series »
  • Collectd and openvpn stats
« previous next »
  • Print
Pages: [1]

Author Topic: Collectd and openvpn stats  (Read 4035 times)

fabio

  • Newbie
  • *
  • Posts: 46
  • Karma: 2
    • View Profile
Collectd and openvpn stats
« 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


Logged

fabian

  • Hero Member
  • *****
  • Posts: 2768
  • Karma: 199
  • OPNsense Contributor (Language, VPN, Proxy, etc.)
    • View Profile
    • Personal Homepage
Re: Collectd and openvpn stats
« Reply #1 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
Logged

fabio

  • Newbie
  • *
  • Posts: 46
  • Karma: 2
    • View Profile
Re: Collectd and openvpn stats
« Reply #2 on: October 01, 2017, 02:37:38 pm »
perfect I'll add this request on GitHub

Thansk again
Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • Archive »
  • 17.7 Legacy Series »
  • Collectd and openvpn stats
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2023 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2