Koozali.org: home of the SME Server

sane bandwidth monitoring

Offline FreakWent

  • ****
  • 89
  • +0/-0
sane bandwidth monitoring
« on: August 08, 2009, 02:01:21 AM »
Hi!

I don't mind if we use ntop or something else, but I need to see what hosts on the LAN are using all the net bandwidth.

rrdtool won't compile, can't find cairo-ps.pc and friends, even though I set the PKG_CONFIG_PATH.

ntop sources don't like the rrdtool from the rpms for some reason.

the yum install of ntop has a broken /etc/ntop.conf, so the init script won't start:

FATAL ERROR: Unrecognized/unprocessed ntop options...
                                           ,     --user ntop, ,   --db-file-path /var/ntop, ,     ,     ,       --use-syslog, ,     ,       ,     ,         ,     ,     

Manually starting ntop works, and it listens on port 3000, but if you connect (even from localhost), it aborts with a RST packet and logs nothing.

This behaviour seems like maybe it's been seen before:
http://lists.ntop.org/pipermail/ntop-dev/2004-January/004104.html

so I strace it and it's just sitting there,

nanosleep({10, 0}, {0, 0})              = 0

Please, does anyone have a method for bandwidth monitoring on 7.4 which is simpl(ish) to install and doesn't do weird stuff?

Thanks for _any_ help.  I've been messing with this on and off for weeks now.

EDIT: It's not the firewall either.
« Last Edit: August 08, 2009, 02:10:24 AM by FreakWent »

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: sane bandwidth monitoring
« Reply #1 on: August 08, 2009, 02:19:22 AM »
FreakWent

At a command prompt do
iptraf
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline FreakWent

  • ****
  • 89
  • +0/-0
Re: sane bandwidth monitoring
« Reply #2 on: August 08, 2009, 02:28:43 AM »
yup; I know about iptraf but it only gives me a snapshot; I'd like cumulative data counts over time per internal IP, if possible.

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: sane bandwidth monitoring
« Reply #3 on: August 08, 2009, 05:01:31 AM »
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline FreakWent

  • ****
  • 89
  • +0/-0
Re: sane bandwidth monitoring
« Reply #4 on: August 09, 2009, 11:54:13 AM »
I didn't click the links to find out if I'd read them earlier or not.   rrdtool-1.2.30 does not have the same dependency problems that I encountered regarding 'pangocairo', and once that was in I compiled ntop against it.  The startup scripts from the yum package don't work well for me, but that's easy to get around.  It's working ok now and I'm happy.




Offline janet

  • *****
  • 4,812
  • +0/-0
Re: sane bandwidth monitoring
« Reply #5 on: August 09, 2009, 12:56:54 PM »
FreakWent

Quote
  The startup scripts from the yum package don't work well for me, but that's easy to get around.  It's working ok now...

I assume you mean ntop.conf was problematic as per your first post. How did you resolve that. What are the steps you followed and what is your ntop.conf contents ?
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline FreakWent

  • ****
  • 89
  • +0/-0
Re: sane bandwidth monitoring
« Reply #6 on: August 12, 2009, 12:22:14 PM »
I didn't resolve it.

I just ran it from the command line and I figure I'll deal with the init script after the next reboot, hopefully in so many months time that I'll have forgotten how to do it.


Offline jcornuz

  • *
  • 6
  • +0/-0
Re: sane bandwidth monitoring
« Reply #7 on: January 23, 2010, 10:26:40 PM »
Hi there

just in case this can be of help to someone else:

http://www.gossamer-threads.com/lists/ntop/users/21728.

Just edit etc/init.d/ntop and modify:
daemon $prog -d -L @/etc/ntop.conf

for
daemon $prog @/etc/ntop.conf -d -L

Take care,

Joel

Offline FreakWent

  • ****
  • 89
  • +0/-0
Re: sane bandwidth monitoring
« Reply #8 on: November 25, 2010, 01:48:12 PM »
Resurrected!

Same problem persists.  SME 7.5.1, clean install, different hardware.  dag repository install, won't start.  Change the init script to "daemon $prog @/etc/ntop.conf -d -L", then it starts up but resets all incoming connections to port 3000.

As seen here:
http://lists.ntop.org/pipermail/ntop/2009-August/thread.html#14965

All the posts "web server won't respond".

So to get this thing working in August 09 I had to recompile everything from source on SME server.  I think the DAG repository packages are busted.  Can anyone comment on whether or not they have had success with these RPMs?  If so, did you not encounter these problems or did you find a fix for them?

Can someone please add the init script fix to the wiki, and perhaps add a note to indicate that it won't work anyway?  :sad:

I'll post back when I'm finished with a list of what I did.

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: sane bandwidth monitoring
« Reply #9 on: November 25, 2010, 02:19:35 PM »
FreakWent

Please use the search function.
A search on ntop found this alternative approach
http://forums.contribs.org/index.php/topic,46658.msg229123.html#msg229123
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline FreakWent

  • ****
  • 89
  • +0/-0
Re: sane bandwidth monitoring
« Reply #10 on: November 25, 2010, 04:42:48 PM »
Thanks, that took about five minutes.

Since my last post, I have been doing nothing but rrdtool and libpangocairo and geoip and python-config and adding #defines and I haven't left the keyboard.  What a waste of time!

Anyway, it's been hell, so thanks a lot!  I wish I'd checked back sooner.