1
0
mirror of https://github.com/nttgin/BGPalerter.git synced 2024-05-19 06:50:08 +00:00

hotfix reporthttp - content of undefined on showPaths (#302)

This commit is contained in:
Massimo Candela
2020-07-23 20:56:25 +02:00
committed by GitHub
parent e7397f583f
commit da750bb3d6
10 changed files with 105 additions and 19 deletions

View File

@@ -68,6 +68,22 @@ reports:
visibility: "++BGPalerter-5-${type}: ${summary}|${prefix}|${description}|${asn}|${earliest}|${latest}|${peers}"
misconfiguration: "++BGPalerter-3-${type}: ${summary}|${asn}|${prefix}|${earliest}|${latest}"
- file: reportHTTP
channels:
- hijack
- newprefix
- visibility
- path
- misconfiguration
- rpki
params:
templates: # See here how to write a template https://github.com/nttgin/BGPalerter/blob/master/docs/context.md
default: '{"text": "${summary}"}'
headers:
isTemplateJSON: true
showPaths: 5 # Amount of AS_PATHs to report in the alert
hooks:
default: http://localhost:8090/test
# The file containing the monitored prefixes. Please see monitored_prefixes_test.yml for an example
# This is an array (use new lines and dashes!)