diff --git a/plugins/disk/du-2 b/plugins/disk/du-2 index 41e4adc1..6b8dfddc 100755 --- a/plugins/disk/du-2 +++ b/plugins/disk/du-2 @@ -91,12 +91,12 @@ if( (defined $ARGV[0]) && ($ARGV[0] eq "config") ) { while(defined (my $bar = )) { if ($bar =~ m/(\d+)\s+(.+)/) { my $dir = $2; - clean_path(\$dir); - print "$dir.label $dir\n"; + my $clean_dir = clean_fieldname($dir); + print "$clean_dir.label $dir\n"; if ($foo++) { - print "$dir.draw STACK\n"; + print "$clean_dir.draw STACK\n"; } else { - print "$dir.draw AREA\n"; + print "$clean_dir.draw AREA\n"; } } } @@ -110,8 +110,7 @@ open (FILE, "<", $CACHEFILE) or munin_exit_fail(); while(defined (my $foo = )) { if ($foo =~ m/(\d+)\s+(.+)/) { my ($field, $value) = ($2, $1); - clean_path(\$field); - print $field, ".value ", $value, "\n"; + print clean_fieldname($field), ".value ", $value, "\n"; } } close(FILE);