1
0
mirror of https://github.com/nttgin/BGPalerter.git synced 2024-05-19 06:50:08 +00:00
Files
nttgin-BGPalerter/tests/reports_tests/config.reports.test.yml

108 lines
3.0 KiB
YAML
Raw Normal View History

2020-07-06 02:01:01 +02:00
environment: test
connectors:
- file: connectorTest
name: tes
params:
testType: withdrawal
monitors:
- file: monitorHijack
channel: hijack
name: basic-hijack-detection
params:
thresholdMinPeers: 0
- file: monitorNewPrefix
channel: newprefix
name: prefix-detection
params:
thresholdMinPeers: 0
- file: monitorVisibility
channel: visibility
name: withdrawal-detection
params:
thresholdMinPeers: 4
- file: monitorPath
channel: path
name: path-matching
params:
thresholdMinPeers: 0
- file: monitorAS
channel: misconfiguration
name: asn-monitor
params:
thresholdMinPeers: 2
2020-11-06 18:12:06 +01:00
# - file: monitorRPKI
# channel: rpki
# name: rpki-monitor
# params:
# thresholdMinPeers: 1
# checkUncovered: true
2020-07-06 02:01:01 +02:00
reports:
- file: reportSyslog
channels:
- hijack
- newprefix
- visibility
- path
- asn-monitor
- misconfiguration
- rpki
params:
host: 127.0.0.1
port: 1516
2020-07-06 02:01:01 +02:00
transport: udp
2021-06-11 15:16:58 +02:00
templates: # See here how to write a template https://github.com/nttgin/BGPalerter/blob/main/docs/context.md
2020-07-06 02:01:01 +02:00
default: "++BGPalerter-3-${type}: ${summary}|${earliest}|${latest}"
hijack: "++BGPalerter-5-${type}: ${summary}|${prefix}|${description}|${asn}|${newprefix}|${neworigin}|${earliest}|${latest}|${peers}"
newprefix: "++BGPalerter-4-${type}: ${summary}|${prefix}|${description}|${asn}|${newprefix}|${neworigin}|${earliest}|${latest}|${peers}"
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:
2021-06-11 15:16:58 +02:00
templates: # See here how to write a template https://github.com/nttgin/BGPalerter/blob/main/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
2020-07-06 02:01:01 +02:00
# The file containing the monitored prefixes. Please see monitored_prefixes_test.yml for an example
# This is an array (use new lines and dashes!)
monitoredPrefixesFiles:
- tests/prefixes.test.yml
logging:
directory: logs
logRotatePattern: YYYY-MM-DD # Whenever the pattern changes, a new file is created and the old one rotated
maxRetainedFiles: 10
maxFileSizeMB: 15
compressOnRotation: true
checkForUpdatesAtBoot: false
persistStatus: false
notificationIntervalSeconds: 1800 # Repeat the same alert (which keeps being triggered) after x seconds
alertOnlyOnce: false
fadeOffSeconds: 10
checkFadeOffGroupsSeconds: 2
pidFile: bgpalerter.pid
multiProcess: false
maxMessagesPerSecond: 6000