Solved

NTOP On Fedora 8

Posted on 2007-12-04
18
6,057 Views
Last Modified: 2013-12-06
I am trying to install ntop onto Fedora 8 but am running into quite a few problems. Can someone point me in the right direction as far as a tutorial of getting this working?
0
Comment
Question by:akalbfell
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 9
  • 5
  • 3
  • +1
18 Comments
 
LVL 3

Expert Comment

by:yjwong
ID: 20404930
What problems are you having with installing NTOP? Maybe specifying the error messages might be helpful to all of us. As far as I know, there are RPM packages for NTOP which would simplify the installation greatly, instead of compiling everything yourself.
0
 
LVL 40

Expert Comment

by:omarfarid
ID: 20404971
0
 
LVL 8

Author Comment

by:akalbfell
ID: 20405124
sounds good, here is what i did step by step,
1)./autogen.sh returns error
checking for pcap_lookupdev in -lpcap... no
     **FATAL ERROR***
it looks that you dont have the libpcap distribution installed. Download, compile and optionally install it.

if i do yum install libpcap it says libpcap - 14:0.9.7.3.fc8.i386 is already installed. This is problem #1.
0
Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

 
LVL 3

Accepted Solution

by:
yjwong earned 450 total points
ID: 20405174
You need to have the libpcap development package (libpcap-devel) in order to compile.
0
 
LVL 8

Author Comment

by:akalbfell
ID: 20405750
ok that got me past that part thanks. now i got this error

configure: error: unable to find RRD at /usr/local/rrdtool: please use --with-rrd-home=DIR
0
 
LVL 3

Assisted Solution

by:yjwong
yjwong earned 450 total points
ID: 20405871
This means that you will also need rrdtool. It is downloadable here:
http://rpmfind.net/linux/rpm2html/search.php?query=rrdtool

I'm not sure though, as to whether you need rrdtool-devel.
0
 
LVL 8

Author Comment

by:akalbfell
ID: 20406036
i had rrdtool installed already. i just installed rrdtool-devel and that seemed to do the trick..
ok got through that, then in the term i type ntop, enter admin password twice and after a few seconds get this error.

**ERROR** RPD: Disabled - unable to create base directory (err 13, /user/local/var/ntop/rrd)
0
 
LVL 8

Author Comment

by:akalbfell
ID: 20406566

ue Dec  4 16:11:37 2007  THREADMGMT[t2970557328]: NPS(1): Started thread for network packet sniffing [eth0]
Tue Dec  4 16:11:47 2007  **ERROR** RRD: Disabled - unable to create base directory (err 13, /usr/local/var/ntop/rrd)

Open in new window

0
 
LVL 8

Author Comment

by:akalbfell
ID: 20406572
sry bout that

ue Dec  4 16:11:37 2007  THREADMGMT[t2970557328]: NPS(1): Started thread for network packet sniffing [eth0]
Tue Dec  4 16:11:47 2007  **ERROR** RRD: Disabled - unable to create base directory (err 13, /usr/local/var/ntop/rrd)

0
 
LVL 34

Assisted Solution

by:Duncan Roe
Duncan Roe earned 50 total points
ID: 20406609
Error 13 is EACCES (Permission denied). Simplest is likely to run as root once to get the directories created. After that, change the permissions on any created  directories or files to allow normal users to run ntop.
0
 
LVL 8

Author Comment

by:akalbfell
ID: 20406639
thats what i assumed yet running as root produces the same errror
0
 
LVL 34

Expert Comment

by:Duncan Roe
ID: 20406647
You may need to make ntop setuid root in order to sniff packets as a regular user. No need to change directory permissions if that is the case
0
 
LVL 8

Author Comment

by:akalbfell
ID: 20406680
sorry please clarify
0
 
LVL 34

Expert Comment

by:Duncan Roe
ID: 20406703
May be trying to execute something w/out x access - even root can't do that.

To find out what, use strace:

strace -f ntop 2>&1 | tee hee

There will be lots of output. After it finishes, wotk through the hee file fro then end going backwards until you find which system call actually failed.
0
 
LVL 34

Expert Comment

by:Duncan Roe
ID: 20406753
setuid wasn't an answer to your previous post: they crossed. No point in doing it until it works for root. Then

ls -l ntop

if ntop is not owned by root, make it so:

chown root: ntop

(the colon sets group as well)

Now make it setuid:

chmod o+s ntop

Now ntop will run as root for anyone, and anyone can sniff the net with it. Be sure that is what you want.
0
 
LVL 34

Expert Comment

by:Duncan Roe
ID: 20406763
Have to go to work now (UTC+11) - good luck
0
 
LVL 8

Author Comment

by:akalbfell
ID: 20406916
none of those commands do anytyhing but tell me the file or directory doesnt exist
0
 
LVL 8

Author Comment

by:akalbfell
ID: 20407118
well looks like i got it working somehow, i have to run ntop as root and i did a chown to the ntop user of the directory /usr/local/var/ntop/rrd and a chmod 777 to that folder also. Thanks to everyone who helped.
0

Featured Post

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
RHEL 6.7 Gnome Desktop on VMware 6 VM 9 140
The better OS Architecture 13 108
how to include conditional log rotate in liunx. 17 103
SSSD - Automatic kerberos ticket initialization 1 39
1. Introduction As many people are interested in Linux but not as many are interested or knowledgeable (enough) to install Linux on their system, here is a safe way to try out Linux on your existing (Windows) system. The idea is that you insta…
The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question