Fixes category/application name clashes in RRDs

This commit is contained in:
Simone Mainardi 2019-03-04 16:03:12 +01:00
parent 77a4f4e9ce
commit 0516e485d1

View file

@ -88,9 +88,11 @@ local function schema_get_path(schema, tags)
host_or_network = (HOST_PREFIX_MAP[parts[1]] or (parts[1] .. ":")) .. tags[schema._tags[2]]
if parts[1] == "snmp_if" then
suffix = tags.if_index .. "/"
suffix = tags.if_index .. "/"
elseif (parts[1] == "flowdev_port") or (parts[1] == "sflowdev_port") then
suffix = tags.port .. "/"
suffix = tags.port .. "/"
elseif parts[2] == "ndpi_categories" then
suffix = "ndpi_categories/"
end
end