我使用厨师在Debian 7.8.0上安装了Sensu 0.18.1。安装似乎已成功完成,但由于某些原因客户端未出现在Uchiwa仪表板上。
服务器日志显示“取消订阅keepalive和结果队列”警告。我不确定这个消息是什么意思......
我发现这条消息是RabbitMQ无法连接。但这似乎是连接一旦成功,然后在一分钟内失败。这条消息意味着什么是没有意义的。
/var/log/rabbitmq/rabbit@debianSensuServer.log
=INFO REPORT==== 24-Aug-2015::20:01:30 ===
accepting AMQP connection <0.9084.0> (127.0.0.1:59174 -> 127.0.0.1:5672)
=ERROR REPORT==== 24-Aug-2015::20:01:30 ===
closing AMQP connection <0.9084.0> (127.0.0.1:59174 -> 127.0.0.1:5672):
{bad_header,<<129,15,1,3,3,0,246,0>>}
如何解决此问题并在Uchiwa仪表板上显示客户端?
我对这个领域知之甚少,所以任何建议都会受到高度赞赏。
/var/log/sensu/sensu-server.log
{"timestamp":"2015-08-24T19:38:15.089922-0400","level":"warn","message":"loading config file","file":"/etc/sensu/config.json"}
{"timestamp":"2015-08-24T19:38:15.090311-0400","level":"warn","message":"loading config files from directory","directory":"/etc/sensu/conf.d"}
{"timestamp":"2015-08-24T19:38:15.109140-0400","level":"warn","message":"loading extension files from directory","directory":"/etc/sensu/extensions"}
{"timestamp":"2015-08-24T19:38:15.109842-0400","level":"warn","message":"loaded extension","type":"mutator","name":"json","description":"returns JSON formatted event data"}
{"timestamp":"2015-08-24T19:38:15.109929-0400","level":"warn","message":"loaded extension","type":"mutator","name":"ruby_hash","description":"returns ruby hash event data"}
{"timestamp":"2015-08-24T19:38:15.109999-0400","level":"warn","message":"loaded extension","type":"mutator","name":"only_check_output","description":"returns check output"}
{"timestamp":"2015-08-24T19:38:15.110067-0400","level":"warn","message":"loaded extension","type":"handler","name":"debug","description":"returns raw event data"}
{"timestamp":"2015-08-24T19:38:15.247597-0400","level":"warn","message":"reconnecting to transport"}
{"timestamp":"2015-08-24T19:38:15.247803-0400","level":"warn","message":"unsubscribing from keepalive and result queues"}
/var/log/sensu/sensu-client.log
{"timestamp":"2015-08-24T19:26:57.291895-0400","level":"warn","message":"loading config file","file":"/etc/sensu/config.json"}
{"timestamp":"2015-08-24T19:26:57.292039-0400","level":"warn","message":"loading config files from directory","directory":"/etc/sensu/conf.d"}
{"timestamp":"2015-08-24T19:26:57.294905-0400","level":"warn","message":"loading extension files from directory","directory":"/etc/sensu/extensions"}
{"timestamp":"2015-08-24T19:26:57.450583-0400","level":"warn","message":"reconnecting to transport"}
答案 0 :(得分:-1)
是否可以输出配置文件的内容并确认Sensu已连接到Redis服务器,我认为该服务器位于localhost上。 如果您启用了IPv6,请同时放置。
如果需要,还可以编辑/ etc / default / sensu文件并将日志级别设置为debug,然后使用init脚本重新启动sensu-server
我最近遇到了类似的问题,然后问题出在Redis连接上,这很容易产生误导。