mirror of
https://github.com/cmur2/munin-rabbitmq.git
synced 2024-11-13 02:56:18 +01:00
Don't have to use awk to extract the name if we restrict the fields.
This commit is contained in:
parent
706c91ea22
commit
80b2fda42e
@ -29,10 +29,9 @@ fi
|
||||
# graphs should look.
|
||||
|
||||
VHOST=${vhost:-"/"}
|
||||
QUEUE_STATUS=$(sudo rabbitmqctl list_queues -p $VHOST | \
|
||||
QUEUES=$(sudo rabbitmqctl list_queues -p $VHOST name | \
|
||||
grep -v '^Listing' | \
|
||||
grep -v 'done.$')
|
||||
QUEUES=$(echo $QUEUE_STATUS | awk '{print $1}')
|
||||
grep -v 'done\.$')
|
||||
|
||||
if [ "$1" = "config" ]; then
|
||||
QUEUE_WARN=${queue_warn:-100}
|
||||
|
@ -29,10 +29,9 @@ fi
|
||||
# graphs should look.
|
||||
|
||||
VHOST=${vhost:-"/"}
|
||||
QUEUE_STATUS=$(sudo rabbitmqctl list_queues -p $VHOST | \
|
||||
QUEUES=$(sudo rabbitmqctl list_queues -p $VHOST name | \
|
||||
grep -v '^Listing' | \
|
||||
grep -v 'done.$')
|
||||
QUEUES=$(echo $QUEUE_STATUS | awk '{print $1}')
|
||||
grep -v 'done\.$')
|
||||
|
||||
if [ "$1" = "config" ]; then
|
||||
QUEUE_WARN=${queue_warn:-10000}
|
@ -29,10 +29,9 @@ fi
|
||||
# graphs should look.
|
||||
|
||||
VHOST=${vhost:-"/"}
|
||||
QUEUE_STATUS=$(sudo rabbitmqctl list_queues -p $VHOST | \
|
||||
QUEUES=$(sudo rabbitmqctl list_queues -p $VHOST name | \
|
||||
grep -v '^Listing' | \
|
||||
grep -v 'done.$')
|
||||
QUEUES=$(echo $QUEUE_STATUS | awk '{print $1}')
|
||||
grep -v 'done\.$')
|
||||
|
||||
if [ "$1" = "config" ]; then
|
||||
QUEUE_WARN=${queue_warn:-10000}
|
||||
|
@ -29,10 +29,9 @@ fi
|
||||
# graphs should look.
|
||||
|
||||
VHOST=${vhost:-"/"}
|
||||
QUEUE_STATUS=$(sudo rabbitmqctl list_queues -p $VHOST | \
|
||||
QUEUES=$(sudo rabbitmqctl list_queues -p $VHOST name | \
|
||||
grep -v '^Listing' | \
|
||||
grep -v 'done.$')
|
||||
QUEUES=$(echo $QUEUE_STATUS | awk '{print $1}')
|
||||
grep -v 'done\.$')
|
||||
|
||||
if [ "$1" = "config" ]; then
|
||||
QUEUE_WARN=${queue_warn:-10000}
|
||||
|
@ -29,10 +29,9 @@ fi
|
||||
# graphs should look.
|
||||
|
||||
VHOST=${vhost:-"/"}
|
||||
QUEUE_STATUS=$(sudo rabbitmqctl list_queues -p $VHOST | \
|
||||
QUEUES=$(sudo rabbitmqctl list_queues -p $VHOST name | \
|
||||
grep -v '^Listing' | \
|
||||
grep -v 'done.$')
|
||||
QUEUES=$(echo $QUEUE_STATUS | awk '{print $1}')
|
||||
grep -v 'done\.$')
|
||||
|
||||
if [ "$1" = "config" ]; then
|
||||
QUEUE_WARN=${queue_warn:-10000}
|
||||
|
Loading…
Reference in New Issue
Block a user