SENSU CLIENT IS NOT WORKING.
BELOW ARE THE CONFIGURATIONS
tail -f /var/log/sensu/sensu-api.log
{“timestamp”:“2016-05-06T12:14:47.650477+0530”,“level”:“error”,“message”:"[amqp] Detected TCP connection failure"}
{“timestamp”:“2016-05-06T12:15:07.667645+0530”,“level”:“error”,“message”:"[amqp] Detected TCP connection failure"}
{“timestamp”:“2016-05-06T12:15:27.675219+0530”,“level”:“error”,“message”:"[amqp] Detected TCP connection failure"}
{“timestamp”:“2016-05-06T12:15:47.692230+0530”,“level”:“error”,“message”:"[amqp] Detected TCP connection failure"}
tail -f /var/log/sensu/sensu-client.log
{“timestamp”:“2016-05-06T12:14:57.688362+0530”,“level”:“error”,“message”:"[amqp] Detected TCP connection failure"}
{“timestamp”:“2016-05-06T12:15:17.688331+0530”,“level”:“error”,“message”:"[amqp] Detected TCP connection failure"}
{“timestamp”:“2016-05-06T12:15:37.688875+0530”,“level”:“error”,“message”:"[amqp] Detected TCP connection failure"}
rabbitmq log
=ERROR REPORT==== 6-May-2016::12:22:59 ===
closing AMQP connection <0.6869.0> (127.0.0.1:34294 -> 127.0.0.1:5672):
{handshake_timeout,handshake}
=INFO REPORT==== 6-May-2016::12:23:20 ===
accepting AMQP connection <0.6876.0> (127.0.0.1:34298 -> 127.0.0.1:5672)
=ERROR REPORT==== 6-May-2016::12:23:26 ===
closing AMQP connection <0.6876.0> (127.0.0.1:34298 -> 127.0.0.1:5672):
{handshake_timeout,handshake}
api.json
{
“api”: {
“host”: “127.0.0.1”,
“bind”: “0.0.0.0”,
“port”: 4567
}
}
client.json
{
“client”: {
“name”: “jenkins”,
“address”: “127.0.0.1”,
“subscriptions”: [
“jenkins”
]
}
}
rabbitmq.json
{
“rabbitmq”: {
“host”: server_ip,
“port”: 5672,
“vhost”: “/sensu”,
“user”: “sensu”,
“password”: “secret”
}
}
transport.json
{
“transport”: {
“name”: “rabbitmq”,
“reconnect_on_error”: true
}
}