diff --git a/lib/Core/SMART.pm b/lib/Core/SMART.pm index fc399fc85dbb78071c9774c0b48bbaab7898b9e3..7252ddad66d5362cd5bcf1edabbd8e2b306e7fd3 100644 --- a/lib/Core/SMART.pm +++ b/lib/Core/SMART.pm @@ -35,7 +35,7 @@ For more information on smartctl, see http://smartmontools.sourceforge.net/ This indicates the disk argument to be given to smartctl. Expects the basename of the device, not the full path, e.g. "sda" not "/dev/sda". -Check names having "/" and a nubmer after it are considered to be physical parts of +Check names having "-" and a nubmer after it are considered to be physical parts of megaraid arrays. =item smartctl_cmd @@ -89,7 +89,7 @@ The raw value of the attribute, expected to be an integer. sub handler { my $self = shift; my $config = $self->{config}; - my ($disk_name,$megaraid_number) = split('/',$self->{check_name}), + my ($disk_name,$megaraid_number) = split('-',$self->{check_name}), my $disk; $disk = "/dev/$disk_name" if ($^O eq "linux") || ($^O =~ /bsd/) ; $disk = "/dev/rdsk/$disk_name" if $^O eq "solaris";