{% extends "base.html" %} {% block title %}Agents / Servidores | GTI Fiscal{% endblock %} {% block content %}
INVENTÁRIO OPERACIONAL
Clientes e servidores ativos. Use Histórico para consultar instalações inativas ou revogadas.
Filtros ativos: {% if scope_filter=="all" %}Histórico e inativos{% endif %}{% if health_filter %}Saúde: {{ {"ONLINE":"Online","DEGRADED":"Atenção","OFFLINE":"Offline","FAILED":"Falhou","UNKNOWN":"Não informado"}[health_filter] }}{% endif %}{% if version_filter %}Agents desatualizados{% endif %}
{% endif %}| Cliente / servidor | Saúde | Status fiscal | Cobertura | Produtos | Versão | Último contato |
|---|---|---|---|---|---|---|
| {{ item.client or "Cliente não identificado" }}{{ item.hostname or item.display_name or "Servidor não informado" }}{% if item.display_name and item.hostname and item.display_name!=item.hostname %}{{ item.display_name }}{% endif %}{% if not item.operational_active %}Histórico / inativo{% endif %} | {{ item.technical_health_label }} | {{ item.fiscal_status_label }}{% if item.total_products is not none %}{{ item.fiscally_complete }} completos · {{ item.safe_blocked }} bloqueados{% if item.failed_products %} · {{ item.failed_products }} falhas{% endif %}{% endif %}{% if not item.coverage_invariant_pass %}Inconsistência no snapshot{% endif %} | {% if item.fiscal_completion_percent is none %}Não informada{% else %}{{ "%.1f"|format(item.fiscal_completion_percent)|replace(".", ",") }}%{% endif %} | {{ item.total_products if item.total_products is not none else "Não informado" }} | {{ item.agent_version or "Não informada" }}{% if item.version_drift=="OUTDATED" %}Atualização disponível{% endif %} | {{ item.last_seen_age }}{{ item.last_seen_display }} |
| Nenhuma instalação encontrada para os filtros atuais. Consultar histórico | ||||||