1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-21 18:41:03 +00:00

Check if we are running as a user required by rabbitmqctl

This commit is contained in:
Stig Sandbeck Mathisen 2014-10-05 20:12:44 +02:00
parent 2583b9fb70
commit 679a3ce7be

View file

@ -42,6 +42,16 @@ Optional, default value is 1000
=cut
case $(whoami) in
rabbitmq|root)
;;
*)
echo 'Error: Plugin requires "user" to be set in plugin configuration.' >&2
echo 'See "munindoc rabbitmq_connections" for more information' >&2
exit 1
;;
esac
# If run with the "config"-parameter, give out information on how the
# graphs should look.