Sample Header Ad - 728x90

how to configure sensu server with rabbitmq?

1 vote
1 answer
1057 views
I want to install sensu-server and sensu-client both on single node(ubuntu 14.04) for practical purpose. when i am using redis as transport it's working fine. but when i am trying to configure rabbitmq as transport than it's give me error. my configuration structure is: ├── conf.d │   ├── api.json │   ├── check_apache.json │   ├── client.json │   ├── default_handler.json │   ├── rabbitmq.json │   ├── redis.json │   └── transport.json ├── config.json.example ├── dashboard.d ├── extensions ├── plugins │   └── check-apache.rb ├── ssl │   ├── cert.pem │   └── key.pem └── uchiwa.json /etc/sensu/uchiwa.json { "sensu": [ { "name": "Sensu", "host": "localhost", "ssl": false, "port": 4567, "path": "", "timeout": 5000 } ], "uchiwa": { "port": 3000, "stats": 10, "refresh": 10000 } } /etc/sensu/conf.d/api.json { "api": { "host": "localhost", "port": 4567 } } /etc/sensu/conf.d/client.json { "client": { "name": "server", "address": "localhost", "subscriptions": [ "ALL" ] } } /etc/sensu/conf.d/rabbitmq.json { "rabbitmq": { "host": "127.0.0.1", "port": 5671, "vhost": "/sensu", "user": "sensu", "password": "pass", "heartbeat": 30, "prefetch": 50, "ssl": { "cert_chain_file": "/etc/sensu/ssl/cert.pem", "private_key_file": "/etc/sensu/ssl/key.pem" } } } /etc/sensu/conf.d/redis.json { "redis": { "host": "localhost", "port": 6379 } } /etc/sensu/conf.d/transport.json { "transport": { "name": "rabbitmq", "reconnect_on_error": true } } when i replce rabbitmq to redis in transport.json file my setup working fine but in case of rabbitmq its not working. in logs we get this error but username and password is correct that is provide in configuration file. {"timestamp":"2017-03-21T18:44:28.167638+0000","level":"warn","message":"transport connection error","reason":"possible authentication failure. wrong credentials?","user":"sensu"}
Asked by Tiger (664 rep)
Mar 21, 2017, 06:48 PM
Last activity: Feb 27, 2018, 03:30 PM