2008-05-21 04:36:47 +00:00
|
|
|
--[[
|
|
|
|
|
|
|
|
Luci configuration model for statistics - collectd unixsock plugin configuration
|
|
|
|
(c) 2008 Freifunk Leipzig / Jo-Philipp Wich <xm@leipzig.freifunk.net>
|
|
|
|
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
you may not use this file except in compliance with the License.
|
|
|
|
You may obtain a copy of the License at
|
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
|
|
$Id$
|
|
|
|
|
|
|
|
]]--
|
|
|
|
|
2008-06-01 23:52:07 +00:00
|
|
|
m = Map("luci_statistics")
|
2008-05-21 04:36:47 +00:00
|
|
|
|
|
|
|
-- collectd_unixsock config section
|
2008-06-01 23:52:07 +00:00
|
|
|
s = m:section( NamedSection, "collectd_unixsock", "luci_statistics" )
|
2008-05-21 04:36:47 +00:00
|
|
|
|
|
|
|
-- collectd_unixsock.enable
|
2008-06-01 23:52:07 +00:00
|
|
|
enable = s:option( Flag, "enable" )
|
2008-05-21 04:36:47 +00:00
|
|
|
enable.default = 0
|
|
|
|
|
|
|
|
-- collectd_unixsock.socketfile (SocketFile)
|
2008-06-01 23:52:07 +00:00
|
|
|
socketfile = s:option( Value, "SocketFile" )
|
2008-05-21 04:36:47 +00:00
|
|
|
socketfile.default = "/var/run/collect-query.socket"
|
|
|
|
socketfile:depends( "enable", 1 )
|
|
|
|
|
|
|
|
-- collectd_unixsock.socketgroup (SocketGroup)
|
2008-06-01 23:52:07 +00:00
|
|
|
socketgroup = s:option( Value, "SocketGroup" )
|
2008-05-21 04:36:47 +00:00
|
|
|
socketgroup.default = "nobody"
|
|
|
|
socketgroup.rmempty = true
|
|
|
|
socketgroup.optional = true
|
|
|
|
socketgroup:depends( "enable", 1 )
|
|
|
|
|
|
|
|
-- collectd_unixsock.socketperms (SocketPerms)
|
2008-06-01 23:52:07 +00:00
|
|
|
socketperms = s:option( Value, "SocketPerms" )
|
2008-05-21 04:36:47 +00:00
|
|
|
socketperms.default = "0770"
|
|
|
|
socketperms.rmempty = true
|
|
|
|
socketperms.optional = true
|
|
|
|
socketperms:depends( "enable", 1 )
|
|
|
|
|
|
|
|
return m
|