1
0

olsrd.lua 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. -- Copyright 2011 Manuel Munz <freifunk at somakoma dot de>
  2. -- Licensed to the public under the Apache License 2.0.
  3. m = Map("luci_statistics",
  4. translate("OLSRd Plugin Configuration"),
  5. translate("The OLSRd plugin reads information about meshed networks from the txtinfo plugin of OLSRd."))
  6. s = m:section(NamedSection, "collectd_olsrd", "luci_statistics" )
  7. enable = s:option(Flag, "enable", translate("Enable this plugin"))
  8. enable.default = 0
  9. host = s:option(Value, "Host", translate("Host"), translate("IP or hostname where to get the txtinfo output from"))
  10. host.placeholder = "127.0.0.1"
  11. host.datatype = "host(1)"
  12. host.rmempty = true
  13. port = s:option(Value, "Port", translate("Port"))
  14. port.placeholder = "2006"
  15. port.datatype = "range(0,65535)"
  16. port.rmempty = true
  17. port.cast = "string"
  18. cl = s:option(ListValue, "CollectLinks", translate("CollectLinks"),
  19. translate("Specifies what information to collect about links."))
  20. cl:value("No")
  21. cl:value("Summary")
  22. cl:value("Detail")
  23. cl.default = "Detail"
  24. cr = s:option(ListValue, "CollectRoutes", translate("CollectRoutes"),
  25. translate("Specifies what information to collect about routes."))
  26. cr:value("No")
  27. cr:value("Summary")
  28. cr:value("Detail")
  29. cr.default = "Summary"
  30. ct = s:option(ListValue, "CollectTopology", translate("CollectTopology"),
  31. translate("Specifies what information to collect about the global topology."))
  32. ct:value("No")
  33. ct:value("Summary")
  34. ct:value("Detail")
  35. ct.default = "Summary"
  36. return m