| Cheshire Cat Computing http://www.steveshipway.org/forum/ |
|
| Host, cfg, or interface Count http://www.steveshipway.org/forum/viewtopic.php?f=26&t=781 |
Page 1 of 1 |
| Author: | Rednarb [ Fri Jan 06, 2006 8:34 am ] |
| Post subject: | Host, cfg, or interface Count |
It would be handy to have a count of things that are being monitored/graphed. Maybe when you run the diag page or under information. ie. This site is monitoring 628 interfaces/devices. Or, Building page with 64 graphs, please wait... (down at the bottom) It took x seconds to build this page with 64 graphs I'm not sure what'd be easy enough to be worth the hassle, but this could be handy info. |
|
| Author: | stevesh [ Fri Jan 06, 2006 3:01 pm ] |
| Post subject: | |
On the verify page, you can get a list of how many devices there are, although this is not so simple to get to. One problem with this request is, that the script does not read all the config files unless it has to, in order to improve performance. Therefore, the count of interfaces would not be available unless a lot more time was spent reading all the config files (we have a hundred or so of them, so the reading time is significant). Caching mode would allow it, of course, but most people do not use this. As far as the time calculation goes (at the bottom of the page), this is possible - there is in fact an indication of this in the comments at the bottom of the main page for debug use. Adding it to the page footer should be no major problem, although I'd need to get it to a greater precision for it to be meaningful, I think. I can look at getting this added to the current development version. The 'please wait' is slightly difficult since it depends on the browser. Some (eg, Netscape, Mozilla) let you do a multipart/replace MIME type so that a page can progressively update. Others (IE, Opera?) do not allow this to work. Picking the wrong one results in the 'Working...' message appearing at the top of the page even when finished. There are ways to achieve this, of course, but they are not readily compatible with the structure of the routers.cgi program flow. Of course, if you are taking a significant time (more than 5 sec) to build a page of graphs, then you should consider either - 1) decreasing the number of interfaces per cfg file (less work to do) 2) increasing the power and memory of your web server (do the work faster) 3) install speedyCGI and enable caching mode if you use linux (save time by not rereading all the CFG files each time) 4) Schedule a periodic job to automatically request certain frequently requested pages, thus ensuring graphs come from cache when requested by a user (do the work in advance) |
|
| Page 1 of 1 | All times are UTC + 12 hours [ DST ] |
| Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |
|