Added ability to set Probes aliases (#7599)

This commit is contained in:
Matteo Biscosi 2023-07-04 15:34:46 +00:00
parent 829c46cf84
commit fecac5de03
6 changed files with 126 additions and 0 deletions

View file

@ -1881,6 +1881,16 @@ end
-- ##############################################
function setFlowDevAlias(flowdev_ip, alias)
if((flowdev_ip ~= alias) and not isEmptyString(alias)) then
ntop.setHashCache(getFlowDevAliasKey(), flowdev_ip, alias)
else
ntop.delHashCache(getFlowDevAliasKey(), flowdev_ip)
end
end
-- ##############################################
function addScoreToAlertDescr(msg, score)
return (msg .. string.format(" [%s: %s]",
i18n("score"),