mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2025-11-17 19:16:25 +00:00
Update health_monitor.py
This commit is contained in:
@@ -130,7 +130,7 @@ class HealthMonitor:
|
|||||||
return {
|
return {
|
||||||
'hostname': hostname,
|
'hostname': hostname,
|
||||||
'uptime_seconds': int(uptime_seconds),
|
'uptime_seconds': int(uptime_seconds),
|
||||||
'uptime_formatted': self._format_uptime(uptime_seconds),
|
'uptime': self._format_uptime(uptime_seconds),
|
||||||
'health': health_status,
|
'health': health_status,
|
||||||
'timestamp': datetime.now().isoformat()
|
'timestamp': datetime.now().isoformat()
|
||||||
}
|
}
|
||||||
@@ -138,7 +138,7 @@ class HealthMonitor:
|
|||||||
return {
|
return {
|
||||||
'hostname': 'unknown',
|
'hostname': 'unknown',
|
||||||
'uptime_seconds': 0,
|
'uptime_seconds': 0,
|
||||||
'uptime_formatted': 'Unknown',
|
'uptime': 'Unknown',
|
||||||
'health': {'status': 'UNKNOWN', 'summary': f'Error: {str(e)}'},
|
'health': {'status': 'UNKNOWN', 'summary': f'Error: {str(e)}'},
|
||||||
'timestamp': datetime.now().isoformat()
|
'timestamp': datetime.now().isoformat()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user