| Cheshire Cat Computing http://www.steveshipway.org/forum/ |
|
| routers2.cgi and Cisco Catalyst switches http://www.steveshipway.org/forum/viewtopic.php?f=2&t=66 |
Page 1 of 1 |
| Author: | stevesh [ Wed Oct 08, 2003 2:33 pm ] |
| Post subject: | Need more information |
| Author: | stevesh [ Mon Oct 13, 2003 9:31 am ] |
| Post subject: | |
You are correct. The graph title and menu label used by routers.cgi come from information in the .cfg file - it does not query the device directly iteself, ever. In your .cfg file, the only place where the name '9/4' is shown is in the PageTop[] directive. routers.cgi cannot parse this since it is a freeform definition and could contain absolutely anything - rather than risk showing incorrect information, routers.cgi just ignores the whole directive. You need to have something in the MRTG_INT_DESCR setting in the SetEnv[] definition. I have already heard from people who have passed extra options to cfgmaker, or modified it by one line, in order to get the ifName put into this setting. If you have Perl knowledge, I would suggest making this minor alteration to cfgmaker to get ifName placed inthe MRTG_INT_DESC as well as in the PageTop. Steve |
|
| Author: | jerumball [ Fri Nov 07, 2003 8:07 am ] |
| Post subject: | |
Hi Steve, I'm relatively new to routers2.cgi but I have similar problems getting the Port Name information into the graph title for my Cat 6509 ports. Could you elaborate a bit on using Perl to modify cfgmaker to "get ifName placed inthe MRTG_INT_DESC as well as in the PageTop". So far, everything I have tried yields a " -- Cat6509" as the title of graph for every interface on the 6509. Thanks in advance. John |
|
| Author: | BigDaddy [ Sat Nov 08, 2003 11:10 am ] |
| Post subject: | CFG line for switches |
Try this, it allows me to have the interface name instead of the infnum it also places each device in its own directory perl e:\newconfig\bin\cfgmaker --global "WorkDir: e:/bb-web/data" --global "PathAdd: e:/bb-web/cgi" --global "Icondir: /mrtg/icons" --global "Interval:1" --global "Unscaled[_]: dwmy" --global "Refresh: 300" --global "LogFormat: rrdtool" --ifref=name --ifdesc=descr --community=matrix --output=e:\newconfig\devicename.cfg --subdirs=HOSTNAME --if-filter="$if_type=6 && $if_type=9 && $default_ifstate && $default_iftype" devicename |
|
| Author: | jerumball [ Sun Nov 09, 2003 4:38 pm ] |
| Post subject: | |
BigDaddy, Thanks for your suggestion. Does this work for CatOS based switches like the 6509? What part of that line produces the switchport name in the graph title? My cfgmaker line, as it is today, looks something like this: /usr/local/mrtg-2/bin/cfgmaker --global 'Interval: 1' --global 'PathAdd: /usr/local/rrdtool/bin/' --global 'LogFormat: rrdtool' --global 'WithPeak[_]: ymw' --global 'workdir: /var/www/html/mrtg/RRD' --global 'Options[_]: bits,growright' --ifref=name --ifdesc=descr --no-down communtiy@cat6509 --output /var/www/html/mrtg/cat6509.cfg With the above line, I am now at least able to get the blade-num/switchport-num (e.g. 3/1 ) in the graph title, although I would eally like to see the port name as well. Thanks again. John |
|
| Page 1 of 1 | All times are UTC + 12 hours [ DST ] |
| Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |
|