From d60ad39762fecea8cffdbced5a93a6134d97329a Mon Sep 17 00:00:00 2001 From: Vladimir Ryazanov Date: Thu, 5 Mar 2015 18:42:20 +0800 Subject: [PATCH] fixed default values for rabbitmq_queue_memory --- plugins/rabbitmq/rabbitmq_queue_memory | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/rabbitmq/rabbitmq_queue_memory b/plugins/rabbitmq/rabbitmq_queue_memory index 9315fec5..a6c752a7 100755 --- a/plugins/rabbitmq/rabbitmq_queue_memory +++ b/plugins/rabbitmq/rabbitmq_queue_memory @@ -35,8 +35,8 @@ QUEUES=$(HOME=$HOME rabbitmqctl list_queues -p $VHOST name | \ grep -v 'done\.$' | sed -e 's/[.=-]/_/g' ) if [ "$1" = "config" ]; then - QUEUE_WARN=${queue_warn:-$[100 * 1024 * 1024]} - QUEUE_CRIT=${queue_crit:-$[200 * 1024 * 1024]} + QUEUE_WARN=${queue_warn:-104857600} # 100 MB + QUEUE_CRIT=${queue_crit:-209715200} # 200 MB # The host name this plugin is for. (Can be overridden to have # one machine answer for several)