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")
18 -- collectd_tcpconns config section
19 s = m:section( NamedSection, "collectd_tcpconns", "luci_statistics" )
21 -- collectd_tcpconns.enable
22 enable = s:option( Flag, "enable" )
25 -- collectd_tcpconns.listeningports (ListeningPorts)
26 listeningports = s:option( Flag, "ListeningPorts" )
27 listeningports.default = 1
28 listeningports:depends( "enable", 1 )
30 -- collectd_tcpconns.localports (LocalPort)
31 localports = s:option( Value, "LocalPorts" )
32 localports.optional = true
33 localports:depends( "enable", 1 )
35 -- collectd_tcpconns.remoteports (RemotePort)
36 remoteports = s:option( Value, "RemotePorts" )
37 remoteports.optional = true
38 remoteports:depends( "enable", 1 )