{% 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 '-' }}
Активные сессии
{% 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, %
Последние процессы
{% 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 %}
ВремяCPURAMIP
{{ h.timestamp[:16] | replace('T', ' ') if h.timestamp else '-' }} {{ h.cpu_percent | round(1) }}% {{ h.ram_percent | round(1) }}% {{ h.local_ip or '-' }}
{% endblock %}