projects
/
project
/
luci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
luci-app-statistics: add initial support for collectd-mod-openvpn
[project/luci.git]
/
applications
/
luci-app-statistics
/
root
/
usr
/
bin
/
stat-genconfig
diff --git
a/applications/luci-app-statistics/root/usr/bin/stat-genconfig
b/applications/luci-app-statistics/root/usr/bin/stat-genconfig
index
fed08cb
..
49d8a09
100755
(executable)
--- 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
end
if n:find("(%w+)ses") then
- k = n:gsub("(%w+)ses", "%1s")
+ k = n:gsub("(%w+)ses
$
", "%1s")
else
else
- k = n:gsub("(%w+)s", "%1")
+ k = n:gsub("(%w+)s
$
", "%1")
end
str = str .. _expand( c[n], k, nopad )
end
str = str .. _expand( c[n], k, nopad )
@@
-375,6
+375,12
@@
plugins = {
{ }
},
{ }
},
+ openvpn = {
+ { },
+ { "CollectIndividualUsers", "CollectUserCount", "CollectCompression", "ImprovedNamingSchema" },
+ { "StatusFile" }
+ },
+
ping = {
{ "TTL", "Interval" },
{ },
ping = {
{ "TTL", "Interval" },
{ },