<.header> Server <%= @server.name %> <%= case @health.message do %> <% "Connected" -> %> <% "Disconnected" -> %> <% _ -> %> <% end %> <:subtitle> <%= @server.public_ip %>
<%= for {name, task} <- @health.tasks do %> Background task in progress: <%= name %>

<%= task.progress %> complete

<% end %>

Connect to your server using root credentials and execute the following command:

# <%= @registration_command %>

<%= @sys_info.uptime || "" %>s

Uptime

<%= Enum.count(@sys_info.cpus || []) %>

CPUs

<%= calculate_cpu_usage(@sys_info.cpus) %>

CPU%

<%= bytes_to_gigabytes(@sys_info.mem_total_bytes - @sys_info.mem_avail_bytes) %> / <%= bytes_to_gigabytes(@sys_info.mem_total_bytes) %> GiB

Memory

<%= calculate_disk_used_percent(@sys_info.disks) %> %

Used Disk

<.input type="checkbox" name="dry_run" value={@dry_run} label="Enable dry-run operations" />

System

Updates: <%= @sys_info.updates_available %> pending updates. <.button type="button" class="ml-4" phx-click="system_update"> Update now

<%= output %>

<.back navigate={~p"/servers"}>Back to servers