Erlang/OTP Forums

Author Message

<  RabbitMQ mailing list  ~  rabbitmqctl diag command?

Guest
Posted: Thu Jul 03, 2008 3:53 pm Reply with quote
Guest
Hi all,

When you are running rabbitmq broker, what do you use to check its status and to make sure
it's still operational?

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?

I was also thinking that it would be nice to possibly extend rabbitmqctl command line tool
to offer diag output (as a separate command under rabbitmqctl - like "rabbitmqctl diag").
If this output is easily parsed from shell, writing tests and alarms would be trivial.
Something like "keyword: value" for things like mnesia database status, listener status,
current # of open connections, # of messages published, etc. The more data points, the
better. One could build charts off of that data too...

Thoughts?

- Dmitriy

_______________________________________________
rabbitmq-discuss mailing list
rabbitmq-discuss@lists.rabbitmq.com
http://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
Post received from mailinglist
0x6e6562
Posted: Thu Jul 03, 2008 4:15 pm Reply with quote
User Joined: 12 Jul 2007 Posts: 250
Dmitriy,

On Thu, Jul 3, 2008 at 4:52 PM, Dmitriy Samovskiy
<dmitriy.samovskiy@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@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@nohost]},
{running_nodes,[nonode@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

_______________________________________________
rabbitmq-discuss mailing list
rabbitmq-discuss@lists.rabbitmq.com
http://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
Post received from mailinglist
View user's profile Send private message

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum