Révision 17f78427
Whitespace cleanup
- remove trailing whitespace
- remove empty lines at the end of files
| plugins/rabbitmq/rabbitmq_consumers | ||
|---|---|---|
| 1 | 1 |
#!/bin/sh |
| 2 |
#
|
|
| 2 |
# |
|
| 3 | 3 |
# Plugin to monitor the queues of a virtual_host in RabbitMQ |
| 4 | 4 |
# |
| 5 | 5 |
# Usage: Link or copy into /etc/munin/node.d/ |
| ... | ... | |
| 26 | 26 |
fi |
| 27 | 27 |
|
| 28 | 28 |
# If run with the "config"-parameter, give out information on how the |
| 29 |
# graphs should look.
|
|
| 29 |
# graphs should look. |
|
| 30 | 30 |
|
| 31 | 31 |
HOME=/tmp/ |
| 32 | 32 |
VHOST=${vhost:-"/"}
|
| 33 | 33 |
QUEUES=$(HOME=$HOME rabbitmqctl list_queues -p $VHOST name | \ |
| 34 | 34 |
grep -v '^Listing' | \ |
| 35 | 35 |
grep -v 'done\.$' | sed -e 's/[.=-]/_/g' ) |
| 36 |
|
|
| 36 |
|
|
| 37 | 37 |
if [ "$1" = "config" ]; then |
| 38 | 38 |
QUEUE_WARN=${queue_warn:-100}
|
| 39 | 39 |
QUEUE_CRIT=${queue_crit:-500}
|
Formats disponibles : Unified diff