{% extends "base.html" %} {% block title %}{{ computer.hostname }} — InfoUser Monitor{% endblock %} {% block content %}

{{ computer.hostname }}

← Назад
Статус
{{ computer.status }}
Пользователь
{% if computer.current_user and ',' in computer.current_user %} за ПК работают {{ computer.current_user.split(',') | length }} пользователя {% else %}
{{ computer.current_user or '-' }}
{% endif %}
IP
{{ computer.current_ip or '-' }}
OS
{{ computer.os_info or '-' }}
RAM
{% if computer.current_ram_used_gb is not none and computer.current_ram_total_gb is not none %} {{ computer.current_ram_used_gb | round(1) }} / {{ computer.current_ram_total_gb | round(1) }} GB ({{ computer.current_ram_percent | round(1) if computer.current_ram_percent is not none else '-' }}%) {% else %} {{ computer.current_ram_percent | round(1) if computer.current_ram_percent is not none else '-' }}% {% endif %}
{% if computer.current_ram_available_gb is not none %}
доступно {{ computer.current_ram_available_gb | round(1) }} GB
{% endif %}
Swap
{% if computer.current_swap_used_gb is not none and computer.current_swap_total_gb is not none %} {{ computer.current_swap_used_gb | round(1) }} / {{ computer.current_swap_total_gb | round(1) }} GB ({{ computer.current_swap_percent | round(1) if computer.current_swap_percent is not none else '-' }}%) {% else %} {{ computer.current_swap_percent | round(1) if computer.current_swap_percent is not none else '-' }}% {% endif %}
{% if computer.current_swap_free_gb is not none %}
свободно {{ computer.current_swap_free_gb | round(1) }} GB
{% endif %}
Активные сессии
{% if latest_sessions %} {% for s in latest_sessions %} {% endfor %}
ПользовательTTYВремя входаОткуда
{{ s.username or '-' }} {{ s.tty or '-' }} {{ s.login_time or '-' }} {{ s.origin or '-' }}
{% else %}
Нет данных о сессиях.
{% endif %}
CPU, %
RAM, %
Swap, %
Последние процессы
{% if heartbeats and heartbeats[-1].processes %} {% for p in heartbeats[-1].processes[:10] %} {% endfor %}
PIDИмяCPU%RAM%
{{ p.pid }} {{ p.name }} {{ p.cpu_percent | round(1) }} {{ p.ram_percent | round(1) }}
{% else %}
Нет данных о процессах.
{% endif %}
История heartbeats
{% for h in heartbeats[-20:] | reverse %} {% endfor %}
ВремяCPURAMRAM GBSwapIP
{{ h.timestamp[:16] | replace('T', ' ') if h.timestamp else '-' }} {{ h.cpu_percent | round(1) }}% {{ h.ram_percent | round(1) }}% {% if h.ram_used_gb is not none and h.ram_total_gb is not none %} {{ h.ram_used_gb | round(1) }} / {{ h.ram_total_gb | round(1) }} {% else %} - {% endif %} {{ h.swap_percent | round(1) if h.swap_percent is not none else '-' }}% {{ h.local_ip or '-' }}
{% endblock %} {% block scripts %} {% endblock %}