irq.lua 986 B

123456789101112131415161718192021222324252627282930
  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("IRQ Plugin Configuration"),
  5. translate(
  6. "The irq plugin will monitor the rate of issues per second for " ..
  7. "each selected interrupt. If no interrupt is selected then all " ..
  8. "interrupts are monitored."
  9. ))
  10. -- collectd_irq config section
  11. s = m:section( NamedSection, "collectd_irq", "luci_statistics" )
  12. -- collectd_irq.enable
  13. enable = s:option( Flag, "enable", translate("Enable this plugin") )
  14. enable.default = 0
  15. -- collectd_irq.irqs (Irq)
  16. irqs = s:option( Value, "Irqs", translate("Monitor interrupts") )
  17. irqs.optional = true
  18. irqs:depends( "enable", 1 )
  19. -- collectd_irq.ignoreselected (IgnoreSelected)
  20. ignoreselected = s:option( Flag, "IgnoreSelected", translate("Monitor all except specified") )
  21. ignoreselected.default = 0
  22. ignoreselected.optional = "true"
  23. ignoreselected:depends( "enable", 1 )
  24. return m