diff --git a/zabbix_scripts/check_zfs b/zabbix_scripts/check_zfs index c4e4eb1..ebeabee 100644 --- a/zabbix_scripts/check_zfs +++ b/zabbix_scripts/check_zfs @@ -124,8 +124,8 @@ sub convert_suffix { sub get_zpool_stats { my $pool = shift; my $stats = {}; - return $stats unless (-e "/proc/spl/kstat/zfs/rpool/io"); - open STAT, "){ if (m/^(?\d+)\s+(?\d+)\s+(?\d+)\s+(?\d+)\s+(?\d+)\s+(?\d+)\s+(?\d+)\s+(?\d+)\s+(?\d+)\s+(?\d+)\s+(?\d+)\s+(?\d+)/){ $stats->{$_} = $+{$_} foreach (keys %+);