mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-03 17:30:11 +00:00
Implements flow callbacks and alerts in C++
This commit is contained in:
parent
3659188002
commit
aea9138bfb
353 changed files with 10790 additions and 4455 deletions
|
|
@ -21,9 +21,6 @@ local script = {
|
|||
items = {},
|
||||
},
|
||||
|
||||
-- NOTE: hooks defined below
|
||||
hooks = {},
|
||||
|
||||
gui = {
|
||||
i18n_title = "flow_callbacks_config.web_mining",
|
||||
i18n_description = "flow_callbacks_config.web_mining_description",
|
||||
|
|
@ -32,16 +29,4 @@ local script = {
|
|||
|
||||
-- #################################################################
|
||||
|
||||
function script.hooks.protocolDetected(now, conf)
|
||||
if(flow.getnDPICategoryName() == "Mining") then
|
||||
local alert = alert_consts.alert_types.alert_web_mining.new()
|
||||
|
||||
alert:set_severity(conf.severity)
|
||||
|
||||
alert:trigger_status(50, 10, 50)
|
||||
end
|
||||
end
|
||||
|
||||
-- #################################################################
|
||||
|
||||
return script
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue