From c0f1152affca183ec8958dd408f923f44c917033 Mon Sep 17 00:00:00 2001 From: pete-may Date: Mon, 27 Oct 2025 21:42:00 -0400 Subject: [PATCH 1/3] rabbitmq-diagnostics: add page --- pages/common/rabbitmq-diagnostics.md | 29 ++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 pages/common/rabbitmq-diagnostics.md diff --git a/pages/common/rabbitmq-diagnostics.md b/pages/common/rabbitmq-diagnostics.md new file mode 100644 index 00000000000000..eb880fcf0eead9 --- /dev/null +++ b/pages/common/rabbitmq-diagnostics.md @@ -0,0 +1,29 @@ +# rabbitmq-diagnostics + +> Diagnose, monitor, and run health checks on RabbitMQ nodes. +> Many subcommands are delegated to `rabbitmqctl`. +> More information: . + +- 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: + +`rabbitmq-diagnostics log_tail --number {{N}}` From 7267845ee33a851c46d9ff0d072ba33a232cd865 Mon Sep 17 00:00:00 2001 From: Managor <42655600+Managor@users.noreply.github.com> Date: Wed, 29 Oct 2025 20:27:02 +0200 Subject: [PATCH 2/3] Apply suggestions from code review --- pages/common/rabbitmq-diagnostics.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/common/rabbitmq-diagnostics.md b/pages/common/rabbitmq-diagnostics.md index eb880fcf0eead9..694e6df19c6168 100644 --- a/pages/common/rabbitmq-diagnostics.md +++ b/pages/common/rabbitmq-diagnostics.md @@ -24,6 +24,6 @@ `rabbitmq-diagnostics listeners` -- 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}}` +`rabbitmq-diagnostics log_tail --number {{n}}` From 0842c3041471ca9c9af8d84287b1ebb551a9ad14 Mon Sep 17 00:00:00 2001 From: pete-may Date: Thu, 30 Oct 2025 09:49:52 -0400 Subject: [PATCH 3/3] feedback --- pages/common/rabbitmq-diagnostics.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pages/common/rabbitmq-diagnostics.md b/pages/common/rabbitmq-diagnostics.md index 694e6df19c6168..69579094935254 100644 --- a/pages/common/rabbitmq-diagnostics.md +++ b/pages/common/rabbitmq-diagnostics.md @@ -12,9 +12,9 @@ `rabbitmq-diagnostics certificates` -- Check if RabbitMQ is running on the target node: +- Check if RabbitMQ is running on the specified node: -`rabbitmq-diagnostics check_running` +`rabbitmq-diagnostics check_running --node {{node}}` - Run peer discovery: @@ -24,6 +24,6 @@ `rabbitmq-diagnostics listeners` -- Print the last `n` log lines on the target node: +- Print the last `n` log lines on the specified node: -`rabbitmq-diagnostics log_tail --number {{n}}` +`rabbitmq-diagnostics log_tail --number {{n}} --node {{node}}`