prefs.lua: add base dir preference for virtual HTTP stats aggregation

This commit adds a preference for the base directory used when storing
aggregated virtual HTTP server stats.
This commit is contained in:
Arianna Avanzini 2015-05-03 02:25:27 +02:00
parent 939ffa6c7d
commit 83161ec79e
2 changed files with 10 additions and 1 deletions

View file

@ -108,8 +108,10 @@ if (ntop.isPro()) then
-- ================================================================================
print('<tr><th colspan=2 class="info">HTTP Traffic Statistics</th></tr>')
toggleTableButton("Dump HTTP Servers Traffic Statistics On Disk",
"Toggle dumping on disk virtual HTTP server traffic statistics. Turn it off to save storage space.",
"Toggle dumping on disk daily virtual HTTP server traffic statistics. Turn it off to save storage space.",
"Off", "0", "danger", "On", "1", "success", "toggle_http_traffic_dump", "ntopng.prefs.http_traffic_dump")
prefsInputField("Base Directory For Virtual HTTP Server Aggregated Stats", "Directory to dump virtual HTTP server aggregated stats. Default is ntopng's working dir.",
"http_stats_base_dir", prefs.http_stats_base_dir)
-- ================================================================================
end