[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: 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 - "Stacked" graphs

Cheshire Cat Computing

Software support and information
It is currently Wed Nov 12, 2025 9:39 pm

All times are UTC + 12 hours [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: "Stacked" graphs
PostPosted: Sun Apr 18, 2004 1:54 am 
Offline
User

Joined: Fri Mar 12, 2004 7:21 am
Posts: 5
I wish to make a graph similar to the following:
http://www.steveshipway.org/software/rr ... coming.jpg
I want to stack 2 bandwidth graphs on top of each other. Currently
they are graphed individually, and each has its own config file. The
2 files are:

score1-sprint.cfg
=================
Options[score1-sprint]: noinfo,growright,bits
Target[score1-sprint]: /xxx.xxx.xxx.xxx:public@xxx.xxx.xxx.xxx:::::2
MaxBytes[score1-sprint]: 19375000
Title[score1-sprint]: Sprint
PageTop[score1-sprint]: <h2>Sprint Bandwidth</h2>
<font size=2>(POS 9/0/0)<br>
Max Speed: 155.0 Mbits/sec (POS)</font><br><br>
Directory[score1-sprint]: snip
Unscaled[score1-sprint]: dwmy


score2-uunet.cfg
================
Options[score2-uunet]: noinfo,growright,bits
Target[score2-uunet]: /xxx.xxx.xxx.xxx:public@xxx.xxx.xxx.xxx:::::2
MaxBytes[score2-uunet]: 19375000
Title[score2-uunet]: UUNet: POS8/0/0
PageTop[score2-uunet]: <h2>UUnet</h2>
<font size=2>(POS8/0/0)<br>
Max Speed: 155.0 Mbits/sec (POS)</font><br><br>
LegendI[score2-uunet]: Entering :
LegendO[score2-uunet]: Leaving :
Directory[score2-uunet]: snip
Unscaled[score2-uunet]: dwmy

How would I combine the two graphs together? In otherwords,
how can I get both bandwidth's graphed on the same image?

Thanks in advance, and thank you for the great front-end.
Joel


Top
 Profile Send private message  
 
 Post subject:
PostPosted: Sun Apr 18, 2004 8:57 am 
Offline
Site Admin

Joined: Tue Jul 29, 2003 11:42 am
Posts: 3039
Location: Auckland, New Zealand
Since the two targets you want to combine are in different .cfg files, you will need to make a summary file that includes them both. This file would not be used by MRTG, only by routers2.

summary.cfg:

routers.cgi*InMenu[_]: no
routers.cgi*InOut[_]: no
routers.cgi*InSummary[_]: no
Include: score1-sprint.cfg
include: score2-uunet.cfg
routers.cgi*Graph[score1-sprint]: summary-incoming total noo
routers.cgi*Graph[score2-uunet]: summary-incoming
routers.cgi*Graph[score1-sprint]: summary-outgoing total noi
routers.cgi*Graph[score2-uunet]: summary-outgoing

this should give you two targets, an incoming summary and an outgoing summary (the same as the incoming/outgoing you get by default anyway)

If you want the lines to actually stack, rather than both display with a total line, then you need

routers.cgi*GraphStyle[summary-incoming]: stack

and remove the 'total' option from the Graph definition line.

Writing this from memory at 8am after no sleep so sorry for any errors/typos

Steve


Top
 Profile Send private message  
 
 Post subject:
PostPosted: Mon Apr 19, 2004 10:33 am 
Offline
User

Joined: Fri Mar 12, 2004 7:21 am
Posts: 5
I tried that, as well as:

routers.cgi*InMenu[_]: no
routers.cgi*InOut[_]: no
routers.cgi*InSummary[_]: no
routers.cgi*InCompact[_]: no
include: score1-sprint.cfg
include: score2-uunet.cfg
routers.cgi*Graph[score1-sprint]: summary noo
routers.cgi*Graph[score2-uunet]: summary
routers.cgiGraphMode[summary]: stack

All I get is a graph of the first include file (score1-sprint.cfg).
Windows2003, routers2.pl version v2.13a
What am I doing wrong?
Any help would be appreciated.

Thanks
Joel


Top
 Profile Send private message  
 
 Post subject:
PostPosted: Mon Apr 19, 2004 1:04 pm 
Offline
Site Admin

Joined: Tue Jul 29, 2003 11:42 am
Posts: 3039
Location: Auckland, New Zealand


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

All times are UTC + 12 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


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