Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Glaucius Djalma Pereira Junior <glaucius@gmail.com>
To: "Taylor, Grant" <gtaylor@riverviewtech.net>
Cc: netfilter@lists.netfilter.org
Subject: Re: Iptables, php , realtime bandwidth usage
Date: Thu, 5 May 2005 14:21:43 -0300	[thread overview]
Message-ID: <f48e768e050505102175ad27b4@mail.gmail.com> (raw)
In-Reply-To: <427A3E1C.3070803@riverviewtech.net>

use it 

http://ifmonitor.preteritoimperfeito.com/



On 5/5/05, Taylor, Grant <gtaylor@riverviewtech.net> wrote:
> >  I wonder if someone could help me find something similiar to this :
> >
> >  -can monitor bandwidthd usage in real time (php maybe...)
> >
> >  -if possible it could resolve ip address to dns name ? ( I have setup my own dynamicdns dhcp server combo )
> 
> You may want to look in to some of the SNMP monitoring tools (two come to mind MRTG and Cacti) as they will do a lot of the graphics and graphical web access for you.  However to do this you will either need a manged + SNMP capable switch to watch which port each computer is plugged in to or you will need to set up some sort of rules for counting on your router / firewall and then set up some sort of SNMP package on the router / firewall to point your SNMP monitoring app at.
> 
> As far as getting close to real time stats you could set up some iptables rules to easily count what passes through the router in each direction for each client.  You may want to look at the accounting matches as they are designed explicitly for this or just basic packet matching rules will work too.  One word to the wise (unless there is a way to defeat this) the bytes and packet counters on iptables output will start rounding at some point, I'm not sure where, so you may want to pass the -Z option to zero out the counters periodically (each polling cycle) to make sure that you get all packets and not loose them to rounding.
> 
> 
> Grant. . . .
> 
> 


-- 
Glaucius Djalma Pereira Junior
glaucius@gmail.com


  reply	other threads:[~2005-05-05 17:21 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-05 10:39 Iptables, php , realtime bandwidth usage Robert Becskei
2005-05-05 11:18 ` Jose Maria Lopez Hernandez
2005-05-05 12:00   ` Robert Becskei
2005-05-05 15:39 ` Taylor, Grant
2005-05-05 17:21   ` Glaucius Djalma Pereira Junior [this message]
2005-05-06 14:30     ` Robert Becskei
2005-05-06 16:06       ` Abdul-Wahid Paterson
2005-05-08 10:26       ` Jose Maria Lopez Hernandez
2005-05-07 11:02 ` Ruben Cardenal

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=f48e768e050505102175ad27b4@mail.gmail.com \
    --to=glaucius@gmail.com \
    --cc=gtaylor@riverviewtech.net \
    --cc=netfilter@lists.netfilter.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox