mirror of
https://github.com/cmur2/munin-rabbitmq.git
synced 2024-11-14 18:56:16 +01:00
Munin 1.2.5 was throwing errors like: No such field (no "label" field defined when running plugin with "config")
fixed the sed expression to match dashes as well .-= -> .=- updated the perl regexs to match the sed ones renamed the plugins to work with munin 1.2.5
This commit is contained in:
parent
2c377f5a5f
commit
7f8033a541
@ -32,7 +32,7 @@ HOME=/tmp/
|
||||
VHOST=${vhost:-"/"}
|
||||
QUEUES=$(HOME=$HOME rabbitmqctl list_queues -p $VHOST name | \
|
||||
grep -v '^Listing' | \
|
||||
grep -v 'done\.$' | sed -e 's/[.-=]/_/g' )
|
||||
grep -v 'done\.$' | sed -e 's/[.=-]/_/g' )
|
||||
|
||||
if [ "$1" = "config" ]; then
|
||||
QUEUE_WARN=${queue_warn:-100}
|
||||
@ -72,4 +72,4 @@ fi
|
||||
|
||||
HOME=$HOME rabbitmqctl list_queues -p $VHOST name consumers| \
|
||||
grep -v "^Listing" | grep -v "done.$" | \
|
||||
perl -nle'($q, $s) = split; $q =~ s/[.-=]/_/g; print("$q.value $s")'
|
||||
perl -nle'($q, $s) = split; $q =~ s/[.=-]/_/g; print("$q.value $s")'
|
@ -32,7 +32,7 @@ HOME=/tmp/
|
||||
VHOST=${vhost:-"/"}
|
||||
QUEUES=$(HOME=$HOME rabbitmqctl list_queues -p $VHOST name | \
|
||||
grep -v '^Listing' | \
|
||||
grep -v 'done\.$' | sed -e 's/[.-=]/_/g' )
|
||||
grep -v 'done\.$' | sed -e 's/[.=-]/_/g' )
|
||||
|
||||
if [ "$1" = "config" ]; then
|
||||
QUEUE_WARN=${queue_warn:-10000}
|
||||
@ -72,4 +72,4 @@ fi
|
||||
|
||||
HOME=$HOME rabbitmqctl list_queues -p $VHOST | \
|
||||
grep -v "^Listing" | grep -v "done.$" | \
|
||||
perl -nle'($q, $s) = split; $q =~ s/[.-=]/_/g; print("$q.value $s")'
|
||||
perl -nle'($q, $s) = split; $q =~ s/[.=-]/_/g; print("$q.value $s")'
|
@ -32,7 +32,7 @@ HOME=/tmp/
|
||||
VHOST=${vhost:-"/"}
|
||||
QUEUES=$(HOME=$HOME rabbitmqctl list_queues -p $VHOST name | \
|
||||
grep -v '^Listing' | \
|
||||
grep -v 'done\.$' | sed -e 's/[.-=]/_/g' )
|
||||
grep -v 'done\.$' | sed -e 's/[.=-]/_/g' )
|
||||
|
||||
if [ "$1" = "config" ]; then
|
||||
QUEUE_WARN=${queue_warn:-10000}
|
||||
@ -72,4 +72,4 @@ fi
|
||||
|
||||
HOME=$HOME rabbitmqctl list_queues -p $VHOST name messages_unacknowledged | \
|
||||
grep -v "^Listing" | grep -v "done.$" | \
|
||||
perl -nle'($q, $s) = split; $q =~ s/[.-=]/_/g; print("$q.value $s")'
|
||||
perl -nle'($q, $s) = split; $q =~ s/[.=-]/_/g; print("$q.value $s")'
|
@ -32,7 +32,7 @@ HOME=/tmp/
|
||||
VHOST=${vhost:-"/"}
|
||||
QUEUES=$(HOME=$HOME rabbitmqctl list_queues -p $VHOST name | \
|
||||
grep -v '^Listing' | \
|
||||
grep -v 'done\.$' | sed -e 's/[.-=]/_/g' )
|
||||
grep -v 'done\.$' | sed -e 's/[.=-]/_/g' )
|
||||
|
||||
if [ "$1" = "config" ]; then
|
||||
QUEUE_WARN=${queue_warn:-10000}
|
||||
@ -72,4 +72,4 @@ fi
|
||||
|
||||
HOME=$HOME rabbitmqctl list_queues -p $VHOST name messages_uncommitted | \
|
||||
grep -v "^Listing" | grep -v "done.$" | \
|
||||
perl -nle'($q, $s) = split; $q =~ s/[.-=]/_/g; print("$q.value $s")'
|
||||
perl -nle'($q, $s) = split; $q =~ s/[.=-]/_/g; print("$q.value $s")'
|
@ -32,7 +32,7 @@ HOME=/tmp/
|
||||
VHOST=${vhost:-"/"}
|
||||
QUEUES=$(rabbitmqctl list_queues -p $VHOST name | \
|
||||
grep -v '^Listing' | \
|
||||
grep -v 'done\.$' | sed -e 's/[.-=]/_/g' )
|
||||
grep -v 'done\.$' | sed -e 's/[.=-]/_/g' )
|
||||
|
||||
if [ "$1" = "config" ]; then
|
||||
QUEUE_WARN=${queue_warn:-10000}
|
||||
@ -72,4 +72,4 @@ fi
|
||||
|
||||
HOME=$HOME rabbitmqctl list_queues -p $VHOST name memory | \
|
||||
grep -v "^Listing" | grep -v "done.$" | \
|
||||
perl -nle'($q, $s) = split; $q =~ s/[.-=]/_/g; print("$q.value $s")'
|
||||
perl -nle'($q, $s) = split; $q =~ s/[.=-]/_/g; print("$q.value $s")'
|
Loading…
Reference in New Issue
Block a user