mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 16:09:32 +00:00
Implement RTT host engage/release alert
This commit is contained in:
parent
87ba28195b
commit
7893c1f78a
5 changed files with 34 additions and 10 deletions
|
|
@ -106,6 +106,14 @@ end
|
|||
-- ##############################################
|
||||
|
||||
function rtt_utils.removeHost(host)
|
||||
local alerts_api = require("alerts_api")
|
||||
local rtt_host_entity = alerts_api.pingedHostEntity(host)
|
||||
local old_ifname = ifname
|
||||
|
||||
interface.select(getSystemInterfaceId())
|
||||
alerts_api.releaseEntityAlerts(rtt_host_entity)
|
||||
interface.select(old_ifname)
|
||||
|
||||
ntop.delHashCache(rtt_hosts_key, host)
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue