diff options
Diffstat (limited to 'munin-plugin')
-rwxr-xr-x | munin-plugin | 5 |
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; } |