Created
December 13, 2016 10:35
-
-
Save Gsantomaggio/31089e13df2b081b35148a866889704d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| IFS=$'\n' | |
| ordered_vhosts=$(./rabbitmqctl list_vhosts -q | xargs -n1 | sort -u) | |
| for V in $ordered_vhosts; do | |
| echo "*****Vhost $V Total queues " $(./rabbitmqctl list_queues -q -p $V | wc -l) | |
| for Q in $(./rabbitmqctl list_queues -q name messages -p $V | xargs -n2 | sort -u); do | |
| echo "Vhost $V queue-name total-messages $Q" | |
| done | |
| done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.