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

42 lines
1.9 KiB
Markdown
Raw Normal View History

2019-10-05 19:18:11 +02:00
# Installation
## Running BGPalerter from binaries
1. Download the binary [here](https://github.com/nttgin/BGPalerter/releases) (be sure to select the one for your OS).
2019-10-05 19:18:11 +02:00
2. Download [`config.yml.example`](https://raw.githubusercontent.com/nttgin/BGPalerter/master/config.yml.example) as `config.yml` and [`prefixes.yml.example`](https://raw.githubusercontent.com/nttgin/BGPalerter/master/prefixes.yml.example) as `prefixes.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).
2019-10-05 19:18:11 +02:00
3. Modify `prefixes.yml` and add the prefixes you want to monitor (or see below how to auto generate this file).
2019-10-05 19:18:11 +02:00
4. Run the executable (e.g. `chmod 700 bgpalerter-linux-x64 && nohup ./bgpalerter-linux-x64 &`).
2019-10-05 19:18:11 +02:00
5. 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
1. Git clone this repo.
2019-10-05 19:18:11 +02:00
2. Install Node.js (version >= 10.16) and npm ([installing node and npm](https://nodejs.org/en/download/)).
2019-10-05 19:18:11 +02:00
3. Execute `npm install` to install all dependencies.
2019-10-05 19:18:11 +02:00
4. Run `npm run watch-and-serve` to run the application. At every file change it will self-reload.
2020-01-18 19:05:10 +01:00
## Running BGPalerter in Docker
BGPalerter is available in Docker Hub [here](https://hub.docker.com/r/nttgin/bgpalerter/tags).
There are two main builds:
* `latest` stable version for production monitoring;
* `dev` reflects the last commit in the `dev` branch. Use this only for development purposes.
Additionally, each release has its own build in case you want to revet back to an older version.