[collectd] [PATCH] OpenVPN plugin

Florian Forster octo at verplant.org
Thu Jan 1 12:35:19 CET 2009

Hi Doug,

On Sat, Dec 20, 2008 at 09:24:44PM -0500, Doug MacEachern wrote:
> Simple but useful module for monitoring per-client openvpn traffic..
> Any thoughts on having 'make install' populate the include/ directory?
> Seems like *.h plus an apxs-like script would be handy for this type
> of plugin.

thanks a lot for your plugin :) Unfortunately, my version of OpenVPN
(2.0.9-4etch1) doesn't print client lists yet :/

I changed the header of the .c file to name you as one of the copyright
holders, too, and added you to the list of authors.

Also, I've added an entry to the collectd.conf(5) manual page. Could you
please double check that I understood everything correctly?
-- 8< --
 Plugin "openvpn"

 The OpenVPN plugin reads a status file maintained by OpenVPN and gath-
 ers traffic statistics about connected clients.

 To set up OpenVPN to write to the status file periodically, use the
 --status option of OpenVPN. Since OpenVPN can write two different for-
 mats, you need to set the required format, too. This is done by setting
 --status-version to 2.

 So, in a nutshell you need:

   openvpn $OTHER_OPTIONS \
     --status "/var/run/openvpn-status" 10 \
     --status-version 2

 Available options:

 StatusFile File
     Specifies the location of the status file.
-- >8 --

Best regards,
Florian octo Forster
Hacker in training
GnuPG: 0x91523C3D
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://mailman.verplant.org/pipermail/collectd/attachments/20090101/f92981bd/attachment.pgp 

More information about the collectd mailing list