“ntop is a network probe that shows the network usage”, this is the brief description of ntop extracted from the official ‘overview’ page of www.ntop.org.
the reason why I like ntop is that it gives us a immediate projection of what is happening in our network NOW! with graphical and table representations of the current, recent and past network statistics.
When the network is stuck, you can know why, and you can know it immediately. You can then take the proper action to ditch the cause 😉
This is not all, there are amazing information you can have from this ‘small’ Italian tool…
In this post I will describe an as-easy-as-possible installation procedure to install ntop in you Mac OS X Server Snow Leopard (I didn’t test this on previous version, but as far as MacPorts is available for older version it shouldn’t be an issue to follow the same steps)
Preface
The easiest way ever would be to fire the command
$ sudo port install ntop
but as always happens the easiest way is not the best way, in facts the MacPort version of ntop is 3.3, quite old respect the current stable version 4.0.3.
Also, the installation of ntop through the port tool doesn’t install and configure it as a service but only as a tool to be run occasionally.
One of the reasons I prefer to install ntop 4.0.3 instead of 3.3 is that it gives us the option to visualise the “Hosts World Map” directly in Google Maps and the “Local Network Traffic Map” giving us an idea where our network users and services and clients are connecting to and from. Of course many other improvements are available in the latest version, but these are the coolest according to me 😀
Another reason to manually install ntop and follow the procedure below is to install and configure it as a daemon (LaunchDaemon) launched by ‘launchd’.
What will will do then, is to download, compile and install the ntop 4.0.3 directly from its official website and rely on MacPorts to install it’s compiling and installing dependencies.
Prerequisites
- The -latest- sources of ntop.
- Xcode (required by MacPorts), you can install it from Mac OS X Server Snow Leopard installation disk, ‘Optional Installs’ folder.
- Workgroup Manager, it’s part of the Server Admin Tools and needs to be downloaded from Apple support and installed, unless you are running Mac OS X Server.
- MacPorts, you can download and install it from www.macports.org.
- wget, to be installed via MacPorts
Preparation of system
- Make sure you have installed Xcode and MacPorts and Worgroup Manager.
- Create a ‘src’ folder where to store and compile the ntop sources:
$ mkdir ~/src $ cd ~/src
- Install wget:
$ sudo port install wget
- Fetch the latests source archive from www.ntop.org:
$ wget wget http://ignum.dl.sourceforge.net/project/ntop/ntop/Stable/ntop-4.0.3.tgz $ tar xvzf ntop-4.0.3.tgz $ cd ~/src/ntop-4.0.3
- install ntop dependencies from MacPorts needed to compile and run ntop:
$ sudo port install depof:ntop
this command do not istall ntop from MacPorts but only its dependencies.
This step could take several minutes because it will download, compile and install a lot of ports (libraries).
- Creation of the a localuser and local groupntop via ‘Workgroup Manager’:
- Create the new local group ntop
- Create the new local user ntop with primary group ntop
Leave the password blank prevent any possibility of login and also do not specify the home folder, of if you really need to specify one choose /usr/local/etc/ntop.
This procedure can be executed in command-line as well using the ‘dscl’ command, but you will have to assign the Primary User ID manually retrieving it from the directory service using other scripts.
The Workgroup Manager calculate the first available User ID automatically.
- Create the new local group ntop
- install mako (needed for “Host World Map” feature of ntop):
$Â sudo easy_install mako
- install of graphviz (contains ‘dot’, needed for “Local Network Traffic Map” feature of ntop):
$Â sudo port install graphviz
Compilation
Make sure to be in ‘~/src/ntop-4.0.3’ folder then
- fire the script that checks the dependencies:
$ ./autogen.sh
- and proceeds with the compilation:
$ make
Installation
- Run the script that installs ntop and its libraries in the proper places:
$ sudo make install
- Create the LaunchDaemon scripts to make the service running as a daemon:
$ sudo touch /Library/LaunchDaemons/org.ntop.ntop.plist
- copy and paste the following lines into org.ntop.ntop.plist
#-----BEGIN OF org.ntop.ntop.plist----- <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> Â Â Â <key>KeepAlive</key> Â Â Â <dict> Â Â Â Â Â Â <key>NetworkState</key> Â Â Â Â Â Â <true/> Â Â Â </dict> Â Â Â <key>Label</key> Â Â Â <string>org.ntop.ntop</string> Â Â Â <key>ProgramArguments</key> Â Â Â <array> Â Â Â Â Â Â <string>/usr/local/bin/ntop</string> Â Â Â Â Â Â <string>@/usr/local/etc/ntop/ntop.conf</string> Â Â Â Â Â Â <string>--user</string><string>ntop</string> Â Â Â Â Â Â <string>--db-file-path</string><string>/usr/local/var/ntop</string> Â Â Â Â Â Â <string>--daemon</string> </array> </dict> </plist> #-----END OF org.ntop.ntop.plist-----
- Create the configuration file to pass additional custom parameters
$ sudo touch /usr/local/etc/ntop/ntop.conf
- copy and paste the following lines into ntop.conf
(in this example I put the ‘vital’ paramenteres, you can specify more parameters, but the ones placed in the the LaunchDaemon file will NOT be overloaded by the parameters present on the ntop.conf file)#-----BEGIN OF ntop.conf----- # interface(s) that ntop will capture on # DEFAULT: The 1st sisernet device, e.g. sis0 --interface en0 # 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 -L # 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.2.0/24 # Sets the domain. # ntop should be able to determine this automatically. #--domain domain.my #-----END OF ntop.conf-----
- Set the correct file and folder permissions. VERY IMPORTANT!
$ sudo chmod 644 /Library/LaunchDaemons/org.ntop.ntop.plist $ sudo chown -R ntop /usr/local/var/ntop $ sudo chown -R ntop /usr/local/etc/ntop
Configuration
Set the password for the admin user of ntop database (from the web interface you’ll be able to create other users with different degree of administration)
$ sudo ntop -t o -u ntop -P /usr/local/var/ntop --set-admin-password
Conclusion
Now start the service using the launchctl command and it will run as a daemon:
$ sudo launchctl load /Library/LaunchDaemons/org.ntop.ntop.plist
You will be able to access ntop through port 3000 (by default) of your server:
http://domain.my:3000
If you found this how-to useful, please leave a feedback, it will be really appreciated.
Enjoy!
Comments
Powered by Facebook Comments
Excellent tutorial! Thanks so much, I would never have had the time to research this myself. I ran into some trouble while following the installation steps, most noteably:
* wget is not installed on Snow Leopard. You have to install it yourself with for instance MacPorts.
*during the
sudo port install depof:ntop
the isntallations fails on unmet dependancies about 4 or 5 times. Your mileage may vary. these dependency errors can be easily solved by manually installing the first missing dependency with sudo port install. Ghostscript refused to install untill I did a port clean gohstscript.
* Workgroup Manager needs to be downloaded from Apple support and installed, unless you have an Xserve or OS X server version.
*
./autogen.sh
needed a ./configure before it completed.
* The doenloadeable .plist suggests to be placed in System/Library/LaunchDeamons/org.ntop.ntop.plist. I think it can be placed both in the System or in the User Library, as long as you know where it is....
And then the big moment: Yes, it works!
Hello Peter,
I really appreciate your detailed review of my post. I’ll revise and fix it as soon as possible.
I just quickly comment your last lines:
* Actually ./autogen.sh runs itself the ./configure script (at least did so in my systems).
* I would not place the script in /System/Library/LaunchDeamons/ because that folder is reserved by daemon scripts installed with Mac OS X.
* I would not place the script in the user’s Library folder because the daemon would launch only at the user’s login.
* Instead /Library/LaunchDeamons/ is meant for third party’s scripts.
It’s just a matter of ‘good practice’.
Thanks. This was a big time saver for me.
The only issue I had was a typo in this path:
Now start the service using the launchctl command and it will run as a daemon:
$ sudo launchctl load /Library/LauchDaemons/org.ntop.ntop.plist <—– Lauch?!? 🙂
Also, I think wget is one of the dependencies installed in step 4. If so, switching steps 3 & 4 might resolve Peter's related comment. I'll leave the details to smarter people.
Cheers.
fixed 🙂
many thanks
Thanks Peter and Lyle,
I updated the post according to your fixes!
[Q] No matter what I tried (ports installed from scratch, gdbm.h checked for extern GDBM_FILE gdbm_open __P((char *, int, int, int, void (*)()));, libgdm checked in the right place (even forced via –with…), I keep hitting the dreaded:
checking for gdbm_open in -lgdbm… no
*******************************************************************
*
* ERROR: gdbm header or library routines are missing
* (yes means it was found, no means it was not found)
*
* gdbm.h…yes
* gdbm_open() in -lgdbm…no
*
*>>> No way to proceed.
*
*??? 1. Install libgdbm
*??? and Rerun ./configure
*??? or 2. Use the –with-gdbm-xxxxx= options
… any ideas?
I didn’t encounter this issue before, so I’m just guessing:
what you’re missing are the headers for the gdbm libraries, you need them for the compilatin, you don’t need the binaries.
You probaly need to install the ports called: gdbm and py25-gdbm (alternatively py-gdbm).
Let me know if it works.
* ERROR: gdbm header or library routines are missing
* (yes means it was found, no means it was not found)
*
–> * gdbm.h…yes
?!? –> * gdbm_open() in -lgdbm…no
$ locate gdbm.h
/usr/local/include/gdbm.h
$ grep -i gdbm_open /usr/local/include/*
/usr/local/include/gdbm.h:/* Parameters to gdbm_open for READERS, WRITERS, and WRITERS who
/usr/local/include/gdbm.h:extern GDBM_FILE gdbm_open __P((char *, int, int, int, void (*)()));
$ python -V
Python 2.6.1
I don’t have my server with me know to double check what I’m writing here, but I believe the configuration is looking the libraries in the “wrong” directory.
You could pass parameters to the config to link the right directory, or create a symbolic link to the libraries with the path requested (inspect the config.sh).
This describes how to install ntop on Server Snow Leopard, but does it also apply to non-Server SL? I have X.6.5 on a stand-alone, and only access the Internet for email and occasional information/downloads, but want to know why there’s sometimes traffic I didn’t initiate or authorize. I’d like to know who is on the other end and what they’re doing. Is ntop the best app for this limited purpose? Thanks.
– Dushan Mitrovich
yes, but check the other comments, as for the non Server version you may need to install some tool manually.
Thanks.
the –daemon switch, what is it’s purpose?
Launchd handles daemonization, it is explicitly stated that programs are not to daemonize… ?
Hi Kevin,
could you please point me to the point where it state that, I couldn’t find it!
Have you tried to run the script without the “–daemon” switch? I have to the chance now. I’ll try myself asap.
man 5 launchd.plist:
Daemons or agents managed by launchd are expected to behave certain ways.
A daemon or agent launched by launchd MUST NOT do the following in the
process directly launched by launchd:
o Call daemon(3).
o Do the moral equivalent of daemon(3) by calling fork(2) and
have the parent process exit(3) or _exit(2).
A daemon or agent launched by launchd SHOULD NOT do the following as a
part of their startup initialization:
o Setup the user ID or group ID.
o Setup the working directory.
o chroot(2)
o setsid(2)
o Close "stray" file descriptors.
o Change stdio(3) to /dev/null.
o Setup resource limits with setrusage(2).
o Setup priority with setpriority(2).
o Ignore the SIGTERM signal.
Nice!
I followed all the steps and installed ntop 4 on my MBP running snow leopard 10.6.7. This is just the standard snow leopard, not server. Installing Xcode (4.0.2) took forever as well as the dependencies for ntop, but no errors to speak of. Seems to be stable so far too, no crashes yet. I will push netflow data from a Cisco ASA into it tomorrow so I can see what the users do and perhaps catch why there is a recent outbreak of malware and how it comes in. Will also come in handy with the IPv6 testing as Ntop 4 catches that traffic as well. The maps are neat, haven’t seen those before as I used ntop 3 before. Thanks for writing up this tutorial, wouldn’t have been able to do it without.
– Swen
Great tutorial, everything work great but i have this error when choosing region map
“ntop Python Configuration Error
Please install Mako template engine”
Mako is allready installed as indicated in the tutorial
Any idea?
I installed ntop per your excellent guide. Mac Mini, 10.6.7, 2G RAM, latest Xcode DevTools installed.
When I try to launch ntop, I get the following message:
compservs-Mac-mini:~ compserv$ sudo launchctl load /Library/LaunchDaemons/org.ntop.ntop.plist
launchctl: no plist was returned for: /Library/LaunchDaemons/org.ntop.ntop.plist
launchctl: no plist was returned for: /Library/LaunchDaemons/org.ntop.ntop.plist
nothing found to load
Any ideas what’s up?
Thanks
Paul Piecuch
IT Operations Manager
North Seattle Community College
(206)526-7803
If you’re getting the following error when you run sudo launchctl load /Library/LaunchDaemons/org.ntop.ntop.plist:
launchctl: no plist was returned for: /Library/LaunchDaemons/org.ntop.ntop.plist
launchctl: no plist was returned for: /Library/LaunchDaemons/org.ntop.ntop.plist
Edit the org.ntop.ntop.plist and delete the following lines:
#—–BEGIN OF org.ntop.ntop.plist—–
#—–END OF org.ntop.ntop.plist—–
Thanks Marco
This is an excellent step by step HowTo.
I’ve just completed a seamless install on OSX 10.6.8
Much appreciated.
Colin
That was a good idea using Macports to get all the dependencies.
I managed to get it all compiled!
However, I don’t understand why you want us to make this ntop user.
Also, it doesn’t work.
I get this line:
**ERROR** RRD: Disabled - unable to create base directory (err 13, /usr/local/var/ntop/rrd)
i got this same line:
**ERROR** RRD: Disabled – unable to create base directory (err 13, /usr/local/var/ntop/rrd)
its permissions problem
you can sudo chmod 777 /usr/local/var/ntop to fix temp. until you/I figure out what is the right config. but this is a security risk giving everyone read write access to a directory
Greetings. Thanks for the help thus far.
I get to the final $ sudo launchctl load … and I get the following error:
launchctl: Dubious ownership on file (skipping): /Library/LaunchDaemons/org.ntop.ntop.plist
nothing found to load
What can I do to resolve this? I ran the sudo chmod 644 command on that file – so the permissions should be correct….
As far as the POSIX permissions go on the file the local admin user has read/write, the staff group has read only and everyone has read only. Would this be correct?
Any thoughts or ideas?
Thanks,
CK
Marco excellent How To! Thank you for your time on this.
to address the
launchctl: Dubious ownership on file (skipping): /Library/LaunchDaemons/org.ntop.ntop.plist
nothing found to load
error
I found that first changing the owner to root, then changing permissions allowed the launchctl to load the plist correctly
sudo chown root /Library/LaunchDaemons/org.ntop.ntop.plist
sudo chmod 644 /Library/LaunchDaemons/org.ntop.ntop.plist
-Best Regards
Thanks Ugo, I’ll update the post using your tip!
Thank you Marco.
Your guide was perfect to setup NTOP on my IMAC.
The only difficult was with launchctl, but after remove the first and the last line everything work like a charm.
Thanks again!
First of all many thanks for an excellent writeup. Worked out of the box where I had before spent hours fiddling with macports and/or xcode.
One small caveat: there is just NO WAY i can get the EditPref page to let me set dot.path to /opt/local/bin. Type values, click add, page refreshes and its gone again.
Any ideas? I am running in daemon mode from launchctl?
did you try to edit it with a basic text editor like MacVim or vim or nano from command line?
(you must install them as they don’t come with Mac OS X natively)
Hello MAC, I’m using MAC OS Lion and I’m stock with autogen.sh. I have Wget install via MAC port but still got this error message. I will appreciate your help.
Thanks.
M
sh-3.2# ./autogen.sh
Starting ntop automatic configuration system v.0.2.3
Please be patient, there is a lot to do…
….Adding fix for OSX
1. Testing gnu tools….
You must have wget installed to compile autogen.sh.
Download the appropriate package for your distribution, or get the
source tarball from ftp://ftp.gnu.org/pub/gnu/wget
Hi,
probably the autogen.sh script points to the ‘wrong’ path for wget, atry to do:
run ‘which wget’ to obtain the actual full path of wget
then edit the autogen.sh script and find the path it is expecting wget to be in
then create a symbolic link with ‘ln -s’ from the actual path of wget to the path that the script is expeting wget to be.
cheers
Marco MC
I finally got it working. For my autogen.sh I comment the part related to Wget and the script run without error. I find out that I was running Fink and Mac port. Fink was installed when I use the transfer wizard from my old mac to the new one. Thanks again for your help and your tutorial.
M
WOW! This install was out of my league!
I would not have been able to install this if it was not for these instructions, one of the only hic ups I got was the version number and file type:
$ wget wget http://ignum.dl.sourceforge.net/project/ntop/ntop/Stable/ntop-4.0.3.tgz
$ tar xvzf ntop-4.0.3.tgz
$ cd ~/src/ntop-4.0.3
Had to change ntop-4.0.3 to ntop-4.1.0 (with tar.gz when required)
Now I just need to understand the stats!
A BIG THANK YOU & You are Awesome MarcoMC!!
Getting this error:
This web site needs a different Google Maps API key. A new key can be generated at http://code.google.com/apis/maps/signup.html.
This URL gets a 404, the only Google Maps API Key Signup is this one:
http://code.google.com/android/add-ons/google-apis/maps-api-signup.html
Will it work? It looks like it is for Android
Went thru the instructions on Mac OS X 10.7.1. I didn’t follow the ‘wget’ portion of the instructions verbatim and dl’d as a regular user through a browser. After un-tar’ing with a regular user account but running ‘make’ as root the difference in file permissions caused ‘libtool’ version errors. Argh!
Deleted the ntop subdirectory, untar’ed as root using ntop-4.1.0 as ‘Wireless Woody’ did above. Re-ran ‘autoconfig’, ‘make’, et al successfully. I can browse to ntop. Sweet!
Thanks muchly Marco! Absolutely great instructions.
setting the path for “dot.path” didn’t take until I messed around a bit ..
in ntop Web Page Admin -> Configure -> Preferences
at the bottom in the blank add section for Preference type dot.path and for Configured Value type “/opt/local/bin/dot” (with the quotes) and press “add”
nothing displays as MikeFish indicated in a previous post
restart ntop at a root shell with
launchctl unload /Library/LaunchDaemons/org.ntop.ntop.plist
launchctl load /Library/LaunchDaemons/org.ntop.ntop.plist
then go to Admin -> Configure -> Preferences again
you should see dot.path with a configured value of “/usr/bin/dot” (without the quotes)
type /opt/local/bin/dot (no quotes this time) and press set
no need to restart this time ..
in ntop Web Page IP -> Local -> Local Network Traffic Map should now work
Thank you Marco!
For those of us that only want to run it as a tool, occasionally, and don’t want it to consume resources when we’re not using it, would it be sufficient to simply use mac ports to take care of the dependencies and then build it following your steps through [Installation, Step 1] “sudo make install”. (Also skipping all the workgroup manager stuff.)
Or is some functionality missing if it’s not run as a daemon?
The thing is more conceptual:
This is a network monitoring tool that gives you information about the network activity for you to understand if there is something unusual and what is causing the anomaly if it’s the case.
That means that it need to collect data to to create graphs for you to understand what is the usual (‘normal’) condition for then understanding and detecting whether something wrong is going on now or is something wrong went wrong in a specific moment or if something is going wrong chronically with a periodicity.
My point of view is that this help me understand the behaviour and common patterns of my network. If I run it just when I notice that ‘the internet is slow’ it maybe will just help me to understand if currently there’s somebody saturating the bandwidth with some p2p connection… no more that this.
You usually create a specific user ‘ntop’ (via System Preferences on stand alone machines) to prevent possible cracking of the server.
If you don’t run it as a daemon make sure you run it with sudo or directly as room, in that case you most probably do not need to create a user ‘ntop’.
Thanks for your comment ^)^
Marco
Thanks for this wonderful guide, Marco!
thanks heaps for this tutorial. Got it working on Snow Leopard, both server and client versions.
Good work!
Stu
I am trying to install on 10.7.4 and I get the following error when running the autogen.sh script. This is from a svn install, not the stable tarball.
2. Preparing for libtool ….
glibtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, `.’.
glibtoolize: copying file `./ltmain.sh’
glibtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4′.
glibtoolize: copying file `m4/libtool.m4′
glibtoolize: copying file `m4/ltoptions.m4′
glibtoolize: copying file `m4/ltsugar.m4′
glibtoolize: copying file `m4/ltversion.m4′
glibtoolize: copying file `m4/lt~obsolete.m4′
Finding libtool.m4.in
…. not found – aborting!
…. done
3. Create acinclude.m4, local definitions for automake …
cat: libtool.m4.in: No such file or directory
…. done
Then when I try to “make” I get this error:
make: *** No rule to make target `libtool.m4.in’, needed by `acinclude.m4′. Stop.
Any ideas?
-Scott
I have the same problem at the ./autogen.sh stage.
There are a few minor errors – most significant seems to be about having an old version of Python?
Do you think it is permissions problem, or should I try the install with an earlier version?
-Mark
Hi Mark,
what is the error output?
First time install of ntop. I’m trying it first with latest stable ntop-5.0. Snow Leopard Server 10.6.8 with fresh install of Xcode and MacPorts.
All goes smoothly until ‘make’ when I get the following error:
cc1: error: ./nDPI/src/include/: Not a directory
make[2]: *** [address.lo] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
Recommenations?
–brad
Hello,
not an error that occurred to me to be honest…
Did you try to verify if ./nDPI/src/include is actually a file or a directory? or if is there for real or not?
If you run a quick search on google, you are not the only one experiencing the problem.
http://www.google.co.uk/search?client=safari&rls=en&q=cc1:+error:+./nDPI/src/include/:+Not+a+directory&ie=UTF-8&oe=UTF-8&redir_esc=&ei=8awKUPXsNanS0QW87pTICg
I reviewed the ntop-5.0 directory in ~/src. Yes, there is no nDPI sub-directory in ntop-5.0. There is a file instead. Where, when is nDPI/src/include directory created?
Hello again
I notice now that you refer the NTOP 5, that is the developer version, not the stable.I haven’t tried it yet so I cannot be of any help. Much Much Sorry!
BTW at this link you may find some help
https://github.com/mxcl/homebrew/issues/13471
So I downloaded via svn nDPI and replaced the nDPI file in ntop-5.0 with the new nDPI directory. Then reran autogen but received libtool fatal configuration error.
I’m guessing this is beyond the scope of this blog post. But any direction is greatly appreciated.
===== error snippet ========
Now we’re ready to compile ntop
xxxx $ make
/bin/sh ./config.status
config.status: creating Makefile
config.status: creating plugins/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands
(CDPATH=”${ZSH_VERSION+.}:” && cd . && /bin/sh ./missing –run echo)
rm -f stamp-h1
touch config.h.in
make all-recursive
Making all in .
/bin/sh ./libtool –tag=CC –mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I/System/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -I ./nDPI/src/include/ -DDARWIN -I/usr/local/include -I/opt/local/include -no-cpp-precomp -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-common -DPIC -I/System/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -I/System/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -MT address.lo -MD -MP -MF .deps/address.Tpo -c -o address.lo address.c
./libtool: fork: Resource temporarily unavailable
: ltconfig version `’ does not match ltmain.sh version `1.3.5′
Fatal configuration error. See the libtool docs for more information.
After searching for ltconfig answers I gave up on nDPI and ntop 5 and installed ntop-4.
It is running. But when in the web interface I go to admin to config preferences I’m prompted for username and password. Nothing works.
I followed the Workgroup example of creating ntop group and ntop user.
What did I miss?
Check the Configuration part of my tutorial.
there is a command to set the dabase password that is owned by the user ntop. That would set the password that you use to access the web UI of NTOP.
The user password and the database password for ‘ntop’ are two distinct things.
I did get nDPI installed separately and moved it to proper location and then nTOP 5 installed. But then the nTOP webserver would crash on launch. That was last week. Haven’t done anything since.
Going to uninstall everything and start fresh.
I installed ntop on Mountain Lion . It seems to start fine with this command (I don’t want it to run as a demon) :
sudo ntop -t 5 -u ntop -P /usr/local/var/ntop
but when I try to access the page at http://localhost:3000
I get a page with an error :
” Please enable make sure that the ntop html/ directory is properly installed ”
already tried with creating symlinks in /usr/local/lib/ntop for the html durectory located in /usr/local/share/ntop/html with no success .
Also everything related to ntop is ch-owned to ntop:ntop user ….
Any suggestion ?
Best regards,
Gianantonio .
Ho Gian
I’m honest with you, it’s ages since I haven’t installed ntop again, so this post is the only memory I have about the installation.
By the way as you are not running is a daemon you probably have not set the plist files.
That means that when you run ntop some parameters that ntop needs may be missing, such:
also, in the post I do not mention in any place the location ‘/usr/local/share/ntop/html’.
I’m not sure this is where you have to expect that the ntop GUI is sourced from… (Just I don’t have any memory about it, I may be wrong).
If you try to run is as daemon, would it work?
let me know if I can be of further help
regards
Marco
many thanks for this tutorial.it is great tute.but i have problem with nDPI/openDPI how to start ndpi for inspect packet like http/ssh
Workgroup manager cant be installed in 10.10.3, so this workflow isn’t great for everyone. would love to get some free ntop software going in osx. ntopng is bogus, it requires a paid for dependency – nprobe to work in osx with netflow.
currently I dont know any neat gui solutions for network monitoring in osx.