mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
[VS] Add multiselect on ipv4_netscan.
This commit is contained in:
parent
2d0d7afaa9
commit
3e5b3a8218
7 changed files with 147 additions and 66 deletions
|
|
@ -63,7 +63,7 @@ function alert_vulnerability_scan.format(ifid, alert, alert_type_params, local_e
|
|||
local msg = ""
|
||||
if (alert_type_params.scan_type == "tcp_portscan" or alert_type_params.scan_type == "tcp_openports")
|
||||
-- case standard with scan_type == "TCP_PORTSCAN"
|
||||
or (alert_type_params.scan_type == "cve" and (alert_type_params.num_ports.new_num_ports ~= 0 or alert_type_params.num_ports.old_num_ports ~= 0)) then
|
||||
or (alert_type_params.scan_type == "cve" and alert_type_params.num_ports and (alert_type_params.num_ports.new_num_ports ~= 0 or alert_type_params.num_ports.old_num_ports ~= 0)) then
|
||||
-- old case when TCP ports where detected also with cve scans
|
||||
if (not isEmptyString(alert_type_params.tcp_ports_case)) then
|
||||
msg = msg .. i18n('vulnerability_scan.ports_changed_cases.'..alert_type_params.tcp_ports_case, {
|
||||
|
|
@ -115,7 +115,11 @@ function alert_vulnerability_scan.format(ifid, alert, alert_type_params, local_e
|
|||
|
||||
-- message for host not configured alert
|
||||
if (alert_type_params.is_host_not_configured) then
|
||||
msg = msg .. i18n("vulnerability_scan.host_not_configured", {host = alert_type_params.host})
|
||||
local scan_type_label = ""
|
||||
if (alert_type_params.scan_type) then
|
||||
scan_type_label = i18n("hosts_stats.page_scan_hosts.scan_type_list."..alert_type_params.scan_type)
|
||||
end
|
||||
msg = msg .. i18n("vulnerability_scan.host_not_configured", {host = alert_type_params.host, scan_type_label = scan_type_label})
|
||||
end
|
||||
|
||||
local host = alert_type_params.host_name
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue