mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-28 23:19:33 +00:00
Rework influxdb exporter
This commit is contained in:
parent
cb56b5d5ec
commit
42083f1865
14 changed files with 189 additions and 315 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue