diff --git a/contrib/migrate-4-5.px b/contrib/migrate-4-5.px
index 1e54683ae0333848b26dbd9269678a0387de0590..d3ff796d3ed7d1139edacfebd638746bb8062c5d 100755 (executable)
--- a/contrib/migrate-4-5.px
+++ b/contrib/migrate-4-5.px
use File::Basename ('dirname');
our $InDir = '/var/lib/collectd';
-our $OutDir = '/tmp/collectd-5';
our $RRDtool = 'rrdtool';
our %TypesCounterToDerive = # {{{
connections => ["value"],
cpu => ["value"],
current => ["value"],
- df => ["used", "free"],
disk_merged => ["read", "write"],
disk_octets => ["read", "write"],
disk_ops => ["read", "write"],
&& (!$plugin_inst) && ($type_inst))
{
my $dir = join ('/', @path);
+ print "mkdir -p \"$dir/$plugin-$type_inst\"\n";
print "mv \"$path\" \"$dir/$plugin-$type_inst/$type.rrd\"\n";
}
} # }}} sub handle_file
--indir <dir> Source directory
Default: $InDir
- --outdir <dir> Destination directory
- Default: $OutDir
--rrdtool <path> Path to the RRDtool binary
Default: $RRDtool
} # }}} sub exit_usage
GetOptions ("indir|i=s" => \$InDir,
- "outdir|o=s" => \$OutDir,
"rrdtool=s" => \$RRDtool,
"help|h" => \&exit_usage) or exit_usage ();