1
0
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:
Johan Euphrosine 2010-04-21 12:40:38 +02:00
parent a31cc3ed70
commit 96a2ecb617

View File

@ -23,15 +23,25 @@ Copy the plug-ins to the munin plugin directory, e.g ``/etc/munin/plugins/``.
Granting Permissions
====================
To use these plug-ins you (regretfully) have to grant access for the
munin-node user to use rabbitmqctl via sudo.
To use these plug-ins you have to tell munin-node to execute them as
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 *
muninuser ALL= NOPASSWD: /usr/sbin/rabbitmqctl list_connections
[rabbitmq-messages]
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
============================