nrpe queue check fails due missing data directory
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack RabbitMQ Server Charm |
Fix Released
|
Low
|
Robert Gildein |
Bug Description
The check_rabbitmq_
root@juju-
Traceback (most recent call last):
File "/usr/local/
stats_collated = collate_
File "/usr/local/
for vhost, queue, m_all in stats:
File "/usr/local/
for line in data_lines:
File "/usr/local/
with open(filename, "rb") as fin:
IOError: [Errno 2] No such file or directory: '/var/lib/
root@juju-
ls: cannot access '/var/lib/
I see no code to create or validate the presence and permission of this data directory.
Changed in charm-rabbitmq-server: | |
assignee: | nobody → Robert Gildein (rgildein) |
Changed in charm-rabbitmq-server: | |
status: | In Progress → Fix Committed |
milestone: | none → 21.01 |
Changed in charm-rabbitmq-server: | |
status: | Fix Committed → Fix Released |
This issue only exists for at most 5 minutes immediately after the nrpe relation is formed. A conjob is setup ( /etc/cron. d/rabbitmq- stats ) which in turn calls /usr/local/ bin/collect_ rabbitmq_ stats.sh . collect_ rabbitmq_ stats.sh creates the directories and sets their permissions.
The check is designed like this to avoid escalating the permissions of the nagios user.