nut.lua 543 B

1234567891011121314151617
  1. -- Licensed to the public under the Apache License 2.0.
  2. m = Map("luci_statistics",
  3. translate("UPS Plugin Configuration"),
  4. translate("The NUT plugin reads information about Uninterruptible Power Supplies."))
  5. s = m:section(NamedSection, "collectd_nut", "luci_statistics" )
  6. enable = s:option(Flag, "enable", translate("Enable this plugin"))
  7. enable.default = 0
  8. host = s:option(Value, "UPS", translate("UPS"), translate("UPS name in NUT ups@host format"))
  9. host.placeholder = "myupsname"
  10. host.datatype = "string"
  11. host.rmempty = true
  12. return m