1
0
mirror of https://github.com/cmur2/munin-rabbitmq.git synced 2025-06-16 02:30:24 +02:00

Use sudo for the plugins + lots more plugins

This commit is contained in:
Ask Solem
2009-06-17 13:34:47 +02:00
parent f0be77dfd0
commit e4024563c6
6 changed files with 301 additions and 5 deletions

View File

@ -28,8 +28,8 @@ fi
# If run with the "config"-parameter, give out information on how the
# graphs should look.
VHOST=${vhost:-/}
QUEUE_STATUS=$(rabbitmqctl list_queues -p $VHOST | \
VHOST=portal
QUEUE_STATUS=$(sudo rabbitmqctl list_queues -p $VHOST | \
grep -v '^Listing' | \
grep -v 'done.$')
QUEUES=$(echo $QUEUE_STATUS | awk '{print $1}')
@ -69,6 +69,6 @@ fi
# real work - i.e. display the data. Almost always this will be
# "value" subfield for every data field.
rabbitmqctl list_queues -p portal | \
sudo rabbitmqctl list_queues -p portal | \
grep -v "^Listing" | grep -v "done.$" | \
perl -nle'($q, $s) = split; print("$q.value $s")'