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 / disk.lua
1 --[[
2
3 Luci configuration model for statistics - collectd disk 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", "Disk Plugin",
17 [[Das Disk-Plugin sammelt Informationen über Augewählte Fesplatten.]])
18
19 -- collectd_disk config section
20 s = m:section( NamedSection, "collectd_disk", "luci_statistics", "Pluginkonfiguration" )
21
22 -- collectd_disk.enable
23 enable = s:option( Flag, "enable", "Plugin aktivieren" )
24 enable.default = 0
25
26 -- collectd_disk.disks (Disk)
27 devices = s:option( Value, "Disks", "Fesplatten oder Partitionen", "Einträge mit Leerzeichen trennen" )
28 devices.default = "hda1 hdb"
29 devices.rmempty = true
30 devices:depends( "enable", 1 )
31
32 -- collectd_disk.ignoreselected (IgnoreSelected)
33 ignoreselected = s:option( Flag, "IgnoreSelected", "Logik umkehren und alle Datenträger und Partitionen überwachen die nicht auf die obigen Kriterien zutreffen" )
34 ignoreselected.default = 0
35 ignoreselected:depends( "enable", 1 )
36
37 return m