我有屏幕上的Uchiwa,但它闪烁我提到的错误。
拖尾sensu-api日志不透露很多:
{"timestamp":"2014-10-15T04:02:44.553226-0500","level":"warn","message":"loading config file","file":"/etc/sensu/conf.d/client.json"} {"timestamp":"2014-10-15T04:02:44.553292-0500","level":"warn","message":"loading config file","file":"/etc/sensu/conf.d/redis.json"} {"timestamp":"2014-10-15T04:02:44.553386-0500","level":"warn","message":"config file applied changes","file":"/etc/sensu/conf.d/redis.json","changes":{"redis":[null,{"host":"localhost","port":6379}]}} {"timestamp":"2014-10-15T04:02:44.553472-0500","level":"warn","message":"loading config file","file":"/etc/sensu/conf.d/rabbitmq.json"} {"timestamp":"2014-10-15T04:02:44.553582-0500","level":"warn","message":"config file applied changes","file":"/etc/sensu/conf.d/rabbitmq.json","changes":{"rabbitmq":[null,{"ssl":{"cert_chain_file":"/etc/sensu/ssl/cert.pem","private_key_file":"/etc/sensu/ssl/key.pem"},"host":"localhost","port":5671,"vhost":"/sensu","user":"sensu","password":"REDACTED"}]}} {"timestamp":"2014-10-15T04:02:44.553662-0500","level":"warn","message":"loading config file","file":"/etc/sensu/conf.d/api.json"} {"timestamp":"2014-10-15T04:02:44.553755-0500","level":"warn","message":"config file applied changes","file":"/etc/sensu/conf.d/api.json","changes":{"api":[null,{"host":"localhost","port":4567,"user":"sensu","password":"REDACTED"}]}} {"timestamp":"2014-10-15T04:02:52.336757-0500","level":"info","message":"GET /info","remote_address":"127.0.0.1","user_agent":null,"request_method":"GET","request_uri":"/info","request_body":""}
至less,不是我。
apiconfiguration是:
[root@ws00 sensu]# cat conf.d/api.json { "api": { "host": "localhost", "port": 4567, "user": "sensu", "password": "REDACTED" } }
接下来是他们在github上讨论的健康检查的输出( https://github.com/sensu/uchiwa/blob/master/README.md ):
/健康
{"uchiwa":"ok","sensu":{"Sensu":{}}}
/健康/意义上的
{"sensu":{"Sensu":{}}}
/健康/团扇
{"uchiwa":"ok"}
紧钳?
service sensu-api status
报告它正在快乐地奔跑,无后顾之忧。
无论如何,Google不会因为“Sensu API Sensu错误”而返回任何内容,所以我希望你们大家可以帮忙!
如果看看其他configuration会很方便,让我知道。
另一种可能性是你的uchiwa.json文件的位置。
我有一个类似的问题,不知道发生了什么事,但是当我在/etc/sensu/conf.d中创build了uchiwa.json文件时,似乎遇到了问题,但同时默认configuration创build了一个uchiwa。 / etc / sensu中的json文件。 出于某种原因,uchiwa希望文件在/ etc / sensu中,现在我对该configuration感到满意,因为它终于使api工作正常。 祝你好运。