| Cheshire Cat Computing http://steveshipway.org/forum/ |
|
| Adding graphs together ? http://steveshipway.org/forum/viewtopic.php?f=15&t=1005 |
Page 1 of 1 |
| Author: | Steve9R [ Wed Nov 15, 2006 12:17 pm ] |
| Post subject: | Adding graphs together ? |
Hi guys.. Ive been using routers2cgi for many years now and all has been quite happy.. Ive got a situation at teh moment though where i need to add a number graphs together to display one 'total' graph.. a bit like using the 'incoming' and 'outgoing' graphs but instead of showing them individually per device, to total them together based on the category they're in.. and display both total incoming and outgoing on one graph.. for example.. i have 20 interfaces in 1 x .cfg file (so i dont have to include nultiple cfgs).. and i want to 'add' them all up to create 1 x graph with total incoming and outgoing on a graph.. does that make sense.. possible ? Steve |
|
| Author: | stevesh [ Wed Nov 15, 2006 3:29 pm ] |
| Post subject: | |
Yes, possible. You need to make a userdefined graph. You can make the sub-graphs either as normal lines (like in the incoming graph) or as stacked areas. Then, you can optionally add a total line, and/or an Average line. For an example, see the demo routers2 system on this website, and look at the CPU graph for the linux server. This is 3 stacked sub-graphs. You can also see the .cfg file used to generate it here. Read the doc/HOWTO for details, but the directive you need is routers.cgi*Graph[subtarget]: summaryname withtotal for each subtarget, and then routers.cgi*GraphStyle[summaryname]: stack if you want it stacked. Many other options are available as well. If you don't have noo or noi set, then it totals both incoming and outgoing. You may also want nodetails set, if you are only interest in the final total and not the legends for the sub-lines. If you have v2.17b2 or later, you can use the 'nolines' option to hide the sub-lines entirely. |
|
| Author: | Steve9R [ Thu Nov 16, 2006 11:57 am ] |
| Post subject: | |
| Author: | stevesh [ Thu Nov 16, 2006 1:30 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/ |
|