1 -- Copyright 2008 Freifunk Leipzig / Jo-Philipp Wich <jow@openwrt.org>
2 -- Licensed to the public under the Apache License 2.0.
4 m = Map("luci_statistics",
5 translate("E-Mail Plugin Configuration"),
7 "The email plugin creates a unix socket which can be used " ..
8 "to transmit email-statistics to a running collectd daemon. " ..
9 "This plugin is primarily intended to be used in conjunction " ..
10 "with Mail::SpamAssasin::Plugin::Collectd but can be used in " ..
14 -- collectd_email config section
15 s = m:section( NamedSection, "collectd_email", "luci_statistics" )
17 -- collectd_email.enable
18 enable = s:option( Flag, "enable", translate("Enable this plugin") )
21 -- collectd_email.socketfile (SocketFile)
22 socketfile = s:option( Value, "SocketFile", translate("Socket file") )
23 socketfile.default = "/var/run/collect-email.sock"
24 socketfile:depends( "enable", 1 )
26 -- collectd_email.socketgroup (SocketGroup)
27 socketgroup = s:option( Value, "SocketGroup", translate("Socket group") )
28 socketgroup.default = "nobody"
29 socketgroup.rmempty = true
30 socketgroup.optional = true
31 socketgroup:depends( "enable", 1 )
33 -- collectd_email.socketperms (SocketPerms)
34 socketperms = s:option( Value, "SocketPerms", translate("Socket permissions") )
35 socketperms.default = "0770"
36 socketperms.rmempty = true
37 socketperms.optional = true
38 socketperms:depends( "enable", 1 )
40 -- collectd_email.maxconns (MaxConns)
41 maxconns = s:option( Value, "MaxConns", translate("Maximum allowed connections") )
43 maxconns.isinteger = true
44 maxconns.rmempty = true
45 maxconns.optional = true
46 maxconns:depends( "enable", 1 )