summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-statistics/root
diff options
context:
space:
mode:
authorHannu Nyman <hannu.nyman@iki.fi>2015-08-27 10:19:38 +0300
committerHannu Nyman <hannu.nyman@iki.fi>2015-08-27 10:19:38 +0300
commit7df0df48c006bbe3a8f4f73cd7b0bdc9bec0f80e (patch)
treea0be874edeb594b2346bbbfdb855a93821a9d8d4 /applications/luci-app-statistics/root
parent084d435060f73a8e098c8022a43bd9f5b1fd63ca (diff)
statistics: Add support for entropy stats
Add statistics on the available entropy. Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
Diffstat (limited to 'applications/luci-app-statistics/root')
-rw-r--r--applications/luci-app-statistics/root/etc/config/luci_statistics3
-rwxr-xr-xapplications/luci-app-statistics/root/usr/bin/stat-genconfig6
2 files changed, 9 insertions, 0 deletions
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 = {