« デデロンガー | メイン | 続・Hobbitクライアントプローブ » |

2007年2月20日

Hobbitのクライアントプローブ

 やー、この前インストールしたHobbitですが、サーバの設定は簡単だったのですが、クライアントのCPU負荷なんかをGetする為のクライアントプローブの設定ではまってしまいました。

 はじめはiptablesが悪さをしているのかと思いましたが、それははずれ。で、設定を色々いじったりしてみたのですが、こんなログが

2007-02-20 13:01:05 Failed to get a message, terminating

表示されるだけ。

 で、色々マニュアル文章を再読してみて、この記述を思い出す。

まず,Hobbitクライアントプローブをすべてのサーバにインストールしてください.bb-hostsにホストの一覧があるので,Hobbitクライアントは自動でホスト名を取得します,しかしbb-hostsとの名前が一致しないこともあります.そのため,クライアント名のデータが現れない場合は,Hobbitクライアントによって使われている名前とbb-hostsの名前が同じかをチェックしてください.詳細はこのFAQアイテムを見てください.

そのリンクの先が英語なのねー、とかださい理由で読んでなかったわけですが、チェックしてみたらあっさり。

The client is using another hostname than what is in the bb-hosts file. Hobbit only cares about the hosts that are in the bb-hosts file, and discards status-reports from unknown hosts. If you check the "hobbitd" column on the webserver display for the Hobbit server, you will see a report about these unknown hosts. Either reconfigure the client to use the same hostname as is in the bb-hosts file, or add a CLIENT:clienthostname tag in the bb-hosts file so Hobbit knows what host matches the client hostname. The Hobbit client can be started with a "--hostname=MYHOSTNAME" option to explicitly define the hostname that the client uses when reporting data to Hobbit.

だそうです。というわけで、クライアントプローブ起動時にbb-hostsで書かれているクライアント名を指定して起動したら、あっさりWebインタフェースにCPU等に関する項目が登場。

 やー、マニュアルはちゃんと読みましょう。

投稿者 ymkx : 2007年2月20日 13:30

ブログランキング ドット ネット