Skip to content
This repository was archived by the owner on Sep 6, 2023. It is now read-only.

Commit 24ec787

Browse files
Update README.md
Add basic commands to create a monitoring user
1 parent 17ddec5 commit 24ec787

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

README.md

+12-4
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,23 @@ Set of python scripts, zabbix template, and associated data to do autodiscovery
2323

2424

2525
## CONFIGURATION:
26-
**Basic security recommendation**
26+
**Basic security recommendation** See https://www.rabbitmq.com/access-control.html for more information on access control.
2727
```
28-
When setting up a monitoring system, a general rule is that you should not to use guest.
29-
Guest is an admin account with full permissions. A basic suggestion is to setup a read
30-
only account who can access the management API. Make sure that account is READ ONLY. With
28+
When setting up a monitoring system, a general rule is that you should not to use tbe built-in
29+
guest account. Guest is an admin account with full permissions. A basic suggestion is to setup
30+
a read only account who can access the management API. Make sure that account is READ ONLY. With
3131
one caveat - the monitoring user should be able execute the aliveness-test api. That might mean
3232
needing a slightly different set of permissions or pre-creation of the aliveness check queues.
3333
IF using guest a warning - it can only access RabbitMQ management via localhost so you will
3434
need to set HOSTNAME=localhost
35+
36+
Below are sample commands to add a monitoring user with the required permissions. Use these
37+
at your own risk or as a starting point - NOT a finishing point!
38+
39+
rabbitmqctl add_user zabbix pass
40+
rabbitmqctl set_user_tags zabbix management
41+
rabbitmqctl set_permissions -p / zabbix '^aliveness-test$' '^amq\.default$' '^aliveness-test$'
42+
3543
```
3644

3745
You should create a `.rab.auth` file in the `scripts/rabbitmq` directory. This file allows you to change default parameters. The format is `VARIABLE=value`, one per line:

0 commit comments

Comments
 (0)