CHECK_R...Q_QUEUE(1p)
β¨ check_rabbitmq_queue(1p) β the manual page, bestie edition β¨
okay so pookies, this is check_rabbitmq_queue, a Perl manpage from the User Contributed Perl Documentation section (1p) π it's a Nagios plugin that uses the RabbitMQ management API to count the messages pending and the consumers on a given queue. Let's get into it π°
πΈ NAME πΈ
check_rabbitmq_queue β a Nagios plugin that uses the RabbitMQ management API to count the messages pending and the consumers on a given queue π
π¦ SYNOPSIS π¦
check_rabbitmq_overview [options] -H hostname
π DESCRIPTION π
So basically bestie, this thingy uses the management interface of RabbitMQ to count:
- the number of pending messages
- the number of ready messages
- the number of unacknowledged messages
- and the number of consumers π«Ά
All of those get published as performance metrics for the check, periodt β¨
You can set critical and warning thresholds for each of the metrics β like, every single one, no cap π
It uses Monitoring::Plugin and accepts all standard Nagios options, so if you already know Nagios vibes you're already home π
π OPTIONS π
-h,--helpβ shows you the help text π₯Ί-v,--verboseβ verbose output, she's chatty π¬-t,--timeoutβ sets a timeout for the check, in seconds β±οΈ-H,--hostname,--hostβ the host you're connecting to π--portβ the port to connect to (default: 55672) π--sslβ use SSL when connecting (default: false) π--username,--userβ the user to connect as (default: guest) π--passβ the password for the user (default: guest) π€«-w,--warningβ the warning levels for each count of messages, messages_ready, messages_unacknowledged and consumers. This field is made of one to four comma-separated thresholds. Specify -1 if you don't want a threshold for a particular count π§-c,--criticalβ the critical levels for each count of messages, messages_ready, messages_unacknowledged and consumers. This field is made of one to four comma-separated thresholds. Specify -1 if you don't want a threshold for a particular count π
π THRESHOLD FORMAT π
The format of the thresholds you pass in --warning and --critical is defined over here:
<http://nagiosplug.sourceforge.net/developer-guidelines.html#THRESHOLDFORMAT>
For example, to be crtical if more than 100 messages, more than 90 messages_ready, more than 20 messages_unacknowledged or no fewer than 10 consumers, you'd use:
--critical=100,90,20,10:
(yes bestie, the original spells it "crtical" β we're keeping the lore exactly as it is π)
π EXAMPLES π
The defaults all work with a standard fresh install of RabbitMQ, and literally all you need is to specify the host to connect to:
check_rabbitmq_queue -H rabbit.example.com
That returns a standard Nagios result:
RABBITMQ_OVERVIEW OK - messages OK (25794) messages_ready OK (22971)
messages_unacknowledged OK (2823) consumers OK (10) | messages=25794;;
messages_ready=22971;; messages_unacknowledged=2823;; consumers=10;;
look at her go π she ate π
π§ ERRORS π§
The check tries to give you actually useful error messages on the status line for standard error conditions π
Otherwise? It returns the HTTP Error message returned by the management interface π«
β EXIT STATUS β
Returns zero if the check is OK. Otherwise it returns standard Nagios exit codes to signify WARNING, UNKNOWN or CRITICAL state π¦
π SEE ALSO π
- See
Monitoring::Plugin(3) - The RabbitMQ management plugin is described at <http://www.rabbitmq.com/management.html>
π LICENSE π
This file is part of nagios-plugins-rabbitmq.
Copyright 2010, Platform 14.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
π«Ά AUTHOR π«Ά
James Casey <jamesc.000@gmail.com>
and that's the whole page, bestie!! πβ¨ this lil doc came to you courtesy of perl v5.40.1, dated 2026-01-26, and it lives under the alias CHECK_R...Q_QUEUE(1p) β go check your queues, ily, bye ππ¦
π¦ where this page comes from
- ubuntu resolute: nagios-plugins-rabbitmq 1:1.2.0-2.5ubuntu2
- ubuntu stonking: nagios-plugins-rabbitmq 1:1.2.0-2.5ubuntu2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms