From 7df0df48c006bbe3a8f4f73cd7b0bdc9bec0f80e Mon Sep 17 00:00:00 2001 From: Hannu Nyman Date: Thu, 27 Aug 2015 10:19:38 +0300 Subject: statistics: Add support for entropy stats Add statistics on the available entropy. Signed-off-by: Hannu Nyman --- applications/luci-app-statistics/root/etc/config/luci_statistics | 3 +++ applications/luci-app-statistics/root/usr/bin/stat-genconfig | 6 ++++++ 2 files changed, 9 insertions(+) (limited to 'applications/luci-app-statistics/root') diff --git a/applications/luci-app-statistics/root/etc/config/luci_statistics b/applications/luci-app-statistics/root/etc/config/luci_statistics index e39db3513..b91b20f95 100644 --- a/applications/luci-app-statistics/root/etc/config/luci_statistics +++ b/applications/luci-app-statistics/root/etc/config/luci_statistics @@ -45,6 +45,9 @@ config 'statistics' 'collectd_email' option 'SocketFile' '/var/run/collectd/email.sock' option 'SocketGroup' 'nogroup' +config 'statistics' 'collectd_entropy' + option 'enable' '0' + config 'statistics' 'collectd_exec' option 'enable' '0' diff --git a/applications/luci-app-statistics/root/usr/bin/stat-genconfig b/applications/luci-app-statistics/root/usr/bin/stat-genconfig index cb94e2811..8acae46c6 100755 --- a/applications/luci-app-statistics/root/usr/bin/stat-genconfig +++ b/applications/luci-app-statistics/root/usr/bin/stat-genconfig @@ -303,6 +303,12 @@ plugins = { { } }, + entropy = { + { }, + { }, + { } + }, + exec = config_exec, interface = { -- cgit v1.2.3