mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-22 02:51:03 +00:00
Check if we are running as a user required by rabbitmqctl
This commit is contained in:
parent
2583b9fb70
commit
679a3ce7be
1 changed files with 10 additions and 0 deletions
|
@ -42,6 +42,16 @@ Optional, default value is 1000
|
||||||
|
|
||||||
=cut
|
=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
|
# If run with the "config"-parameter, give out information on how the
|
||||||
# graphs should look.
|
# graphs should look.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue