processes.lua 828 B

123456789101112131415161718192021222324
  1. -- Copyright 2008 Freifunk Leipzig / Jo-Philipp Wich <jow@openwrt.org>
  2. -- Licensed to the public under the Apache License 2.0.
  3. m = Map("luci_statistics",
  4. translate("Processes Plugin Configuration"),
  5. translate(
  6. "The processes plugin collects informations like cpu time, " ..
  7. "page faults and memory usage of selected processes."
  8. ))
  9. -- collectd_processes config section
  10. s = m:section( NamedSection, "collectd_processes", "luci_statistics" )
  11. -- collectd_processes.enable
  12. enable = s:option( Flag, "enable", translate("Enable this plugin") )
  13. enable.default = 0
  14. -- collectd_processes.processes (Process)
  15. processes = s:option( Value, "Processes", translate("Monitor processes"),
  16. translate("Processes to monitor separated by space") )
  17. processes:depends( "enable", 1 )
  18. processes.default = "uhttpd dropbear dnsmasq"
  19. return m