r1 - 08 Jul 2008 - 01:51:00 - Main.yfangYou are here: YWiki >  MyTroubleShooting Web > Ntop升级问题

Ntop 升级到3.3.6后启动失败

问题描述

  • 时间 2008.7.8
  • 环境 CentOS5.2
  • 症状 yum update ntop 升级ntop到3.3.6后
# 执行/etc/init.d/ntop restart报错:
Starting ntop:    Processing file /etc/ntop.conf for parameters...
Tue Jul  8 09:14:03 2008  NOTE: Interface merge enabled by default
Tue Jul  8 09:14:03 2008  Initializing gdbm databases
FATAL ERROR: Unrecognized/unprocessed ntop options...
                                           ,     --user ntop, ,   --db-file-path /var/ntop, ,   --interface eth0,eth1, ,     ,       --use-syslog=local3, ,     ,       --http-server 3000, ,     --https-server 0, ,         --local-subnets 192.168.0.0/21, ,     ,

run ntop --help for usage information

    Common problems:
        -B "filter expressions" (quotes are required)
        --use-syslog=facilty (the = is required)

                                                           [FAILED]

问题原因

  • 自己尝试更改参数未果,终于在ntop的maillist上发现了同样的问题及解决方法
  • 这个问题是Ntop的rpm安装包的bug,问题出现在/etc/init.d/ntop这个脚本上
  • 事实上,因为ntop对参数的解析不向前兼容

解决方案

  • 1. 编辑/etc/init.d/ntop
# 将start()中核心的命令
daemon $prog -d -L @/etc/ntop.conf 
# 改成 
daemon $prog @/etc/ntop.conf -d -L
  • 2. 这样就好了

多说两句

  • 受到这个bug影响的rpm据我所知包括:ntop-3.3.6-1.el5.rf.x86_64.rpm和ntop-3.3.6-1.el5.rf.i386.rpm,其他也可能有类似问题
  • 这次升级之后,Summary->Host 排版混乱的bug好像好了,不过All Protocols -> Traffic / Throughoutput 依然没有解决ntop3.3的老问题,格式被打乱了。

参考

Edit | WYSIWYG | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r1 | More topic actions
 
Powered by YWiki
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding YWiki? Send feedback