Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add netbox input #1415

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

ShimmerGlass
Copy link

Overview

This new Netbox Input class loads and refresh prefixes to monitor dynamically from Netbox's IPAM.

It automatically sets the prefix description from Netbox data so operators can quickly identify what prefix is affected when an alert pops up.
Prefixes are periodically refreshed to ensure BGPalerter works on up to date data.

This implementation makes no assumption about how data is organized in Netbox and instead lets users configure querie(s) via any parameter exposed by Netbox's REST API to find the appropriate prefixes they wish to monitor.

Example config

inputNetbox:
  url: https://netbox
  token: [TOKEN]
  refreshIntervalSeconds: 300
  queries:
    - params:
        description__iew: EUROPE PUBLIC IPV4
      asn:
        - 12345
    - params:
        description__iew: EUROPE PUBLIC IPV6
      asn:
        - 12345
    - params:
        description__iew: ASIA PUBLIC IPV4
      asn:
        - 67890
    - params:
        description__iew: ASIA PUBLIC IPV6
      asn:
        - 67890

Documentation

Documentation is not yet updated. I would first like the scope of this PR and the configuration format be validated before tackling that part.

dynamically fetch monitored prefixes from netbox
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant