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", "DF Plugin",
17 [[Das DF-Plugin sammelt Informationen über den belegten und verfügbaren Speicherplatz auf den
18 angegebenen Geräten, Mountpunkten oder Dateisystemtypen.]])
20 -- collectd_df config section
21 s = m:section( NamedSection, "collectd_df", "luci_statistics", "Pluginkonfiguration" )
24 enable = s:option( Flag, "enable", "Plugin aktivieren" )
27 -- collectd_df.devices (Device)
28 devices = s:option( Value, "Devices", "Gerätedateien", "Einträge mit Leerzeichen trennen" )
29 devices.default = "/dev/mtdblock/4"
30 devices.rmempty = true
31 devices:depends( "enable", 1 )
33 -- collectd_df.mountpoints (MountPoint)
34 mountpoints = s:option( Value, "MountPoints", "Mountpunkte", "Einträge mit Leerzeichen trennen" )
35 mountpoints.default = "/jffs"
36 mountpoints.rmempty = true
37 mountpoints:depends( "enable", 1 )
39 -- collectd_df.fstypes (FSType)
40 fstypes = s:option( Value, "FSTypes", "Dateisystemtypen", "Einträge mit Leerzeichen trennen" )
41 fstypes.default = "tmpfs"
42 fstypes.rmempty = true
43 fstypes:depends( "enable", 1 )
45 -- collectd_df.ignoreselected (IgnoreSelected)
46 ignoreselected = s:option( Flag, "IgnoreSelected", "Logik umkehren und alle Datenträger überwachen die nicht auf die obigen Kriterien zutreffen" )
47 ignoreselected.default = 0
48 ignoreselected:depends( "enable", 1 )