This could be considered a testing race condition. collect_rabbitmq_stats.sh is run by cron and will create the /var/lib/rabbitmq/data directory.
This can be tested by running
juju run --service rabbitmq-server /usr/local/bin/collect_rabbitmq_stats.sh
before running
egrep -oh /usr/local.* /etc/nagios/nrpe.d/check_rabbitmq_queue.cfg
This could be considered a testing race condition. collect_ rabbitmq_ stats.sh is run by cron and will create the /var/lib/ rabbitmq/ data directory.
This can be tested by running bin/collect_ rabbitmq_ stats.sh nrpe.d/ check_rabbitmq_ queue.cfg
juju run --service rabbitmq-server /usr/local/
before running
egrep -oh /usr/local.* /etc/nagios/
The question is should the charm setup this directory? If it should this is the fix: https:/ /pastebin. canonical. com/138221/