diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2008-06-01 23:52:07 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2008-06-01 23:52:07 +0000 |
commit | 3e94adc682b0d72503023300bddf9d6eaf6ca380 (patch) | |
tree | 8120ae73bd1e6f585bfd9f9b2368939959c14f7d /applications/luci-statistics/luasrc/model/cbi/luci_statistics/unixsock.lua | |
parent | c660416989900ba648a5ff908b67b565eb66edcf (diff) |
* luci/statistics: complete cbi model translation
Diffstat (limited to 'applications/luci-statistics/luasrc/model/cbi/luci_statistics/unixsock.lua')
-rw-r--r-- | applications/luci-statistics/luasrc/model/cbi/luci_statistics/unixsock.lua | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/applications/luci-statistics/luasrc/model/cbi/luci_statistics/unixsock.lua b/applications/luci-statistics/luasrc/model/cbi/luci_statistics/unixsock.lua index dcedd381bc..eb97a3e2fa 100644 --- a/applications/luci-statistics/luasrc/model/cbi/luci_statistics/unixsock.lua +++ b/applications/luci-statistics/luasrc/model/cbi/luci_statistics/unixsock.lua @@ -13,31 +13,29 @@ $Id$ ]]-- -m = Map("luci_statistics", "Unixsock Plugin", -[[Das Unixsock-Plugin öffnet einen Socket über welchen die gesammelten Werte des -laufenden collectd Prozesses abgefragt werden können.]]) +m = Map("luci_statistics") -- collectd_unixsock config section -s = m:section( NamedSection, "collectd_unixsock", "luci_statistics", "Pluginkonfiguration" ) +s = m:section( NamedSection, "collectd_unixsock", "luci_statistics" ) -- collectd_unixsock.enable -enable = s:option( Flag, "enable", "Plugin aktivieren" ) +enable = s:option( Flag, "enable" ) enable.default = 0 -- collectd_unixsock.socketfile (SocketFile) -socketfile = s:option( Value, "SocketFile", "Pfad für den Unix-Socket" ) +socketfile = s:option( Value, "SocketFile" ) socketfile.default = "/var/run/collect-query.socket" socketfile:depends( "enable", 1 ) -- collectd_unixsock.socketgroup (SocketGroup) -socketgroup = s:option( Value, "SocketGroup", "Dateibesitzergruppe für den Unix-Socket ändern" ) +socketgroup = s:option( Value, "SocketGroup" ) socketgroup.default = "nobody" socketgroup.rmempty = true socketgroup.optional = true socketgroup:depends( "enable", 1 ) -- collectd_unixsock.socketperms (SocketPerms) -socketperms = s:option( Value, "SocketPerms", "Dateiberechtigungen für den Unix-Socket ändern" ) +socketperms = s:option( Value, "SocketPerms" ) socketperms.default = "0770" socketperms.rmempty = true socketperms.optional = true |