rabbitmq_queue nrpe check fails due to /var/lib/rabbitmq-server/data permissions
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack RabbitMQ Server Charm |
New
|
Undecided
|
Unassigned |
Bug Description
Context:
New openstack cloud deployment with 3 rabbitmq-server units on revision 104.
Problem:
All rabbitmq-server units had failing rabbitmq_queue checks in Nagios (UNKNOWN due to failing to read output from nrpe command). Running the check manually from the unit works only using sudo. Running as ubuntu user gives:
PermissionError: [Errno 13] Permission denied: '/var/lib/
Comparing to another cloud's rabbitmq-unit, this check works fine as the ubuntu user. The one difference between the two was /var/lib/
Workaround/fix:
Change the permissions of /var/lib/
sudo chmod 755 /var/lib/