RabbitMQ: Verify version of rabbitmq

sudo rabbitmqctl status

and look for line that looks like that:

{rabbit,"RabbitMQ","2.6.1"},


You can simply execute from the command line:

sudo rabbitmqctl status | grep rabbit

If rabbitimq can not start I found the only way to determine version is via installer system.

Eample Debian/Ubuntu:

dpkg -s rabbitmq-server | grep Version

As Marek said on a local server, or, on a remote server (using amqplib):

from amqplib import client_0_8 as amqp
import sys

conn = amqp.Connection(host=sys.argv[1], userid="guest", password="guest", virtual_host="/", insist=False)

for k, v in conn.server_properties.items():
    print k, v

Save as checkVersion.py and run with python checkVersion.py dev.rabbitmq.com:

% python checkVersion.py dev.rabbitmq.com
information Licensed under the MPL.  See http://www.rabbitmq.com/
product RabbitMQ
copyright Copyright (C) 2007-2011 VMware, Inc.
capabilities {}
platform Erlang/OTP
version 2.6.0