diff --git a/zabbix_scripts/check_zfs b/zabbix_scripts/check_zfs index 356ea83..0f7b62f 100644 --- a/zabbix_scripts/check_zfs +++ b/zabbix_scripts/check_zfs @@ -96,6 +96,8 @@ sub get_zpool_errors { } $i++; } + # Ensure evey item returns something + $errors->{$_} ||= '' foreach (qw(scan action status errors)); return $errors; }