polleverywhere/rabbitmq-munin — comment on commit 9ecf27ee8cde06d9bb5bffc9415ed97b7c0d4c68
File: rabbitmq-memory line 67
By slawekp:

This doesn't work for me. My rabbitmqctl's output is multiline, and looks like this:

{memory,
[{total,23923936},
{processes,6873392},

To adjust to my situation and also not break your code (as probably there are some rabbitmqctls that output memory in the same line), I've made this fix on my side:

````bash
echo "bytes.value $(rabbitmqctl status | egrep -A1 'memory' | egrep -o '[0-9]+' | head -n1)"
````

Granted, it's a hack, and that's why I'm not sending pull request, as you may find a better solution. Thanks.