diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2008-05-21 04:34:13 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2008-05-21 04:34:13 +0000 |
commit | 97ff6fa3e9722f7db065932c4bb94b103e8c6012 (patch) | |
tree | 6795f43f830eed5273be01fbea0ca4c4931ae056 | |
parent | f90684f321fa1e3a15746c9b72042f5eba15776d (diff) |
* ffluci/statistics: add cbi model for unixsock plugin
3 files changed, 11 insertions, 1 deletions
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" ) |