Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions pages/common/rabbitmq-diagnostics.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# 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 target node:

`rabbitmq-diagnostics check_running`

- Run peer discovery:

`rabbitmq-diagnostics discover_peers`

- List listeners (bound sockets):

`rabbitmq-diagnostics listeners`

- Print the last N log lines on the target node:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- Print the last N log lines on the target node:
- Print the last `n` log lines on the target node:


`rabbitmq-diagnostics log_tail --number {{N}}`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
`rabbitmq-diagnostics log_tail --number {{N}}`
`rabbitmq-diagnostics log_tail --number {{n}}`