Netbox plugin to sync data between LibreNMS and Netbox.
Project description
NetBox LibreNMS Plugin
This plugin provides the ability to sync data between Netbox and LibreNMS.
This is in early development.
Features
The plugin offers the following key features:
Interface Synchronization
Pull interface data from LibreNMS into NetBox. The following interface attributes are synchronized:
- Interface Name
- Interface Description
- Interface Status (Enabled/Disabled)
- Interface Type (with custom mapping support)**
- Interface Speed
** Set custom mappings for interface types to ensure that the correct interface type is used when syncing from LibreNMS to NetBox.
Site & Location Synchronization
The plugin also supports synchronizing NetBox Sites with LibreNMS locations:
- Compare NetBox sites to LibreNMS location data
- Create LibreNMS locations to match NetBox sites
- Update existing LibreNMS locations langitude and longitude values based on NetBox data
- Sync device site to LibreNMS location
Screenshots/GIFs
Site & Location Sync
Sync devices and Interfaces
Interface Type Mappings
Contributing
There's more to do! Coding is not my day job. Bugs will exist and imporvements will be needed. So contributions are very welcome! I've got more ideas for new features and imporvements but please contribute if you can!
Or just share your ideas for the plugin over in discussions.
Compatibility
NetBox Version | Plugin Version |
---|---|
4.0 | 0.2.x |
Installing
Netbox 4.0+ is required.
Standard Installation
Activate your virtual environment and install the plugin:
source /opt/netbox/venv/bin/activate
Install with pip:
(venv) $ pip install netbox-librenms-plugin
Add to your local_requirements.txt
to ensure it is automatically reinstalled during future upgrades.
"netbox-librenms-plugin" >> /opt/netbox/netbox/local_requirements.txt
Docker
For adding to a NetBox Docker setup see how to create a custom Docker image. the general instructions for using netbox-docker with plugins.
Add the plugin to plugin_requirements.txt
(netbox-docker):
# plugin_requirements.txt
netbox-librenms-plugin
Configuration
Enable the plugin in /opt/netbox/netbox/netbox/configuration.py
,
or if you use netbox-docker, your /configuration/plugins.py
file :
PLUGINS = [
'netbox-librenms-plugin'
]
PLUGINS_CONFIG = {
'netbox_librenms_plugin': {
'librenms_url': 'https://your-librenms-instance.com',
'api_token': 'your_librenms_api_token',
'cache_timeout': 300,
}
}
Apply Database Migrations
Apply database migrations with Netbox manage.py
:
(venv) $ python manage.py migrate
Restart Netbox
Restart the Netbox service to apply changes:
sudo systemctl restart netbox
Uninstall
See the instructions for uninstalling plugins.
Credits
Based on the NetBox plugin tutorial and docs:
This package was created with Cookiecutter. Thanks to the netbox-community/cookiecutter-netbox-plugin
for the project template.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file netbox_librenms_plugin-0.2.3.tar.gz
.
File metadata
- Download URL: netbox_librenms_plugin-0.2.3.tar.gz
- Upload date:
- Size: 2.5 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7fea1548e1d0b2167c7173c3035d2ac53226be80d78ba40a5a153cd7d0995dd3 |
|
MD5 | 169a88f062835ceb94abe78bb17a6059 |
|
BLAKE2b-256 | e7a6498c5793947969ee5251ad1400a112596675270d952961347887a215c4da |
File details
Details for the file netbox_librenms_plugin-0.2.3-py3-none-any.whl
.
File metadata
- Download URL: netbox_librenms_plugin-0.2.3-py3-none-any.whl
- Upload date:
- Size: 26.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 551a8531d44d8bd49f869b5d72aec899a0c6e4f6ea8b425e97ec220a32973acd |
|
MD5 | 4376ad3a02c537421d8e23ef8550394c |
|
BLAKE2b-256 | 2cc489ab8f7d629b3cbbe523ba119ff03edab353880ae8ad9fb890affed86906 |