diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2011-11-28 04:50:54 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2011-11-28 04:50:54 +0000 |
commit | f09ffc2850d43672d036f3e710a9880444fcd678 (patch) | |
tree | 3137cc4eb663a61b9ca390e699b7638b4c28d922 /applications/luci-statistics/root | |
parent | 6acb5c2ab4093973d03657f9eea248c135f58cfc (diff) |
applications/luci-statistics: add support for conntrack plugin
Diffstat (limited to 'applications/luci-statistics/root')
-rw-r--r-- | applications/luci-statistics/root/etc/config/luci_statistics | 6 | ||||
-rwxr-xr-x | applications/luci-statistics/root/usr/bin/stat-genconfig | 7 |
2 files changed, 11 insertions, 2 deletions
diff --git a/applications/luci-statistics/root/etc/config/luci_statistics b/applications/luci-statistics/root/etc/config/luci_statistics index de94b3a6a..ea3f722a6 100644 --- a/applications/luci-statistics/root/etc/config/luci_statistics +++ b/applications/luci-statistics/root/etc/config/luci_statistics @@ -131,3 +131,9 @@ config 'statistics' 'collectd_rrdtool' option 'RRARows' '100' option 'RRASingle' '1' option 'RRATimespans' '1hour 1day 1week 1month 1year' + +config 'statistics' 'collectd_memory' + option 'enable' '1' + +config 'statistics' 'collectd_conntrack' + option 'enable' '1' diff --git a/applications/luci-statistics/root/usr/bin/stat-genconfig b/applications/luci-statistics/root/usr/bin/stat-genconfig index 97c3628ab..8d43b8a0b 100755 --- a/applications/luci-statistics/root/usr/bin/stat-genconfig +++ b/applications/luci-statistics/root/usr/bin/stat-genconfig @@ -192,7 +192,6 @@ function _list_expand( c, l, nopad ) k = n:gsub("(%w+)s", "%1") end - str = str .. _expand( c[n], k, nopad ) end end @@ -334,7 +333,11 @@ plugins = { { "Interfaces", "WatchAdds" } }, - memory = { }, + memory = { + { }, + { }, + { } + }, netlink = { { }, |