mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-03 09:20:10 +00:00
Implements #4919 custom alert severity
This commit is contained in:
parent
89b21df6f6
commit
10fb8bbecc
64 changed files with 317 additions and 49 deletions
|
|
@ -27,8 +27,12 @@ local script = {
|
|||
-- use this plugin only with this protocol
|
||||
l7_proto_id = 3, -- 3 == SMTP
|
||||
|
||||
-- This script is only for alerts generation
|
||||
is_alert = true,
|
||||
|
||||
-- Specify the default value whe clicking on the "Reset Default" button
|
||||
default_value = {
|
||||
severity = alert_severities.error,
|
||||
items = {},
|
||||
},
|
||||
|
||||
|
|
@ -72,7 +76,7 @@ function script.hooks.protocolDetected(now, conf)
|
|||
server_ip
|
||||
)
|
||||
|
||||
alert:set_severity(alert_severities.error)
|
||||
alert:set_severity(conf.severity)
|
||||
alert:set_attacker(server_ip)
|
||||
alert:set_victim(client_ip)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue