aboutsummaryrefslogtreecommitdiffstats
path: root/munin-plugin
diff options
context:
space:
mode:
Diffstat (limited to 'munin-plugin')
-rwxr-xr-xmunin-plugin5
1 files changed, 3 insertions, 2 deletions
diff --git a/munin-plugin b/munin-plugin
index a0899db..8c18a87 100755
--- a/munin-plugin
+++ b/munin-plugin
@@ -50,8 +50,9 @@ if (!$ARGV[0]) {
sub label2key {
my $label = shift;
- $label =~ s/[^a-zA-Z0-9_]+/_/g;
- $label =~ s/^_+//;
+ # Removing illegal characters. Apparently using '_' as a
+ # replacement character break graph generation with version 1.2.5.
+ $label =~ s/[^a-zA-Z0-9]+//g;
return $label;
}