mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-02 00:40:10 +00:00
parent
d1d203a479
commit
78aedbcebe
11 changed files with 293 additions and 22 deletions
|
|
@ -2,6 +2,7 @@
|
|||
-- (C) 2019-21 - ntop.org
|
||||
--
|
||||
|
||||
require "lua_utils"
|
||||
local alerts_api = require "alerts_api"
|
||||
local alert_severities = require "alert_severities"
|
||||
local alert_consts = require("alert_consts")
|
||||
|
|
@ -15,8 +16,8 @@ local handler = {}
|
|||
|
||||
-- @brief See risk_handler.lua
|
||||
function handler.handle_behaviour(params, stats, host_ip)
|
||||
alerts_api.handlerPeerBehaviour(params, stats["as_client"], stats["tot_num_anomalies"], host_ip, "client" --[[ as client --]], nil, "Active Flows Behaviour as Client")
|
||||
alerts_api.handlerPeerBehaviour(params, stats["as_server"], stats["tot_num_anomalies"], host_ip, "server" --[[ as server --]], nil, "Active Flows Behaviour as Server")
|
||||
alerts_api.handlerPeerBehaviour(params, stats["as_client"], nil, host_ip, nil, alert_consts.alert_types.alert_active_flows_anomaly_client)
|
||||
alerts_api.handlerPeerBehaviour(params, stats["as_server"], nil, host_ip, nil, alert_consts.alert_types.alert_active_flows_anomaly_server)
|
||||
end
|
||||
|
||||
-- #################################################################
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@
|
|||
-- (C) 2019-21 - ntop.org
|
||||
--
|
||||
|
||||
require "lua_utils"
|
||||
local alerts_api = require "alerts_api"
|
||||
local alert_severities = require "alert_severities"
|
||||
local alert_consts = require("alert_consts")
|
||||
|
|
@ -15,7 +16,7 @@ local handler = {}
|
|||
|
||||
-- @brief See risk_handler.lua
|
||||
function handler.handle_behaviour(params, stats, host_ip)
|
||||
alerts_api.handlerPeerBehaviour(params, stats, nil, host_ip, nil --[[ as client --]], nil, "Contacts Behaviour")
|
||||
alerts_api.handlerPeerBehaviour(params, stats, nil, host_ip, nil, alert_consts.alert_types.alert_contacts_anomaly)
|
||||
end
|
||||
|
||||
-- #################################################################
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@
|
|||
-- (C) 2019-21 - ntop.org
|
||||
--
|
||||
|
||||
require "lua_utils"
|
||||
local alerts_api = require "alerts_api"
|
||||
local alert_severities = require "alert_severities"
|
||||
local alert_consts = require("alert_consts")
|
||||
|
|
@ -15,8 +16,8 @@ local handler = {}
|
|||
|
||||
-- @brief See risk_handler.lua
|
||||
function handler.handle_behaviour(params, stats, host_ip)
|
||||
alerts_api.handlerPeerBehaviour(params, stats["as_client"], stats["tot_num_anomalies"], host_ip, "client" --[[ as client --]], 5, "Score Behaviour as Client")
|
||||
alerts_api.handlerPeerBehaviour(params, stats["as_server"], stats["tot_num_anomalies"], host_ip, "server" --[[ as server --]], 5, "Score Behaviour as Server")
|
||||
alerts_api.handlerPeerBehaviour(params, stats["as_client"], stats["tot_num_anomalies"], host_ip, 10, alert_consts.alert_types.alert_score_anomaly_client)
|
||||
alerts_api.handlerPeerBehaviour(params, stats["as_server"], stats["tot_num_anomalies"], host_ip, 10, alert_consts.alert_types.alert_score_anomaly_server)
|
||||
end
|
||||
|
||||
-- #################################################################
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue