{% extends 'generic/object.html' %} {% load buttons %} {% load helpers %} {% load plugins %} {% load static %} {% load i18n %} {% load render_table from django_tables2 %} {% block breadcrumbs %} {{ block.super }} {% with model_name=object|meta:"model_name" %} {% if model_name == "device" %} {% elif model_name == "virtualmachine" %} {% endif %} {% endwith %} {% endblock %} {% block content %}
Device Status
{% if object_in_librenms %} {% with model_name=object|meta:"model_name" %} {% if model_name == "device" %} {% endif %} {% endwith %} {% endif %}
Status {% if object_in_librenms %} Found in LibreNMS {% else %} Not found in LibreNMS {% endif %}
LibreNMS ID {{ librenms_device_id }}
Device Type {{ librenms_device_hardware }}
LibreNMS Location
{{ librenms_device_location }}
{% csrf_token %} {% if librenms_device_location != object.site.name %} {% else %} {% endif %}
{% if last_fetched %} Last data updated: {{ last_fetched|date:"Y-m-d H:i" }} {% endif %} {% if object.primary_ip %} {% if object_in_librenms %}
{% include 'netbox_librenms_plugin/_interface_sync.html' %}
{% include 'netbox_librenms_plugin/_cable_sync.html' %}
{% include 'netbox_librenms_plugin/_ipaddress_sync.html' %}
{% else %} {% endif %} {% else %} {% if is_vc_member and not has_vc_primary_ip %}
Virtual chassis primary device {{ vc_primary_device }} requires a primary IP for LibreNMS sync
{% elif is_vc_member and has_vc_primary_ip %}
LibreNMS sync is managed by virtual chassis member {{ vc_primary_device }}
{% elif not has_primary_ip %}
A primary IP is required for LibreNMS sync
{% endif %} {% endif %} {% endblock %}