Skip to content

collectors OpenVPNCollector

Rob Smith edited this page Jul 16, 2012 · 12 revisions

OpenVPNCollector

Processes OpenVPN metrics. This collector can process multiple OpenVPN instances (even from a server box). In addition to the path, you may also specify a name of the instance.

You can use both the status file or the tcp management connection to retrieve the metrics.

To parse the status file::

instances = file:///var/log/openvpn/status.log

Or, to override the name (now "status"):

instances = file:///var/log/openvpn/status.log?developers

To use the management connection::

instances = tcp://127.0.0.1:1195

Or, to override the name (now "127_0_0_1"):

instances = tcp://127.0.0.1:1195?developers

You can also specify multiple and mixed instances::

instances = file:///var/log/openvpn/developers.log, tcp://10.0.0.1:1195?admins

Dependencies

  • urlparse

Options

  • Generic Options
  • instances: List of instances to collect stats from
  • enabled: Enable collecting these metrics
  • timeout: network timeout
  • byte_unit: Default numeric output(s)

Example Output

All keys are prefixed with nodes.hostname by default

Clone this wiki locally