以前、Darkstatについて記事を書きましたが
もう少しいろいろ詳しくみたいのでntopを導入してみました。
ところが、RPMForgeから導入したところ、以下のエラーにより、serviceとしてうまく立ち上がらない・・・。
※バージョンは「3.3.8-1.el5.rf」
# service ntop restart
ntop を停止中: [失敗]
ntop を起動中: Processing file /etc/ntop.conf for parameters…
Sat Oct 18 23:54:28 2008 NOTE: Interface merge enabled by default
Sat Oct 18 23:54:28 2008 Initializing gdbm databases
FATAL ERROR: Unrecognized/unprocessed ntop options…
, –user ntop, , –db-file-path /var/ntop, , , , , , , –https-server 3000, , , ,run ntop –help for usage information
Common problems:
-B “filter expressions” (quotes are required)
–use-syslog=facilty (the = is required)
いろいろ調べたところ、RPMForgeにあるntopは起動スクリプトが古い(?)らしいです。
詳細は以下を参照してください。
[Ntop] Yum update on CentOS 5.1 breaks ntop
でまぁ、早い話が、起動スクリプト(/etc/init.d/ntop)を以下のように書き換えるとOKです。
start()内の
daemon $prog -d -L @/etc/ntop.conf
を
daemon $prog @/etc/ntop.conf -d -L
にする。
うーん。動いたけどなんだか納得いかない気が・・・・。
まぁとりあえず、使い心地はいいですね。
グラフもきれいだし、プロトコルごとに細かく分けて表示してくれるので。
ではでは。またの機会に。