From f5a7ebdfed04e802110e47ce15aaaf0040528ea1 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Mon, 20 Jul 2015 11:49:35 +0200 Subject: [PATCH] Fix uninitialized $remouvable var --- lib/Zabbix/Agent/Addons/Disks.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Zabbix/Agent/Addons/Disks.pm b/lib/Zabbix/Agent/Addons/Disks.pm index eb77a41..8387678 100644 --- a/lib/Zabbix/Agent/Addons/Disks.pm +++ b/lib/Zabbix/Agent/Addons/Disks.pm @@ -33,7 +33,7 @@ sub list_smart_hdd{ next unless (system("/usr/sbin/smartctl -A /dev/$block >/dev/null 2>&1") == 0); if ($param->{skip_remouvable} && -e "/sys/block/$block/removable"){ open REMOVABLE, "/sys/block/$block/removable"; - $removable = join "", ; + my $removable = join "", ; close REMOVABLE; chomp($removable); next if ($removable eq '1');