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",
17 translate("CSV Plugin Configuration"),
19 "The csv plugin stores collected data in csv file format " ..
20 "for further processing by external programs."
23 -- collectd_csv config section
24 s = m:section( NamedSection, "collectd_csv", "luci_statistics" )
26 -- collectd_csv.enable
27 enable = s:option( Flag, "enable", translate("Enable this plugin") )
30 -- collectd_csv.datadir (DataDir)
31 datadir = s:option( Value, "DataDir", translate("Storage directory for the csv files") )
32 datadir.default = "127.0.0.1"
33 datadir:depends( "enable", 1 )
35 -- collectd_csv.storerates (StoreRates)
36 storerates = s:option( Flag, "StoreRates", translate("Store data values as rates instead of absolute values") )
37 storerates.default = 0
38 storerates:depends( "enable", 1 )