Rework influxdb exporter

This commit is contained in:
emanuele-f 2018-05-25 13:52:06 +02:00
parent cb56b5d5ec
commit 42083f1865
14 changed files with 189 additions and 315 deletions

View file

@ -252,9 +252,13 @@ function callback_utils.uploadTSdata()
-- Delete the file after POST
local delete_file_after_post = true
ret = ntop.postHTTPTextFile("", "", url, fname, delete_file_after_post)
--print(fname .. "\n")
if(ret ~= true) then
print("[ERROR] POST of "..fname.." failed\n")
-- delete the file manually
os.remove(fname)
end
end