From 3e11f04493b67f69baadcc55bc60ca75d5de7aa0 Mon Sep 17 00:00:00 2001 From: Sergey Ivanov <seriv@cs.umd.edu> Date: Thu, 6 Jun 2019 15:55:23 -0400 Subject: [PATCH] unify with syntax in munin --- lib/Core/SMART.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Core/SMART.pm b/lib/Core/SMART.pm index fc399fc..7252dda 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"; -- GitLab