CHECK_R...IVENESS(1p)
π check_rabbitmq_aliveness(1p) π
okay bestie, so this is check_rabbitmq_aliveness β a Nagios plugin that uses the RabbitMQ management API to check liveness by send/receive a message through a vhost. yeah it's a mouthful, but it's ICONIC and it just works π°β¨
β¨ NAME β¨
check_rabbitmq_aliveness β a Nagios plugin that hits up the RabbitMQ management API to check liveness by send/receive a message through a vhost. periodt π
π¦ SYNOPSIS π¦
check_rabbitmq_aliveness [options] -H hostname
like, you give it a host, it does the whole thing. the -H hostname is literally the only thing you have to bring to the party π
πΈ DESCRIPTION πΈ
So the way this works is: it slides into the management interface of RabbitMQ to check that the server is alive. it declares a test queue, then publishes and consumes a message. that's the whole vibe check β real message in, real message out, server is breathing, we're so back ππ₯
It uses Monitoring::Plugin and accepts all standard Nagios options. so all your usual faves still work, no notes π«Ά
π OPTIONS π
-h|--helpβ displays the help text, for when you need a lil refresher π-v|--verboseβ verbose output, aka it tells you EVERYTHING, no gatekeeping π¬-t|--timeoutβ sets a timeout for the check in seconds. so it doesn't just sit there waiting forever like a situationship β°-H|--hostname|--hostβ the host to connect to. the main character of this whole operation π--portβ the port to connect to (default:55672) π--sslβ use SSL when connecting (default:false) π--vhostβ the vhost to create the test queue within (default:/) π--username|--userβ the user to connect as (default:guest) π--passβ the password for the user (default:guest) π
π EXAMPLES π
The defaults all work with a standard fresh install of RabbitMQ, and all that is needed is to specify the host to connect to:
check_rabbitmq_aliveness -H rabbit.example.com
This returns a standard Nagios result:
RABBITMQ_ALIVENESS OK - vhost: /
You can choose a different vhost to use for the check also:
check_rabbitmq_aliveness -H rabbit.example.com --vhost /foo
see? not complicated. two lines max. we love a low-effort icon π β¨
π ERRORS π
The check tries to provide useful error messages on the status line for standard error conditions. so when something goes wrong it's not just like "π" with no explanation β it actually tells you what happened.
Otherwise it returns the HTTP Error message returned by the management interface. so if the management API has opinions, you get those opinions verbatim, no cap π‘
π EXIT STATUS π
Returns zero if check is OK otherwise returns standard Nagios exit codes to signify WARNING, UNKNOWN or CRITICAL state.
so like β 0 = slay, anything else = we have a problem and it's one of those three moods π₯
π§ SEE ALSO π§
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.
okay so like, actually read the license. it's giving legal and it's giving important. use it responsibly bestie ππ
π AUTHOR π
James Casey <jamesc.000@gmail.com>
and that's the whole page, bestie!! this absolute classic shipped as part of perl v5.40.1, dated 2026-01-26 β a true vintage icon of the nagios-plugins-rabbitmq world ππ go check your rabbits, they deserve it π«Άπβ¨
π¦ 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