diff --git a/check_zfs_zpool.py b/check_zfs_zpool.py index 98816f5..209d35a 100755 --- a/check_zfs_zpool.py +++ b/check_zfs_zpool.py @@ -288,7 +288,7 @@ def main(args): ', '.join([*set(warn_drives)])] if not len(warn_drives) and not len(crit_drives): - out_str = ['OK', '-', f'{len(vdev_devices)} {args.check_type} devices for {args.pool_name} are healthy'] + out_str = ['OK', '-', f'{len([x for x in vdev_devices if not x["device"].startswith("mirror")])} {args.check_type} devices for {args.pool_name} are healthy'] print(*out_str) print(list_to_markdown_table(table_data, align='left', seperator='!', borders=False))