Shows if ecc memory is present

This commit is contained in:
2024-12-13 18:44:50 -05:00
parent 586f7df0c7
commit f93d370116

View File

@ -109,10 +109,10 @@ class SystemHealthMonitor:
logger.info(f"Drive {drive['mountpoint']}: {drive['usage_percent']}% used, SMART: {drive['smart_status']}") logger.info(f"Drive {drive['mountpoint']}: {drive['usage_percent']}% used, SMART: {drive['smart_status']}")
logger.info(f"Memory Status: {health_report['memory_health']['status']}") logger.info(f"Memory Status: {health_report['memory_health']['status']}")
if health_report['memory_health']['has_ecc']: logger.info(f"Memory Usage: {health_report['memory_health']['memory_percent']}%")
logger.info("ECC Memory: Present") logger.info(f"ECC Memory: {'Present' if health_report['memory_health']['has_ecc'] else 'Not Present'}")
if health_report['memory_health']['ecc_errors']: if health_report['memory_health']['has_ecc'] and health_report['memory_health']['ecc_errors']:
logger.info(f"ECC Errors: {health_report['memory_health']['ecc_errors']}") logger.info(f"ECC Errors: {health_report['memory_health']['ecc_errors']}")
logger.info(f"CPU Usage: {health_report['cpu_health']['cpu_usage_percent']}% ({health_report['cpu_health']['status']})") logger.info(f"CPU Usage: {health_report['cpu_health']['cpu_usage_percent']}% ({health_report['cpu_health']['status']})")
logger.info(f"Network Management Status: {health_report['network_health']['management_network']['status']}") logger.info(f"Network Management Status: {health_report['network_health']['management_network']['status']}")