[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

Software support and information
It is currently Wed Nov 12, 2025 1:57 pm

All times are UTC + 12 hours [ DST ]




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Graphing Total Bandwidth
PostPosted: Tue Aug 17, 2010 1:37 am 
Offline
User

Joined: Tue Aug 17, 2010 1:33 am
Posts: 7
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


Top
 Profile Send private message  
 
PostPosted: Thu Aug 19, 2010 12:08 pm 
Offline
Site Admin

Joined: Tue Jul 29, 2003 11:42 am
Posts: 3039
Location: Auckland, New Zealand
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.

_________________
Steve Shipway
UNIX Systems, ITSS, University of Auckland, NZ
Woe unto them that rise up early in the morning... -- Isaiah 5:11


Top
 Profile Send private message  
 
PostPosted: Thu Aug 19, 2010 7:33 pm 
Offline
User

Joined: Tue Aug 17, 2010 1:33 am
Posts: 7
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


Top
 Profile Send private message  
 
PostPosted: Fri Aug 20, 2010 10:40 am 
Offline
Site Admin

Joined: Tue Jul 29, 2003 11:42 am
Posts: 3039
Location: Auckland, New Zealand
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)

_________________
Steve Shipway
UNIX Systems, ITSS, University of Auckland, NZ
Woe unto them that rise up early in the morning... -- Isaiah 5:11


Top
 Profile Send private message  
 
PostPosted: Thu Jan 29, 2015 6:10 am 
Offline
User

Joined: Thu Jan 29, 2015 5:44 am
Posts: 1
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.


Top
 Profile Send private message  
 
PostPosted: Tue Feb 03, 2015 10:19 am 
Offline
Site Admin

Joined: Tue Jul 29, 2003 11:42 am
Posts: 3039
Location: Auckland, New Zealand
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.

_________________
Steve Shipway
UNIX Systems, ITSS, University of Auckland, NZ
Woe unto them that rise up early in the morning... -- Isaiah 5:11


Top
 Profile Send private message  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC + 12 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group