1 -- Copyright 2015 Jo-Philipp Wich <jow@openwrt.org>
2 -- Licensed to the public under the Apache License 2.0.
4 m = Map("luci_statistics",
5 translate("APCUPS Plugin Configuration"),
7 "The APCUPS plugin collects statistics about the APC UPS."
10 -- collectd_apcups config section
11 s = m:section( NamedSection, "collectd_apcups", "luci_statistics" )
13 -- collectd_apcups.enable
14 enable = s:option( Flag, "enable", translate("Enable this plugin") )
17 -- collectd_apcups.host (Host)
18 host = s:option( Value, "Host", translate("Monitor host"), translate ("Add multiple hosts separated by space."))
19 host.default = "localhost"
20 host:depends( "enable", 1 )
22 -- collectd_apcups.port (Port)
23 port = s:option( Value, "Port", translate("Port for apcupsd communication") )
26 port:depends( "enable", 1 )