alarms
-
Lists resource alarms, if any, in the cluster.
See
RabbitMQ Resource
Alarms guide to learn more.
Example:
rabbitmq-diagnostics
alarms
certificates
-
Displays the node certificates for every listener on target
node that is configured to use TLS.
Example:
rabbitmq-diagnostics
certificates
check_alarms
-
Health check that fails (returns with a non-zero code) if
there are alarms in effect on any of the cluster nodes.
See
RabbitMQ Resource
Alarms guide to learn more.
Example:
rabbitmq-diagnostics
check_alarms
check_certificate_expiration
[--unit
time_unit]
[--within
seconds]
-
Checks the expiration date on the certificates for every
listener on target node that is configured to use TLS. Supported time
units are:
Example:
rabbitmq-diagnostics
check_certificate_expiration --unit weeks --within 6
check_local_alarms
-
Health check that fails (returns with a non-zero code) if
there are alarms in effect on the target node.
See
RabbitMQ Resource
Alarms guide to learn more.
Example:
rabbitmq-diagnostics
check_local_alarms
check_port_connectivity
-
Health check that fails (returns with a non-zero code) if any
listener ports on the target node cannot accept a new TCP connection
opened by rabbitmq-diagnostics
The check only validates if a new TCP connection is accepted.
It does not perform messaging protocol handshake or authenticate.
See
RabbitMQ
Networking guide to learn more.
Example:
rabbitmq-diagnostics
check_port_connectivity
check_port_listener
port
-
Health check that fails (returns with a non-zero code) if the
target node is not listening on the specified port (there is no listener
that uses that port).
See
RabbitMQ
Networking guide to learn more.
Example:
rabbitmq-diagnostics
check_port_listener 5672
check_protocol_listener
protocol
-
Health check that fails (returns with a non-zero code) if the
target node does not have a listener for the specified protocol.
See
RabbitMQ
Networking guide to learn more.
Example:
rabbitmq-diagnostics
check_protocol_listener mqtt
check_running
-
Health check that fails (returns with a non-zero code) if the
RabbitMQ application is not running on the target node.
If rabbitmqctl(8)
was used to stop the
application, this check will fail.
Example:
rabbitmq-diagnostics
check_running
check_virtual_hosts
-
Health check that checks if all vhosts are running in the
target node
Example:
rabbitmq-diagnostics
check_virtual_hosts --timeout 60
cipher_suites
-
Lists cipher suites enabled by default. To list all available
cipher suites, add the --all argument.
Example:
rabbitmq-diagnostics
cipher_suites --format openssl --all
command_line_arguments
-
Displays target node's command-line arguments and flags as
reported by the runtime.
Example:
rabbitmq-diagnostics
command_line_arguments -n rabbit@hostname
consume_event_stream
[--duration
seconds |
-d
seconds]
[--pattern
pattern]
[--timeout
milliseconds]
-
Streams internal events from a running node. Output is
jq-compatible.
Example:
rabbitmq-diagnostics
consume_event_stream -n rabbit@hostname --duration 20 --pattern
queue_.*
discover_peers
-
Runs a peer discovery on the target node and prints the
discovered nodes, if any.
See
RabbitMQ
Cluster Formation guide to learn more.
Example:
rabbitmq-diagnostics
discover_peers --timeout 60
environment
- See
environment
in
rabbitmqctl(8)
erlang_cookie_hash
-
Outputs a hashed value of the shared secret used by the target
node to authenticate CLI tools and peers. The value can be compared with
the hash found in error messages of CLI tools.
See
RabbitMQ
Clustering guide to learn more.
Example:
rabbitmq-diagnostics
erlang_cookie_hash -q
erlang_version
-
Reports target node's Erlang/OTP version.
Example:
rabbitmq-diagnostics
erlang_version -q
is_booting
-
Reports if RabbitMQ application is currently booting (not
booted/running or stopped) on the target node.
Example:
rabbitmq-diagnostics
is_booting
is_running
-
Reports if RabbitMQ application is fully booted and running
(that is, not stopped) on the target node.
Example:
rabbitmq-diagnostics
is_running
list_bindings
[-p
vhost]
[bindinginfoitem ...]
-
See list_bindings
in
rabbitmqctl(8)
list_channels
[channelinfoitem ...]
-
See list_channels
in
rabbitmqctl(8)
list_ciphers
-
See list_ciphers
in
rabbitmqctl(8)
list_connections
[connectioninfoitem ...]
-
See list_connections
in
rabbitmqctl(8)
list_consumers
[-p
vhost]
-
See list_consumers
in
rabbitmqctl(8)
list_exchanges
[-p
vhost]
[exchangeinfoitem ...]
-
See list_exchanges
in
rabbitmqctl(8)
list_hashes
-
See list_hashes
in
rabbitmqctl(8)
list_queues
[-p
vhost]
[--offline
| --online
|
--local
] [queueinfoitem
...]
-
See list_queues
in
rabbitmqctl(8)
list_unresponsive_queues
[--local
] [--queue-timeout
milliseconds] [column ...]
[--no-table-headers
]
-
See list_unresponsive_queues
in
rabbitmqctl(8)
listeners
-
Lists listeners (bound sockets) on this node. Use this to
inspect what protocols and ports the node is listening on for client,
CLI tool and peer connections.
See
RabbitMQ
Networking guide to learn more.
Example:
rabbitmq-diagnostics
listeners
log_tail
--number
number |
-N
number [--timeout
milliseconds]
-
Prints the last N lines of the log on the node
Example:
rabbitmq-diagnostics log_tail
-number 100
log_tail_stream
[--duration
seconds |
-d
seconds]
[--timeout
milliseconds]
-
Streams logs from a running node for a period of time
Example:
rabbitmq-diagnostics
log_tail_stream --duration 60
maybe_stuck
-
Periodically samples stack traces of all Erlang processes
("lightweight threads") on the node. Reports the processes for
which stack trace samples are identical.
Identical samples may indicate that the process is not making
any progress but is not necessarily an indication of a problem.
Example:
rabbitmq-diagnostics maybe_stuck
-q
memory_breakdown
[--unit
memory_unit]
-
Displays node's memory usage by category. Supported memory
units are:
- bytes
- megabytes
- gigabytes
- terabytes
See
RabbitMQ
Memory Use guide to learn more.
Example:
rabbitmq-diagnostics
memory_breakdown --unit gigabytes
observer
[--interval
seconds]
-
Starts a CLI observer interface on the target node
Example:
rabbitmq-diagnostics observer
--interval 10
ping
-
Most basic health check. Succeeds if target node (runtime) is
running and rabbitmq-diagnostics
can
authenticate with it successfully.
report
-
See report
in
rabbitmqctl(8)
runtime_thread_stats
[--sample-interval
interval]
-
Performs sampling of runtime (kernel) threads' activity for
interval seconds and reports it.
For this command to work, Erlang/OTP on the target node must
be compiled with microstate accounting support and have the
runtime_tools package available.
Example:
rabbitmq-diagnostics
runtime_thread_stats --sample-interval 15
schema_info
[--no_table_headers
] [column
...] [--timeout
milliseconds]
-
See schema_info
in
rabbitmqctl(8)
server_version
-
Reports target node's version.
Example:
rabbitmq-diagnostics
server_version -q
status
-
See status
in
rabbitmqctl(8)
tls_versions
-
Lists all TLS versions supported by the runtime on the target
node. Note that RabbitMQ can be configured to only accept a subset of
those versions, for example, SSLv3 is disabled by default.
See
RabbitMQ TLS
guide to learn more.
Example:
rabbitmq-diagnostics tls_versions
-q