Initial Setup
Usage Tips¶
Initial Setup¶
-
- Set up the
librenms_idcustom field for optimal device matching - This ensures reliable device identification between NetBox and LibreNMS
- Set up the
-
- Review and set up interface type mappings before synchronization
- Create specific mappings for your network equipment types
- Pay attention to speed-based mappings for accurate interface types
-
- Configure multiple LibreNMS instances in your NetBox configuration
- Switch between different LibreNMS servers through the web interface
- Maintain backward compatibility with single-server configurations
Device Import¶
Device Import Guide - Import devices from LibreNMS into NetBox
- Search for devices using flexible filters (location, type, OS, hostname, sysname)
- Validate import prerequisites (Site, Device Type, Device Role)
- Configure missing mappings or select from suggestions
- Import devices individually or in bulk
- Automatic Virtual Chassis creation for stackable switches
The Device Import feature automatically sets the librenms_id custom field, enabling all other plugin features.
Rack Position Assignment: Imported devices can be assigned to racks without specific rack unit (U) positions. After import, assign U positions through the "Non racked" section of each rack. The NetBox Reorder Rack plugin simplifies this workflow.
Device Synchronization¶
Devices¶
Note: If you imported devices using the Device Import feature, the
librenms_idis already set and will be used automatically. The steps below apply to devices added to NetBox manually.
- Ensure devices have either:
- Primary IP configured
- Valid DNS name (set on the Primary IP)
- hostname (that matches LibreNMS hostname)
- The plugin will populate the
librenms_idcustom field if the device is found in LibreNMS
Virtual Chassis¶
LibreNMS treats a Virtual Chassis as one logical device. The plugin selects a single "sync device" from your chassis to communicate with LibreNMS using this priority:
- Member with
librenms_idset (if already configured) - Master device with primary IP (most common)
- Any member with primary IP (fallback)
- Member with lowest position number (last resort)
Only the selected sync device should have the librenms_id custom field populated—leave it empty on all other members.
For best results, align chassis member positions with interface naming patterns. For example, if switch 1 has interfaces like eth1/0/1 and switch 2 has eth2/0/1, the plugin can auto-detect the correct member for each interface. Always verify the member selection before running bulk synchronization.
Interface Management¶
- Verify Before Sync
- Review interface mappings indicated by the icons (đź”— shows a mapping is configured)
- Check speed and type matches
- Confirm member assignments for virtual chassis
- Exlude columns to exclude from interface sync
- Sync only the values you want to sync
Cable Management¶
- Preparation
- Ensure devices are properly identified in both systems
- Open LibreNMS Sync on all devices to populate librenms_id custom field
- Remote Device and Remote interface need to be found in NetBox for cable creation to work
- Check Device and Interface naming
Best Practices¶
- Regular Maintenance
- Periodically review and update interface mappings
- Keep custom fields current
Optimization¶
- DNS lookup time can slow response of the API call to LibreNMS