add some indirection around make targets of module.mk, so you can combine it more...
[project/luci.git] / applications / luci-statistics / src / model / cbi / luci_statistics / irq.lua
1 --[[
2
3 Luci configuration model for statistics - collectd irq plugin configuration
4 (c) 2008 Freifunk Leipzig / Jo-Philipp Wich <xm@leipzig.freifunk.net>
5
6 Licensed under the Apache License, Version 2.0 (the "License");
7 you may not use this file except in compliance with the License.
8 You may obtain a copy of the License at
9
10 http://www.apache.org/licenses/LICENSE-2.0
11
12 $Id$
13
14 ]]--
15
16 m = Map("luci_statistics", "IRQ Plugin",
17 [[Das IRQ-Plugin sammelt Informationen zur Auslastung einzelner Interrupts.
18 Werden keine Interrupts angegeben, überwacht das Plugin alle vorhanden IRQs im System.
19 ]])
20
21 -- collectd_irq config section
22 s = m:section( NamedSection, "collectd_irq", "luci_statistics", "Pluginkonfiguration" )
23
24 -- collectd_irq.enable
25 enable = s:option( Flag, "enable", "Plugin aktivieren" )
26 enable.default = 0
27
28 -- collectd_irq.irqs (Irq)
29 irqs = s:option( Value, "Irqs", "Überwachte Interrupts", "mehrere mit Leerzeichen trennen" )
30 irqs.optional = true
31 irqs:depends( "enable", 1 )
32
33 -- collectd_irq.ignoreselected (IgnoreSelected)
34 ignoreselected = s:option( Flag, "IgnoreSelected", "Alle Interrupts außer ausgewählte überwachen" )
35 ignoreselected.default = 0
36 ignoreselected.optional = "true"
37 ignoreselected:depends( "enable", 1 )
38
39 return m