[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[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 - Changing Targets menu Foundry switch with 200+ interfaces

Cheshire Cat Computing

Software support and information
It is currently Wed Nov 12, 2025 4:52 am

All times are UTC + 12 hours [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Wed Jul 23, 2008 10:54 pm 
Offline
User

Joined: Wed Jul 23, 2008 10:48 pm
Posts: 1
Hi Steve,

I have seen the options that you mention below in the documentation, but I haven't managed to make any changes to the Targets menu.

I tried changing the cfgmaker by using --ifdesc=descr or --ifdesc=alias or --ifdesc=name and changed the ifdefault on routers2.conf to ifdefault = cfgmaker, but there is no change to the Targets menu.
If you look at the pasted information on Interface 1281 on my previous email, the only location where there is reference to the configured Interface description on the Foundry switch is:
<td>Description:</td>
<td>v255 Testing node </td>
It's the wording 'Testing node' that I want to appear on the menu.

I finally managed to get the description manually changed using option 1 below. That is I added a line in the mrtg.cfg file, below the Target as follows:
routers.cgi*ShortDesc[172.xx.xx.202_1281]: xxxx
That might be my last option, as it will take for ever to change over 1000 interfaces. Or can this be done while creating the mrtg.cfg with cfgmaker??

At the moment I think routers2 uses your option 2 below to create the menu. The problem is that the MRTG_INT_DESCR is not the actual description configured on the interface but the description that MRTG retrieves from the router which is e.g. GigabitEthernet 1/1 or ve255.

Finally I don't know how I would use 3. Title[]: xxxxx other stuff. The line already exists in the mrtg.cfg file but it's not used to create the menu.

Thanks for your help and quick response!

Regards,

Tony



--------------------------------------------------------------------------------
From: Steve Shipway Sent: 22 July 2008 23:35
To: Hassiotis, Anthony
Subject: RE: routers2 request


We also monitor foundry load balancer switches here. In fact, I have a nifty check script check_foundry which will extract active and total connections for a given vServer (it also does pServer checks for Nagios) and then graph these as a stacked area. I’ve attached a copy of an example graph image.



To put your interface descriptions on the Targets menu, you need to use one of the following methods (in order of Routers2 preference)

1. routers.cgi*ShortDesc[]: xxxx

2. SetEnv[]: MRTG_INT_DESCR=”xxxxx”

3. It uses the IP address if known

3. Title[]: xxxxx other stuff



You can also set the ifdefault option in the routers2.conf to change the way routers2 decides on a default Targets menu label.



When you use cfgmaker to generate the configuration files, if you use the --ifdesc= option you can specify a different default to put in the configuration file. It looks like you are getting --ifdesc=name, but you might want to try --ifdesc=descr or --ifdesc=alias to see if this is more what you want.



I know documentation on all this is a bit weak. I’ve a new book in production with lots of detail on MRTG/RRD/Routers2 that will help people – if you attend the LISA08 conference I’m going to have advance copies there at cost. There’s also goingto be more detailed online documentation.



Steve






--------------------------------------------------------------------------------

From: Hassiotis, Anthony
Sent: Wednesday, 23 July 2008 03:02
To: steve@steveshipway.org
Subject: routers2 request



Hi Steve,



Thanks for your work on routers2.

I have set up mrtg, rrdtool and routers2 although the devices I am monitoring are a number of Foundry switches with a couple of hundred interfaces each. What I want to get working, is to have an easy way of putting the interface descriptions to the left/right hand 'targets' window/frame on internet exlporer. At the moment I am getting the interface numbers i.e. GigabitEthernet1, 2, 3 etc. In our organization, this is of no use to anyone who is trying to find info on a system connected to the Foundry switch.

I found some reference on the how to, the mailing lists and the examples, but I feel I am still far from making this work.

Here is the extract of an interface from my mrtg.cfg configuration:



### Interface 1281 >> Descr: 'v255' | Name: 've255' | Ip: '10.130.4.252' | Eth: '' ###



Target[172.xx.xx.202_1281]: 1281:d0NoTr3aD@172.16.20.202:
SetEnv[172.xx.xx.202_1281]: MRTG_INT_IP="10.xx.xx.252" MRTG_INT_DESCR="v255"
MaxBytes[172.xx.xx.202_1281]: 125000000
Title[172.xx.xx.202_1281]: Traffic Analysis for 1281 -- UK1-ESW-01
PageTop[172.xx.xx.202_1281]: <h1>Traffic Analysis for 1281 -- UK1-ESW-01</h1>



<div id="sysdetails">
<table>
<tr>
<td>System:</td>
<td>UK1-ESW-01 in London Hosting Centre</td>
</tr>
<tr>
<td>Maintainer:</td>
<td>Anthony Hassiotis </td>
</tr>
<tr>
<td>Description:</td>
<td>v255 Testing node </td>
</tr>
<tr>
<td>ifType:</td>
<td>Layer 2 Virtual LAN using 802.1Q (135)</td>
</tr>
<tr>
<td>ifName:</td>
<td>ve255</td>
</tr>
<tr>
<td>Max Speed:</td>
<td>125.0 MBytes/s</td>
</tr>
<tr>
<td>Ip:</td>
<td>10.130.4.252 ()</td>
</tr>
</table>
</div>


Top
 Profile Send private message  
 
PostPosted: Thu Jul 24, 2008 1:40 pm 
Offline
Site Admin

Joined: Tue Jul 29, 2003 11:42 am
Posts: 3039
Location: Auckland, New Zealand
Probably the best way to achieve what you want is to use a cfgmaker template to add the routers.cgi*ShortDesc[] directive, setting the menu link label to be exactly what you want.

I will try to get a working template posted here shortly.

_________________
Steve Shipway
UNIX Systems, ITSS, University of Auckland, NZ
Woe unto them that rise up early in the morning... -- Isaiah 5:11


Top
 Profile Send private message  
 
PostPosted: Thu Jul 24, 2008 6:03 pm 
Offline
Site Admin

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

_________________
Steve Shipway
UNIX Systems, ITSS, University of Auckland, NZ
Woe unto them that rise up early in the morning... -- Isaiah 5:11


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

All times are UTC + 12 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


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