rabbitmq_queue nrpe check fails due to /var/lib/rabbitmq-server/data permissions

Bug #1908291 reported by Zachary Zehring
8
This bug affects 1 person
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/rabbitmq/data/juju-a79b06-5-lxd-20_queue_stats.dat'

Comparing to another cloud's rabbitmq-unit, this check works fine as the ubuntu user. The one difference between the two was /var/lib/rabbitmq/data directory. On the working one, this had permissions 755 compared to broken unit that had 750.

Workaround/fix:
Change the permissions of /var/lib/rabbitmq/data to 755

sudo chmod 755 /var/lib/rabbitmq/data

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.