[mrtg] Re: monitoring each ip on an interface ?

Matt Walkowiak matt at inetdvd.com
Sun Nov 10 19:35:41 MET 2002


A lot of people ask this kind of question, and if it were easy to get this
info, then a lot of people would be happy.  Alas, as far as I know, there is
no easy way.  Here's my attempt at an explanation of why:

First and foremost, Mrtg is NOT magic - it's job is simply to feed 2 numbers
into a log file, then call rateup to build the graphs - that's it.  Since
SNMP is a good way to get those 2 numbers, Mrtg has a 'built in' way to read
SNMP from a device.  You could also get those two numbers from an external
program (Target[asdf]: `<command>`).  Or, as a trivial case, you could do:
Target[asdf]: 2&3
Options[asdf]: gauge
This would graph two lines, one at 2 and one at 3.

So, to get the info you want, you would need a program or method that could
look at bandwidth at an IP level, then feed those numbers into Mrtg (I can
see how this could be done if there is a static number of source IP
addresses, but if the source is dynamic, then it'd be a lot harder...)
I know that perfmon in Windows 2000 will give you Bytes/Sec on each NetBIOS
connection, but again, if a new connection was started, you need to manually
enter that computer in to start graphing it in perfmon.  Not sure if there
is anything in Linux you can look at for this info.  Maybe something in
/proc?

Matt Walkowiak


>
> Hi,
>
> I'm monitoring an ethernet card on my linux box and I'de like to know
> if it is possible to make multiple graph for each ip connecting to
> the linux box via this ethernet card. And if it is possible. How can
> I implement it in the mrtg config file.
>
> thanks
>
> Marvine
>
> --
> Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
> Archive     http://www.ee.ethz.ch/~slist/mrtg
> FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
> WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi
>
>

--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive     http://www.ee.ethz.ch/~slist/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the mrtg mailing list