diff options
Diffstat (limited to 'collectors/python.d.plugin/ovpn_status_log')
-rw-r--r-- | collectors/python.d.plugin/ovpn_status_log/README.md | 22 | ||||
-rw-r--r-- | collectors/python.d.plugin/ovpn_status_log/ovpn_status_log.chart.py | 3 |
2 files changed, 19 insertions, 6 deletions
diff --git a/collectors/python.d.plugin/ovpn_status_log/README.md b/collectors/python.d.plugin/ovpn_status_log/README.md index 053e3f0de..8fa8cb833 100644 --- a/collectors/python.d.plugin/ovpn_status_log/README.md +++ b/collectors/python.d.plugin/ovpn_status_log/README.md @@ -1,8 +1,14 @@ -# ovpn_status_log +<!-- +title: "OpenVPN monitoring with Netdata" +custom_edit_url: https://github.com/netdata/netdata/edit/master/collectors/python.d.plugin/ovpn_status_log/README.md +sidebar_label: "OpenVPN" +--> -Module monitor openvpn-status log file. +# OpenVPN monitoring with Netdata -**Requirements:** +Parses server log files and provides summary (client, traffic) metrics. + +## Requirements - If you are running multiple OpenVPN instances out of the same directory, MAKE SURE TO EDIT DIRECTIVES which create output files so that multiple instances do not overwrite each other's output files. @@ -22,7 +28,15 @@ It produces: - in - out -## configuration +## Configuration + +Edit the `python.d/ovpn_status_log.conf` configuration file using `edit-config` from the Netdata [config +directory](/docs/configure/nodes.md), which is typically at `/etc/netdata`. + +```bash +cd /etc/netdata # Replace this path with your Netdata config directory, if different +sudo ./edit-config python.d/ovpn_status_log.conf +``` Sample: diff --git a/collectors/python.d.plugin/ovpn_status_log/ovpn_status_log.chart.py b/collectors/python.d.plugin/ovpn_status_log/ovpn_status_log.chart.py index f094ab7c1..cfc87be36 100644 --- a/collectors/python.d.plugin/ovpn_status_log/ovpn_status_log.chart.py +++ b/collectors/python.d.plugin/ovpn_status_log/ovpn_status_log.chart.py @@ -7,7 +7,6 @@ import re from bases.FrameworkServices.SimpleService import SimpleService - update_every = 10 ORDER = [ @@ -72,7 +71,7 @@ class Service(SimpleService): break if found: return True - self.error('Failed to parse ovpenvpn log file') + self.error('Failed to parse openvpn log file') return False def _get_raw_data(self): |