mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
35 lines
794 B
Plaintext
35 lines
794 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# 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.html>.
|
|
|
|
- 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}}`
|