Add preference to select the timeseries database to use

This commit is contained in:
emanuele-f 2018-07-30 12:53:55 +02:00
parent 44abcd442c
commit af1fc50ce6
13 changed files with 74 additions and 64 deletions

View file

@ -221,8 +221,9 @@ end
function callback_utils.uploadTSdata()
local url = ntop.getPref("ntopng.prefs.ts_post_data_url")
local driver = ntop.getPref("ntopng.prefs.timeseries_driver")
if((url == nil) or (url == "")) then
if((url == nil) or (url == "") or (driver ~= "influxdb")) then
return
end