{% extends 'base/layout.html' %} {% load i18n %} {% block content %}

{% trans "Proxmox Dashboard" %}

{% trans "Cluster and node summaries from the configured ProxBox backend." %}

{% if dashboards %} {% for item in dashboards %}
{% trans "Endpoint" %}: {% if item.endpoint.get_absolute_url %} {{ item.endpoint.name|default:"—" }} ({{ item.endpoint_ip }}) {% else %} {{ item.endpoint.name|default:"—" }}({{ item.endpoint_ip }}) {% endif %}
{% if item.detail %} {% else %}
{% trans "Cluster Summary" %}
{% trans "Cluster" %} {{ item.cluster_summary.name|default:"—" }}
{% trans "Mode" %} {{ item.cluster_summary.mode|default:"—" }}
{% trans "Quorum" %} {% if item.cluster_summary.quorate %} {% trans "Yes" %} {% else %} {% trans "No" %} {% endif %}
{% trans "Nodes" %} {% if item.netbox_cluster %} {{ item.cluster_summary.nodes_total }} {% else %} {{ item.cluster_summary.nodes_total }} {% endif %}
{% trans "Online" %} {% if item.netbox_cluster %} {{ item.cluster_summary.nodes_online }} {% else %} {{ item.cluster_summary.nodes_online }} {% endif %}
{% trans "Offline" %} {% if item.netbox_cluster %} {{ item.cluster_summary.nodes_offline }} {% else %} {{ item.cluster_summary.nodes_offline }} {% endif %}
{% trans "Guests Summary" %}
{% trans "VMs Running" %} {% if item.netbox_cluster %} {{ item.guest_summary.virtual_machines.running }} {% else %} {{ item.guest_summary.virtual_machines.running }} {% endif %}
{% trans "VMs Stopped" %} {% if item.netbox_cluster %} {{ item.guest_summary.virtual_machines.stopped }} {% else %} {{ item.guest_summary.virtual_machines.stopped }} {% endif %}
{% trans "VM Templates" %} {% if item.netbox_cluster %} {{ item.guest_summary.virtual_machines.templates }} {% else %} {{ item.guest_summary.virtual_machines.templates }} {% endif %}
{% trans "LXC Running" %} {% if item.netbox_cluster %} {{ item.guest_summary.lxc_containers.running }} {% else %} {{ item.guest_summary.lxc_containers.running }} {% endif %}
{% trans "LXC Stopped" %} {% if item.netbox_cluster %} {{ item.guest_summary.lxc_containers.stopped }} {% else %} {{ item.guest_summary.lxc_containers.stopped }} {% endif %}
{% trans "LXC Templates" %} {% if item.netbox_cluster %} {{ item.guest_summary.lxc_containers.templates }} {% else %} {{ item.guest_summary.lxc_containers.templates }} {% endif %}
{% if item.object_summaries %}
{% trans "Synced Objects" %}
{% for obj in item.object_summaries %} {% endfor %}
{% trans "Object Type" %} {% trans "Total" %} {% trans "Details" %}
{% if obj.list_url_name %} {{ obj.label }} {% else %} {{ obj.label }} {% endif %} {{ obj.total }} {{ obj.detail|default:"—" }}
{% endif %}
{% trans "Nodes Summary" %}
{% for node in item.nodes %} {% empty %} {% endfor %}
{% trans "Node" %} {% trans "Status" %} {% trans "Uptime" %} {% trans "CPU" %} {% trans "Load Avg" %} {% trans "Memory" %} {% trans "Disk" %}
{% if item.netbox_cluster %} {{ node.name }} {% else %} {{ node.name }} {% endif %} {% if node.status == "online" %} {% trans "Online" %} {% else %} {{ node.status }} {% endif %} {{ node.uptime }}
{{ node.cpu_label }}
{{ node.loadavg }}
{{ node.memory_label }}
{{ node.disk_label }}
{% trans "No node data returned." %}
{% endif %}
{% endfor %} {% else %} {% endif %} {% endblock %} {% block footer_links %} {{ block.super }} {% include "netbox_proxbox/footer.html" %} {% endblock %}