From: Jo-Philipp Wich Date: Wed, 21 May 2008 04:34:13 +0000 (+0000) Subject: * ffluci/statistics: add cbi model for unixsock plugin X-Git-Tag: 0.8.0~1016 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=97ff6fa3e9722f7db065932c4bb94b103e8c6012;p=oweals%2Fluci.git * ffluci/statistics: add cbi model for unixsock plugin --- 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" )