2012年9月15日土曜日

mongoDBのログ可視化。



ここの一番上のEddaってのを使ってみた。
https://github.com/10gen-labs/edda

pip導入


git clone https://github.com/pypa/pip.git
cd pip
sudo python setup.py install (python3は未サポート)

モジュールがないって言われたら、easy_install

pipでeddaをインストール


pip install edda

eddaをrun


python edda/run_edda.py ログファイル名を列挙。

ここで、python2.6だとformatどうたらエラーがでる。
エラーのところで{}を{0}に書き換えて実行。

URLが出てくるので、ブラウザでアクセス。




2012年9月2日日曜日

sshでssh_exchange_identification: Connection closed by remote host



いつも通りsshでサーバーに接続しようとすると、
ssh_exchange_identification: Connection closed by remote host

ググってみると、hosts.denyやhosts.allowの設定話がでてきますが、関係なし。

sshdを再起動してみると、以下のメッセージが。
Starting sshd:/var/empty/sshd must be owned by root and not group or world-writable.

/var/empty/sshd になぜか書き込み権限があったので、パーミッションを変更して、再起動。でokでした。