1 -- Copyright 2011 Manuel Munz <freifunk at somakoma dot de>
2 -- Licensed to the public under the Apache License 2.0.
4 m = Map("luci_statistics",
5 translate("OLSRd Plugin Configuration"),
6 translate("The OLSRd plugin reads information about meshed networks from the txtinfo plugin of OLSRd."))
8 s = m:section(NamedSection, "collectd_olsrd", "luci_statistics" )
10 enable = s:option(Flag, "enable", translate("Enable this plugin"))
13 host = s:option(Value, "Host", translate("Host"), translate("IP or hostname where to get the txtinfo output from"))
14 host.placeholder = "127.0.0.1"
15 host.datatype = "host"
18 port = s:option(Value, "Port", translate("Port"))
19 port.placeholder = "2006"
20 port.datatype = "range(0,65535)"
24 cl = s:option(ListValue, "CollectLinks", translate("CollectLinks"),
25 translate("Specifies what information to collect about links."))
31 cr = s:option(ListValue, "CollectRoutes", translate("CollectRoutes"),
32 translate("Specifies what information to collect about routes."))
36 cr.default = "Summary"
38 ct = s:option(ListValue, "CollectTopology", translate("CollectTopology"),
39 translate("Specifies what information to collect about the global topology."))
43 ct.default = "Summary"