Running installed nrpe check fails

Bug #1330449 reported by Michael Nelson
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
rabbitmq-server (Juju Charms Collection)
Fix Released
Undecided
Unassigned

Bug Description

During nrpe-external-master-relation-changed a nagios check is configured and installed, but running that nagios check fails with:

ERROR: Could not connect to RabbitMQ server localhost:5672
Exception socket.error: (107, 'Transport endpoint is not connected') in <bound method TCPTransport.__del__ of <amqplib.client_0_8.transport.TCPTransport object at 0x7f33bd9685d0>> ignored

Steps to repro:
 * deploy rabbitmq charm (on trusty?)
 * add nrpe-external-master subordinate and relate
 * find the nagios check: `cat /etc/nagios/nrpe.d/check_rabbitmq.cfg`, and run it manually.

Result: above error
Expected result: same

Notes:
 * Using the guest vhost (which doesn't require user/pass) works:

$ /usr/local/lib/nagios/plugins/check_rabbitmq.py --vhost /
Ok: sent and received 10 test messages

Tags: canonical-is
David Ames (thedac)
Changed in rabbitmq-server (Juju Charms Collection):
assignee: nobody → David Ames (thedac)
Revision history for this message
David Ames (thedac) wrote :

A nagios user/pass is used in the config now. Confirmed this works likely since 15.04

Changed in rabbitmq-server (Juju Charms Collection):
status: New → Fix Released
Revision history for this message
Paul Gear (paulgear) wrote :

We experienced these symptoms after an upgrade from 15.04 charms to 17.11 charms. This caused our previously-working rabbitmq nagios check to stop working. Log extract: https://pastebin.canonical.com/p/Mp7HHBGR9K/

Resetting the rabbitmq password using "rabbitmqctl change_password nagios-rabbitmq-server-1 $(cat /var/lib/charm/rabbitmq-server/nagios-rabbitmq-server-1.local_passwd)" fixed the problem.

@thedac: Should we be creating a new bug for this?

Changed in rabbitmq-server (Juju Charms Collection):
status: Fix Released → New
tags: added: canonical-is
Revision history for this message
David Ames (thedac) wrote :

I believe it is safe to age this bug out. The original bug was fixed per comment #1.

Work has been done on the rabbitmq charm in regards to NRPE monitoring in the intervening time frame. If Paul believes otherwise, we should probably open a new bug.

Changed in rabbitmq-server (Juju Charms Collection):
status: New → Fix Released
assignee: David Ames (thedac) → nobody
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.