mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-05 10:41:34 +00:00
Fixes for invalid checks for packet/non-packet interfaces
Addresses #5519
This commit is contained in:
parent
a8d08b2d3e
commit
18cbfc5b3a
13 changed files with 24 additions and 20 deletions
|
|
@ -22,8 +22,8 @@ local flow_alert_keys = {
|
|||
flow_alert_internals = 14,
|
||||
flow_alert_potentially_dangerous = 15,
|
||||
flow_alert_remote_to_remote = 16,
|
||||
flow_alert_suspicious_tcp_probing = 17,
|
||||
flow_alert_suspicious_tcp_syn_probing = 18,
|
||||
flow_alert_suspicious_tcp_probing = 17, -- No longer used, can be recycled
|
||||
flow_alert_suspicious_tcp_syn_probing = 18, -- No longer used, can be recycled
|
||||
flow_alert_tcp_connection_issues = 19,
|
||||
flow_alert_tcp_connection_refused = 20,
|
||||
flow_alert_tcp_severe_connection_issues = 21,
|
||||
|
|
|
|||
|
|
@ -13,7 +13,9 @@ local script = {
|
|||
-- Script category
|
||||
category = checks.check_categories.security,
|
||||
|
||||
default_enabled = true,
|
||||
default_enabled = false,
|
||||
packet_interface_only = true,
|
||||
|
||||
alert_id = flow_alert_keys.flow_alert_iec_invalid_transition,
|
||||
|
||||
-- Specify the default value whe clicking on the "Reset Default" button
|
||||
|
|
|
|||
|
|
@ -13,6 +13,9 @@ local script = {
|
|||
-- Script category
|
||||
category = checks.check_categories.security,
|
||||
|
||||
default_enabled = false,
|
||||
packet_interface_only = true,
|
||||
|
||||
alert_id = flow_alert_keys.flow_alert_iec_unexpected_type_id,
|
||||
|
||||
-- Specify the default value when clicking on the "Reset Default" button
|
||||
|
|
|
|||
|
|
@ -11,11 +11,10 @@ local flow_alert_keys = require "flow_alert_keys"
|
|||
|
||||
-- NOTE: this module is always enabled
|
||||
local script = {
|
||||
packet_interface_only = true,
|
||||
|
||||
-- Script category
|
||||
category = checks.check_categories.network,
|
||||
|
||||
packet_interface_only = true,
|
||||
nedge_exclude = true,
|
||||
|
||||
-- This script is only for alerts generation
|
||||
|
|
|
|||
|
|
@ -676,7 +676,7 @@ local function loadAndCheckScript(mod_fname, full_path, plugin, script_type, sub
|
|||
return(nil)
|
||||
end
|
||||
|
||||
if((not return_all) and ((check.nedge_exclude and ntop.isnEdge()) or (check.nedge_only and (not ntop.isnEdge())))) then
|
||||
if((check.nedge_exclude and ntop.isnEdge()) or (check.nedge_only and (not ntop.isnEdge()))) then
|
||||
traceError(TRACE_DEBUG, TRACE_CONSOLE, string.format("Skipping module '%s' for nEdge", mod_fname))
|
||||
return(nil)
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue