How to receive event data when using sensu transport handler ?


I have created a simple sensu set-up and want to have a try of its transport handler.

Following, I created a check to make sure events been created:

“checks”: {
“http-server4”: {
“type”: “metric”,
“command”: “ -s”,
“standalone”: true,
“interval”: 5,
“handler”: “transport”


And the handler:

“handlers”: {
“transport”: {
“type”: “transport”,
“pipe”: {
“type”: “direct”,
“name”: “test_transport”


Then I write a simple code hope to get event data:

#!/usr/bin/env python
import pika

credentials = pika.PlainCredentials(‘sensu’, ‘secret’)
parameters = pika.ConnectionParameters(‘’,5672,"/sensu",credentials)

connection = pika.BlockingConnection(parameters)
channel =


def callback(ch, method, properties, body):
print(" Received %r" % body)

channel.basic_consume(callback, queue=‘test_transport’, no_ack=True)

print(’ Waiting for messages. To exit press CTRL+C’)


But, I get nothing. :frowning:

Anything I missed ??