mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
Fix continuos queries not created on system scripts ts
This commit is contained in:
parent
649f4a9e61
commit
43078c6758
4 changed files with 13 additions and 7 deletions
|
|
@ -92,7 +92,9 @@ function system_scripts.runTask(task, when)
|
|||
end
|
||||
|
||||
ts_utils.newSchema = function(name, label, options)
|
||||
return old_new_schema_fn(name, table.merge(default_schema_options, options))
|
||||
if(ts_utils.getSchema(name) == nil) then
|
||||
return old_new_schema_fn(name, table.merge(default_schema_options, options))
|
||||
end
|
||||
end
|
||||
|
||||
for _, probe in system_scripts.getSystemProbes(task) do
|
||||
|
|
@ -121,7 +123,10 @@ function system_scripts.getAdditionalTimeseries()
|
|||
local default_schema_options = nil
|
||||
|
||||
ts_utils.newSchema = function(name, options)
|
||||
local schema = old_new_schema_fn(name, table.merge(default_schema_options, options))
|
||||
local schema = ts_utils.getSchema(name)
|
||||
if(schema == nil) then
|
||||
schema = old_new_schema_fn(name, table.merge(default_schema_options, options))
|
||||
end
|
||||
|
||||
if(options.label == nil) then
|
||||
traceError(TRACE_ERROR, TRACE_CONSOLE, string.format("Missing schema label in schema '%s'", name))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue