{% extends "base.html" %} {% block title %}머신 관리 - 팜큐 약국 관리 시스템{% endblock %} {% block breadcrumb %} {% endblock %} {% block content %}

머신 관리

연결된 모든 머신의 상태 및 하드웨어 정보

온라인: 0 오프라인: 0 전체: 0
{% if machines %}
{% for machine_data in machines %} {% endfor %}
머신 정보 네트워크 하드웨어 상태 소속 약국 액션
{% if machine_data.is_online %} {% else %} {% endif %}
{{ machine_data.machine_name or machine_data.hostname }}
{{ machine_data.machine_name or machine_data.hostname }}.headscale.local {% set machine_name = (machine_data.machine_name or machine_data.hostname).lower() %} {% if 'pbs' in machine_name %} {% elif 'pve' in machine_name %} {% else %} {% endif %}
{% if machine_data.hostname != (machine_data.machine_name or machine_data.hostname) %}
OS: {{ machine_data.hostname }}
{% endif %}
{{ machine_data.headscale_user_name or '미지정' }}
{{ machine_data.tailscale_ip }}
{% if machine_data.ipv6 %}
{{ machine_data.ipv6 }}
{% endif %}
엔드포인트: 0개
{% if machine_data.specs %}
{{ machine_data.specs.cpu_model[:20] }}{% if machine_data.specs.cpu_model|length > 20 %}...{% endif %}
{{ machine_data.specs.ram_gb }}GB RAM
{{ machine_data.specs.storage_gb }}GB
{% else %} 정보 없음 {% endif %}
{% if machine_data.is_online %} 온라인 {% else %} 오프라인 {% endif %} {% if machine_data.latest_monitoring %}
CPU: {{ machine_data.latest_monitoring.cpu_usage }}%
온도: {{ machine_data.latest_monitoring.cpu_temperature }}°C
{% endif %}
{% if machine_data.pharmacy %}
{{ machine_data.pharmacy.pharmacy_name }}
{{ machine_data.pharmacy.manager_name }}
{% else %} 미지정 {% endif %}
{% if machine_data.is_online %} {% endif %}
{% else %}

연결된 머신이 없습니다

아직 등록된 머신이 없습니다. Headscale에 머신을 연결해주세요.

Headplane에서 머신 등록
{% endif %}
{% for machine_data in machines %}
{{ machine_data.machine_name or machine_data.hostname }}

{{ machine_data.hostname }}

{% if machine_data.is_online %} 온라인 {% else %} 오프라인 {% endif %}
{{ machine_data.tailscale_ip }}
{% if machine_data.pharmacy %}
{{ machine_data.pharmacy.pharmacy_name }}
{% endif %}
{{ machine_data.last_seen_humanized }}
{% if machine_data.specs %}

CPU
{{ machine_data.specs.cpu_cores }}코어
RAM
{{ machine_data.specs.ram_gb }}GB
Storage
{{ machine_data.specs.storage_gb }}GB
{% endif %} {% if machine_data.latest_monitoring %}
CPU 사용률
{{ machine_data.latest_monitoring.cpu_usage }}%
온도
{{ machine_data.latest_monitoring.cpu_temperature }}°C
{% endif %}
{% endfor %}
{% endblock %} {% block extra_js %} {% endblock %}