1
0
mirror of https://github.com/cmur2/munin-rabbitmq.git synced 2025-06-15 16:30:24 +02:00

Use sudo for the plugins + lots more plugins

This commit is contained in:
Ask Solem
2009-06-17 13:34:47 +02:00
parent f0be77dfd0
commit e4024563c6
6 changed files with 301 additions and 5 deletions

View File

@ -40,7 +40,7 @@ if [ "$1" = "config" ]; then
# lower limit of the graph is '0', and that 1k=1000 (not 1024)
echo 'graph_args --base 1000 -l 0'
# The Y-axis label
echo 'graph_vlabel queue_size'
echo 'graph_vlabel connections'
# We want Cur/Min/Avg/Max unscaled (i.e. 0.42 load instead of
# 420 milliload)
#echo 'graph_scale no'
@ -60,4 +60,4 @@ fi
# real work - i.e. display the data. Almost always this will be
# "value" subfield for every data field.
echo "connections.value $(rabbitmqctl list_connections | grep -v "^Listing" | grep -v "done.$" | wc -l)"
echo "connections.value $(sudo rabbitmqctl list_connections | grep -v "^Listing" | grep -v "done.$" | wc -l)"