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

NetBox Ping Settings

{% endblock %} {% block content %}
{% csrf_token %}
{# ── DNS Configuration ── #}
DNS Configuration
{% for field in form %} {% if field.name in 'dns_server1,dns_server2,dns_server3,perform_dns_lookup' %}
{{ field }} {% if field.help_text %}
{{ field.help_text }}
{% endif %} {% for error in field.errors %}
{{ error }}
{% endfor %}
{% endif %} {% endfor %}
{# ── Auto-Scan Configuration ── #}
Auto-Scan Configuration
{% for field in form %} {% if field.name in 'auto_scan_enabled,auto_scan_interval,auto_discover_enabled,auto_discover_interval,max_prefix_size,ping_history_max_records,ping_concurrency,ping_timeout' %}
{{ field }} {% if field.help_text %}
{{ field.help_text }}
{% endif %} {% for error in field.errors %}
{{ error }}
{% endfor %}
{% endif %} {% endfor %}
{# ── Per-Prefix Schedules ── #}
Per-Prefix Schedules
{% if schedule_data %}
{% for item in schedule_data %} {% endfor %}
Prefix Scan Mode Scan Interval Discover Mode Discover Interval Last Scanned Last Discovered Actions
{{ item.schedule.prefix.prefix }} {% if item.schedule.scan_mode == 'follow_global' %} Follow Global {% elif item.schedule.scan_mode == 'custom_on' %} Custom On {% else %} Custom Off {% endif %} {% if item.schedule.scan_mode == 'custom_on' %} {{ item.schedule.get_scan_interval_display }} {% else %} {% endif %} {% if item.schedule.discover_mode == 'follow_global' %} Follow Global {% elif item.schedule.discover_mode == 'custom_on' %} Custom On {% else %} Custom Off {% endif %} {% if item.schedule.discover_mode == 'custom_on' %} {{ item.schedule.get_discover_interval_display }} {% else %} {% endif %} {% if item.scan_result and item.scan_result.last_scanned %} {{ item.scan_result.last_scanned|timesince }} ago {% else %} Never {% endif %} {% if item.scan_result and item.scan_result.last_discovered %} {{ item.scan_result.last_discovered|timesince }} ago {% else %} Never {% endif %} Edit
{% else %}
No per-prefix schedules configured. You can set up individual schedules from a prefix's Ping Status tab.
{% endif %}
{% endblock %}