我在屏幕上显示了 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":""}
Run Code Online (Sandbox Code Playgroud)
至少,对我来说不是。
api 配置是:
[root@ws00 sensu]# cat conf.d/api.json
{
"api": {
"host": "localhost",
"port": 4567,
"user": "sensu",
"password": "REDACTED"
}
}
Run Code Online (Sandbox Code Playgroud)
接下来,是他们在 github 上谈到的健康检查的输出(https://github.com/sensu/uchiwa/blob/master/README.md):
/健康
{"uchiwa":"ok","sensu":{"Sensu":{}}}
Run Code Online (Sandbox Code Playgroud)
/健康/感觉
{"sensu":{"Sensu":{}}}
Run Code Online (Sandbox Code Playgroud)
/健康/内轮
{"uchiwa":"ok"}
Run Code Online (Sandbox Code Playgroud)
紧要关头?
service sensu-api status
Run Code Online (Sandbox Code Playgroud)
报告它正在愉快地运行,不用担心。
无论如何,Google 不会为“Sensu API Sensu 错误”返回任何内容,所以我希望你们能提供帮助!
如果查看其他配置会很方便,请告诉我。
小智 2
另一种可能性是 uchiwa.json 文件的位置。
我遇到了类似的问题,不知道发生了什么,但当我在 /etc/sensu/conf.d 中创建 uchiwa.json 文件但同时默认配置创建了 uchiwa 时,似乎出现了问题。 /etc/sensu.json 文件 由于某种原因 uchiwa 希望该文件位于 /etc/sensu 中,现在我对这个配置很满意,因为它终于让 api 正常工作了。祝你好运。
| 归档时间: |
|
| 查看次数: |
4348 次 |
| 最近记录: |