NewDanbyte 0.20.0: Known vulnerabilities, device dependencies and DiscoveryRelease notes
Plugins

Plugins for Danbyte and for NetBox

Danbyte has a plugin system. A plugin is a Python package that can add models, a REST API, automation and whole pages, and you do not have to fork Danbyte or rebuild its frontend. We also maintain two open-source plugins for NetBox.

The Integrations page in Danbyte's settings, where plugins are listed and switched onThe Integrations page in Danbyte's settings, where plugins are listed and switched on

Two places to start a Danbyte plugin

A Danbyte plugin uses the same plugin API that is documented in the developer guide. You can read the example plugin to see every hook in use, or copy the template and rename it.

Example plugin

danbyte_example_plugin

The example plugin is included in the Danbyte repository as a reference. It uses every hook: a tenant-scoped Widget model with a REST API, a monitoring check, an automation provider, and a navigation item, pages and a dashboard panel that Danbyte renders from metadata.

ReferenceBundledslug: example

Plugin template

danbyte-plugin-template

The official template is a Python package with a model, an API, a monitoring check, an automation hook and pages already set up. You rename the package, add it to PLUGINS and apply the change in Settings. Danbyte itself stays unchanged and you do not rebuild the frontend.

Starter templateOpen plugin API

What a Danbyte plugin can add

Danbyte finds a plugin when it starts and checks that the plugin supports your Danbyte version. A plugin that is broken or incompatible is reported in Settings and skipped, so Danbyte still starts.

Your own models
A plugin model gets role-based permissions, custom fields, tags, the change log and import and export. Webhooks and automation receive its events like those of any built-in object.
A REST API
When the plugin contains an api_urls.py, Danbyte mounts it under /api/plugins/<slug>/. The viewsets are scoped to the tenant and check permissions.
Pages without JavaScript
The plugin registers navigation items, list and detail pages and dashboard panels as metadata. Danbyte's frontend renders them, so the plugin contains no JavaScript and you never rebuild the frontend.
Automation and integrations
A plugin can register automation runners, import sources and notification channels. They appear in Danbyte next to the built-in ones.
Monitoring checks
A plugin can add a new kind of check to the monitoring engine. Danbyte schedules it and shows its results like the built-in checks.
Switched on for each tenant
Every tenant can enable or disable an installed plugin on its own. Disabling a plugin hides its pages and its API and keeps its data.

How you install a Danbyte plugin

There are two ways to install a plugin. Both end with Apply changes in Settings, which only a superuser can do.

Install it with pip
You install the package into Danbyte's virtual environment and add its module name to PLUGINS. Then you apply the change in Settings, and Danbyte runs the migrations and restarts its services.
Upload it on a server without internet
A superuser can upload a .tar.gz or .zip archive of the plugin in Settings, under Integrations and Plugins. Danbyte loads it the next time you apply changes.
Install only plugins you trust
A plugin runs inside Danbyte with full access to the deployment, so you should treat it like any other dependency you install.
install a danbyte plugin
# 1. Install the plugin into your Danbyte venv
$ .venv/bin/pip install danbyte-acme-plugin
# 2. Enable it (comma-separate multiple modules)
$ echo 'PLUGINS=danbyte_acme_plugin' >> .env
# 3. Settings > Integrations > Plugins > Apply changes
# Danbyte migrates and restarts the services for you.

NetBox Ping

NetBox Ping is a NetBox plugin that pings, discovers and monitors IP addresses from inside your NetBox instance.

Python 3.10+NetBox 4.5+Apache 2.0
Ping a single address
You can ping an address from its detail page with one click. The plugin shows the response time, the DNS name and when the address was last seen.
Scan a prefix
The plugin pings every existing IP address in a prefix, so you can check a whole subnet at once.
Discover new hosts
A discovery scan finds active addresses that are not in NetBox yet and adds them for you.
Bulk operations
You can select several prefixes in the list view and scan or discover them together.
Scheduled scans
Scans and discovery can run on a schedule. You set one interval for everything or a custom interval for a prefix.
Schedule modes for each prefix
Every prefix has one of three schedule modes: Follow Global, Custom On or Custom Off.
DNS resolution
The plugin does a reverse DNS lookup for each reachable address. You choose which DNS servers it asks.
Status columns and panels
The IP and prefix tables get sortable ping status columns, and the detail pages get a status panel.

NetBox Map

NetBox Map is a mapping and floor plan plugin for NetBox. It adds interactive floor plans, a global site map and rack heatmaps.

Python 3.12+NetBox 4.5+Apache 2.0
Interactive floor plans
You draw a floor plan in a canvas editor. You can drag tiles into place, pan and zoom, and configure the grid.
Global site map
A Leaflet map shows your sites, locations, tiles and standalone markers where they are in the world.
Rack utilisation heatmap
Each rack tile is coloured from green to red by how full the rack is.
Devices inside a rack
You can expand a rack in the sidebar to see every device in it, sorted by U position.
Camera field of view
You can set the field of view of a camera and see the cone on the floor plan while you edit it.
12 tile types
The tile types include rack, aisle, wall, door, cooling, power, camera and access point. Each type has its own colour.
PDF export
You can export a floor plan to PDF with one click. The PDF includes the tiles, the labels and the camera cones.
Settings in the web UI
You switch features on and off and choose the fields of the detail panel in the UI, without editing a file.

How you install the NetBox plugins

You install the plugins from PyPI into your NetBox virtual environment, add them to configuration.py, run the migrations and restart NetBox.

install, pip
# 1. Install from PyPI into your NetBox venv
$ pip install netbox-ping netbox-map
configuration.py
# 2. Add to your NetBox configuration.py
PLUGINS = [
"netbox_ping",
"netbox_map",
]
migrate and restart
# 3. Apply migrations, collect static, restart
$ python manage.py migrate
$ python manage.py collectstatic --no-input
$ sudo systemctl restart netbox netbox-rq

Write a Danbyte plugin or add ours to NetBox

The developer guide explains how to write a plugin for Danbyte. The NetBox plugins are on GitHub and PyPI, and you can install them into an existing NetBox.