From: Sebastian Harl Date: Sun, 17 Feb 2008 19:23:46 +0000 (+0100) Subject: migrate-3-4.px: Do not translate the disk names used by hddtemp. X-Git-Tag: collectd-4.2.5~15^2^2 X-Git-Url: https://git.octo.it/?p=collectd.git;a=commitdiff_plain;h=b4f0540b8931a0eff2712709ba39b35ffb626969 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 --- 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); $_; },