mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-06 03:45:26 +00:00
Add TheHive integration. (#7363)
This commit is contained in:
parent
8f07f5308a
commit
5580225e4b
7 changed files with 128 additions and 22 deletions
|
|
@ -620,7 +620,9 @@ function alert_utils.formatAlertNotification(notif, options)
|
|||
msg = msg .. alert_message
|
||||
end
|
||||
|
||||
return msg
|
||||
local alert_title = string.format("[%s]: %s", alert_consts.alertEntityLabel(notif.entity_id),alert_consts.alertTypeLabel(notif.alert_id, options.nohtml, notif.entity_id))
|
||||
local alert_type = alert_consts.alertEntityLabel(notif.entity_id)
|
||||
return msg, alert_title, alert_type
|
||||
end
|
||||
|
||||
-- ##############################################
|
||||
|
|
|
|||
|
|
@ -1778,6 +1778,13 @@ local known_parameters = {
|
|||
|
||||
["telegram_channel"] = http_lint.validateEmptyOr(http_lint.validateSingleWord),
|
||||
["telegram_token"] = http_lint.validateEmptyOr(http_lint.validateSingleWord),
|
||||
["thehive_token"] = http_lint.validateEmptyOr(http_lint.validateSingleWord),
|
||||
["thehive_url"] = {http_lint.webhookCleanup, http_lint.validateUnquoted},
|
||||
["thehive_org_name"] = http_lint.validateSingleWord,
|
||||
["thehive_obs_mail"] = http_lint.validateSingleWord,
|
||||
["thehive_obs_url"] = {http_lint.webhookCleanup, http_lint.validateUnquoted},
|
||||
|
||||
|
||||
|
||||
["fail2ban_jail"] = http_lint.validateEmptyOr(http_lint.validateSingleWord),
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue