ask / rabbitmq-munin

Munin-plugins for RabbitMQ
BSD 3-Clause "New" or "Revised" License
139 stars 39 forks source link

messages uncommitted error #15

Open jurgenweber opened 11 years ago

jurgenweber commented 11 years ago

Muninnode log: 2013/07/29-10:35:10 [6966] Error output from rabbitmq_messages_uncommitted: 2013/07/29-10:35:10 [6966] Error: {bad_argument,'-p'}

The command in question: HOME=$HOME rabbitmqctl list_channels -p $VHOST name messages_uncommitted | grep -v "^Listing" | grep -v "done.$" | sed "s/[\t]/.value /g"

-p $VHOST is not a valid option for list_channels.

ogmueller commented 11 years ago

This issues still seems to be a problem. In our case we get the following log entry: 2013/09/20 11:25:09 [WARNING] Service rabbitmq_messages_uncommitted on server.de/127.0.0.1:4949 returned no data for label _DEVELOPMENT_dev_QUEUE 2013/09/20 11:25:09 [WARNING] Service rabbitmq_messages_uncommitted on server.de/127.0.0.1:4949 returned no data for label AMQP_dev_QUEUE

The config values and the output of rabbitmqctl is not matching. This is why the munin graphs and html is not working and always displays "-nan".

CONFIG OUTPUT:

munin-run rabbitmq_messages_uncommitted config

graph_title RabbitMQ /queuename Uncommitted Messages graph_args --base 1000 -l 0 graph_vlabel uncommitted graph_category RabbitMQ AMQP_dev_QUEUE.label AMQP_dev_QUEUE AMQP_dev_QUEUE.warning 10000 AMQP_dev_QUEUE.critical 20000 AMQP_dev_QUEUE.info Uncommitted messages for AMQP_dev_QUEUE _DEVELOPMENT_dev_QUEUE.label _DEVELOPMENT_dev_QUEUE _DEVELOPMENT_dev_QUEUE.warning 10000 _DEVELOPMENT_dev_QUEUE.critical 20000 _DEVELOPMENT_dev_QUEUE.info Uncommitted messages for _DEVELOPMENT_dev_QUEUE graph_info Lists how many messages are in each queue.

MUNIN-RUN OUTPUT: 127_0_01:51213 > 127_0_0_1:5672 (1) /queuename 0 127_0_01:51214 > 127_0_0_1:5672 (1) /queuename 0 127_0_01:51215 > 127_0_0_1:5672 (1) /queuename 0 127_0_01:51594 > 127_0_0_1:5672 (1) /queuename 0 127_0_01:51593 > 127_0_0_1:5672 (1) /queuename 0 127_0_01:51595 > 127_0_0_1:5672 (1) /queuename 0