{% set valid_users = {} %} {% for user, user_data in grouped_connections.items() %} {% if user and user != "-" and user != "Anónimo" %} {% set _ = valid_users.update({user: user_data}) %} {% endif %} {% endfor %}
Servidor Squid (v{{ squid_version }})
{{ squid_ip }}
Proxy Padre Activo
{{ parent_proxy_ip }}
Sin Proxy Padre
Conexión Directa
Usuarios Activos
{{ valid_users|length }}
Conexiones Totales
{% set total = namespace(value=0) %} {% for user_data in valid_users.values() %} {% set total.value = total.value + user_data.connections|length %} {% endfor %} {{ total.value }}
Tiempo Activo
{{ squid_info_stats.elapsed_hours }}h
Clientes Squid
{{ squid_info_stats.clients }}
Peticiones HTTP
{{ "{:,}"|format(squid_info_stats.requests_received) }}
Pet./Min Promedio
{{ squid_info_stats.avg_requests_per_minute|round(1) }}
Estado Squid Info
{% if squid_info_stats.connection_status == 'connected' %}Conectado {% elif squid_info_stats.connection_status == 'connected_but_parse_error' %}Error Parsing {% elif squid_info_stats.connection_status == 'timeout' %}Timeout {% elif squid_info_stats.connection_status == 'connection_refused' %}Conexión Rechazada {% elif squid_info_stats.connection_status == 'dns_error' %}Error DNS {% else %}Error Desconocido{% endif %}
| Duración | Método | URL | Datos | Delay Pool | Solicitudes | Dir. Remota |
|---|---|---|---|---|---|---|
| {% set seconds = connection.elapsed_time|float %} {% if seconds >= 3600 %}{{ "%.2f"|format(seconds/3600) }} h {% elif seconds >= 60 %}{{ "%.2f"|format(seconds/60) }} min {% else %}{{ "%.2f"|format(seconds) }} seg{% endif %} | {% set method = connection.logType|lower %} {{ connection.logType }} |
{{ connection.uri }}
|
{% if connection.fd_total != "N/A" %}{{ (connection.fd_total / 1024 / 1024)|round(2) }} MB {% else %}N/A{% endif %} | {% if connection.delay_pool != "N/A" %} {% set pool = connection.delay_pool|string %} Pool {{ connection.delay_pool }} {% else %}N/A{% endif %} | {{ connection.nrequests }} | {{ connection.proxy_local_ip }} |