[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4688: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4690: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4691: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4692: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
Cheshire Cat Computing :: View topic - Graphing Total Bandwidth
Cheshire Cat Computing
http://www.steveshipway.org/forum/

Graphing Total Bandwidth
http://www.steveshipway.org/forum/viewtopic.php?f=2&t=4230
Page 1 of 1

Author:  needinghelp [ Tue Aug 17, 2010 1:37 am ]
Post subject:  Graphing Total Bandwidth

Hi

Is it possible to graph Total over last 24 hours of in/out data or total data transfer? Sorry if this has been ask before.

Thank you

Author:  stevesh [ Thu Aug 19, 2010 12:08 pm ]
Post subject:  Re: Graphing Total Bandwidth

In the routers2.conf, in the [routers.cgi] section, put 'percentile=yes'

This enables the 95th Percentile and Total Usage calculations, which gives the figures you're after.

Author:  needinghelp [ Thu Aug 19, 2010 7:33 pm ]
Post subject:  Re: Graphing Total Bandwidth

I have that value on the bottom of the graphs. But I am trying to graph the total data transferred over 24hours/Week/Month/Year. So I would like to graph the total data thought put from a switch port or from a interface on a router/firewall.

Thank you

Author:  stevesh [ Fri Aug 20, 2010 10:40 am ]
Post subject:  Re: Graphing Total Bandwidth

OK, here's how you can graph total usage/day.

Create a normal Target for the network throughput.
Use Suppress[]:dwm to suppress all but the Yearly graph.
Use Factor[]:86400 to multiply the per-second throughput to a per-day throughput
Use routers.cgi*Options[]:nototal bytes to suppress total calcs and display data in bytes.
Use YLegend[]:bytes transferred to fix the yaxis label
Use LegendI[]:Total bytes transferred in per day and similar to fix the other labels.

This will result in a yearly graph, with one data point per day showing the total data throughput for that day (since a normal yearly graph shows the average bytes/sec, multiply by number of seconds in a day to get total day throughput)

Author:  bruceg [ Thu Jan 29, 2015 6:10 am ]
Post subject:  Re: Graphing Total Bandwidth

So Steve,

I have a Cisco switch. My handoff from my home network to my carriers router is on FastEthernet0/8. I currently get statistics for that port using the following snippet from /etc/mrtg/mrtg.cfg:

### Interface 8 >> Descr: 'FastEthernet0/8' | Name: 'Fa0/8' | Ip: 'No Ip' | Eth:
'00-11-21-e4-db-c8' ###

Target[192.168.1.20_Fa0_8]: #Fa0/8:(snip ro-commstring)@192.168.1.20:
SetEnv[192.168.1.20_Fa0_8]: MRTG_INT_IP="No Ip" MRTG_INT_DESCR="FastEthernet0/8"
MaxBytes[192.168.1.20_Fa0_8]: 12500000
Title[192.168.1.20_Fa0_8]: Traffic Analysis for Fa0/8 -- Bubbaville_Switch
PageTop[192.168.1.20_Fa0_8]: <h1>Traffic Analysis for Fa0/8 -- Bubbaville_Switch
</h1>
<div id="sysdetails">
<table>
<tr>
<td>System:</td>
<td>Bubbaville_Switch in </td>
</tr>
<tr>
<td>Maintainer:</td>
<td></td>
</tr>
<tr>
<td>Description:</td>
<td>FastEthernet0/8 </td>
</tr>
<tr>
<td>ifType:</td>
<td>ethernetCsmacd (6)</td>
</tr>
<tr>
<td>ifName:</td>
<td>Fa0/8</td>
</tr>
<tr>
<td>Max Speed:</td>
<td>12.5 MBytes/s</td>
</tr>
<tr>
<td>Ip:</td>
<td>No Ip (No DNS name)</td>
</tr>
</table>
</div>

Would I create a new interface using the above as a model and adding your entries? While I tried to create a new entry, I must have duplicated something, as I only have FA0/8 still, without the daily stats.

Would I need to copy the above entry, change the target name to something like TotalTraffic_FA0/8, change SetEnv to also be TotalTraffic_FA0/8,then do the same for MaxBytes, Title and PageTop?

Then add these entries (maybe put them under MaxBytes?)
Suppress[]:dwm
Factor[]:86400
routers.cgi*Options[]:nototal bytes
YLegend[]:bytes transferred
LegendI[]:Total bytes transferred

Or would I use:
Suppress[TotalTraffic_FA0/8]:dwm
Factor[TotalTraffic_FA0/8]:86400
routers.cgi*Options[TotalTraffic_FA0/8]:nototal bytes
YLegend[TotalTraffic_FA0/8]:bytes transferred
LegendI[TotalTraffic_FA0/8]:Total bytes transferred

*Edit: I think the second option worked (creating a new target and naming everything in that target to TotalTraffic_FA0/8. I see a totaltraffic_fa0_8.rrd, and see two entries on the left hand side of routers2.cgi for FastEthernet0_8. One gives me daily, weekly, monthly and annual stats. The second gives one graph. No data yet, but hoping I'll see something tonight.

Author:  stevesh [ Tue Feb 03, 2015 10:19 am ]
Post subject:  Re: Graphing Total Bandwidth

Looks like you've already worked it out. There is a utility (mergerrd) in the latest Routers2 package that can be used to copy data from one RRD to another; in your case, you can likely duplicate the 192.168.1.20_Fa0_8.rrd file to get TotalTraffic_FA0/8.rrd in order to preserve your history, as they both have the same Target definition.

Page 1 of 1 All times are UTC + 12 hours [ DST ]
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/