Chinaunix首页 | 论坛 | 博客
  • 博客访问: 3287808
  • 博文数量: 515
  • 博客积分: 5116
  • 博客等级: 大校
  • 技术积分: 4137
  • 用 户 组: 普通用户
  • 注册时间: 2006-09-30 11:24
个人简介

黑马王子就是我! 技术认证:系统分析师,网络规划设计师,网络工程师,信息系统监理师,系统集成项目管理师,初级程序员,MCSE,MCDBA,CCNA 目前主攻虚拟化技术,VPN,系统架构,集群和高可用性等。

文章分类

全部博文(515)

文章存档

2023年(11)

2022年(17)

2021年(19)

2020年(28)

2019年(42)

2018年(53)

2017年(41)

2016年(33)

2015年(43)

2014年(25)

2013年(13)

2011年(6)

2010年(28)

2009年(47)

2008年(55)

2007年(26)

2006年(28)

分类: 系统运维

2009-04-20 08:45:57

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的老问题,格式被打乱了。

参考

  • ntop邮件列表
阅读(1458) | 评论(1) | 转发(0) |
给主人留下些什么吧!~~

黑马王子2013-11-20 16:17:43

哈哈,想不到这个问题我老早就找到了解决方案啊!