[mrtg] problems with cfgmaker and ifdesc=alias

Markus Lauterbach markus.lauterbach at meinestadt.de
Fri Mar 18 12:34:52 CET 2011


Hi Steve,
 
thanks for the reply. I already attempted your advice. After using '--ifdesc=catname,ppname,alias,descr,ip,name,nr ' the "ifName"-attribute was used in my cfg-file. 
 
When I change the order of the attributes to be used for ifdesc, the output in my cfg-file changes as follows:
 
'--ifdesc=catname,ppname,alias,descr,ip,name,nr ' => ifName is used (Description like this as title "g1 -- Switch")
'--ifdesc=alias,descr,catname,ppname,ip,name,nr' => blank is used (Description like this as title "-- Switch")
'--ifdesc=descr,alias,catname,ppname,ip,name,nr' => blank is used (Description like this as title "-- Switch")
'--ifdesc=name,descr,alias,catname,ppname,ip,nr' => #ifName is used (Description like this as title "#g1 -- Switch")
 
To avoid empty results I labelled all interfaces of the router, but no changes took place. The result is the same as above. Any ideas left?
 
Much thanks in advance
 
Markus


Von: Steve Shipway [mailto:s.shipway at auckland.ac.nz] 
Gesendet: Donnerstag, 17. März 2011 21:17
An: Markus Lauterbach; mrtg at lists.oetiker.ch
Betreff: RE: [mrtg] problems with cfgmaker and ifdesc=alias



You can specity multiple methods in the latest cfgmaker, so that alternatives will be used if they exist and the preferred method is blank.  You also do not tell use *what* is being used where you expect the Alias to be used.

Try this:
/usr/local/mrtg-2/bin/cfgmaker --no-down --ifref=ip,name,nr --ifdesc=catname,ppname,alias,descr,ip,name,nr --global "WorkDir: /opt/apache/htdocs/mrtg/switch" --output switch.cfg guessit at 192.168.xxx.yyy

 Steve


Steve Shipway
University of Auckland ITS
UNIX Systems Design Lead
s.shipway at auckland.ac.nz
Ph: +64 9 373 7599 ext 86487
 


From: mrtg-bounces+s.shipway=auckland.ac.nz at lists.oetiker.ch [mrtg-bounces+s.shipway=auckland.ac.nz at lists.oetiker.ch] on behalf of Markus Lauterbach [markus.lauterbach at meinestadt.de]
Sent: Friday, 18 March 2011 2:24 a.m.
To: mrtg at lists.oetiker.ch
Subject: [mrtg] problems with cfgmaker and ifdesc=alias



Hi out there,
 
I'm a recipient of this maillinglist for a few month now. With the announcement of the mrtg-release 2.17.1, I thought, my problem based on cfgmaker and my routers interface alias would be solved. Now, I using mrtg-version 2.17.1 and my problem still exists. 
 
bash-3.00$ /usr/local/mrtg-2/bin/cfgmaker --version
cfgmaker for mrtg-2.17.2
 
I'm using a Cisco SG 300-52 52-port switch, which allows me, to label the interfaces. As you can see, I already did that
 
snmpwalk -c guessit 192.168.xxx.yyy .1.3.6.1.2.1.31.1.1.1.18
IF-MIB::ifAlias.49 = STRING: 
IF-MIB::ifAlias.50 = STRING: server01.yourdomain.com
IF-MIB::ifAlias.51 = STRING: server02.yourdomain.com
IF-MIB::ifAlias.52 = STRING: server03.yourdomain.com
IF-MIB::ifAlias.53 = STRING: server04.yourdomain.com
IF-MIB::ifAlias.54 = STRING: server05.yourdomain.com
IF-MIB::ifAlias.55 = STRING: server06.yourdomain.com
IF-MIB::ifAlias.56 = STRING: server07.yourdomain.com
IF-MIB::ifAlias.57 = STRING: 
IF-MIB::ifAlias.58 = STRING: 
IF-MIB::ifAlias.59 = STRING: 
IF-MIB::ifAlias.60 = STRING: 
IF-MIB::ifAlias.61 = STRING: 
IF-MIB::ifAlias.62 = STRING: 
IF-MIB::ifAlias.63 = STRING: 
IF-MIB::ifAlias.64 = STRING: 
IF-MIB::ifAlias.65 = STRING: 
IF-MIB::ifAlias.66 = STRING: 
IF-MIB::ifAlias.67 = STRING: 
IF-MIB::ifAlias.68 = STRING: 
IF-MIB::ifAlias.69 = STRING: 
IF-MIB::ifAlias.70 = STRING: 
IF-MIB::ifAlias.71 = STRING: 
IF-MIB::ifAlias.72 = STRING: 
IF-MIB::ifAlias.73 = STRING: 
IF-MIB::ifAlias.74 = STRING: server08.yourdomain.com
IF-MIB::ifAlias.75 = STRING: server09.yourdomain.com
IF-MIB::ifAlias.76 = STRING: server10.yourdomain.com
IF-MIB::ifAlias.77 = STRING: server11.yourdomain.com
IF-MIB::ifAlias.78 = STRING: server12.yourdomain.com
IF-MIB::ifAlias.79 = STRING: server13.yourdomain.com
IF-MIB::ifAlias.80 = STRING: 
IF-MIB::ifAlias.81 = STRING: 
IF-MIB::ifAlias.82 = STRING: 
IF-MIB::ifAlias.83 = STRING: 
IF-MIB::ifAlias.84 = STRING: 
IF-MIB::ifAlias.85 = STRING: 
IF-MIB::ifAlias.86 = STRING: 
IF-MIB::ifAlias.87 = STRING: 
IF-MIB::ifAlias.88 = STRING: 
IF-MIB::ifAlias.89 = STRING: 
IF-MIB::ifAlias.90 = STRING: 
IF-MIB::ifAlias.91 = STRING: 
IF-MIB::ifAlias.92 = STRING: 
IF-MIB::ifAlias.93 = STRING: 
IF-MIB::ifAlias.94 = STRING: 
IF-MIB::ifAlias.95 = STRING: 
IF-MIB::ifAlias.96 = STRING: 
IF-MIB::ifAlias.97 = STRING: 
IF-MIB::ifAlias.98 = STRING: 
IF-MIB::ifAlias.99 = STRING: uplink
IF-MIB::ifAlias.100 = STRING: 
IF-MIB::ifAlias.1000 = STRING: 
IF-MIB::ifAlias.1001 = STRING: 
IF-MIB::ifAlias.1002 = STRING: 
IF-MIB::ifAlias.1003 = STRING: 
IF-MIB::ifAlias.1004 = STRING: 
IF-MIB::ifAlias.1005 = STRING: 
IF-MIB::ifAlias.1006 = STRING: 
IF-MIB::ifAlias.1007 = STRING: 
IF-MIB::ifAlias.3000 = STRING: 
IF-MIB::ifAlias.100000 = STRING: 
IF-MIB::ifAlias.300000 = STRING:
 
I'm using the cfgmaker with the following command ( /usr/local/mrtg-2/bin/cfgmaker --no-down --ifdesc=alias --global "WorkDir: /opt/apache/htdocs/mrtg/switch" --output switch.cfg guessit at 192.168.xxx.yyy; ), but unfortunately the interface alias isn't used in the cfg-file :(
 
Is this option tricky to use or I'm not able to see the wood for the trees.
 
Much thanks in advance
 
Markus



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/mrtg/attachments/20110318/acfa3588/attachment-0001.htm 


More information about the mrtg mailing list