From 6d1923496cede97611d6d988f749dd38c8e96511 Mon Sep 17 00:00:00 2001 From: Sebastian Harl Date: Sun, 17 Feb 2008 21:35:26 +0100 Subject: [PATCH] Added migrate-hddtemp.dpatch to handle the migration of hddtemp data correctly. --- debian/patches/00list | 1 + debian/patches/migrate-hddtemp.dpatch | 17 +++++++++++++++++ 2 files changed, 18 insertions(+) create mode 100755 debian/patches/migrate-hddtemp.dpatch diff --git a/debian/patches/00list b/debian/patches/00list index 1ebda45..e208998 100644 --- a/debian/patches/00list +++ b/debian/patches/00list @@ -1,3 +1,4 @@ extractDS_path.dpatch collection_conf_path.dpatch +migrate-hddtemp.dpatch diff --git a/debian/patches/migrate-hddtemp.dpatch b/debian/patches/migrate-hddtemp.dpatch new file mode 100755 index 0000000..93aa325 --- /dev/null +++ b/debian/patches/migrate-hddtemp.dpatch @@ -0,0 +1,17 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## migrate-hddtemp.dpatch by Florian Forster +## +## DP: contrib/migrate-3-4.px: Handle `hddtemp' graphs correctly. + +@DPATCH@ + +--- a/contrib/migrate-3-4.px ++++ b/contrib/migrate-3-4.px +@@ -95,6 +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'} = $_->{'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