簡體   English   中英

Sensu似乎沒有與客戶建立聯系

[英]Sensu does not seem to make a connection to a client

我使用廚師在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"}

您可以輸出配置文件的內容並確認Sensu是否已連接到Redis Server(對於您的情況,我認為它位於localhost上)。 如果您啟用了IPv6,也請輸入。

如果需要,還可以編輯/ etc / default / sensu文件並將日志級別設置為debug,然后使用init腳本重新啟動sensu-server。

最近,我遇到了類似的問題,然后Redis連接出現了問題,這很容易引起誤解。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM