1 -- Copyright 2008 Freifunk Leipzig / Jo-Philipp Wich <jow@openwrt.org>
2 -- Licensed to the public under the Apache License 2.0.
4 m = Map("luci_statistics",
5 translate("CSV Plugin Configuration"),
7 "The csv plugin stores collected data in csv file format " ..
8 "for further processing by external programs."
11 -- collectd_csv config section
12 s = m:section( NamedSection, "collectd_csv", "luci_statistics" )
14 -- collectd_csv.enable
15 enable = s:option( Flag, "enable", translate("Enable this plugin") )
18 -- collectd_csv.datadir (DataDir)
19 datadir = s:option( Value, "DataDir", translate("Storage directory for the csv files") )
20 datadir.default = "127.0.0.1"
21 datadir:depends( "enable", 1 )
23 -- collectd_csv.storerates (StoreRates)
24 storerates = s:option( Flag, "StoreRates", translate("Store data values as rates instead of absolute values") )
25 storerates.default = 0
26 storerates:depends( "enable", 1 )