LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-01-2005, 04:08 AM   #1
laurchante
LQ Newbie
 
Registered: Aug 2005
Location: Paris
Distribution: Fedora core 4
Posts: 3

Rep: Reputation: 0
ntop 3.1 fedora core 4


hello,
I installed on will fedora core 4 a ntop 3.1 but I have the following message when I demarre ntop:

ntop @/etc/ntop.conf
Processing file /etc/ntop.conf for parameters...
Mon Aug 1 12:35:54 2005 Initializing gdbm databases
*** buffer overflow detected ***: ntop terminated
======= Backtrace: =========
/lib/libc.so.6(__chk_fail+0x41)[0x82e565]
/usr/lib/libntop-3.1.so(initDevices+0x29d)[0xd1b474]
/usr/lib/libntop-3.1.so(initNtop+0x33e)[0xd11e47]
ntop[0x804aaa5]
/lib/libc.so.6(__libc_start_main+0xc6)[0x764de6]
ntop[0x8049bb1]


can you help me on this subject. thank you
 
Old 08-01-2005, 05:01 AM   #2
fr_laz
Member
 
Registered: Jan 2005
Location: Cork Ireland
Distribution: Debian
Posts: 384

Rep: Reputation: 32
Hi,

did you try passing options directly from the command line instead of using a conf file ?
what does your ntop.conf looks like ?
 
Old 08-01-2005, 05:17 AM   #3
laurchante
LQ Newbie
 
Registered: Aug 2005
Location: Paris
Distribution: Fedora core 4
Posts: 3

Original Poster
Rep: Reputation: 0
thank you for do your answer.
I see that you live in Strasbourg can you continue in French?

if not it is always similar for the order with the options derriere.
my file of conf resembles that:
### You should copy this file to it's normal location, /etc/etc/ntop.conf
### and edit it to fit your needs.
###
### ntop is easily launched with options by referencing this file from
### a command line like this:
###
### ntop @/etc/ntop.conf
###
### Remember, options may also be listed directly on the command line, both
### before and after the @/etc/ntop.conf.
###
### For switches that provide values, e.g. -i, the last one matters.
### For switches just say 'do things', e..g -M, if it's ANYWHERE in the
### commands, it will be set. There's no unset option.
###
### You can use this to your advantage, for example:
### ntop @/etc/ntop.conf -i none
### Overrides the -i in the file.

### Sets the user that ntop runs as.
### NOTE: This should not be root unless you really understand the security risks.
--user root

### Sets the directory that ntop runs from.
--db-file-path /var/ntop

### Interface(s) that ntop will capture on (default: eth0)
--interface eth0,eth1,eth2

### Configures ntop not to trust MAC addrs. This is used when port mirroring or SPAN
#--no-mac

### Logging messages to syslog (instead of the console):
### NOTE: To log to a specific facility, use --use-syslog=local3
### NOTE: The = is REQUIRED and no spaces are permitted.
--use-syslog=local3

### Tells ntop to track only local hosts as specified by the --local-subnets option
#--track-local-hosts

### Sets the port that the HTTP webserver listens on
### NOTE: --http-server 3000 is the default
--http-server 3000

### Sets the port that the optional HTTPS webserver listens on
#--https-server 3001

### Sets the networks that ntop should consider as local.
### NOTE: Uses dotted decimal and CIDR notation. Example: 192.168.0.0/24
### The addresses of the interfaces are always local and don't need to be specified.
--local-subnets xxx.xxx.xxx.xxx/24

### Sets the domain. ntop should be able to determine this automatically.
--domain mondomaine.com

### Sets program to run as a daemon
### NOTE: For more than casual use, you probably want this.
#--daemon
 
Old 08-01-2005, 05:26 AM   #4
fr_laz
Member
 
Registered: Jan 2005
Location: Cork Ireland
Distribution: Debian
Posts: 384

Rep: Reputation: 32
Hi,

I could continue in french, however I'm sure that other LQ users won't even have a look at your problem if we don't post in english...
[as a matter of fact I just moved to ireland last monday, so thanks, i had forgotten to edit my profile]

you use much more options than i ever used with ntop... maybe you should begin with as little options as possible (--interface eth0 --http-server 3000).

i see one anormal thing: the subnet config (xxxx.xxx.xxx.xxx/24 is no subnet ! you should comment this line).

Last edited by fr_laz; 08-01-2005 at 05:29 AM.
 
Old 08-01-2005, 05:37 AM   #5
laurchante
LQ Newbie
 
Registered: Aug 2005
Location: Paris
Distribution: Fedora core 4
Posts: 3

Original Poster
Rep: Reputation: 0
Ok no problem

I have remakes a test by putting in comment all the lines except --user root, --dB-file-path/var/ntop, --interface eth0, --domain mondomaine.com and --HTTP-server 3000 but I have the same error message.
in/var/log/messages I have that:
Aug 1 14:12:02 fw-agence1 ntop[5886]: ntop v.3.1 (Dag Apt RPM Repository) MT (SSL)
Aug 1 14:12:02 fw-agence1 ntop[5886]: Configured on Jul 26 2005 7:39:51, built on Jul 26 2005 07:41:59.
Aug 1 14:12:02 fw-agence1 ntop[5886]: Copyright 1998-2004 by Luca Deri <deri@ntop.org>
Aug 1 14:12:02 fw-agence1 ntop[5886]: Get the freshest ntop from http://www.ntop.org/
Aug 1 14:12:02 fw-agence1 ntop[5886]: Initializing ntop

no error messages
 
Old 08-03-2005, 07:13 PM   #6
RonHyatt
LQ Newbie
 
Registered: Aug 2005
Posts: 2

Rep: Reputation: 0
I am also running FC4 and ntop 3.1. I am getting the same errors as the above poster.
The config file that I am using has just the minimum required.

Can anyone help us?


*** buffer overflow detected ***: ntop terminated
======= Backtrace: =========
/lib/libc.so.6(__chk_fail+0x41)[0x6ac565]
/usr/lib/libntop-3.1.so(initDevices+0x29d)[0x3e6e474]
/usr/lib/libntop-3.1.so(initNtop+0x33e)[0x3e64e47]
ntop[0x804aaa5]
/lib/libc.so.6(__libc_start_main+0xc6)[0x5e2de6]
ntop[0x8049bb1]
======= Memory map: ========
00111000-0011a000 r-xp 00000000 fd:00 65589 /lib/libnss_files-2.3.5.so
0011a000-0011b000 r-xp 00008000 fd:00 65589 /lib/libnss_files-2.3.5.so
0011b000-0011c000 rwxp 00009000 fd:00 65589 /lib/libnss_files-2.3.5.so
0011c000-00125000 r-xp 00000000 fd:00 67044 /lib/libgcc_s-4.0.0-20050520.so.1
00125000-00126000 rwxp 00009000 fd:00 67044 /lib/libgcc_s-4.0.0-20050520.so.1
004ce000-004e0000 r-xp 00000000 fd:00 67051 /lib/libnsl-2.3.5.so
004e0000-004e1000 r-xp 00011000 fd:00 67051 /lib/libnsl-2.3.5.so
004e1000-004e2000 rwxp 00012000 fd:00 67051 /lib/libnsl-2.3.5.so
004e2000-004e4000 rwxp 004e2000 00:00 0
004e7000-004fc000 r-xp 00000000 fd:00 2080600 /usr/X11R6/lib/libXpm.so.4.11
004fc000-004fd000 rwxp 00015000 fd:00 2080600 /usr/X11R6/lib/libXpm.so.4.11
00557000-0057b000 r-xp 00000000 fd:00 2088031 /usr/lib/libpcap.so.0.8.3
0057b000-0057c000 rwxp 00024000 fd:00 2088031 /usr/lib/libpcap.so.0.8.3
005ac000-005c6000 r-xp 00000000 fd:00 67039 /lib/ld-2.3.5.so
005c6000-005c7000 r-xp 00019000 fd:00 67039 /lib/ld-2.3.5.so
005c7000-005c8000 rwxp 0001a000 fd:00 67039 /lib/ld-2.3.5.so
005ce000-006f2000 r-xp 00000000 fd:00 67040 /lib/libc-2.3.5.so
006f2000-006f4000 r-xp 00124000 fd:00 67040 /lib/libc-2.3.5.so
006f4000-006f6000 rwxp 00126000 fd:00 67040 /lib/libc-2.3.5.so
006f6000-006f8000 rwxp 006f6000 00:00 0
006fa000-0071c000 r-xp 00000000 fd:00 67041 /lib/libm-2.3.5.so
0071c000-0071d000 r-xp 00021000 fd:00 67041 /lib/libm-2.3.5.so
0071d000-0071e000 rwxp 00022000 fd:00 67041 /lib/libm-2.3.5.so
00720000-00722000 r-xp 00000000 fd:00 67042 /lib/libdl-2.3.5.so
00722000-00723000 r-xp 00001000 fd:00 67042 /lib/libdl-2.3.5.so
00723000-00724000 rwxp 00002000 fd:00 67042 /lib/libdl-2.3.5.so
00726000-00738000 r-xp 00000000 fd:00 2087935 /usr/lib/libz.so.1.2.2.2
00738000-00739000 rwxp 00011000 fd:00 2087935 /usr/lib/libz.so.1.2.2.2
0073b000-0080b000 r-xp 00000000 fd:00 2087938 /usr/X11R6/lib/libX11.so.6.2
0080b000-0080f000 rwxp 000cf000 fd:00 2087938 /usr/X11R6/lib/libX11.so.6.2
00811000-0081f000 r-xp 00000000 fd:00 67043 /lib/libpthread-2.3.5.so
0081f000-00820000 r-xp 0000d000 fd:00 67043 /lib/libpthread-2.3.5.so
00820000-00821000 rwxp 0000e000 fd:00 67043 /lib/libpthread-2.3.5.so
00821000-00823000 rwxp 00821000 00:00 0
00825000-00833000 r-xp 00000000 fd:00 2087939 /usr/X11R6/lib/libXext.so.6.4
00833000-00834000 rwxp 0000e000 fd:00 2087939 /usr/X11R6/lib/libXext.so.6.4
00836000-0083c000 r-xp 00000000 fd:00 2073648 /usr/lib/libgdbm.so.2.0.0
0083c000-0083d000 rwxp 00005000 fd:00 2073648 /usr/lib/libgdbm.so.2.0.0
0085d000-0087a000 r-xp 00000000 fd:00 2087945 /usr/lib/libexpat.so.0.5.0
0087a000-0087c000 rwxp 0001c000 fd:00 2087945 /usr/lib/libexpat.so.0.5.0
0087e000-0088d000 r-xp 00000000 fd:00 67045 /lib/libresolv-2.3.5.so
0088d000-0088e000 r-xp 0000e000 fd:00 67045 /lib/libresolv-2.3.5.so
0088e000-0088f000 rwxp 0000f000 fd:00 67045 /lib/libresolv-2.3.5.so
0088f000-00891000 rwxp 0088f000 00:00 0
00893000-008f4000 r-xp 00000000 fd:00 2087944 /usr/lib/libfreetype.so.6.3.7
008f4000-008fb000 rwxp 00061000 fd:00 2087944 /usr/lib/libfreetype.so.6.3.7
008fd000-00923000 r-xp 00000000 fd:00 2087946 /usr/lib/libfontconfig.so.1.0.4
00923000-00926000 rwxp 00026000 fd:00 2087946 /usr/lib/libfontconfig.so.1.0.4
00926000-00927000 rwxp 00926000 00:00 0
00929000-0094b000 r-xp 00000000 fd:00 2081594 /usr/lib/libglib-1.2.so.0.0.100094b000-0094d000 rwxp 00021000 fd:00 2081594 /usr/lib/libglib-1.2.so.0.0.100094f000-0096d000 r-xp 00000000 fd:00 2075964 /usr/lib/libgd.so.2.0.0
0096d000-0098d000 rwxp 0001d000 fd:00 2075964 /usr/lib/libgd.so.2.0.0
0098d000-009a1000 rwxp 0098d000 00:00 0
009a3000-009b8000 r-xp 00000000 fd:00 2073161 /usr/lib/libmyrrd-3.1.so
009b8000-009eb000 rwxp 00014000 fd:00 2073161 /usr/lib/libmyrrd-3.1.so
009ed000-00a82000 r-xp 00000000 fd:00 2070867 /usr/lib/libntopreport-3.1.so
00a82000-00a83000 rwxp 00095000 fd:00 2070867 /usr/lib/libntopreport-3.1.so
00a83000-00a84000 rwxp 00a83000 00:00 0
00ae1000-00aff000 r-xp 00000000 fd:00 2087936 /usr/lib/libjpeg.so.62.0.0
00aff000-00b00000 rwxp 0001d000 fd:00 2087936 /usr/lib/libjpeg.so.62.0.0
00b5e000-00b60000 r-xp 00000000 fd:00 67048 /lib/libcom_err.so.2.1
00b60000-00b61000 rwxp 00001000 fd:00 67048 /lib/libcom_err.so.2.1
00b63000-00bd2000 r-xp 00000000 fd:00 2087955 /usr/lib/libkrb5.so.3.2
00bd2000-00bd5000 rwxp 0006e000 fd:00 2087955 /usr/lib/libkrb5.so.3.2
00bd7000-00bfa000 r-xp 00000000 fd:00 2087954 /usr/lib/libk5crypto.so.3.0
00bfa000-00bfb000 rwxp 00023000 fd:00 2087954 /usr/lib/libk5crypto.so.3.0
00bfd000-00bff000 r-xp 00000000 fd:00 2077758 /usr/lib/libkrb5support.so.0.000bff000-00c00000 rwxp 00001000 fd:00 2077758 /usr/lib/libkrb5support.so.0.000c02000-00cfa000 r-xp 00000000 fd:00 67049 /lib/libcrypto.so.0.9.7f
00cfa000-00d0c000 rwxp 000f8000 fd:00 67049 /lib/libcrypto.so.0.9.7f
00d0c000-00d0f000 rwxp 00d0c000 00:00 0
00d11000-00d27000 r-xp 00000000 fd:00 2087956 /usr/lib/libgssapi_krb5.so.2.200d27000-00d28000 rwxp 00016000 fd:00 2087956 /usr/lib/libgssapi_krb5.so.2.200d2a000-00d4d000 r-xp 00000000 fd:00 2073796 /usr/lib/libpng12.so.0.1.2.8
00d4d000-00d4e000 rwxp 00023000 fd:00 2073796 /usr/lib/libpng12.so.0.1.2.8
00d50000-00d85000 r-xp 00000000 fd:00 67050 /lib/libssl.so.0.9.7f
00d85000-00d88000 rwxp 00035000 fd:00 67050 /lib/libssl.so.0.9.7f
00db2000-00db3000 r-xp 00db2000 00:00 0
03e27000-03e2c000 r-xp 00000000 fd:00 67052 /lib/libcrypt-2.3.5.so
03e2c000-03e2d000 r-xp 00004000 fd:00 67052 /lib/libcrypt-2.3.5.so
03e2d000-03e2e000 rwxp 00005000 fd:00 67052 /lib/libcrypt-2.3.5.so
03e2e000-03e55000 rwxp 03e2e000 00:00 0
03e57000-03ea7000 r-xp 00000000 fd:00 2071042 /usr/lib/libntop-3.1.so
03ea7000-03ea9000 rwxp 0004f000 fd:00 2071042 /usr/lib/libntop-3.1.so
03ea9000-04ecc000 rwxp 03ea9000 00:00 0
08048000-08057000 r-xp 00000000 fd:00 2087916 /usr/bin/ntop
08057000-0805a000 rw-p 0000e000 fd:00 2087916 /usr/bin/ntop
09afb000-09b80000 rw-p 09afb000 00:00 0 [heap]
b7ef3000-b7f3b000 rw-p b7ef3000 00:00 0
b7f5e000-b7f60000 rw-p b7f5e000 00:00 0
bfd4b000-bfd60000 rw-p bfd4b000 00:00 0 [stack]
Aborted
 
Old 08-04-2005, 11:18 AM   #7
fr_laz
Member
 
Registered: Jan 2005
Location: Cork Ireland
Distribution: Debian
Posts: 384

Rep: Reputation: 32
Hi,

to laurchante: it works now, doesn't it? I mean, you can access the webpage at http(s)://127.0.0.1:3000/, no?

to RonHyatt: could you post your conf file plz?
 
Old 08-04-2005, 12:29 PM   #8
RonHyatt
LQ Newbie
 
Registered: Aug 2005
Posts: 2

Rep: Reputation: 0
Here is my ntop.conf file

### You should copy this file to it's normal location, /etc/etc/ntop.conf
### and edit it to fit your needs.
###
### ntop is easily launched with options by referencing this file from
### a command line like this:
###
### ntop @/etc/ntop.conf
###
### Remember, options may also be listed directly on the command line, both
### before and after the @/etc/ntop.conf.
###
### For switches that provide values, e.g. -i, the last one matters.
### For switches just say 'do things', e..g -M, if it's ANYWHERE in the
### commands, it will be set. There's no unset option.
###
### You can use this to your advantage, for example:
### ntop @/etc/ntop.conf -i none
### Overrides the -i in the file.

### Sets the user that ntop runs as.
### NOTE: This should not be root unless you really understand the security risks.
--user ntop

### Sets the directory that ntop runs from.
--db-file-path /var/ntop

### Interface(s) that ntop will capture on (default: eth0)
--interface eth0

### Configures ntop not to trust MAC addrs. This is used when port mirroring or SPAN
#--no-mac

### Logging messages to syslog (instead of the console):
### NOTE: To log to a specific facility, use --use-syslog=local3
### NOTE: The = is REQUIRED and no spaces are permitted.
--use-syslog

### Tells ntop to track only local hosts as specified by the --local-subnets option
--track-local-hosts

### Sets the port that the HTTP webserver listens on
### NOTE: --http-server 3000 is the default
--http-server 3000

### Sets the port that the optional HTTPS webserver listens on
#--https-server 3001

### Sets the networks that ntop should consider as local.
### NOTE: Uses dotted decimal and CIDR notation. Example: 192.168.0.0/24
### The addresses of the interfaces are always local and don't need to be specified.
--local-subnets 192.168.200.0/24

### Sets the domain. ntop should be able to determine this automatically.
--domain wmubu.org

### Sets program to run as a daemon
### NOTE: For more than casual use, you probably want this.
--daemon





Any ideas?
Should I ditch the idea of running ntop on FC4 and try it on FC3?

Any help would be greatly appreciated.

Thanks
 
Old 08-06-2005, 08:27 AM   #9
Barolo
LQ Newbie
 
Registered: Jul 2005
Location: London
Distribution: Fedora Core 4
Posts: 1

Rep: Reputation: 0
Same problem here.
I had ntop running on Feddore core 1.
When I reinstalled Fedora core 4 and installed ntop,
and do "/etc/init.d/ntop start" I get:

=======================================================================

[root@freisa init.d]# ./ntop start
Starting ntop: Processing file /etc/ntop.conf for parameters...
Sat Aug 6 14:23:13 2005 Initializing gdbm databases
*** buffer overflow detected ***: ntop terminated
======= Backtrace: =========
/lib/libc.so.6(__chk_fail+0x41)[0x3ea565]
/usr/lib/libntop-3.1.so(initDevices+0x29d)[0x51ce474]
/usr/lib/libntop-3.1.so(initNtop+0x33e)[0x51c4e47]
ntop[0x804aaa5]
/lib/libc.so.6(__libc_start_main+0xc6)[0x320de6]
ntop[0x8049bb1]
======= Memory map: ========
00111000-00116000 r-xp 00000000 03:02 4571943 /lib/libcrypt-2.3.5.so
00116000-00117000 r-xp 00004000 03:02 4571943 /lib/libcrypt-2.3.5.so
00117000-00118000 rwxp 00005000 03:02 4571943 /lib/libcrypt-2.3.5.so
00118000-0013f000 rwxp 00118000 00:00 0

etc etc

00763000-00764000 rwxp 00015000 03:02 516377 /usr/X11R6/lib/libXpm.so.4.11
00794000-007b2000 r-xp 00000000 03:02 505620 /usr/lib/libjpeg.so.62.0.0
007b2000-007b3000 rwxp 0001d000 03:02 505620 /usr/lib/libjAborted

===========================================================
I get the above error with a /etc/ntop.conf as below (all comments deleted) and with a config file with everything commented out.

--user ntop
--db-file-path /var/ntop
--interface eth0
--local-subnets 169.254.1.0/24


/var/ntop has owner root owner and group ntop.
Contents of /var/ntop have ntop owner and group root.

Any help would be most appreciated. Thanks
 
Old 08-07-2005, 08:39 PM   #10
btrigger
LQ Newbie
 
Registered: Aug 2005
Posts: 1

Rep: Reputation: 0
Hi all,

I had the same problem. I found success using the latest ntop from CVS. Download that, compile and install and you should be right.

head over to the thread running in the ntop-devel mailing list for more info:

http://listgateway.unipi.it/pipermai...st/005629.html


Happy Ntoping,

Ben
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Fedora Core 4 x86_64 on a Shuttle XPC SN25P with an AMD 64 X2 (Dual core) gwiesenekker Linux - Hardware 4 12-06-2005 11:53 PM
Severe problems with Fedora Core 1 and Fedora Core 2 installatiom TheOneKEA Fedora - Installation 2 07-14-2004 02:12 PM
Upgrading via Internet Fedora Core 1 to Fedora Core 2 cdean Linux - Newbie 2 05-30-2004 11:14 PM
Fedora Core 2 - Just days away! Final comments on Fedora Core 1 lrt2003 Fedora 3 05-12-2004 02:09 AM
Will Fedora Core 1 RPMs still be compatable with Fedora Core 2? yarjar Linux - Software 1 05-02-2004 01:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:14 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration