summaryrefslogtreecommitdiffhomepage
path: root/applications
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2008-05-21 04:34:13 +0000
committerJo-Philipp Wich <jow@openwrt.org>2008-05-21 04:34:13 +0000
commit97ff6fa3e9722f7db065932c4bb94b103e8c6012 (patch)
tree6795f43f830eed5273be01fbea0ca4c4931ae056 /applications
parentf90684f321fa1e3a15746c9b72042f5eba15776d (diff)
* ffluci/statistics: add cbi model for unixsock plugin
Diffstat (limited to 'applications')
-rw-r--r--applications/luci-statistics/files/etc/config/luci_statistics4
-rwxr-xr-xapplications/luci-statistics/files/usr/bin/stat-genconfig6
-rw-r--r--applications/luci-statistics/src/model/menu/70luci-statistics.lua2
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" )