mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-01 00:19:33 +00:00
Fix continuos queries creation
This commit is contained in:
parent
fb3a0b8659
commit
e46d4ef5df
1 changed files with 1 additions and 1 deletions
|
|
@ -953,7 +953,7 @@ end
|
|||
|
||||
function driver:_multiQuery(queries)
|
||||
local query_str = table.concat(queries, ";")
|
||||
local res = ntop.httpPost(self.url .. "/query", "q=" .. query_str, self.username, self.password, INFLUX_QUERY_TIMEMOUT_SEC, true)
|
||||
local res = ntop.httpPost(self.url .. "/query", "q=" .. urlencode(query_str), self.username, self.password, INFLUX_QUERY_TIMEMOUT_SEC, true)
|
||||
|
||||
if not res then
|
||||
traceError(TRACE_ERROR, TRACE_CONSOLE, "Invalid response for query: " .. query_str)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue