3 Luci configuration model for statistics - collectd csv 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", "CSV Plugin",
17 [[Das CSV-Plugin schreibt in regelmäßigen Abständen die gesammelten Daten als
18 CSV-Dateien in das angegebene Verzeichnis. Der Speicherbedarf wächst dabei
21 -- collectd_csv config section
22 s = m:section( NamedSection, "collectd_csv", "luci_statistics", "Pluginkonfiguration" )
24 -- collectd_csv.enable
25 enable = s:option( Flag, "enable", "Plugin aktivieren" )
28 -- collectd_csv.datadir (DataDir)
29 datadir = s:option( Value, "DataDir", "Ablageverzeichnis für die CSV-Dateien" )
30 datadir.default = "127.0.0.1"
31 datadir:depends( "enable", 1 )
33 -- collectd_csv.storerates (StoreRates)
34 storerates = s:option( Flag, "StoreRates", "Werte nicht absolut, sondern als Raten speichern" )
35 storerates.default = 0
36 storerates:depends( "enable", 1 )