From f913353f1a0e3ab1c72785504bc9c7245ff69ee6 Mon Sep 17 00:00:00 2001 From: Sebastian Harl Date: Sun, 17 Feb 2008 20:23:46 +0100 Subject: [PATCH] migrate-3-4.px: Do not translate the disk names used by hddtemp. In version 4, hddtemp still uses major/minor device numbers to identify disks. Signed-off-by: Sebastian Harl Signed-off-by: Florian Forster --- contrib/migrate-3-4.px | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/migrate-3-4.px b/contrib/migrate-3-4.px index e50c0cdf..9fa11398 100755 --- a/contrib/migrate-3-4.px +++ b/contrib/migrate-3-4.px @@ -95,7 +95,7 @@ our %Subdirs = our %TypeTranslate = ( cpu => sub { $_ = shift; $_->{'plugin_instance'} = $_->{'type_instance'}; $_->{'type_instance'} = undef; $_; }, - hddtemp => sub { $_ = shift; $_->{'plugin'} = 'hddtemp'; $_->{'type'} = 'temperature'; $_->{'type_instance'} = _special_disk_instance ($_->{'type_instance'}); $_; }, + hddtemp => sub { $_ = shift; $_->{'plugin'} = 'hddtemp'; $_->{'type'} = 'temperature'; $_->{'type_instance'} = $_->{'type_instance'}; $_; }, if_errors => sub { $_ = shift; $_->{'type_instance'} = $_->{'plugin_instance'}; $_->{'plugin_instance'} = undef; $_; }, if_packets => sub { $_ = shift; $_->{'type_instance'} = $_->{'plugin_instance'}; $_->{'plugin_instance'} = undef; $_; }, nfs2_procedures => sub { $_ = shift; @$_{qw(plugin plugin_instance type type_instance)} = ('nfs', 'v2' . $_->{'type_instance'}, 'nfs_procedure', undef); $_; }, -- 2.30.2