This commit is contained in:
2026-02-02 15:41:59 -05:00
parent 08290a1a49
commit d0d1a3b174

View File

@@ -1,7 +1,6 @@
#!/bin/bash
VERSION="1.1.0"
SPINNER="/-\|"
###################
# Color Definitions
@@ -47,20 +46,6 @@ log_message() {
esac
}
show_progress() {
local pid=$1
local delay=0.1
local spinstr='|/-\'
while ps -p $pid > /dev/null; do
local temp=${spinstr#?}
printf " [%c] " "$spinstr"
local spinstr=$temp${spinstr%"$temp"}
sleep $delay
printf "\b\b\b\b\b\b"
done
printf " \b\b\b\b"
}
check_requirements() {
log_message info "Checking medical equipment..."
local tools=("dmidecode" "lscpu" "ip" "smartctl" "sensors" "lspci" "bc")
@@ -546,32 +531,59 @@ runDiags() {
log_message warn "Not running on Proxmox VE - some checks will be skipped"
fi
(
echo ""
log_message info "Checking system information..."
get_system_info
log_message info "Checking CPU..."
get_cpu_info
log_message info "Checking RAM..."
get_ram_info
log_message info "Checking memory details..."
get_memory_details
log_message info "Checking storage..."
get_storage_info
log_message info "Checking drive atlas..."
get_drive_atlas
log_message info "Checking network..."
get_network_info
get_detailed_network
get_nic_details
log_message info "Checking hardware..."
get_hardware_info
get_motherboard_info
get_hba_info
log_message info "Checking temperatures..."
get_temp_info
log_message info "Checking system status..."
get_system_status
log_message info "Checking monitoring services..."
get_node_exporter_status
get_hwmon_status
# Only run Proxmox-specific checks if on Proxmox
if [[ "$is_proxmox" == true ]]; then
log_message info "Checking Ceph cluster..."
get_ceph_health
log_message info "Checking VMs..."
list_vms
log_message info "Checking containers..."
list_containers
fi
) & show_progress $!
echo ""
log_message info "Examination complete"
}