3 Luci configuration model for statistics - collectd disk plugin configuration
4 (c) 2008 Freifunk Leipzig / Jo-Philipp Wich <xm@leipzig.freifunk.net>
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
10 http://www.apache.org/licenses/LICENSE-2.0
16 m = Map("luci_statistics")
18 -- collectd_disk config section
19 s = m:section( NamedSection, "collectd_disk", "luci_statistics" )
21 -- collectd_disk.enable
22 enable = s:option( Flag, "enable" )
25 -- collectd_disk.disks (Disk)
26 devices = s:option( Value, "Disks" )
27 devices.default = "hda1 hdb"
28 devices.rmempty = true
29 devices:depends( "enable", 1 )
31 -- collectd_disk.ignoreselected (IgnoreSelected)
32 ignoreselected = s:option( Flag, "IgnoreSelected" )
33 ignoreselected.default = 0
34 ignoreselected:depends( "enable", 1 )