-
Notifications
You must be signed in to change notification settings - Fork 149
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
49 changed files
with
4,062 additions
and
2,336 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,20 +38,28 @@ monitors: | |
params: | ||
thresholdMinPeers: 10 | ||
|
||
- file: MonitorAS | ||
channel: misconfiguration | ||
name: asn-monitor | ||
params: | ||
thresholdMinPeers: 2 | ||
|
||
reports: | ||
- file: reportFile | ||
channels: | ||
- hijack | ||
- newprefix | ||
- visibility | ||
- path | ||
- misconfiguration | ||
|
||
# - file: reportEmail | ||
# channels: | ||
# - hijack | ||
# - newprefix | ||
# - visibility | ||
# - path | ||
# - misconfiguration | ||
# params: | ||
# showPaths: 5 # Amount of AS_PATHs to report in the alert | ||
# senderEmail: bgpalerter@xxxx | ||
|
@@ -62,6 +70,7 @@ reports: | |
# host: localhost | ||
# port: 25 | ||
# secure: false # If true the connection will use TLS when connecting to server. If false it will be still possible doing connection upgrade via STARTTLS | ||
# ignoreTLS: false # If true TLS will be completely disabled, including STARTTLS. Set this to true if you see certificate errors in the logs. | ||
# auth: | ||
# user: username | ||
# pass: password | ||
|
@@ -72,13 +81,14 @@ reports: | |
# default: | ||
# - [email protected] | ||
# - [email protected] | ||
# | ||
|
||
# - file: reportSlack | ||
# channels: | ||
# - hijack | ||
# - newprefix | ||
# - visibility | ||
# - path | ||
# - misconfiguration | ||
# params: | ||
# colors: | ||
# hijack: '#d60b1c' | ||
|
@@ -87,13 +97,14 @@ reports: | |
# path: '#42cbf5' | ||
# hooks: | ||
# default: _YOUR_SLACK_WEBHOOK_URL_ | ||
# | ||
|
||
# - file: reportKafka | ||
# channels: | ||
# - hijack | ||
# - newprefix | ||
# - visibility | ||
# - path | ||
# - misconfiguration | ||
# params: | ||
# host: localhost:9092 | ||
# topics: | ||
|
@@ -128,4 +139,23 @@ logging: | |
maxSize: 80m | ||
maxFiles: 14d | ||
|
||
checkForUpdatesAtBoot: true | ||
checkForUpdatesAtBoot: true | ||
|
||
|
||
############################ | ||
# Uptime monitor settings: | ||
# The uptime monitor enables an API (http://localhost:8011/status) which shows the current status of BGPalerter | ||
# If any component reports an invalid state, the "warning" field will be set to true and the HTTP status code will be 500. | ||
# | ||
# - active - A boolean that if set to true enables the monitor. When set to false none of the monitoring components | ||
# and dependencies are loaded (and no port has to be open). | ||
# - useStatusCodes - A boolean that if set to true enables HTTP status codes in the response. Nothing changes in the | ||
# JSON output provided by the API. | ||
# - port - The port on which the API will be reachable. | ||
|
||
uptimeMonitor: | ||
active: false | ||
useStatusCodes: true | ||
port: 8011 | ||
|
||
############################ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Uptime Monitor | ||
|
||
The Uptime Monitor is a feature that allows to monitor the status of BGPalerter. | ||
The API is reachable at `http://localhost:8011/status`. | ||
The API, in addition to the JSON answer, can use HTTP status codes for an easier integration with Nagios and similar. | ||
|
||
When this feature is disabled, no extra dependencies are loaded and no open port is required. | ||
Please, see [configuration](configuration.md) for all the possible configuration parameters. | ||
|
||
The following is an example of the API output. | ||
|
||
``` | ||
{ | ||
"warning": false, | ||
"connectors": [ | ||
{ | ||
"name": "ConnectorRIS", | ||
"connected": true | ||
} | ||
] | ||
} | ||
``` |
Oops, something went wrong.