| Cheshire Cat Computing http://www.steveshipway.org/forum/ |
|
| "Stacked" graphs http://www.steveshipway.org/forum/viewtopic.php?f=2&t=203 |
Page 1 of 1 |
| Author: | udaman0000 [ Sun Apr 18, 2004 1:54 am ] |
| Post subject: | "Stacked" graphs |
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 |
|
| Author: | stevesh [ Sun Apr 18, 2004 8:57 am ] |
| Post subject: | |
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 |
|
| Author: | udaman0000 [ Mon Apr 19, 2004 10:33 am ] |
| Post subject: | |
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 |
|
| Author: | stevesh [ Mon Apr 19, 2004 1:04 pm ] |
| Post subject: | |
| Page 1 of 1 | All times are UTC + 12 hours [ DST ] |
| Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |
|