3 Luci configuration model for statistics - collectd df 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_df config section
19 s = m:section( NamedSection, "collectd_df", "luci_statistics" )
22 enable = s:option( Flag, "enable" )
25 -- collectd_df.devices (Device)
26 devices = s:option( Value, "Devices" )
27 devices.default = "/dev/mtdblock/4"
28 devices.optional = true
29 devices:depends( "enable", 1 )
31 -- collectd_df.mountpoints (MountPoint)
32 mountpoints = s:option( Value, "MountPoints" )
33 mountpoints.default = "/jffs"
34 mountpoints.optional = true
35 mountpoints:depends( "enable", 1 )
37 -- collectd_df.fstypes (FSType)
38 fstypes = s:option( Value, "FSTypes" )
39 fstypes.default = "tmpfs"
40 fstypes.optional = true
41 fstypes:depends( "enable", 1 )
43 -- collectd_df.ignoreselected (IgnoreSelected)
44 ignoreselected = s:option( Flag, "IgnoreSelected" )
45 ignoreselected.default = 0
46 ignoreselected:depends( "enable", 1 )