mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 15:39:33 +00:00
Adds slack, webhook and syslog notification endpoints
This commit is contained in:
parent
d592b3b43c
commit
0cf69d9996
11 changed files with 98 additions and 42 deletions
|
|
@ -7,7 +7,22 @@ local json = require "dkjson"
|
|||
local alert_utils = require "alert_utils"
|
||||
local alert_consts = require "alert_consts"
|
||||
|
||||
local syslog = {}
|
||||
local syslog = {
|
||||
conf_params = {
|
||||
{ param_name = "syslog_alert_format" },
|
||||
},
|
||||
conf_template = {
|
||||
plugin_key = "syslog_alert_endpoint",
|
||||
template_name = "syslog_endpoint.template"
|
||||
},
|
||||
recipient_params = {
|
||||
-- TODO: add channel
|
||||
},
|
||||
recipient_template = {
|
||||
plugin_key = "syslog_alert_endpoint",
|
||||
template_name = "syslog_recipient.template" -- TODO: add template
|
||||
},
|
||||
}
|
||||
|
||||
syslog.DEFAULT_SEVERITY = "info"
|
||||
syslog.EXPORT_FREQUENCY = 1 -- 1 second, i.e., as soon as possible
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue