summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-statistics/root/usr
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2015-10-05 18:55:28 +0200
committerJo-Philipp Wich <jow@openwrt.org>2015-10-05 18:55:28 +0200
commit3289e134953887482bdaa28c28567917bb91facb (patch)
tree09d24627791b6cde12a4c49fb64ab04da7186302 /applications/luci-app-statistics/root/usr
parentcff2b99b4f9af0957ff6de4fe1ce48d30337b41b (diff)
luci-app-statistics: add initial support for collectd-mod-openvpn
This changeset covers compression and traffic stats, not every combination has been tested yet. Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
Diffstat (limited to 'applications/luci-app-statistics/root/usr')
-rwxr-xr-xapplications/luci-app-statistics/root/usr/bin/stat-genconfig10
1 files changed, 8 insertions, 2 deletions
diff --git a/applications/luci-app-statistics/root/usr/bin/stat-genconfig b/applications/luci-app-statistics/root/usr/bin/stat-genconfig
index fed08cbd1..49d8a0993 100755
--- a/applications/luci-app-statistics/root/usr/bin/stat-genconfig
+++ b/applications/luci-app-statistics/root/usr/bin/stat-genconfig
@@ -187,9 +187,9 @@ function _list_expand( c, l, nopad )
end
if n:find("(%w+)ses") then
- k = n:gsub("(%w+)ses", "%1s")
+ k = n:gsub("(%w+)ses$", "%1s")
else
- k = n:gsub("(%w+)s", "%1")
+ k = n:gsub("(%w+)s$", "%1")
end
str = str .. _expand( c[n], k, nopad )
@@ -375,6 +375,12 @@ plugins = {
{ }
},
+ openvpn = {
+ { },
+ { "CollectIndividualUsers", "CollectUserCount", "CollectCompression", "ImprovedNamingSchema" },
+ { "StatusFile" }
+ },
+
ping = {
{ "TTL", "Interval" },
{ },