Web Hosting Talk







View Full Version : Using MRTG to measure bandwith usage per IP


jw
09-08-2001, 03:01 PM
Does anyone know how to get MRTG/RRDTool to create graphs for every IP seperately? Right now it graphs the whole ethernet interface.

PowerSurge
09-10-2001, 08:03 PM
Try weblogMon v0.02. I think we found it on freshmeat a while ago.

Vortech
09-11-2001, 12:07 AM
Do you have a URL for that?

S2 Web Design
09-11-2001, 03:03 AM
Use MRTG/RRDtool/14all.cgi combination. 14all.cgi has options that you are looking for. When calling 14all.cgi via http, you can use the "log" option like so:

www.domain.com/14all.cgi?log=targetofdevice(IP)

All of your devices can either be in the same config file, or you may have as many config files as you like.

If you have multiple config files, a call to 14all.cgi could be used like this to get a graph for a single device:

www.domain.com/14all.cgi?cfg=nameofconfigfile&log=targetofdevice(IP)

Hope this helps!

jw
09-14-2001, 06:49 PM
Do I need to create a different entry for each IP in the configuration file?

S2 Web Design
09-18-2001, 01:12 AM
Yes, you'll need an entry for each device you would like to monitor. You can also create separate config files for each device, it's completely up to you. Hope this helps!

Fremont Servers
09-24-2001, 03:18 PM
Originally posted by Eric_Echter
Use MRTG/RRDtool/14all.cgi combination. 14all.cgi has options that you are looking for. When calling 14all.cgi via http, you can use the "log" option like so:

www.domain.com/14all.cgi?log=targetofdevice(IP)

All of your devices can either be in the same config file, or you may have as many config files as you like.

If you have multiple config files, a call to 14all.cgi could be used like this to get a graph for a single device:

www.domain.com/14all.cgi?cfg=nameofconfigfile&log=targetofdevice(IP)

Hope this helps!

Do you know where I can get more info about 14all.cgi and example of it?

S2 Web Design
09-25-2001, 12:43 AM
The following sites are all useful and recommended:

http://rrdtool.com/
http://www.geocities.com/paulcwilliamson/mrtg/14allsetup.html
http://www.uni-ulm.de/~rbawidam/mrtg-rrd/history.html

Example:

http://www.ajlc.waterloo.on.ca/cgi-bin/14all.cgi?log=ap500_1

There are plenty other sites out there to help you out but these will get you started if you're looking to use MRTG/RRDTOOL/14all as a combonation.

Fremont Servers
09-25-2001, 05:59 AM
Eric_Echter,

Thanks for the links.

jw
09-27-2001, 07:54 PM
I have edited the mrtg.cnf file with a separate entry for each IP, but every graph is the same. Is there a way that I can specify for it to monitor only that certain IP, not the whole ethernet port?