mirror of
https://github.com/cmur2/munin-rabbitmq.git
synced 2024-12-22 12:54:27 +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.
|
# graphs should look.
|
||||||
|
|
||||||
VHOST=${vhost:-"/"}
|
VHOST=${vhost:-"/"}
|
||||||
QUEUE_STATUS=$(sudo rabbitmqctl list_queues -p $VHOST | \
|
QUEUES=$(sudo rabbitmqctl list_queues -p $VHOST name | \
|
||||||
grep -v '^Listing' | \
|
grep -v '^Listing' | \
|
||||||
grep -v 'done.$')
|
grep -v 'done\.$')
|
||||||
QUEUES=$(echo $QUEUE_STATUS | awk '{print $1}')
|
|
||||||
|
|
||||||
if [ "$1" = "config" ]; then
|
if [ "$1" = "config" ]; then
|
||||||
QUEUE_WARN=${queue_warn:-100}
|
QUEUE_WARN=${queue_warn:-100}
|
||||||
|
@ -29,10 +29,9 @@ fi
|
|||||||
# graphs should look.
|
# graphs should look.
|
||||||
|
|
||||||
VHOST=${vhost:-"/"}
|
VHOST=${vhost:-"/"}
|
||||||
QUEUE_STATUS=$(sudo rabbitmqctl list_queues -p $VHOST | \
|
QUEUES=$(sudo rabbitmqctl list_queues -p $VHOST name | \
|
||||||
grep -v '^Listing' | \
|
grep -v '^Listing' | \
|
||||||
grep -v 'done.$')
|
grep -v 'done\.$')
|
||||||
QUEUES=$(echo $QUEUE_STATUS | awk '{print $1}')
|
|
||||||
|
|
||||||
if [ "$1" = "config" ]; then
|
if [ "$1" = "config" ]; then
|
||||||
QUEUE_WARN=${queue_warn:-10000}
|
QUEUE_WARN=${queue_warn:-10000}
|
@ -29,10 +29,9 @@ fi
|
|||||||
# graphs should look.
|
# graphs should look.
|
||||||
|
|
||||||
VHOST=${vhost:-"/"}
|
VHOST=${vhost:-"/"}
|
||||||
QUEUE_STATUS=$(sudo rabbitmqctl list_queues -p $VHOST | \
|
QUEUES=$(sudo rabbitmqctl list_queues -p $VHOST name | \
|
||||||
grep -v '^Listing' | \
|
grep -v '^Listing' | \
|
||||||
grep -v 'done.$')
|
grep -v 'done\.$')
|
||||||
QUEUES=$(echo $QUEUE_STATUS | awk '{print $1}')
|
|
||||||
|
|
||||||
if [ "$1" = "config" ]; then
|
if [ "$1" = "config" ]; then
|
||||||
QUEUE_WARN=${queue_warn:-10000}
|
QUEUE_WARN=${queue_warn:-10000}
|
||||||
|
@ -29,10 +29,9 @@ fi
|
|||||||
# graphs should look.
|
# graphs should look.
|
||||||
|
|
||||||
VHOST=${vhost:-"/"}
|
VHOST=${vhost:-"/"}
|
||||||
QUEUE_STATUS=$(sudo rabbitmqctl list_queues -p $VHOST | \
|
QUEUES=$(sudo rabbitmqctl list_queues -p $VHOST name | \
|
||||||
grep -v '^Listing' | \
|
grep -v '^Listing' | \
|
||||||
grep -v 'done.$')
|
grep -v 'done\.$')
|
||||||
QUEUES=$(echo $QUEUE_STATUS | awk '{print $1}')
|
|
||||||
|
|
||||||
if [ "$1" = "config" ]; then
|
if [ "$1" = "config" ]; then
|
||||||
QUEUE_WARN=${queue_warn:-10000}
|
QUEUE_WARN=${queue_warn:-10000}
|
||||||
|
@ -29,10 +29,9 @@ fi
|
|||||||
# graphs should look.
|
# graphs should look.
|
||||||
|
|
||||||
VHOST=${vhost:-"/"}
|
VHOST=${vhost:-"/"}
|
||||||
QUEUE_STATUS=$(sudo rabbitmqctl list_queues -p $VHOST | \
|
QUEUES=$(sudo rabbitmqctl list_queues -p $VHOST name | \
|
||||||
grep -v '^Listing' | \
|
grep -v '^Listing' | \
|
||||||
grep -v 'done.$')
|
grep -v 'done\.$')
|
||||||
QUEUES=$(echo $QUEUE_STATUS | awk '{print $1}')
|
|
||||||
|
|
||||||
if [ "$1" = "config" ]; then
|
if [ "$1" = "config" ]; then
|
||||||
QUEUE_WARN=${queue_warn:-10000}
|
QUEUE_WARN=${queue_warn:-10000}
|
||||||
|
Loading…
Reference in New Issue
Block a user