In this example we're going to create a Python script to monitor RabbitMQ using the JSON API that you can access from the URL
The scope of this example is to create a custom Python script, which performs some checks and sends an e-mail if it detects some errors. You can find the source code at
You need Python 2.7+ and the management plugin enabled (as we have seen in the Managing RabbitMQ from a browser recipe).
Perform the following steps to create a Python script to monitor RabbitMQ using the JSON API:
import sys import urllib2,base64 import json import logging