1.6 KiB
Installation
Running BGPalerter from binaries
-
Download the binary here (be sure to select the one for your OS)
-
Download
config.yml.example
asconfig.yml
andprefixes.yml.example
asprefixes.yml
, and place them in the same directory of the executable (if you skip this step, some default configuration files will be generated during the first execution) -
Modify
prefixes.yml
and add the prefixes you want to monitor (or see below how to auto generate this file) -
Run the executable (e.g.
chmod 700 bgpalerter-linux-x64 && nohup ./bgpalerter-linux-x64 &
) -
See the alerts in
logs/reports-YYYY-MM-DD.log
(e.g.tail -f logs/reports*
)
In config.yml.example
you can find other reporting mechanisms (e.g. email and slack) in addition to logging to files.
Please uncomment the related section and configure according to your needs.
If you enable email reporting, download also the directory reports/email_templates
in the same directory of the executable.
Running BGPalerter from the source code
-
git clone this repo
-
install Node.js (version >= 10.16) and npm (installing node and npm)
-
execute
npm install
oryarn
to install all dependencies (installing yarn) -
run
npm run watch-and-serve
to run the application. At every file change it will self-reload.