小编ile*_*ras的帖子

Uchiwa 抛出“Sensu API Sensu 错误”

我在屏幕上显示了 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 错误”返回任何内容,所以我希望你们能提供帮助!

如果查看其他配置会很方便,请告诉我。

sensu

6
推荐指数
1
解决办法
4348
查看次数

标签 统计

sensu ×1