1
0

csv.lua 939 B

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