2015-01-16 22:46:42 +00:00
|
|
|
-- Copyright 2008 Freifunk Leipzig / Jo-Philipp Wich <jow@openwrt.org>
|
2015-01-16 22:38:38 +00:00
|
|
|
-- Licensed to the public under the Apache License 2.0.
|
2008-05-20 01:23:25 +00:00
|
|
|
|
2010-04-13 20:42:26 +00:00
|
|
|
m = Map("luci_statistics",
|
|
|
|
translate("CSV Plugin Configuration"),
|
|
|
|
translate(
|
|
|
|
"The csv plugin stores collected data in csv file format " ..
|
|
|
|
"for further processing by external programs."
|
|
|
|
))
|
2008-05-20 01:23:25 +00:00
|
|
|
|
|
|
|
-- collectd_csv config section
|
2008-06-01 23:52:07 +00:00
|
|
|
s = m:section( NamedSection, "collectd_csv", "luci_statistics" )
|
2008-05-20 01:23:25 +00:00
|
|
|
|
|
|
|
-- collectd_csv.enable
|
2010-04-13 20:42:26 +00:00
|
|
|
enable = s:option( Flag, "enable", translate("Enable this plugin") )
|
2008-05-20 01:23:25 +00:00
|
|
|
enable.default = 0
|
|
|
|
|
|
|
|
-- collectd_csv.datadir (DataDir)
|
2010-04-13 20:42:26 +00:00
|
|
|
datadir = s:option( Value, "DataDir", translate("Storage directory for the csv files") )
|
2008-05-20 01:23:25 +00:00
|
|
|
datadir.default = "127.0.0.1"
|
|
|
|
datadir:depends( "enable", 1 )
|
|
|
|
|
|
|
|
-- collectd_csv.storerates (StoreRates)
|
2010-04-13 20:42:26 +00:00
|
|
|
storerates = s:option( Flag, "StoreRates", translate("Store data values as rates instead of absolute values") )
|
2008-05-20 01:23:25 +00:00
|
|
|
storerates.default = 0
|
|
|
|
storerates:depends( "enable", 1 )
|
|
|
|
|
|
|
|
return m
|
|
|
|
|