Please disregard my last email. I jumped the gun and didn't start ntop correctly. Here it is starting and working. The web interface works fine too. David, yes, I am also getting the WARNINGS about the plugins. naiad:~ $ sudo ntop -i en1 Thu Mar 20 16:48:27 2008 NOTE: Interface merge enabled by default Thu Mar 20 16:48:27 2008 Initializing gdbm databases Thu Mar 20 16:48:27 2008 ntop will be started as user nobody Thu Mar 20 16:48:27 2008 ntop v.3.3 Thu Mar 20 16:48:27 2008 Configured on Mar 20 2008 10:43:02, built on Mar 20 2008 10:43:41. Thu Mar 20 16:48:27 2008 Copyright 1998-2007 by Luca Deri <deri@ntop.org
Thu Mar 20 16:48:27 2008 Get the freshest ntop from http://www.ntop.org/ Thu Mar 20 16:48:27 2008 NOTE: ntop is running from '/opt/local/bin' Thu Mar 20 16:48:27 2008 NOTE: (but see warning on man page for the -- instance parameter) Thu Mar 20 16:48:27 2008 NOTE: ntop libraries are in '/opt/local/lib' Thu Mar 20 16:48:27 2008 Initializing ntop Thu Mar 20 16:48:27 2008 Checking en1 for additional devices Thu Mar 20 16:48:27 2008 Resetting traffic statistics for device en1 Thu Mar 20 16:48:27 2008 Initializing device en1 (0) Thu Mar 20 16:48:27 2008 DLT: Device 0 [en1] is 1, mtu 1514, header 14 Thu Mar 20 16:48:27 2008 Initializing gdbm databases Thu Mar 20 16:48:27 2008 VENDOR: Loading MAC address table. Thu Mar 20 16:48:27 2008 VENDOR: Checking for MAC address table file Thu Mar 20 16:48:27 2008 VENDOR: File '/opt/local/etc/ntop/ specialMAC.txt.gz' does not need to be reloaded Thu Mar 20 16:48:27 2008 VENDOR: ntop continues ok Thu Mar 20 16:48:27 2008 VENDOR: Checking for MAC address table file Thu Mar 20 16:48:27 2008 VENDOR: File '/opt/local/etc/ntop/ oui.txt.gz' does not need to be reloaded Thu Mar 20 16:48:27 2008 VENDOR: ntop continues ok Thu Mar 20 16:48:27 2008 Fingerprint: Loading signature file Thu Mar 20 16:48:27 2008 Fingerprint: Checking for Fingerprint file... file Thu Mar 20 16:48:27 2008 Fingerprint: Loading file '/opt/local/etc/ ntop/etter.finger.os.gz' Thu Mar 20 16:48:27 2008 Fingerprint: ...loaded 1765 records Thu Mar 20 16:48:27 2008 ASN: Checking for Autonomous System Number table file Thu Mar 20 16:48:27 2008 ASN: Loading file '/opt/local/etc/ntop/AS- list.txt.gz' Thu Mar 20 16:48:27 2008 ASN: ...found 111435 lines Thu Mar 20 16:48:27 2008 ASN: ....Used 3780 KB of memory (12 per entry) Thu Mar 20 16:48:27 2008 I18N: This instance of ntop does not support multiple languages Thu Mar 20 16:48:27 2008 IP2CC: Checking for IP address <-> Country Code mapping file Thu Mar 20 16:48:27 2008 IP2CC: Loading file '/opt/local/etc/ntop/ p2c.opt.table.gz' Thu Mar 20 16:48:28 2008 IP2CC: ...found 52395 lines Thu Mar 20 16:48:28 2008 Database support not compiled into ntop Thu Mar 20 16:48:28 2008 Initializing external applications Thu Mar 20 16:48:28 2008 THREADMGMT[t2953318400]: NPA: Started thread for network packet analyzer (en1) Thu Mar 20 16:48:28 2008 THREADMGMT[t2953850880]: SFP: Started thread for fingerprinting Thu Mar 20 16:48:28 2008 THREADMGMT[t2954383360]: SIH: Started thread for idle hosts detection Thu Mar 20 16:48:28 2008 THREADMGMT[t2954915840]: DNSAR(1): Started thread for DNS address resolution Thu Mar 20 16:48:28 2008 THREADMGMT[t2955448320]: DNSAR(2): Started thread for DNS address resolution Thu Mar 20 16:48:28 2008 THREADMGMT[t2955980800]: DNSAR(3): Started thread for DNS address resolution Thu Mar 20 16:48:28 2008 Calling plugin start functions (if any) Thu Mar 20 16:48:28 2008 THREADMGMT[t2953318400]: NPA: network packet analyzer (packet processor) thread running [p39612] Thu Mar 20 16:48:28 2008 THREADMGMT[t2954383360]: SIH: Idle host scan thread starting [p39612] Thu Mar 20 16:48:28 2008 THREADMGMT[t2954915840]: DNSAR(1): Address resolution thread running Thu Mar 20 16:48:28 2008 THREADMGMT[t2953850880]: SFP: Fingerprint scan thread starting [p39612] Thu Mar 20 16:48:28 2008 THREADMGMT[t2955980800]: DNSAR(3): Address resolution thread running Thu Mar 20 16:48:28 2008 THREADMGMT[t2955448320]: DNSAR(2): Address resolution thread running Thu Mar 20 16:48:28 2008 SSL is present but https is disabled: use -W <https port> for enabling it Thu Mar 20 16:48:28 2008 INITWEB: Initializing web server ntop startup - waiting for user response! Please enter the password for the admin user: Please enter the password again: Thu Mar 20 16:48:35 2008 Admin user password has been set Thu Mar 20 16:48:35 2008 INITWEB: Initializing TCP/IP socket connections for web server Thu Mar 20 16:48:35 2008 INITWEB: Initialized socket, port 3000, address (any) Thu Mar 20 16:48:35 2008 INITWEB: Waiting for HTTP connections on port 3000 Thu Mar 20 16:48:35 2008 INITWEB: Starting web server Thu Mar 20 16:48:35 2008 THREADMGMT[t2956513280]: INITWEB: Started thread for web server Thu Mar 20 16:48:35 2008 Listening on [en1] Thu Mar 20 16:48:35 2008 Loading Plugins Thu Mar 20 16:48:35 2008 Searching for plugins in /opt/local/lib/ntop/ plugins Thu Mar 20 16:48:35 2008 THREADMGMT[t2956513280]: WEB: Server connection thread starting [p39612] Thu Mar 20 16:48:35 2008 Note: SIGPIPE handler set (ignore) Thu Mar 20 16:48:35 2008 THREADMGMT[t2956513280]: WEB: Server connection thread running [p39612] Thu Mar 20 16:48:35 2008 WEB: ntop's web server is now processing requests Thu Mar 20 16:48:35 2008 **WARNING** Unable to locate plugin '/opt/ local/lib/ntop/plugins/icmpPlugin.so' entry function [symbol not found] Thu Mar 20 16:48:35 2008 **WARNING** Unable to locate plugin '/opt/ local/lib/ntop/plugins/lastSeenPlugin.so' entry function [symbol not found] Thu Mar 20 16:48:35 2008 **WARNING** Unable to locate plugin '/opt/ local/lib/ntop/plugins/netflowPlugin.so' entry function [symbol not found] Thu Mar 20 16:48:35 2008 **WARNING** Unable to locate plugin '/opt/ local/lib/ntop/plugins/pdaPlugin.so' entry function [symbol not found] Thu Mar 20 16:48:35 2008 **WARNING** Unable to locate plugin '/opt/ local/lib/ntop/plugins/remotePlugin.so' entry function [symbol not found] Thu Mar 20 16:48:35 2008 **WARNING** Unable to locate plugin '/opt/ local/lib/ntop/plugins/rrdPlugin.so' entry function [symbol not found] Thu Mar 20 16:48:35 2008 **WARNING** Unable to locate plugin '/opt/ local/lib/ntop/plugins/sflowPlugin.so' entry function [symbol not found] Thu Mar 20 16:48:35 2008 Calling plugin start functions (if any) Thu Mar 20 16:48:35 2008 INIT: Created pid file (/var/run/ntop.pid) Thu Mar 20 16:48:35 2008 THREADMGMT[t2693840800]: ntop RUNSTATE: INITNONROOT(3) Thu Mar 20 16:48:35 2008 Now running as requested user 'nobody' (-2:-2) Thu Mar 20 16:48:35 2008 Note: Reporting device initally set to 0 [en1] (merged) Thu Mar 20 16:48:35 2008 THREADMGMT[t2693840800]: ntop RUNSTATE: RUN(4) Thu Mar 20 16:48:35 2008 THREADMGMT[t2957045760]: NPS(1): Started thread for network packet sniffing [en1] Thu Mar 20 16:48:35 2008 THREADMGMT[t2953850880]: SFP: Fingerprint scan thread running [p39612] Thu Mar 20 16:48:35 2008 THREADMGMT[t2954383360]: SIH: Idle host scan thread running [p39612] Thu Mar 20 16:48:35 2008 THREADMGMT[t2957045760]: NPS(en1): pcapDispatch thread starting [p39612] Thu Mar 20 16:48:35 2008 THREADMGMT[t2957045760]: NPS(en1): pcapDispatch thread running [p39612] Thu Mar 20 16:48:39 2008 NOTE: -L | --use-syslog=facility not specified, child processes will log to the default (24). On Mar 20, 2008, at 4:43 PM, Shawn Protsman wrote:
Perhaps I spoke too soon?
naiad:~ $ ntop -P /opt/local/var/ntop Thu Mar 20 16:38:48 2008 NOTE: Interface merge enabled by default Thu Mar 20 16:38:48 2008 Initializing gdbm databases Thu Mar 20 16:38:48 2008 **ERROR** ....open of /opt/local/var/ntop/ prefsCache.db failed: File open error Thu Mar 20 16:38:48 2008 Possible solution: please use '-P <directory>' Thu Mar 20 16:38:48 2008 **FATAL_ERROR** GDBM open failed, ntop shutting down... Thu Mar 20 16:38:48 2008 CLEANUP[t2693840800]: ntop caught signal 2 Thu Mar 20 16:38:48 2008 THREADMGMT[t2693840800]: ntop RUNSTATE: SHUTDOWN(7) Thu Mar 20 16:38:48 2008 CLEANUP[t2693840800] catching thread is unknown Thu Mar 20 16:38:48 2008 CLEANUP: Running threads Thu Mar 20 16:38:48 2008 CLEANUP: Locking purge mutex (may block for a little while) Thu Mar 20 16:38:48 2008 CLEANUP: Locked purge mutex, continuing shutdown Thu Mar 20 16:38:48 2008 CLEANUP: Continues Thu Mar 20 16:38:48 2008 PLUGIN_TERM: Unloading plugins (if any) Thu Mar 20 16:38:48 2008 CLEANUP: Clean up complete Thu Mar 20 16:38:48 2008 THREADMGMT[t2693840800]: ntop RUNSTATE: TERM(8) Thu Mar 20 16:38:48 2008 =================================== Thu Mar 20 16:38:48 2008 ntop is shutdown... Thu Mar 20 16:38:48 2008 ===================================
naiad:/opt/local/var/ntop $ port installed gdbm The following ports are currently installed: gdbm @1.8.3_1 (active)
naiad:/opt/local/var/ntop $ ll /opt/local/var/ntop total 0 -rw-r--r-- 2 nobody admin 0B Mar 20 10:44 addressQueue.db -rw-r--r-- 2 nobody admin 0B Mar 20 10:44 dnsCache.db -rw-r--r-- 2 nobody admin 0B Mar 20 10:44 macPrefix.db -rw-r--r-- 2 nobody admin 0B Mar 20 10:44 ntop_pw.db -rw-r--r-- 2 nobody admin 0B Mar 20 10:44 prefsCache.db drwxr-xr-x 3 nobody admin 102B Mar 20 10:44 rrd/
Hmm…
--Shawn
On Mar 20, 2008, at 4:25 PM, David L Ballenger wrote:
Does ntop run cleanly for you?
I did:
$ sudo port selfupdate $ sudo port install ntop
Ntop seemed to install cleanly, but when I try to run it, it can't find it's plugins:
Thu Mar 20 16:19:16 2008 Loading Plugins Thu Mar 20 16:19:16 2008 Searching for plugins in /opt/local/lib/ ntop/plugins Thu Mar 20 16:19:16 2008 **WARNING** Unable to locate plugin '/opt/ local/lib/ntop/plugins/icmpPlugin.so' entry function [symbol not found] Thu Mar 20 16:19:16 2008 **WARNING** Unable to locate plugin '/opt/ local/lib/ntop/plugins/lastSeenPlugin.so' entry function [symbol not found] Thu Mar 20 16:19:16 2008 **WARNING** Unable to locate plugin '/opt/ local/lib/ntop/plugins/netflowPlugin.so' entry function [symbol not found] Thu Mar 20 16:19:16 2008 **WARNING** Unable to locate plugin '/opt/ local/lib/ntop/plugins/pdaPlugin.so' entry function [symbol not found] Thu Mar 20 16:19:16 2008 **WARNING** Unable to locate plugin '/opt/ local/lib/ntop/plugins/remotePlugin.so' entry function [symbol not found] Thu Mar 20 16:19:16 2008 **WARNING** Unable to locate plugin '/opt/ local/lib/ntop/plugins/rrdPlugin.so' entry function [symbol not found] Thu Mar 20 16:19:16 2008 **WARNING** Unable to locate plugin '/opt/ local/lib/ntop/plugins/sflowPlugin.so' entry function [symbol not found]
After the errors ntop keeps running but I suspect with reduced functionality. But when I try to connect to its webserver, ntop crashes with the following errors:
dyld: lazy symbol binding failed: Symbol not found: ___sprintf_chk $LDBLStub Referenced from: /opt/local/lib/libntopreport-3.3.dylib Expected in: dynamic lookup
dyld: Symbol not found: ___sprintf_chk$LDBLStub Referenced from: /opt/local/lib/libntopreport-3.3.dylib Expected in: dynamic lookup
Trace/BPT trap
Anyone else trying to us ntop have this problem? I'm running OSX 10.5.2 on a PowerPC G5.
Thanks - David On Mar 20, 2008, at 12:35 PM, Alex Zavatone wrote:
Yay.
ntop is compiled and happy.
Thanks all.
On Mar 20, 2008, at 2:13 PM, Shawn Protsman wrote:
Alex,
Two steps:
$ sudo port selfupdate $ sudo port install ntop
--Shawn
On Mar 20, 2008, at 12:10 PM, Alex Zavatone wrote:
Could you detail how to do this? I'm not well schooled in the install/build process and have been holding off on getting ntop compiled because of all the problems mentioned.
Thanks, - Alex On Mar 20, 2008, at 12:49 PM, Shawn Protsman wrote:
Excellent! I ran selfupdate and then installed the ntop port. Thanks guys!
--Shawn
On Mar 19, 2008, at 11:04 PM, markd@macports.org wrote:
> Someone just proposed a fix for the port here: > http://trac.macosforge.org/projects/macports/ticket/13610 > > Can someone verify or comment on this fix? Ihaven't had time to > look at > it.
_______________________________________________ macports-users mailing list macports-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macports-users
_______________________________________________ macports-users mailing list macports-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macports-users