mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 16:09:32 +00:00
Fix iface l4 protos timeseries check and schema_get_path.
This commit is contained in:
parent
ce997cf2fd
commit
db3c3c4813
2 changed files with 20 additions and 9 deletions
|
|
@ -136,14 +136,6 @@ local function schema_get_path(schema, tags)
|
|||
else
|
||||
suffix = tags.port.ifindex .. "/"
|
||||
end
|
||||
elseif parts[2] == "ndpi_categories" then
|
||||
suffix = "ndpi_categories/"
|
||||
elseif parts[2] == "ndpi_flows" then
|
||||
suffix = "ndpi_flows/"
|
||||
elseif parts[2] == "l4protos" then
|
||||
suffix = "l4protos/"
|
||||
elseif parts[2] == "dscp" then
|
||||
suffix = "dscp/"
|
||||
elseif #schema._tags >= 3 then
|
||||
local intermediate_tags = {}
|
||||
|
||||
|
|
@ -164,6 +156,25 @@ local function schema_get_path(schema, tags)
|
|||
-- All the intermediate tags should be mapped in the path
|
||||
suffix = table.concat(intermediate_tags, "/") .. "/"
|
||||
end
|
||||
|
||||
if parts[2] == "ndpi_categories" then
|
||||
suffix = suffix.."ndpi_categories/"
|
||||
elseif parts[2] == "ndpi_flows" then
|
||||
suffix = suffix.."ndpi_flows/"
|
||||
elseif parts[2] == "l4protos" then
|
||||
suffix = suffix.."l4protos/"
|
||||
elseif parts[2] == "dscp" then
|
||||
suffix = suffix.."dscp/"
|
||||
end
|
||||
|
||||
elseif parts[2] == "ndpi_categories" then
|
||||
suffix = "ndpi_categories/"
|
||||
elseif parts[2] == "ndpi_flows" then
|
||||
suffix = "ndpi_flows/"
|
||||
elseif parts[2] == "l4protos" then
|
||||
suffix = "l4protos/"
|
||||
elseif parts[2] == "dscp" then
|
||||
suffix = "dscp/"
|
||||
end
|
||||
|
||||
local path = getRRDName(ifid, host_or_network) .. suffix
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue