Skip to content
Snippets Groups Projects
Commit 3e11f044 authored by Sergey Joseph Ivanov's avatar Sergey Joseph Ivanov
Browse files

unify with syntax in munin

parent eefa053a
No related branches found
No related tags found
No related merge requests found
......@@ -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";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment