[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4688: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4690: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4691: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4692: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
Cheshire Cat Computing • View topic - routers2.cgi and Cisco Catalyst switches

Cheshire Cat Computing

Software support and information
It is currently Mon Nov 10, 2025 11:03 am

All times are UTC + 12 hours [ DST ]




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: Need more information
PostPosted: Wed Oct 08, 2003 2:33 pm 
Offline
Site Admin

Joined: Tue Jul 29, 2003 11:42 am
Posts: 3039
Location: Auckland, New Zealand


Top
 Profile Send private message  
 
 Post subject:
PostPosted: Mon Oct 13, 2003 9:31 am 
Offline
Site Admin

Joined: Tue Jul 29, 2003 11:42 am
Posts: 3039
Location: Auckland, New Zealand
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


Top
 Profile Send private message  
 
 Post subject:
PostPosted: Fri Nov 07, 2003 8:07 am 
Offline
Silver User

Joined: Fri Nov 07, 2003 7:44 am
Posts: 14
Location: Sudbury, ON Canada
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

_________________
<B>John E. Rumball</B>
Sudbury Regional Hospital


Top
 Profile Send private message  
 
 Post subject: CFG line for switches
PostPosted: Sat Nov 08, 2003 11:10 am 
Offline
Silver User

Joined: Sat Nov 08, 2003 11:04 am
Posts: 23
Location: Chicago IL.
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


Top
 Profile Send private message  
 
 Post subject:
PostPosted: Sun Nov 09, 2003 4:38 pm 
Offline
Silver User

Joined: Fri Nov 07, 2003 7:44 am
Posts: 14
Location: Sudbury, ON Canada
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

_________________
<B>John E. Rumball</B>
Sudbury Regional Hospital


Top
 Profile Send private message  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC + 12 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group