I have installed sensu server using sensu-chef cookbook. The API is not starting. The error in the logs is the following:
{“timestamp”:“2014-01-02T16:58:27.658883+0000”,“level”:“error”,“message”:"[amqp] Detected TCP connection failure"}
The config file is the standard one:
/etc/sensu# cat config.json
{
“rabbitmq”: {
“host”: “192.168.33.100”,
“port”: 5672,
“vhost”: “/sensu”,
“user”: “sensu”,
“password”: “password”
},
“redis”: {
“host”: “localhost”,
“port”: 6379
},
“api”: {
“host”: “localhost”,
“bind”: “0.0.0.0”,
“port”: 4567
},
“dashboard”: {
“bind”: “0.0.0.0”,
“port”: 8080,
“user”: “admin”,
“password”: “secret”
}
this is the config file for the API:
/etc/sensu# cat conf.d/api.json
{
“api”: {
“host”: “localhost”,
“port”: 4567,
“user”: "sensu,
“password”: “password”
}
}
This is the version of sensu installed on Ubuntu 13.04: 0.12.3-1
This is the hash passed to the API script:
/etc/sensu# service sensu-service api start
- Starting sensu-api
["-b", “-c”, “/etc/sensu/config.json”, “-d”, “/etc/sensu/conf.d”, “-e”, “/etc/sensu/extensions”, “-p”, “/var/run/sensu/sensu-api.pid”, “-l”, “/var/log/sensu/sensu-api.log”, “-L”, “info”]
It seems that conf.d/api.json is not used?Or is it picked up from ‘/etc/sensu/conf.d’?
Any idea where to have a look?