Update my email addresses in the license headers
[project/luci.git] / applications / luci-app-statistics / luasrc / model / cbi / luci_statistics / df.lua
1 -- Copyright 2008 Freifunk Leipzig / Jo-Philipp Wich <jow@openwrt.org>
2 -- Licensed to the public under the Apache License 2.0.
3
4 m = Map("luci_statistics",
5         translate("DF Plugin Configuration"),
6         translate(
7                 "The df plugin collects statistics about the disk space " ..
8                 "usage on different devices, mount points or filesystem types."
9         ))
10
11 -- collectd_df config section
12 s = m:section( NamedSection, "collectd_df", "luci_statistics" )
13
14 -- collectd_df.enable
15 enable = s:option( Flag, "enable", translate("Enable this plugin") )
16 enable.default = 0
17
18 -- collectd_df.devices (Device)
19 devices = s:option( Value, "Devices", translate("Monitor devices") )
20 devices.default  = "/dev/mtdblock/4"
21 devices.optional = true
22 devices:depends( "enable", 1 )
23
24 -- collectd_df.mountpoints (MountPoint)
25 mountpoints = s:option( Value, "MountPoints", translate("Monitor mount points") )
26 mountpoints.default  = "/overlay"
27 mountpoints.optional = true
28 mountpoints:depends( "enable", 1 )
29
30 -- collectd_df.fstypes (FSType)
31 fstypes = s:option( Value, "FSTypes", translate("Monitor filesystem types") )
32 fstypes.default  = "tmpfs"
33 fstypes.optional = true
34 fstypes:depends( "enable", 1 )
35
36 -- collectd_df.ignoreselected (IgnoreSelected)
37 ignoreselected = s:option( Flag, "IgnoreSelected", translate("Monitor all except specified") )
38 ignoreselected.default = 0
39 ignoreselected:depends( "enable", 1 )
40
41 return m