Well, no, if it's showing DAG that's what it's running - the constant is hard coded in version.c during the ./configure and compile ...
I wonder if there is a 32 bit library statically linked in there. I don't have a Xeon to run on so I can't tell... The OS is supposed to recognize i386 executables and run them as 32 bit, right? $ objdump /usr/bin/ntop -f /usr/bin/ntop: file format elf32-i386 architecture: i386, flags 0x00000112: EXEC_P, HAS_SYMS, D_PAGED start address 0x08049ab8 My basic recommendation would be to build from the source. That way all the tools and libraries will be Xeon. -----Burton -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mike B Sent: Tuesday, February 08, 2005 12:21 PM To: [email protected] Subject: RE: [Ntop] Ntop locks up when opening configNtop.html Sorry, physical configuration is: Dell 2600 � Dual Xeon (quad virtual) procs with 4GB of RAM. Here�s the configuration text output (I have used RPM to remove ntop and reinstalled with your RPM but it�s still showing Dag, I�m working on that right now) <snip /> � ntop Configuration Basic Information ntop Version.....3.1 (Dag Apt RPM Repository) Configured on.....Jan 3 2005 22:49:28 Built on.....Jan 3 2005 22:51:16 OS.....i686-pc-linux-gnu This version of ntop is.....the CURRENT stable version Next version recheck is.....Wed 23 Feb 2005 12:26:32 PM MST Process Id.....21960 Command line Started as.........ntop -u ntop -w 3000 Resolved to.........ntop -u ntop -w 3000 Preferences used -a | --access-log-file.....(default) (nil) -b | --disable-decoders.....(default) No -c | --sticky-hosts.....(default) No -d | --daemon.....No -e | --max-table-rows.....(default) 128 -f | --traffic-dump-file.....(default) (nil) -g | --track-local-hosts.....(default) Track all hosts -o | --no-mac.....(default) Trust MAC Addresses -i | --interface (effective).....eth0 -j | --create-other-packets.....(default) Disabled -k | --filter-expression-in-extra-frame.....(default) No -l | --pcap-log.....(default) (nil) -m | --local-subnets (effective).....(default) (nil) -n | --numeric-ip-addresses.....(default) No -p | --protocols.....(default) internal list -q | --create-suspicious-packets.....(default) Disabled -r | --refresh-time.....(default) 120 -s | --no-promiscuous.....(default) No -t | --trace-level.....(default) 3 -u | --user.....ntop (uid=103, gid=104) -w | --http-server.....(default) Active, all interfaces, port 3000 -z | --disable-sessions.....(default) No -B | --filter-expression.....(default) none -D | --domain.....ahccisco.local -F | --flow-spec.....(default) none -K | --enable-debug.....(default) No -L | --use-syslog.....daemon -M | --no-interface-merge (effective).....(default) (Merging Interfaces) Yes -N | --wwn-map.....(default) (nil) -O | --pcap-file-path.....(default) /var/ntop -P | --db-file-path.....(default) /var/ntop -Q | --spool-file-path.....(default) /var/ntop -U | --mapper.....(default) (nil) -W | --https-server.....Uninitialized --disable-schedYield.....(default) No --disable-instantsessionpurge.....(default) No --disable-mutexextrainfo.....(default) No --disable-stopcap.....(default) No --fc-only.....(default) No --no-fc.....(default) No --no-invalid-lun.....(default) No --p3p-cp.....(default) none --p3p-uri.....(default) none --pcap-nonblocking.....(default) No --skip-version-check.....(default) No --ssl-watchdog.....(default) No --w3c.....(default) No Run time/Internal Web server URL.....http://any:3000 SSL Web server (https://).....Not Active GDBM version.....This is GDBM version 1.8.0, as of May 19, 1999. OpenSSL Version.....OpenSSL 0.9.7a Feb 19 2003 zlib version.....1.1.4 gd version (guess).....1.8.x Protocol Decoders.....Enabled Fragment Handling.....Enabled Tracking only local hosts.....No # IP Protocols Being Monitored.....19 # Protocol slots.....954 # IP Ports Being Monitored.....174 # IP Ports slots.....348 WebServer Request Queue.....10 Devices (Network Interfaces).....1 Domain name (short).....local IP to country flag table (entries).....52395 Total Hash Collisions (Vendor/Special) (lookup).....0 ntop Web Server Item..................http://...................https://# Handled Requests.....7.....- # Successful requests (200).....6.....- # Bad (We don't want to talk with you) requests.....0.....- # Invalid requests - 403 FORBIDDEN.....0.....- # Invalid requests - 404 NOT FOUND.....0.....- # Handled SIGPIPE Errors.....0 Memory allocation - data segment arena limit, getrlimit(RLIMIT_DATA, ...).....-1 Allocated blocks (ordblks).....1 Allocated (arena).....5114120 Used (uordblks).....5112840 Free (fordblks).....1280 Memory allocation - mmapped Allocated blocks (hblks).....4 Allocated bytes (hblkhd).....2289664 Memory Usage IPX/SAP Hash Size (bytes).....1897 IP to country flag table (bytes).....1614732 (1.5 MB) Bytes per entry.....30.8 IP to AS (Autonomous System) number table (bytes).....0 (0.0 MB) Current memory usage.....7403784 Base memory usage.....5990664 Hosts stored (active+cache).....31 = (31 + 0) (very) Approximate memory per host.....44.6KB Host Memory Cache Limit.....#define MAX_HOSTS_CACHE_LEN 512 Current Size.....0 Maximum Size.....0 # Entries Reused.....0 MAC/IPX Hash tables IPX/SAP Hash Size (entries).....179 IPX/SAP Hash Collisions (load).....0 IPX/SAP Hash Collisions (use).....0 Packets Received.....2111 Processed Immediately.....2111 Queued.....0 Current Queue.....0 Maximum Queue.....0 Host/Session counts - global Purged Hosts.....0 Terminated Sessions.....14 Host/Session counts - Device 0 (eth0) Hash Bucket Size.....1.9 KB Actual Hash Size.....16384 Stored hosts.....31 Bucket List Length.....[min 1][max 2][avg 1.1] Max host lookup.....1 Session Bucket Size.....260 Sessions.....7 Max Num. Sessions.....7 ----- Address Resolution ----- DNS Sniffing (other hosts requests) DNS Packets sniffed.....866 less 'requests'.....433 less 'failed'.....12 less 'reverse dns' (in-addr.arpa).....420 DNS Packets processed.....1 Stored in cache (includes aliases).....1 IP to name - ipaddr2str(): Total calls.....30 ....OK.....0 ....Total not found.....30 ........Not found in cache.....30 ........Too old in cache.....0 Queued - dequeueAddress() Total Queued.....30 Not queued (duplicate).....0 Maximum Queued.....4 Current Queue.....0 Resolved - resolveAddress(): Addresses to resolve.....30 ....less 'Error: No cache database'.....0 ....less 'Found in ntop cache'.....0 Gives: # gethost (DNS lookup) calls.....30 DNS Lookup Calls: DNS resolution attempts.....30 ....Success: Resolved.....18 ....Failed.....12 ........HOST_NOT_FOUND.....12 ........NO_DATA.....0 ........NO_RECOVERY.....0 ........TRY_AGAIN (don't store).....0 ........Other error (don't store).....0 DNS lookups stored in cache.....30 Host addresses kept numeric.....12 Vendor Lookup Table Input lines read.....0 Records added total.....0 .....includes special records.....0 getVendorInfo() calls.....0 getSpecialVendorInfo() calls.....9 Found 48bit (xx:xx:xx:xx:xx:xx) match.....1 Found 24bit (xx:xx:xx) match.....8 Found multicast bit set.....0 Found LAA (Locally assigned address) bit set.....0 Thread counts Active.....8 Dequeue.....1 Children (active).....4 Directory (search) order Data Files...... /usr/share/ntop Config Files...... /etc/ntop /etc Plugins....../plugins /usr/lib/ntop/plugins Compile Time: ./configure ./configure parameters.....--host=i686-pc-linux-gnu --build=i686-pc-linux-gnu --target=i386-redhat-linux --program-prefix= --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/usr/com --mandir=/usr/share/man --infodir=/usr/share/info --program-prefix= --enable-optimize --enable-tcpwrap --enable-largerrdpop --enable-sslv3 --enable-i18n Built on (Host).....i686-pc-linux-gnu Built for(Target).....i386-redhat-linux-gnu compiler (CFLAGS).....gcc -g -O2 -march=i386 -mcpu=i686 -I/usr/local/include -g -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fPIC -DHAVE_CONFIG_H include path.....(nil) system libraries.....-lglib -L/usr/local/lib -lxml2 -lglib -lpthread -lresolv -lnsl -lcrypt -lc -lssl -lcrypto -lpcap -lgdbm -lgd -lpng -lz install path...../usr GNU C (gcc) version.....3.2.2 20030222 (Red Hat Linux 3.2.2-5) (3.2.2) uname data.....sysname(Linux) release(2.4.20-31.9smp) version(#1 SMP Tue Apr 13 17:40:10 EDT 2004) machine(i686) <snip /> CFG_xxxxxx_ENDIAN (Hardware Endian).....little <snip /> ________________________________________ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Burton Strauss Sent: Tuesday, February 08, 2005 11:03 AM To: [email protected] Subject: RE: [Ntop] Ntop locks up when opening configNtop.html Well let's see... � You never told us ANYTHING about your configuration ... � One observation, secs=1167310760 on the sleep() calls (e.g. scanIdleLoop, etc.) is absurd.� If you told ntop to sleep for 37 years, I could guess how it looks like it's locked up... � � Something is wrong with your libraries or some such...�The code is clearly hardcoded to 60s: � void* scanIdleLoop(void* notUsed _UNUSED_) { � traceEvent(CONST_TRACE_INFO, "THREADMGMT: Idle host scan thread running..."); � for(;;) { ��� int i; ��� HEARTBEAT(0, "scanIdleLoop(), sleep(60)...", NULL); ��� sleep(60 /* do not change */); � The ONLY things that comes to mind -� is this perhaps a 64 bit CPU or big endian hardware (i386 is little endian)?� � -----Burton � � <snip /> _______________________________________________ Ntop mailing list [email protected] http://listgateway.unipi.it/mailman/listinfo/ntop
