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:
@ -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")'
|
||||
|
Reference in New Issue
Block a user