2019-02-01 21:19:28 +08:00
|
|
|
.\" vim:ft=nroff:
|
|
|
|
|
.\" The contents of this file are subject to the Mozilla Public License
|
|
|
|
|
.\" Version 1.1 (the "License"); you may not use this file except in
|
|
|
|
|
.\" compliance with the License. You may obtain a copy of the License
|
|
|
|
|
.\" at http://www.mozilla.org/MPL/
|
|
|
|
|
.\"
|
|
|
|
|
.\" Software distributed under the License is distributed on an "AS IS"
|
|
|
|
|
.\" basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
|
|
|
|
|
.\" the License for the specific language governing rights and
|
|
|
|
|
.\" limitations under the License.
|
|
|
|
|
.\"
|
|
|
|
|
.\" The Original Code is RabbitMQ.
|
|
|
|
|
.\"
|
|
|
|
|
.\" The Initial Developer of the Original Code is Pivotal Software, Inc.
|
|
|
|
|
.\" Copyright (c) 2007-2019 Pivotal Software, Inc. All rights reserved.
|
|
|
|
|
.\"
|
|
|
|
|
.Dd January 29, 2019
|
|
|
|
|
.Dt RABBITMQ-DIAGNOSTICS 8
|
|
|
|
|
.Os "RabbitMQ Server"
|
|
|
|
|
.Sh NAME
|
|
|
|
|
.Nm rabbitmq-diagnostics
|
|
|
|
|
.Nd RabbitMQ diagnostics, monitoring and health checks tools
|
|
|
|
|
.\" ------------------------------------------------------------------
|
|
|
|
|
.Sh SYNOPSIS
|
|
|
|
|
.\" ------------------------------------------------------------------
|
|
|
|
|
.Nm
|
|
|
|
|
.Op Fl q
|
|
|
|
|
.Op Fl s
|
|
|
|
|
.Op Fl l
|
|
|
|
|
.Op Fl n Ar node
|
|
|
|
|
.Op Fl t Ar timeout
|
|
|
|
|
.Ar command
|
|
|
|
|
.Op Ar command_options
|
|
|
|
|
.\" ------------------------------------------------------------------
|
|
|
|
|
.Sh DESCRIPTION
|
|
|
|
|
.\" ------------------------------------------------------------------
|
|
|
|
|
.Nm
|
|
|
|
|
is a command line tool that provides commands used for diagnostics, monitoring
|
|
|
|
|
and health checks of RabbitMQ nodes.
|
|
|
|
|
See the
|
|
|
|
|
.Lk https://www.rabbitmq.com/documentation.html "RabbitMQ documentation guides"
|
|
|
|
|
to learn more about RabbitMQ diagnostics, monitoring and health checks.
|
|
|
|
|
|
|
|
|
|
.Nm
|
2019-02-03 09:42:00 +08:00
|
|
|
allows the operator to inspect node and cluster state. A number of
|
|
|
|
|
health checks are available to be used interactively and by monitoring tools.
|
2019-02-01 21:19:28 +08:00
|
|
|
|
|
|
|
|
.Pp
|
2019-02-03 09:42:00 +08:00
|
|
|
By default if it is not possible to connect to and authenticate with the target node
|
|
|
|
|
(for example if it is stopped), the operation will fail.
|
2019-02-01 21:19:28 +08:00
|
|
|
To learn more, see the
|
2019-02-03 09:42:00 +08:00
|
|
|
.Lk https://www.rabbitmq.com/monitoring.html "RabbitMQ Monitoring guide"
|
2019-02-01 21:19:28 +08:00
|
|
|
.
|
|
|
|
|
.\" ------------------------------------------------------------------
|
|
|
|
|
.Sh OPTIONS
|
|
|
|
|
.\" ------------------------------------------------------------------
|
|
|
|
|
.Bl -tag -width Ds
|
|
|
|
|
.It Fl n Ar node
|
|
|
|
|
Default node is
|
|
|
|
|
.Qq Pf rabbit@ Ar target-hostname ,
|
|
|
|
|
where
|
|
|
|
|
.Ar target-hostname
|
|
|
|
|
is the local host.
|
|
|
|
|
On a host named
|
|
|
|
|
.Qq myserver.example.com ,
|
|
|
|
|
the node name will usually be
|
|
|
|
|
.Qq rabbit@myserver
|
|
|
|
|
(unless
|
|
|
|
|
.Ev RABBITMQ_NODENAME
|
|
|
|
|
has been overridden).
|
|
|
|
|
The output of
|
|
|
|
|
.Qq hostname -s
|
|
|
|
|
is usually the correct suffix to use after the
|
|
|
|
|
.Qq @
|
|
|
|
|
sign.
|
|
|
|
|
See
|
|
|
|
|
.Xr rabbitmq-server 8
|
|
|
|
|
for details of configuring a RabbitMQ node.
|
|
|
|
|
.It Fl q , -quiet
|
|
|
|
|
Quiet output mode is selected.
|
|
|
|
|
Informational messages are reduced when quiet mode is in effect.
|
|
|
|
|
.It Fl s , -silent
|
|
|
|
|
Silent output mode is selected.
|
|
|
|
|
Informational messages are reduced and table headers are suppressed when silent mode is in effect.
|
|
|
|
|
.It Fl t Ar timeout , Fl -timeout Ar timeout
|
|
|
|
|
Operation timeout in seconds.
|
|
|
|
|
Not all commands support timeouts.
|
|
|
|
|
Default is
|
|
|
|
|
.Cm infinity .
|
|
|
|
|
.It Fl l , Fl -longnames
|
|
|
|
|
Must be specified when the cluster is configured to use long (FQDN) node names.
|
|
|
|
|
To learn more, see the
|
|
|
|
|
.Lk https://www.rabbitmq.com/clustering.html "RabbitMQ Clustering guide"
|
|
|
|
|
.It Fl -erlang-cookie Ar cookie
|
|
|
|
|
Shared secret to use to authenticate to the target node.
|
|
|
|
|
Prefer using a local file or the
|
|
|
|
|
.Ev RABBITMQ_ERLANG_COOKIE
|
|
|
|
|
environment variable instead of specifying this option on the command line.
|
|
|
|
|
To learn more, see the
|
|
|
|
|
.Lk https://www.rabbitmq.com/cli.html "RabbitMQ CLI Tools guide"
|
|
|
|
|
.El
|
|
|
|
|
.\" ------------------------------------------------------------------
|
|
|
|
|
.Sh COMMANDS
|
2019-02-03 09:42:00 +08:00
|
|
|
.\" ------------------------------------
|
|
|
|
|
.Ss Topology Introspection
|
|
|
|
|
.Pp
|
|
|
|
|
The topology introspection commands list topology entities (e.g. queues) with tab-delimited columns.
|
|
|
|
|
.
|
|
|
|
|
These commands and their arguments are delegated to rabbitmqctl(8).
|
|
|
|
|
.Pp
|
|
|
|
|
Some commands (
|
|
|
|
|
.Cm list_queues ,
|
|
|
|
|
.Cm list_exchanges ,
|
|
|
|
|
.Cm list_bindings
|
|
|
|
|
and
|
|
|
|
|
.Cm list_consumers )
|
|
|
|
|
accept an optional
|
|
|
|
|
.Ar vhost
|
|
|
|
|
parameter.
|
|
|
|
|
.Pp
|
|
|
|
|
The
|
|
|
|
|
.Cm list_queues ,
|
|
|
|
|
.Cm list_exchanges
|
|
|
|
|
and
|
|
|
|
|
.Cm list_bindings
|
|
|
|
|
commands accept an optional virtual host parameter for which to display
|
|
|
|
|
results.
|
|
|
|
|
The default value is
|
|
|
|
|
.Qq / .
|
|
|
|
|
.Bl -tag -width Ds
|
|
|
|
|
.\" ------------------------------------
|
|
|
|
|
.It Cm list_queues Oo Fl p Ar vhost Oc Oo Fl -offline | Fl -online | Fl -local Oc Op Ar queueinfoitem ...
|
|
|
|
|
See
|
|
|
|
|
.Cm list_queues
|
|
|
|
|
in
|
|
|
|
|
.Xr rabbitmqctl 8
|
|
|
|
|
.\" ------------------------------------
|
|
|
|
|
.It Cm list_exchanges Oo Fl p Ar vhost Oc Op Ar exchangeinfoitem ...
|
|
|
|
|
See
|
|
|
|
|
.Cm list_exchanges
|
|
|
|
|
in
|
|
|
|
|
.Xr rabbitmqctl 8
|
|
|
|
|
.\" ------------------------------------
|
|
|
|
|
.It Cm list_bindings Oo Fl p Ar vhost Oc Op Ar bindinginfoitem ...
|
|
|
|
|
See
|
|
|
|
|
.Cm list_bindings
|
|
|
|
|
in
|
|
|
|
|
.Xr rabbitmqctl 8
|
|
|
|
|
.\" ------------------------------------
|
|
|
|
|
.It Cm list_connections Op Ar connectioninfoitem ...
|
|
|
|
|
See
|
|
|
|
|
.Cm list_connections
|
|
|
|
|
in
|
|
|
|
|
.Xr rabbitmqctl 8
|
|
|
|
|
.\" ------------------------------------
|
|
|
|
|
.It Cm list_channels Op Ar channelinfoitem ...
|
|
|
|
|
See
|
|
|
|
|
.Cm list_channels
|
|
|
|
|
in
|
|
|
|
|
.Xr rabbitmqctl 8
|
|
|
|
|
.\" ------------------------------------
|
|
|
|
|
.It Cm list_consumers Op Fl p Ar vhost
|
|
|
|
|
See
|
|
|
|
|
.Cm list_consumers
|
|
|
|
|
in
|
|
|
|
|
.Xr rabbitmqctl 8
|
|
|
|
|
.\" ------------------------------------
|
|
|
|
|
.It Cm status
|
|
|
|
|
See
|
|
|
|
|
.Cm status
|
|
|
|
|
in
|
|
|
|
|
.Xr rabbitmqctl 8
|
|
|
|
|
.\" ------------------------------------
|
|
|
|
|
.It Cm node_health_check
|
|
|
|
|
Performs several health checks of the target node.
|
|
|
|
|
.Pp
|
|
|
|
|
Verifies the rabbit application is running and alarms are not set,
|
|
|
|
|
then checks that every queue and channel on the node can emit basic stats.
|
|
|
|
|
.Pp
|
|
|
|
|
Example:
|
|
|
|
|
.Sp
|
|
|
|
|
.Dl rabbitmqctl node_health_check -n rabbit@hostname
|
|
|
|
|
.\" ------------------------------------
|
|
|
|
|
.It Cm environment
|
|
|
|
|
See
|
|
|
|
|
.Cm environment
|
|
|
|
|
in
|
|
|
|
|
.Xr rabbitmqctl 8
|
|
|
|
|
.\" ------------------------------------
|
|
|
|
|
.It Cm report
|
|
|
|
|
See
|
|
|
|
|
.Cm report
|
|
|
|
|
in
|
|
|
|
|
.Xr rabbitmqctl 8
|
|
|
|
|
.\" ------------------------------------
|
|
|
|
|
.It Cm list_global_parameters
|
|
|
|
|
See
|
|
|
|
|
.Cm list_global_parameters
|
|
|
|
|
in
|
|
|
|
|
.Xr rabbitmqctl 8
|
|
|
|
|
.\" ------------------------------------
|
|
|
|
|
.It Cm list_operator_policies Op Fl p Ar vhost
|
|
|
|
|
See
|
|
|
|
|
.Cm list_operator_policies
|
|
|
|
|
in
|
|
|
|
|
.Xr rabbitmqctl 8
|
|
|
|
|
.\" ------------------------------------
|
|
|
|
|
.It Cm list_parameters Op Fl p Ar vhost
|
|
|
|
|
See
|
|
|
|
|
.Cm list_parameters
|
|
|
|
|
in
|
|
|
|
|
.Xr rabbitmqctl 8
|
2019-02-01 21:19:28 +08:00
|
|
|
.\" ------------------------------------------------------------------
|
2019-02-03 09:42:00 +08:00
|
|
|
.It Cm list_permissions Op Fl p Ar vhost
|
|
|
|
|
See
|
|
|
|
|
.Cm list_permissions
|
|
|
|
|
in
|
|
|
|
|
.Xr rabbitmqctl 8
|
|
|
|
|
.\" ------------------------------------
|
|
|
|
|
.It Cm list_policies Op Fl p Ar vhost
|
|
|
|
|
See
|
|
|
|
|
.Cm list_policies
|
|
|
|
|
in
|
|
|
|
|
.Xr rabbitmqctl 8
|
|
|
|
|
.\" ------------------------------------
|
|
|
|
|
.It Cm list_topic_permissions Op Fl p Ar vhost
|
|
|
|
|
See
|
|
|
|
|
.Cm list_topic_permissions
|
|
|
|
|
in
|
|
|
|
|
.Xr rabbitmqctl 8
|
|
|
|
|
.\" ------------------------------------
|
|
|
|
|
.It Cm list_user_permissions Ar username
|
|
|
|
|
See
|
|
|
|
|
.Cm list_user_permissions
|
|
|
|
|
in
|
|
|
|
|
.Xr rabbitmqctl 8
|
|
|
|
|
.\" ------------------------------------
|
|
|
|
|
.It Cm list_user_topic_permissions Ar username
|
|
|
|
|
See
|
|
|
|
|
.Cm list_user_topic_permissions
|
|
|
|
|
in
|
|
|
|
|
.Xr rabbitmqctl 8
|
|
|
|
|
.\" ------------------------------------
|
|
|
|
|
.It Cm list_users
|
|
|
|
|
See
|
|
|
|
|
.Cm list_users
|
|
|
|
|
in
|
|
|
|
|
.Xr rabbitmqctl 8
|
|
|
|
|
.\" ------------------------------------
|
|
|
|
|
.It Cm list_vhosts Op Ar vhostinfoitem ...
|
|
|
|
|
See
|
|
|
|
|
.Cm list_vhosts
|
|
|
|
|
in
|
|
|
|
|
.Xr rabbitmqctl 8
|
|
|
|
|
.\" ------------------------------------
|