{% extends 'generic/object.html' %} {% load buttons %} {% load helpers %} {% load plugins %} {% load static %} {% load i18n %} {% load render_table from django_tables2 %} {% block javascript %} {{ block.super }} {% endblock %} {% block breadcrumbs %} {{ block.super }} {% with model_name=object|meta:"model_name" %} {% if model_name == "device" %}
| {% if mapping.is_active %} {% elif mapping.is_configured %} {% else %} {% endif %} {% if mapping.is_configured %} {{ mapping.display_name }} {% else %} {{ mapping.server_key }} Not configured {% endif %} | {% if mapping.device_url %} ID {{ mapping.device_id }} {% else %} ID {{ mapping.device_id }} {% endif %} | {% if not mapping.is_configured %} {% if lookup_device_model_name == "device" or lookup_device_model_name == "virtualmachine" %} {% if lookup_device_pk == object.pk %} {% else %} Managed by VC sync device {% endif %} {% endif %} {% endif %} |
| Status | {% if found_in_librenms %} Found {% else %} Not found {% endif %} |
|---|---|
| ID | {{ librenms_device_id }} {% if librenms_id_is_legacy %} {% endif %} |
| Hostname | {% if librenms_device_hostname and librenms_device_hostname != "-" %} {{ librenms_device_hostname }} {% else %} - {% endif %} |
| sysName | {% if sysName %} {{ sysName }} {% else %} - {% endif %} |
| Serial {% if object.serial and librenms_device_serial != object.serial %} {% endif %} | {{ librenms_device_serial }} {% if object.serial and librenms_device_serial == object.serial %} {% endif %} |
| OS Version | {% if platform_info.librenms_version and platform_info.librenms_version != "-" %} {{ platform_info.librenms_version }} {% else %} - {% endif %} |
| OS | {% if platform_info.librenms_os and platform_info.librenms_os != "-" %} {{ platform_info.librenms_os }} {% else %} - {% endif %} |
| Version | {% if platform_info.librenms_version and platform_info.librenms_version != "-" %} {{ platform_info.librenms_version }} {% else %} - {% endif %} |
| Hardware | {% if librenms_device_hardware and librenms_device_hardware != "-" %} {{ librenms_device_hardware }} {% else %} - {% endif %} |
| Features | {% if librenms_device_features and librenms_device_features != "-" %} {{ librenms_device_features }} {% else %} - {% endif %} |
| LibreNMS Link | View |
| Action |
| Field | NetBox Value | LibreNMS Value |
|---|---|---|
| Name |
{{ object.name }}
{% if resolved_name and resolved_name != object.name %}
{% elif resolved_name %}
{% endif %}
|
{{ sysName|default:"—" }} |
| Device Type |
{% if object.device_type %}
{{ object.device_type }}
{% else %}
Not set
{% endif %}
{% if librenms_device_hardware_match.matched %}
{% if not object.device_type or object.device_type.pk != librenms_device_hardware_match.device_type.pk %}
{% else %}
{% endif %}
{% endif %}
|
{{ librenms_device_hardware }} {% if not librenms_device_hardware_match.matched and librenms_device_hardware != "-" %} DeviceTypes {% endif %} |
| Serial Number |
{% if object.serial %}
{{ object.serial }}
{% else %}
Not set
{% endif %}
{% if object.virtual_chassis and vc_inventory_serials %}
{% else %}
{% if librenms_device_serial != "-" %}
{% if object.serial != librenms_device_serial %}
{% else %}
{% endif %}
{% endif %}
{% endif %}
|
{{ librenms_device_serial }} |
| Platform |
{% if platform_info.netbox_platform %}
{{ platform_info.netbox_platform }}
{% else %}
Not set
{% endif %}
{% if platform_info.librenms_os and platform_info.librenms_os != "-" %}
{% if platform_info.platform_exists %}
{% if not platform_info.netbox_platform or platform_info.netbox_platform.pk != platform_info.matching_platform.pk %}
{% else %}
{% endif %}
{% else %}
{% endif %}
{% endif %}
|
{{ platform_info.librenms_os }}
{% if not platform_info.platform_exists and platform_info.librenms_os and platform_info.librenms_os != "-" %}
Not in NetBox
{% endif %}
|
| Location | {{ object.site.name }} |
{{ librenms_device_location }}
{% if librenms_device_location != object.site.name %}
{% else %}
{% endif %}
|
librenms_id set to {{ librenms_device_id }} but was not found in LibreNMS.
librenms_id custom field with the device ID from LibreNMS