From 97ff6fa3e9722f7db065932c4bb94b103e8c6012 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Wed, 21 May 2008 04:34:13 +0000 Subject: [PATCH] * ffluci/statistics: add cbi model for unixsock plugin --- .../luci-statistics/files/etc/config/luci_statistics | 4 ++++ applications/luci-statistics/files/usr/bin/stat-genconfig | 6 ++++++ .../luci-statistics/src/model/menu/70luci-statistics.lua | 2 +- 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/applications/luci-statistics/files/etc/config/luci_statistics b/applications/luci-statistics/files/etc/config/luci_statistics index 777f237b7..64beddb91 100644 --- a/applications/luci-statistics/files/etc/config/luci_statistics +++ b/applications/luci-statistics/files/etc/config/luci_statistics @@ -106,3 +106,7 @@ config 'statistics' 'collectd_tcpconns' option 'ListeningPorts' '0' option 'LocalPorts' '22 80 443' +config 'statistics' 'collectd_unixsock' + option 'enable' '1' + option 'SocketFile' '/var/run/collectd-query.sock' + diff --git a/applications/luci-statistics/files/usr/bin/stat-genconfig b/applications/luci-statistics/files/usr/bin/stat-genconfig index 9de8e1788..2b2e19dca 100755 --- a/applications/luci-statistics/files/usr/bin/stat-genconfig +++ b/applications/luci-statistics/files/usr/bin/stat-genconfig @@ -271,6 +271,12 @@ plugins = { { "LocalPorts", "RemotePorts" } }, + unixsock = { + { "SocketFile", "SocketUser", "SocketPerms" }, + { }, + { } + }, + } diff --git a/applications/luci-statistics/src/model/menu/70luci-statistics.lua b/applications/luci-statistics/src/model/menu/70luci-statistics.lua index 99429af53..bc36d7122 100644 --- a/applications/luci-statistics/src/model/menu/70luci-statistics.lua +++ b/applications/luci-statistics/src/model/menu/70luci-statistics.lua @@ -27,5 +27,5 @@ act( "processes", "Prozesse" ) --act( "tail", "Dateiverfolgung" ) --act( "teamspeak2", "TeamSpeak 2" ) act( "tcpconns", "TCP Verbindungen" ) ---act( "unixsock", "UNIX Sockets" ) +act( "unixsock", "UNIX Socket" ) --act( "vmem", "Vmem" ) -- 2.25.1