Fixed #4737 integration with fail2ban

This commit is contained in:
Matteo Biscosi 2020-12-30 11:44:36 +01:00
parent 8eb29b3716
commit e94f2cb0b4
18 changed files with 151 additions and 20 deletions

View file

@ -128,13 +128,14 @@ function shell.runScript(alerts, settings)
-- Storing an alert-notice in regard of the shell script execution
-- for security reasons
local entity_info = alerts_api.processEntity("ntopng")
local type_info = alert_consts.alert_types.alert_shell_script_executed.create(
alert_severities.notice,
exec_script,
alert_consts.alertTypeLabel(alert["alert_type"], true)
local type_info = alert_consts.alert_types.alert_shell_script_executed.new(
exec_script,
alert_consts.alertTypeLabel(alert["alert_type"], true)
)
type_info:set_severity(alert_severities.notice)
alerts_api.store(entity_info, type_info)
type_info:store(entity_info)
end -- for
return true