check_rabbitmq_objects1p
Nagios plugin using rabbitmq management api to count the number of various broker objects
Usage
check_rabbitmq_objects [options]
-H
hostname
Overview
Use the management interface of RabbitMQ to count the number of various broker objects. These are published as performance metrics for the check.
Currently the following objects are counted:
•
|
vhost |
|---|---|
•
|
exchange |
•
|
binding |
•
|
queue |
•
|
channel |
It uses Monitoring::Plugin and accepts all standard Nagios options.
Options
-
-h | --help -
Display help text
-
-v | --verbose -
Verbose output
-
-t | --timeout -
Set a timeout for the check in seconds
-
-H | --hostname | --host -
The host to connect 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)
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_objects -H rabbit.example.com
This returns a standard Nagios result:
RABBITMQ_OBJECTS OK - Gathered Object Counts | vhost=1;; exchange=7;;binding=2;; queue=1;; channel=0;;
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.
Exit status
Returns zero if check is OK otherwise returns standard Nagios exit codes to signify WARNING, UNKNOWN or CRITICAL state.
Releases
2 releases since Debian 12 (Bookworm); the text changed 1 time.