[rabbitmq-discuss] rabbitmqctl diag command?

Ben Hood 0x6e6562 at gmail.com
Thu Jul 3 17:14:13 BST 2008


Dmitriy,

On Thu, Jul 3, 2008 at 4:52 PM, Dmitriy Samovskiy
<dmitriy.samovskiy at cohesiveft.com> wrote:
> When you are running rabbitmq broker, what do you use to check its status and to make sure
> it's still operational?

The crudest way is to call rabbitmqctl status which will list the
running nodes and running applications, e.g.

4> rabbit_control:action(status,node(),[]).
Status of node nonode at nohost ...
[{running_applications,[{rabbit,"RabbitMQ","%%VERSION%%"},
                        {mnesia,"MNESIA  CXC 138 12","4.4.3"},
                        {os_mon,"CPO  CXC 138 46","2.1.6"},
                        {sasl,"SASL  CXC 138 11","2.1.5.3"},
                        {stdlib,"ERTS  CXC 138 10","1.15.3"},
                        {kernel,"ERTS  CXC 138 10","2.12.3"}]},
 {nodes,[nonode at nohost]},
 {running_nodes,[nonode at nohost]}]
ok

If those 6 OTP applications are not running, then you may have a problem.


> I could open a test connection every 5 minutes or so, send and consume a message; if
> either fails, send an alarm. Does anybody else have other ideas?

Ben




More information about the rabbitmq-discuss mailing list