Fix discovery alerts (#8132)

This commit is contained in:
Alfredo Cardigliano 2023-12-27 15:58:08 +01:00
parent 8306731066
commit 6098dc87b0
3 changed files with 22 additions and 22 deletions

View file

@ -26,8 +26,8 @@ local function check_network_discovery(params)
-- Get total number of packets, flows and interface id
local network_discovery_check = alert_consts.alert_types.alert_network_discovery_executed.new()
network_discovery_check:set_subtype(params)
network_discovery_check:set_score_notice()
local discovery_executed = ntop.getCache("ntopng.cache.network_discovery_executed.ifid_" .. interface.getId()) == "1"
if discovery_executed == true then