added details to fs output
This commit is contained in:
@ -1404,11 +1404,11 @@ class SystemHealthMonitor:
|
|||||||
logger.debug(f" Usage: {usage_percent}%")
|
logger.debug(f" Usage: {usage_percent}%")
|
||||||
|
|
||||||
filesystem.update({
|
filesystem.update({
|
||||||
'mountpoint': mountpoint,
|
'mountpoint': parts[5] if len(parts) >= 6 else '',
|
||||||
'total': parts[1],
|
'total': parts[1],
|
||||||
'used': parts[2],
|
'used': parts[2],
|
||||||
'available': parts[3],
|
'available': parts[3],
|
||||||
'usage_percent': usage_percent
|
'usage_percent': float(parts[4].rstrip('%'))
|
||||||
})
|
})
|
||||||
|
|
||||||
if usage_percent >= self.CONFIG['THRESHOLDS']['DISK_CRITICAL']:
|
if usage_percent >= self.CONFIG['THRESHOLDS']['DISK_CRITICAL']:
|
||||||
|
|||||||
Reference in New Issue
Block a user