rmq + nrpe on >= Vivid No PID file found
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
nrpe (Juju Charms Collection) |
Invalid
|
Undecided
|
Unassigned | ||
rabbitmq-server (Juju Charms Collection) |
Fix Released
|
Undecided
|
Ryan Beisner |
Bug Description
For Vivid-Kilo (and presumably later), the rabbitmq pid file is in a different location than earlier versions. The script in the cron job errors out, but that is not evident unless the cron fail mail is inspected:
Return-Path: <email address hidden>
X-Original-To: root
Delivered-To: <email address hidden>
Received: by juju-beis0-
id 41CF73E528; Wed, 26 Aug 2015 01:38:01 +0000 (UTC)
From: <email address hidden> (Cron Daemon)
To: <email address hidden>
Subject: Cron <root@juju-
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <HOME=/root>
X-Cron-Env: <PATH=/
X-Cron-Env: <LOGNAME=root>
Message-Id: <email address hidden>
Date: Wed, 26 Aug 2015 01:38:01 +0000 (UTC)
No PID file found
The bubbles up as an error to the user that the /var/lib/
It affects next and stable and can be considered a high-priority deployment blocker for Vivid (and possibly Wily).
Test scenario: a basic 3-node rabbitmq-server native cluster, with nrpe as a subordinate to exercise nrpe-external-
IOError: [Errno 2] No such file or directory: '/var/lib/
ERROR subprocess encountered error code 1
Details @ http://
And @ http://
Related branches
- Billy Olsen: Approve
-
Diff: 16 lines (+4/-1)1 file modifiedscripts/collect_rabbitmq_stats.sh (+4/-1)
summary: |
- rmq on > vivid has mnesia + rmq on >= vivid has mnesia |
summary: |
- rmq on >= vivid has mnesia + rmq on >= vivid has mnesia (no data dir) |
description: | updated |
summary: |
- rmq on >= vivid has mnesia (no data dir) + rmq + nrpe on >= Vivid pid file location changed |
summary: |
- rmq + nrpe on >= Vivid pid file location changed + rmq + nrpe on >= Vivid No PID file found |
description: | updated |
Changed in rabbitmq-server (Juju Charms Collection): | |
status: | New → Fix Committed |
Changed in rabbitmq-server (Juju Charms Collection): | |
status: | Fix Committed → Fix Released |
milestone: | none → 15.10 |
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/