{% extends 'generic/object_edit.html' %} {% load form_helpers %} {% block title %}LibreNMS Settings{% endblock %} {% block content %}
{% csrf_token %}

LibreNMS Server Settings

Configure which LibreNMS server to use for synchronization operations. Multiple servers can be configured in the NetBox configuration file.

{% render_field form.selected_server %}

Connection Test

Test the connection to the selected LibreNMS server to verify configuration.

Configuration Example

To configure multiple LibreNMS servers, update your NetBox configuration.py:

PLUGINS_CONFIG = {
    'netbox_librenms_plugin': {
        'servers': {
            'production': {
                'display_name': 'Production LibreNMS',
                'librenms_url': 'https://librenms-prod.example.com',
                'api_token': 'your_production_token',
                'cache_timeout': 300,
                'verify_ssl': True,
                'interface_name_field': 'ifDescr'
            },
            'testing': {
                'display_name': 'Test LibreNMS',
                'librenms_url': 'https://librenms-test.example.com',
                'api_token': 'your_test_token',
                'cache_timeout': 300,
                'verify_ssl': False,
                'interface_name_field': 'ifName'
            }
        }
    }
}
Note: For backward compatibility, the legacy single-server configuration is still supported if no "servers" configuration is provided.
{% endblock %}