mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-28 23:19:33 +00:00
Added ability to set Probes aliases (#7599)
This commit is contained in:
parent
829c46cf84
commit
fecac5de03
6 changed files with 126 additions and 0 deletions
|
|
@ -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"),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue