Netbox plugin to sync data between LibreNMS and Netbox.
Project description
NetBox Librenms Plugin
This plugin provides a way to integrate data from Librenms into NetBox.
Features
Sync data between NetBox and Librenms.
Version 0.1.0 of 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 to Location Synchronization
The plugin also supports synchronizing NetBox Sites with LibreNMS locations:
- Compare NetBox sites to LibreNMS location data
- Create or update LibreNMS locations to match NetBox sites
- Update existing LibreNMS locations langitude and longitude values based on NetBox data
Contributing
There's more to do! Coding is not my day job so 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!
Compatibility
NetBox Version | Plugin Version |
---|---|
4.0 | 0.1.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 durintg 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,
}
}
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.1.1.tar.gz
.
File metadata
- Download URL: netbox_librenms_plugin-0.1.1.tar.gz
- Upload date:
- Size: 22.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 809f5a7fe678bc7061b0d5f92b4b62390026e245ce0a54ce232ac69393c229a5 |
|
MD5 | e3ec1c32bce8f6ff375ad26424640b31 |
|
BLAKE2b-256 | db04d86e3ed26a848dd938a192e6d08d3b6bca9922b639d333becb9cad7c2b1d |
File details
Details for the file netbox_librenms_plugin-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: netbox_librenms_plugin-0.1.1-py3-none-any.whl
- Upload date:
- Size: 27.5 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 | df4c92decc6e8aab1d44da276ae65d830cdf1a000ecced2e76c808890829ed85 |
|
MD5 | cf5242a914f0e4adfe137b2645b9b23e |
|
BLAKE2b-256 | d02cb79952671fe0c8b5e5ce886eabfd5c221ee9abd6026a21f325bd57e9207d |