1234567891011121314151617181920212223242526272829 |
- m = Map("luci_statistics",
- translate("Disk Plugin Configuration"),
- translate(
- "The disk plugin collects detailled usage statistics " ..
- "for selected partitions or whole disks."
- ))
- s = m:section( NamedSection, "collectd_disk", "luci_statistics" )
- enable = s:option( Flag, "enable", translate("Enable this plugin") )
- enable.default = 0
- devices = s:option( Value, "Disks", translate("Monitor disks and partitions") )
- devices.default = "hda1 hdb"
- devices.rmempty = true
- devices:depends( "enable", 1 )
- ignoreselected = s:option( Flag, "IgnoreSelected", translate("Monitor all except specified") )
- ignoreselected.default = 0
- ignoreselected:depends( "enable", 1 )
- return m
|