rabbitmq-munin icon indicating copy to clipboard operation
rabbitmq-munin copied to clipboard

Wrong string replacement

Open ogmueller opened this issue 12 years ago • 1 comments

Most of the scripts are doing a "grep -v 'done.$' | sed -e 's/[.=-]/_/g' )" for the config, which will replace a queue name like "abc-def" into "abc_def". The problem with this is, that the same string replacement has to be done with the rabbitmqctl output, because otherwise the values cannot be related to the config data. So in case of the consumer script the last line has to be something like: HOME=$HOME rabbitmqctl list_queues -p $VHOST name consumers| grep -v "^Listing" | grep -v "done.$" | grep -v "..." | sed -e 's/[.=-]/ _/g' | sed "s/[\t]/.value /g"

This issue is in more or less all scripts.

ogmueller avatar Sep 20 '13 09:09 ogmueller

Indeed, had the same issue here now, and had to monkey patch. I guess there isn't any much activity on this project, judging by the commit history...

sp00x avatar Feb 18 '15 12:02 sp00x