HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

rabbitmq-diagnostics — Diagnose, monitor, and run health checks on RabbitMQ nodes. Many subcommands are delegated to `rabbi

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandrunmonitordiagnoseandhealthclirabbitmq-diagnostics

Problem

How to use the rabbitmq-diagnostics command: Diagnose, monitor, and run health checks on RabbitMQ nodes. Many subcommands are delegated to rabbitmqctl. More information: <https://www.rabbitmq.com/docs/man/rabbitmq-diagnostics.8>.

Solution

rabbitmq-diagnostics — Diagnose, monitor, and run health checks on RabbitMQ nodes. Many subcommands are delegated to rabbitmqctl. More information: <https://www.rabbitmq.com/docs/man/rabbitmq-diagnostics.8>.

List resource alarms:
rabbitmq-diagnostics alarms


List node certificates:
rabbitmq-diagnostics certificates


Check if RabbitMQ is running on the specified node:
rabbitmq-diagnostics check_running --node {{node}}


Run peer discovery:
rabbitmq-diagnostics discover_peers


List listeners (bound sockets):
rabbitmq-diagnostics listeners


Print the last n log lines on the specified node:
rabbitmq-diagnostics log_tail --number {{n}} --node {{node}}

Code Snippets

List resource alarms

rabbitmq-diagnostics alarms

List node certificates

rabbitmq-diagnostics certificates

Check if RabbitMQ is running on the specified node

rabbitmq-diagnostics check_running --node {{node}}

Run peer discovery

rabbitmq-diagnostics discover_peers

List listeners (bound sockets)

rabbitmq-diagnostics listeners

Context

tldr-pages: common/rabbitmq-diagnostics

Revisions (0)

No revisions yet.