mirror of
https://github.com/cmur2/munin-rabbitmq.git
synced 2024-12-22 12:54:27 +01:00
update README to grant permissions using munin plugins configuration file instead of sudo
This commit is contained in:
parent
a31cc3ed70
commit
96a2ecb617
22
README.rst
22
README.rst
@ -23,15 +23,25 @@ Copy the plug-ins to the munin plugin directory, e.g ``/etc/munin/plugins/``.
|
|||||||
Granting Permissions
|
Granting Permissions
|
||||||
====================
|
====================
|
||||||
|
|
||||||
To use these plug-ins you (regretfully) have to grant access for the
|
To use these plug-ins you have to tell munin-node to execute them as
|
||||||
munin-node user to use rabbitmqctl via sudo.
|
root by changing the plug-in configuration file (on debian that is
|
||||||
|
``/etc/munin/plugin-conf.d``)::
|
||||||
|
|
||||||
Add this to your ``/etc/sudoers`` file by running ``visudo``::
|
[rabbitmq-consumers]
|
||||||
|
user root
|
||||||
|
|
||||||
muninuser ALL= NOPASSWD: /usr/sbin/rabbitmqctl list_queues *
|
[rabbitmq-messages]
|
||||||
muninuser ALL= NOPASSWD: /usr/sbin/rabbitmqctl list_connections
|
user root
|
||||||
|
|
||||||
|
[rabbitmq-messages_unacknowledged]
|
||||||
|
user root
|
||||||
|
|
||||||
|
[rabbitmq-messages_uncommitted]
|
||||||
|
user root
|
||||||
|
|
||||||
|
[rabbitmq-queue_memory]
|
||||||
|
user root
|
||||||
|
|
||||||
Be careful and use at your own risk!
|
|
||||||
|
|
||||||
Using a Custom Virtual Host
|
Using a Custom Virtual Host
|
||||||
============================
|
============================
|
||||||
|
Loading…
Reference in New Issue
Block a user