3 Luci configuration model for statistics - collectd tcpconns plugin configuration
4 (c) 2008 Freifunk Leipzig / Jo-Philipp Wich <xm@leipzig.freifunk.net>
6 Licensed under the Apache License, Version 2.0 (the "License");
7 you may not use this file except in compliance with the License.
8 You may obtain a copy of the License at
10 http://www.apache.org/licenses/LICENSE-2.0
16 m = Map("luci_statistics",
17 translate("TCPConns Plugin Configuration"),
19 "The tcpconns plugin collects informations about open tcp " ..
20 "connections on selected ports."
23 -- collectd_tcpconns config section
24 s = m:section( NamedSection, "collectd_tcpconns", "luci_statistics" )
26 -- collectd_tcpconns.enable
27 enable = s:option( Flag, "enable", translate("Enable this plugin") )
30 -- collectd_tcpconns.listeningports (ListeningPorts)
31 listeningports = s:option( Flag, "ListeningPorts", translate("Monitor all local listen ports") )
32 listeningports.default = 1
33 listeningports:depends( "enable", 1 )
35 -- collectd_tcpconns.localports (LocalPort)
36 localports = s:option( Value, "LocalPorts", translate("Monitor local ports") )
37 localports.optional = true
38 localports:depends( "enable", 1 )
40 -- collectd_tcpconns.remoteports (RemotePort)
41 remoteports = s:option( Value, "RemotePorts", translate("Monitor remote ports") )
42 remoteports.optional = true
43 remoteports:depends( "enable", 1 )