Koozali.org: home of the SME Server

Ntop on SME v6,0,0-01

gatox

Ntop on SME v6,0,0-01
« on: January 11, 2005, 02:14:02 PM »
His anyone running NTOP on SME v6.0.1-01 ?

If yes please post the HOW TO.

Thanks.

Luis

Damian

Ntop on SME v6,0,0-01
« Reply #1 on: January 15, 2005, 04:08:00 PM »
Luis,

How about ssh to SME and in /tmp run:

wget ftp://ftp.freshrpms.net/pub/dag/redhat/7.3/en/i386/dag/RPMS/ntop-3.0-1.rh73.dag.i386.rpm

rpm -i ntop-3.0-1.rh73.dag.i386.rpm

ntop -w 3000 -W 0

Then from a client browser go to http://SERVER_IP:3000

man ntop gives the options and if you want to run it on boot then set up an rc script.

Damian

gatox

Thank you
« Reply #2 on: January 15, 2005, 04:50:59 PM »
Thank you very much Damian.

Will install it later his morning.


Luis

egerards

Ntop on SME v6,0,0-01
« Reply #3 on: January 15, 2005, 10:18:49 PM »
I also used to run ntop 3.0 on my SME box (P3-550/192 MB(now 640MB)). I noticed that this ntop release consumes hugh amounts of memory when network traffic is very busy. A few times my server even was unreachable due to an oversized ntop process. Eventually ntop was killed by the kernel because my system completely ran out of memory.

In the release notes of ntop version 3.1 I read that one of the improvements of this version was improved memory management. At first I tried to find a ntop 3.1 rpm for Redhat 7.3 compatible systems, but unfortunatelly I couldn't find one.
No rpm, so why not try to compile it myself: I installed the rpms needed for the gcc compiler and compiled ntop 3.1 . I had to install some additional libraries as well, but finally I had a working ntop version 3.1 .
I must say that the memory management of 3.1 has improved indeed. Just have to watch the memory statistics in the system monitor to see so.

If anybody is interested in compiling ntop 3.1 himself I will try to post a brief howto here.

wallyrp


egerards

Ntop on SME v6,0,0-01
« Reply #5 on: January 27, 2005, 09:44:04 PM »
Quote
What about this link for ntop v3.1:

http://umn.dl.sourceforge.net/sourceforge/ntop/ntop-3.1-0.fc2.i386.rpm

or here:

http://prdownloads.sourceforge.net/ntop/ntop-3.1-0.fc2.i386.rpm?download


Nope, that will not work. As this rpm is for Fedora Core 2, it will have library dependencies which are not present on SME 6.X (which is based on Red Hat 7.3):

Code: [Select]
[root@linuxserver tmp]# rpm --test -Uvh ntop-3.1-0.fc2.i386.rpm
error: failed dependencies:
        libc.so.6(GLIBC_2.3)   is needed by ntop-3.1-0
        libc.so.6(GLIBC_2.3.2)   is needed by ntop-3.1-0
        libcrypto.so.4   is needed by ntop-3.1-0
        libgd.so.2   is needed by ntop-3.1-0
        libpcap is needed by ntop-3.1-0
        libpcap.so.0.8.3   is needed by ntop-3.1-0
        libpng12.so.0   is needed by ntop-3.1-0
        libpthread.so.0(GLIBC_2.3.2)   is needed by ntop-3.1-0
        libssl.so.4   is needed by ntop-3.1-0


That's why I decided to compile the package myself.

cc_skavenger

Ntop on SME v6,0,0-01
« Reply #6 on: January 28, 2005, 05:45:08 AM »
Just out of curiosity, where is the link for the howto?? I would like to take a crack at it...

egerards

Ntop on SME v6,0,0-01
« Reply #7 on: January 28, 2005, 08:22:16 AM »
If I have some spare time left I will write the howto and post the link here. Hopefully somewhere this weekend...

egerards

Ntop on SME v6,0,0-01
« Reply #8 on: February 10, 2005, 11:27:17 AM »
It took some time, but here is the ntop 3.1 howto.

First some remarks:
- I assumed you know howto install/unpack rpm/tgz files.
- I noticed that if I don't run ntop as user root, no actual data is displayed. I checked several file/dir permissions, with no result. If someone manages to successfully run ntop 3.1 as a non root user, please post your findings here.
- For your convenience I have made all required files available on my server. However my bandwith is not unlimited: if the downloads put too much stress on my connection, I will have to remove the files (except the rc script and ntop.conf). But please note that all required files can be found elsewhere as well (Google is your friend).
- Improvements to the howto are always welcome. Please post them here.

Howto NTOP 3.1

All required files can be found under http://egerards.com/sme/

- Install rrdtool-1.0.47-3.rh73.dag.i386.rpm

- Install compiler rpm's:
    cpp-2.96-113.i386.rpm
       glibc-devel-2.2.5-44.i386.rpm
       kernel-source-2.4.20-18.7.i386.rpm
       gcc-2.96-113.i386.rpm
       kernel-headers-2.4.9-34.i386.rpm


- Install byacc-1.9-19.i386.rpm (req. for flex)

- Install flex-2.5.4a.tar.gz (req. for libpcap)

- Install bison-1.35-1.i386.rpm (req. for libpcap)

- Install libpcap-current.tar.gz (unpack, configure, make, make install)

- Install gdbm-devel-1.8.0-14.i386.rpm

- Install gd-devel-1.8.4-4.i386.rpm

- Install zlib-devel-1.2.1.1-4.i386.rpm (req. for lib-png)

- Install libpng-devel-1.0.14-0.7x.4.i386.rpm

- Install openssl-devel-0.9.6m-1es1.i386.rpm

- Get ntop source: ntop-3.1.tgz and unpack tgz file.

- In ntop dir: ./configure --with-ossl-root=/usr/bin

- make

- make install

- download file 'ntop' and copy it to /etc/init.d/ntop

- download file 'ntop.conf' and copy it to /etc/ntop.conf and make changes to your own needs.

- Start ntop during system boot: ln -s /etc/rc.d/init.d/ntop /etc/rc.d/rc7.d/S88ntop

- mkdir /var/ntop

- Set admin password: ntop --db-file-path /var/ntop -A

- /etc/init.d/ntop start

- If you want to be able to reach ntop from outside your local network:
    Install dmc-mitel-portopening-0.0.1-4.noarch.rpm and open port 3001. This gives you https access to ntop.


- Finally you can reach ntop at https://yourserver:3001

mbachmann

Ntop on SME v6,0,0-01
« Reply #9 on: February 10, 2005, 11:52:35 AM »
Eric, i prepared a contribs.org wiki howto page for you to type your howto in. It would be lost in the Forums. Use "edit" in lthe lower right corner to edit and format  the page.

http://no.longer.valid/phpwiki/index.php/How%20to%20install%20and%20set%20up%20ntop%203.1

egerards

Ntop on SME v6,0,0-01
« Reply #10 on: February 10, 2005, 12:24:25 PM »
Thanks, I have made the howto available on the wiki howto page.

cosy

Ntop on SME v6,0,0-01
« Reply #11 on: September 19, 2005, 08:08:12 AM »
Hi All,

  Just follow the Damian steps and everything runing ok in my SME6.5 but i like to install 3.1 with  detail help( new to linux sorry )

If i just install into SME server only box can i see the all the network traffic?



==============================================================================
Luis,

How about ssh to SME and in /tmp run:

wget ftp://ftp.freshrpms.net/pub/dag/redhat/7.3/en/i386/dag/RPMS/ntop-3.0-1.rh73.dag.i386.rpm

rpm -i ntop-3.0-1.rh73.dag.i386.rpm

ntop -w 3000 -W 0

Then from a client browser go to http://SERVER_IP:3000

man ntop gives the options and if you want to run it on boot then set up an rc script.

Damian

persisto

Ntop on SME v6,0,0-01
« Reply #12 on: October 09, 2005, 02:06:18 PM »
I did the following and it worked fine

Quote from: "cosy"
Hi All,

Luis,

How about ssh to SME and in /tmp run:

wget ftp://ftp.freshrpms.net/pub/dag/redhat/7.3/en/i386/dag/RPMS/ntop-3.0-1.rh73.dag.i386.rpm

rpm -i ntop-3.0-1.rh73.dag.i386.rpm

ntop -w 3000 -W 0

Then from a client browser go to http://SERVER_IP:3000

man ntop gives the options and if you want to run it on boot then set up an rc script.

Damian


then folowing egerards posst on the same topic,

Quote from: "egerard"


- Start ntop during system boot: ln -s /etc/rc.d/init.d/ntop /etc/rc.d/rc7.d/S88ntop

- mkdir /var/ntop

- Set admin password: ntop --db-file-path /var/ntop -A



but I get this as result:

Code: [Select]

[root@myserver root]# ntop --db-file-path /var/ntop -A
Sun Oct  9 13:50:13 2005  Initializing gdbm databases
Sun Oct  9 13:50:13 2005  Now running as requested user '(null)' (0:0)
Sun Oct  9 13:50:13 2005  **FATAL_ERROR** ....open of /var/ntop/prefsCache.db failed: Can't be writer
Sun Oct  9 13:50:13 2005  Possible solution: please use '-P <directory>'


I have no clue on how to apply the "possible solution" Can someone tell me how I can set ntop to start at boot?

Many thanks.