This commit is contained in:
Cyberes 2024-02-23 16:46:55 -07:00
parent 989d222392
commit b6c223e391
1 changed files with 1 additions and 2 deletions

View File

@ -209,7 +209,7 @@ def main(args):
'value': int(float(float_to_percent(pool_status['capacity']).strip('%'))), 'warn': args.warning_free, 'crit': args.critical_free, 'min': 0, 'unit': '%'
},
'size': {
'value': pool_status['size'], 'min': 0
'value': filesize(pool_status['size'], spaces=False, formatter=False), 'min': 0
},
'fragmentation': {
'value': int(float(float_to_percent(pool_status['fragmentation']).strip('%'))), 'warn': float_to_percent(warning_frag_float).strip('%'), 'crit': float_to_percent(critical_frag_float).strip('%'), 'min': 0, 'unit': '%'
@ -221,7 +221,6 @@ def main(args):
sys.exit(exit_code)
elif args.check_type in ['cache', 'log']:
vdev_devices = get_vdev_info(args.pool_name, args.check_type)
if not len(vdev_devices):
print('UNKNOWN - no devices found')