{% extends 'base/layout.html' %} {% load helpers %} {% block title %}PRTG Settings{% endblock %} {% block header %}

PRTG Plugin Configuration

{% endblock %} {% block content %}
Connection Status
{% if not configured %}
PRTG is not configured. Add configuration to NetBox's configuration.py file.
{% elif connection_status.success %}
{{ connection_status.message }}
{% else %}
Connection failed: {{ connection_status.message }}
{% endif %}
Current Configuration
PRTG Server URL {% if config.prtg_url %} {{ config.prtg_url }} {% else %} Not configured {% endif %}
API Token {% if config.prtg_api_token %} Configured {% else %} Not configured {% endif %}
Timeout {{ config.timeout|default:"30" }} seconds
Cache Timeout {{ config.cache_timeout|default:"60" }} seconds
Verify SSL {% if config.verify_ssl %} Yes {% else %} No (insecure) {% endif %}
Configuration Instructions

To configure the PRTG plugin, add the following to your NetBox configuration.py file:

PLUGINS_CONFIG = {
    'netbox_prtg': {
        'prtg_url': 'https://prtg.example.com',
        'prtg_api_token': 'your-api-token-here',
        'timeout': 30,
        'cache_timeout': 60,
        'verify_ssl': True,
    }
}

Note: After updating the configuration, restart NetBox to apply changes.

{% endblock %}