* ffluci/statistics: add cbi model for unixsock plugin
authorJo-Philipp Wich <jow@openwrt.org>
Wed, 21 May 2008 04:34:13 +0000 (04:34 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Wed, 21 May 2008 04:34:13 +0000 (04:34 +0000)
applications/luci-statistics/files/etc/config/luci_statistics
applications/luci-statistics/files/usr/bin/stat-genconfig
applications/luci-statistics/src/model/menu/70luci-statistics.lua

index 777f237..64beddb 100644 (file)
@@ -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'
+
index 9de8e17..2b2e19d 100755 (executable)
@@ -271,6 +271,12 @@ plugins = {
                { "LocalPorts", "RemotePorts" }
        },
 
+       unixsock = {
+               { "SocketFile", "SocketUser", "SocketPerms" },
+               { },
+               { }
+       },
+
 }
 
 
index 99429af..bc36d71 100644 (file)
@@ -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" )