[VS] Fix not configured alert description.

This commit is contained in:
Nicolo Maio 2023-12-05 19:03:26 +01:00
parent 31b7175929
commit 9d61a1f41e
2 changed files with 4 additions and 4 deletions

View file

@ -73,7 +73,7 @@ local vs_rest_utils = require("vs_rest_utils")
-- Enable debug with:
-- redis-cli set "ntopng.prefs.vs.debug_enabled" "1"
-- systemctl restart ntopng
local debug_me = true--ntop.getCache("ntopng.prefs.vs.debug_enabled") == "1"
local debug_me = ntop.getCache("ntopng.prefs.vs.debug_enabled") == "1"
local verbose = false
local vs_utils = {}
@ -1058,7 +1058,7 @@ end
local function trigger_alert_host_not_configured(host,scan_type)
local host_info_to_cache = {
host = host,
scan_type = scan_type,
sub_scan_type = scan_type,
is_host_not_configured = true,
}
ntop.rpushCache(scanned_hosts_changes_queue_key, json.encode(host_info_to_cache))