CHECK_R...RTITION(1p)
π check_rabbitmq_partition β the perl manual page, but make it a group chat π
okay bestie, sit down, hydrate, and let me tell you about this little icon: check_rabbitmq_partition. It's a Nagios plugin, it lives in the User Contributed Perl Documentation corner of the perl manual, and it uses the RabbitMQ management API to check if a cluster partition has occured. yes, "occured". we don't fix it, we respect it. π«Ά
β¨ NAME β¨
check_rabbitmq_partition β a Nagios plugin that uses the RabbitMQ management API to check if a cluster partition has occured.
like. the whole job. one job. and it eats. π
π¦ SYNOPSIS π¦
check_rabbitmq_partition [options] -H hostname
that's it. options, then hostname, in that order. yes queen, -H is not optional, she is the moment.
πΈ DESCRIPTION πΈ
So basically: it pokes the management interface of RabbitMQ and checks whether a cluster partition has occured. no cap.
It uses Monitoring::Plugin under the hood, which means it accepts all standard Nagios options too. so you get the classic Nagios vibes for free, it's giving inherited-and-thriving. π
π OPTIONS π
-h|--helpβ Display help text. your little emergency handbook. π-v|--verboseβ Verbose output. for when you need the tea, all of the tea. π-t|--timeoutβ Set a timeout for the check in seconds. so it doesn't just stand there forever, bestie. β³-H|--hostname|--hostβ The host to connect to. three whole names, one diva. π--portβ The port to connect to (default:55672).--sslβ Use SSL when connecting (default:false).-n|--nodeβ The node name (default ishostname). so if you don't say anything, it just assumes the hostname, iconic default energy.--username|--userβ The user to connect as (default:guest).--passβ The password for the user (default:guest).
ngl the defaults are lowkey doing the most so you can do the least. π§
π 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_node -H rabbit.example.com
(and yes, that command in the original says check_rabbitmq_node β we are quoting her exactly, character for character, because that's the rule and also because honestly? she's valid. π)
This returns a standard Nagios result:
RABBITMQ_NODE OK - No Partitions
no partitions?? we love to see it. main character output. πβ¨
π ERRORS π
The check tries to provide useful error messages on the status line for standard error conditions.
Otherwise it returns the HTTP Error message returned by the management interface. so when it can't be cute, it just hands you the raw receipt. π
π EXIT STATUS π
Returns zero if check is OK, otherwise returns standard Nagios exit codes to signify WARNING, UNKNOWN or CRITICAL state.
fr fr, read the exit code. zero = good vibes. anything else = a state, and Nagios takes those very seriously. π¨
π«Ά 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>
okay that's the whole page, you ate every last line, nothing skipped, nothing summarised, every flag and default and exit code accounted for π
this diva is brought to you by perl v5.40.1, dated 2026-01-26, living under the header CHECK_R...RTITION(1p) β thanks for coming to my Ted talk, mwah ππ β¨
π¦ 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