mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Updated device connection alert (#6801)
This commit is contained in:
parent
cc308a9145
commit
1775233197
11 changed files with 197 additions and 81 deletions
|
|
@ -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
|
||||
|
||||
-- ###########################################
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue