munin: Deal with spaces in the channel names.

This commit is contained in:
Alex Vandiver
2020-07-08 21:25:25 +00:00
committed by Tim Abbott
parent eda2c4b8e2
commit 7c7b5fcd6f

View File

@@ -70,4 +70,4 @@ fi
HOME=$HOME rabbitmqctl list_channels name messages_uncommitted | \
grep -v "^Listing" | grep -v "done.$" | \
perl -nle'($q, $s) = split; $q =~ s/[.=-]/_/g; print("$q.value $s")'
perl -nle'($q, $s) = /^(.*)\s+(\d+)$/; $q =~ s/[.=-]/_/g; print("$q.value $s")'