| Cheshire Cat Computing http://steveshipway.org/forum/ |
|
| 1 target, many devices, many graphs, one page?? http://steveshipway.org/forum/viewtopic.php?f=2&t=175 |
Page 1 of 1 |
| Author: | jjakober [ Fri Mar 26, 2004 11:37 am ] |
| Post subject: | 1 target, many devices, many graphs, one page?? |
Steve and others, I didn't know how to put it in the subject, but this is what I am trying to do: I want to display the main interface from multiple devices on a single page, one graph per interface. Kinda like the "All Graphs" view but a different interface per graph instead of a different time frame. Does that make sence? If that is not possible, is there a way to make the "Summary" view not scale the information? If that's do able then I could make a .cfg with the interfaces I want to view and view all of the graphs with the "Summary" view. Thanks for any help you can give, jjakober PS: Thanks for making routers.cgi. I don't think I could have gotten MRTG to work so well without it. |
|
| Author: | stevesh [ Fri Mar 26, 2004 1:06 pm ] |
| Post subject: | |
I *think* I know what you are after.... Basically, you want a Summary graph, but where the targets come from different .cfg files rather than the current, right? This is going to be possible in later versions (Im working on making a feature like 'routers.cgi*Graph' that allows you to define different Summary pages) but not at the moment. However, there is a way to sort of achieve it, although it is messy. 1) Create a special .cfg file that uses Include: to include all of the .cfg files containing targets you want. This should NOT be called by MRTG, it is ONLY for the benefit of routers.cgi. 2) Put in the lines routers.cgi*InCompact[_]: no routers.cgi*InMenu[_]: no routers.cgi*InSummary[_]: no routers.cgi*InOut[_]: no at the beginning of the file, before the Includes. 3) Now, for each of the targetnames that you want in your summary, AFTER the Include lines, add the line routers.cgi*InSummary[targetname]: yes 4) Now go to this dummy .cfg file in routers.cgi. You should see a single Target in the menu, the summary page, and this will summarise the ones you want! 5) If any targets appear in the menu that you dont want, add at the end the lines in step (2) but for that particular targetname, not _. The drawback of doing it this way, of course, is that you have a new 'Device' in the devices menu. However, it works -- it also works if you want to make userdefined Graphs over targets in multiple files. I am using it here to summarise the mail queue graphs from multiple servers into a single total graph. Hope this makes sense to you. Steve |
|
| Author: | jjakober [ Sat Mar 27, 2004 4:10 am ] |
| Post subject: | |
| Author: | stevesh [ Sat Mar 27, 2004 10:58 am ] |
| Post subject: | |
The graphs on the summary page are calculated exactly like on the 'normal' page, except that they are size 's' and have no legend. So, if they would be normally scaled, then they will be scaled here. But.... If you are using the method above, then you may be able to put routers.cgi*Options[$]: unscaled or routers.cgi*UnScaled[_]: none at the beginning of the summary .cfg file. Depending on if you have already overriddent the defaults, this could give you unscaled graphs for the special summary page. Steve |
|
| Page 1 of 1 | All times are UTC + 12 hours [ DST ] |
| Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |
|