diff options
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 dcedd381b..eb97a3e2f 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 |