mirror of
https://github.com/cmur2/munin-rabbitmq.git
synced 2025-06-15 16:30:24 +02:00
Adds a HOME env. variable when calling to rabbitmqctl
This commit is contained in:
@ -24,6 +24,8 @@ if [ "$1" = "autoconf" ]; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
HOME=/tmp/
|
||||
|
||||
# If run with the "config"-parameter, give out information on how the
|
||||
# graphs should look.
|
||||
|
||||
@ -61,4 +63,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 $(HOME=$HOME rabbitmqctl list_connections | grep -v "^Listing" | grep -v "done.$" | wc -l)"
|
||||
|
Reference in New Issue
Block a user