Updated device connection alert (#6801)

This commit is contained in:
MatteoBiscosi 2022-08-08 11:37:28 +02:00
parent cc308a9145
commit 1775233197
11 changed files with 197 additions and 81 deletions

View file

@ -146,6 +146,16 @@ end
-- ##############################################
function getInterfaceUrl(ifid)
if(not ifid) then
return("")
end
return ntop.getHttpPrefix() .. "/lua/if_stats.lua?ifid=" .. ifid
end
-- ##############################################
function getFirstInterfaceId()
local ifid = interface.getFirstInterfaceId()
@ -4013,8 +4023,8 @@ end
-- ###########################################
-- A redis hash mac -> first_seen
function getDevicesHashMapKey(ifid)
return "ntopng.checks.device_connection_disconnection.ifid_" .. ifid
function getDevicesHashMapKey(ifname)
return "ntopng.checks.device_connection_disconnection.ifname_" .. ifname
end
-- ###########################################