statistics: Add support for entropy stats
[project/luci.git] / applications / luci-app-statistics / luasrc / model / cbi / luci_statistics / nut.lua
1 -- Licensed to the public under the Apache License 2.0.
2
3 m = Map("luci_statistics",
4         translate("UPS Plugin Configuration"),
5         translate("The NUT plugin reads information about Uninterruptible Power Supplies."))
6
7 s = m:section(NamedSection, "collectd_nut", "luci_statistics" )
8
9 enable = s:option(Flag, "enable", translate("Enable this plugin"))
10 enable.default = 0
11
12 host = s:option(Value, "UPS", translate("UPS"), translate("UPS name in NUT ups@host format"))
13 host.placeholder = "myupsname"
14 host.datatype = "string"
15 host.rmempty = true
16
17 return m