Koozali.org: home of the SME Server

ntop 2.1.2 Initial success

Kelvin

ntop 2.1.2 Initial success
« on: August 17, 2002, 05:53:08 PM »
To anyone who's interested,

I've finally managed to get ntop 2.1.2 installed and appears to be working but not fully tested as it's really late and frankly, I've had it after being at it for so long and trying all sorts to try and get it to work ! I even tried to compile the darn thing but failed miserably. Although it's been posted that a howto is on the way but as I needed to use it ASAP for something I cannot wait for it. So, for anyone else in the same boat as I am, here's what I did to get it to load and run.

I was working on a fresh install of SME 5.1.2.

I installed (via rpm -Uvh) :

libpcap-0.6.2-11.7.1.0.i386.rpm
openssl-0.9.6b-28.i386.rpm openssl096-0.9.6-6.i386.rpm
ntop-2.1.2-0.i386.rpm

Note that I installed both openssl rpms on the one command line (ie. I typed :-

rpm -Uvh openssl-0.9.6b-28.i386.rpm openssl096-0.9.6-6.i386.rpm

I created a directory called /var/ntop
Then I ran ntop by typing :-

ntop -i eth0 -W 3000 -u admin
and supplied the admin password

That's it.

Anyone want to fine tune this, please do so.

Cheers,

Kelvin

Nathan Fowler

Re: ntop 2.1.2 Initial success
« Reply #1 on: August 17, 2002, 08:54:21 PM »
You may want to check out nettop, http://www.stickit.nu/nettop is the newest variant, it supports file redirection to a single file (not in append mode).  This way you always have a current snapshot of your protocol statistics without needing to write additional code to parse an append-mode file.

Hope this helped,
Nathan

Aaron Wilde

Re: nettop 2.5
« Reply #2 on: August 18, 2002, 04:42:32 AM »
I just compiled and installed nettop and it's pretty slick.  I use a program called "checkinstall" to automatically build RPM files out of source (note: requires development tools).

http://asic-linux.com.mx/~izto/checkinstall/

Aaron Wilde

Re: nettop 2.5
« Reply #3 on: August 18, 2002, 04:48:49 AM »
By the way, did you know that you can use nettop with a SSH connection vi PUTTY?  It's in full color and everything... it works great.

The only thing is, I wish I could see the IP addresses of who is on my ports.

Kelvin

Re: nettop 2.5
« Reply #4 on: August 18, 2002, 06:01:34 AM »
I agree that nettop is a useful tool and I use it on my own servers. However, show the screens / output from ntop and nettop to clients and no prizes for guessing which one they will look at.

Kelvin

Harro Bruins

Re: ntop 2.1.2 Initial success
« Reply #5 on: August 18, 2002, 12:36:25 PM »
We already did the whole precess.

http://members.home.nl/timothee/ntop_en.html

Harro

Dillard Blom

Re: ntop 2.1.2 Initial success
« Reply #6 on: August 18, 2002, 04:18:42 PM »
Kelvin,

I can imagine that you were in a hurry, but it is a pitty that you couldn't wait for 2  days. Harro and I have been working on this for many hours, but we wanted to test out all possible errors on SME 5.1.2 and SME 5.5, to make sure it's working on every SME v5.x system.

As you can see in our howto there are significant differences between 5.1.2 and 5.5 and it's quite easily to wreck your installation by not issueing to right command-sequence.

We were also testing the mySQL-interface, but gave up on this one, because we can't get it to operate bugfree on all installations.

This takes a lot of time and since we still have jobs ;-) it takes a couple of days to produce something error-free and tested.

Dillard.

Kelvin

Re: ntop 2.1.2 Initial success
« Reply #7 on: August 19, 2002, 01:50:26 AM »
Hi Dillard,

> I can imagine that you were in a hurry, but it is a pitty that you couldn't
> wait for 2 days.

> This takes a lot of time and since we still have jobs ;-) it takes a couple of
> days to produce something error-free and tested.

Agreed. However, I needed to get it up and running as PART of my job, hence the urgency -- after all when all else fails, self help is what the majority of linux users have to face at one time or another. My posting my steps for getting ntop to work is purely to help anyone else who could have been in the same boat as I was. As there was no ETA given on your how-tos, I do not have the luxury of sitting back and waiting.

Kelvin

Jeff C

Re: ntop 2.1.2 Initial success
« Reply #8 on: August 19, 2002, 04:20:21 AM »
I followed Harro's howto at:

http://members.home.nl/timothee/ntop_en.html

Up and working in about ten minutes.

Thanks Harro!

-jeff

Nathan Fowler

Re: nettop 2.5
« Reply #9 on: August 19, 2002, 08:05:50 AM »
Aaron, I may have to look at adding that as a feature.  The original author has long since abandoned the project and isn't returning emails.  I've since adopted it and made some necessary changes to suit my needs.  I find issuing:

nettop -i eth1 -d 15 -o /tmp/nettop.log > /dev/null &

Very usful.  At any given instant I can 'cat /tmp/nettop.log' and get my current usage without having to have the GUI version open.  It's very useful for using other PHP scripts to parse the data.  I'm working on a comma-delimited format now.

Be careful with the -t and -s flags, they have been known to cause the program to core-dump after extended run-time. (This is an inherited bug from the original code, I've yet to isolate the cause)

I agree that ntop is much nicer, however, I'm 4.1.2 and was unable to successfully install it.  I'm not new to linux and consider myself a pretty schooled admin.  The enhancements for nettop were out of necessity.

Thanks guys,
Nathan

Harro Bruins

Re: ntop 2.1.2 Initial success
« Reply #10 on: August 20, 2002, 04:35:25 AM »
It wasn't only me who did the job.... Dillard was equal in his contribution, don't forget him :-)..

Harro

Kelvin

Re: nettop 2.5
« Reply #11 on: August 20, 2002, 03:20:33 PM »
Hi Nathan,

I just did a clean install of ESSG 4.1.2 just out of curiosity.

I installed the following via rpm -Uvh commands :-

libpcap-0.6.2-11.7.1.0.i386.rpm
openssl096-0.9.6-6.i386.rpm
openssl-0.9.6b-28.i386.rpm
openssl095a-0.9.5a-18.i386.rpm
ntop-2.1.2-0.i386.rpm

(note : all 3 openssl packages were installed on one rpm -Uvh command line)

Then, I created the /var/ntop directory.

I then started ntop using (choose your own parameters if you like):-
ntop -i eth0 -W 3000 -u admin

and supplied the admin password (followed by confirmation).

I used the admin accound as this was a clean install and did not have any other users on the system yet. Also, I am the first to admit that I do not know whether or not the openssl compatibility layer packages installed will break any existing packages required by E-Smith (being still fairly new to linux), so test it first before trying it on a production server. All I know is the compatibility layer packages addresses the depency issues from the older packages in 4.1.2 (like needing libcrypto.so.0 and so on) without needing to force installing the packages.

ntop appears to be working fine on my test installation of ESSG 4.1.2. I subscribe to the belief that being a server, it should not run anything more than it really should, therefore did not try to script it to run automatically upon bootup. I prefer to start it manually as and when I need to perform any diagnostics and monitoring. If you need it so start automatically, follow the relevant sections from Harro and Dillard's How-To.

Hope you find this useful (even if just for fun).

Cheers,

Kelvin

Jan

Re: nettop 2.5
« Reply #12 on: August 21, 2002, 01:45:53 AM »
Hello.... just a small question about ntop

I installed it using the howto. All seems to work fine, except for an intermittant error message in my browser saying there is a runtime error in line 1 ';' was expected. Does anyone have a clue what is causing this and how to fix it?

Would apreciate any help you may be able to give.

regards,

Jan

guestHH

Re: nettop 2.5
« Reply #13 on: August 21, 2002, 02:23:32 AM »
Same error here...

Jan

Re: nettop 2.5
« Reply #14 on: August 23, 2002, 12:51:55 PM »
Hi all,

I mentioned a problem with the page Ntop creates. As I was planning to reinstall my client software anyway I thought maybe it was M$'s fault..... sorry can't blame it on them every time ;-)  (btw I use XP with IE6)

I got the browser not to display the error message but the problem is still there. Has anyone tracked down what the cause of this ';' error is?

Anyway love the program but do think if the '';" error could be removed the program is perfect!

regards,

Jan