summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorHannu Nyman <hannu.nyman@iki.fi>2016-09-04 13:18:59 +0300
committerHannu Nyman <hannu.nyman@iki.fi>2016-09-04 13:18:59 +0300
commita69bd4202ecb92ceb009b7f4e5b9fd60328389ab (patch)
treebdc0d7d49c7255f7b8318d819d4dbb6bbbc2855f
parentd5f8c9b0280ac17eaa8ea87a893204dfeeea7d68 (diff)
luci-app-statistics: Add cpu and memory plugins to the default set
Add cpu and memory statistics plugins to the default set included in Luci statistics and enable them in the default config. They are useful small collectd plugins for resource usage monitoring. Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
-rw-r--r--applications/luci-app-statistics/Makefile1
-rw-r--r--applications/luci-app-statistics/root/etc/config/luci_statistics4
2 files changed, 3 insertions, 2 deletions
diff --git a/applications/luci-app-statistics/Makefile b/applications/luci-app-statistics/Makefile
index af07cfbd0..6c0121e96 100644
--- a/applications/luci-app-statistics/Makefile
+++ b/applications/luci-app-statistics/Makefile
@@ -9,6 +9,7 @@ include $(TOPDIR)/rules.mk
LUCI_TITLE:=LuCI Statistics Application
LUCI_DEPENDS:= \
+collectd +rrdtool1 +collectd-mod-rrdtool +collectd-mod-iwinfo \
+ +collectd-mod-cpu +collectd-mod-memory \
+collectd-mod-interface +collectd-mod-load +collectd-mod-network
include ../../luci.mk
diff --git a/applications/luci-app-statistics/root/etc/config/luci_statistics b/applications/luci-app-statistics/root/etc/config/luci_statistics
index de16f29de..4435d5c61 100644
--- a/applications/luci-app-statistics/root/etc/config/luci_statistics
+++ b/applications/luci-app-statistics/root/etc/config/luci_statistics
@@ -53,7 +53,7 @@ config statistics 'collectd_conntrack'
option enable '0'
config statistics 'collectd_cpu'
- option enable '0'
+ option enable '1'
config statistics 'collectd_df'
option enable '0'
@@ -113,7 +113,7 @@ config statistics 'collectd_load'
option enable '1'
config statistics 'collectd_memory'
- option enable '0'
+ option enable '1'
config statistics 'collectd_netlink'
option enable '0'