Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: NTop: Users

Yum update on CentOS 5.1 breaks ntop

 

 

NTop users RSS feed   Index | Next | Previous | View Threaded


tgh at tgharold

Jun 18, 2008, 3:02 AM

Post #1 of 2 (3300 views)
Permalink
Yum update on CentOS 5.1 breaks ntop

Found a possibly curious issue when I did a "yum update" on my CentOS
5.1 box this past week. I'm not 100% sure what version I had prior (I
think it was "ntop-3.3-1.el5.rf.x86_64" from Jan 2008), but the new
version is "ntop-3.3.6-1.el5.rf.x86_64".

The error lies in the init.d script used to start/stop ntop on
CentOS/RedHat systems. I believe this script is created by RedHat, not
the ntop maintainers, but it possibly highlights an error in the new
version.

For the older version, the following line works properly (this appears
in the start() method inside the /etc/init.d/ntop file):

daemon $prog -d -L @/etc/ntop.conf

But with the new version, the above line causes ntop to fail during the
initial parse of the ntop.conf file as it complains about arguments.
But if we move the @ argument to the front of the list, the new version
of ntop runs without issues.

daemon $prog @/etc/ntop.conf -d -L

The failure message when ntop dies during startup due to the @ option
being at the end of the list of arguments looks like:

--------------------------------------------

# /etc/init.d/ntop start
Starting ntop: Processing file /etc/ntop.conf for parameters...
Tue Jun 17 10:57:03 2008 NOTE: Interface merge enabled by default
Tue Jun 17 10:57:03 2008 Initializing gdbm databases
FATAL ERROR: Unrecognized/unprocessed ntop options...
, --user ntop, ,
--db-file-path /var/ntop, , --interface eth0, , ,
--use-syslog, , , , , , , --daemon,

run ntop --help for usage information

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

[FAILED]

--------------------------------------------

_______________________________________________
Ntop mailing list
Ntop [at] unipi
http://listgateway.unipi.it/mailman/listinfo/ntop


deri at ntop

Jun 20, 2008, 1:54 AM

Post #2 of 2 (3226 views)
Permalink
Re: Yum update on CentOS 5.1 breaks ntop [In reply to]

Thomas
can you please post your /etc/ntop.conf

Thanks Luca

On Jun 18, 2008, at 12:02 PM, Thomas Harold wrote:

> Found a possibly curious issue when I did a "yum update" on my CentOS
> 5.1 box this past week. I'm not 100% sure what version I had prior (I
> think it was "ntop-3.3-1.el5.rf.x86_64" from Jan 2008), but the new
> version is "ntop-3.3.6-1.el5.rf.x86_64".
>
> The error lies in the init.d script used to start/stop ntop on
> CentOS/RedHat systems. I believe this script is created by RedHat,
> not
> the ntop maintainers, but it possibly highlights an error in the new
> version.
>
> For the older version, the following line works properly (this appears
> in the start() method inside the /etc/init.d/ntop file):
>
> daemon $prog -d -L @/etc/ntop.conf
>
> But with the new version, the above line causes ntop to fail during
> the
> initial parse of the ntop.conf file as it complains about arguments.
> But if we move the @ argument to the front of the list, the new
> version
> of ntop runs without issues.
>
> daemon $prog @/etc/ntop.conf -d -L
>
> The failure message when ntop dies during startup due to the @ option
> being at the end of the list of arguments looks like:
>
> --------------------------------------------
>
> # /etc/init.d/ntop start
> Starting ntop: Processing file /etc/ntop.conf for parameters...
> Tue Jun 17 10:57:03 2008 NOTE: Interface merge enabled by default
> Tue Jun 17 10:57:03 2008 Initializing gdbm databases
> FATAL ERROR: Unrecognized/unprocessed ntop options...
> , --user ntop, ,
> --db-file-path /var/ntop, , --interface eth0, , ,
> --use-syslog, , , , , , , --daemon,
>
> run ntop --help for usage information
>
> Common problems:
> -B "filter expressions" (quotes are required)
> --use-syslog=facilty (the = is required)
>
> [FAILED]
>
> --------------------------------------------
>
> _______________________________________________
> Ntop mailing list
> Ntop [at] unipi
> http://listgateway.unipi.it/mailman/listinfo/ntop

_______________________________________________
Ntop mailing list
Ntop [at] unipi
http://listgateway.unipi.it/mailman/listinfo/ntop

NTop users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.