Hello Steve and Jan,

 

Thanks for your 2 answers.

I'm afraid I was right L

 

I could change mrtg.cfg before each run but I would like do something more 
"clean" and if possible limit as much as possible big snmpwalk on our ciscos 
which have sometimes 400 or 500 virt interface.

 

So to my mind it should be a very small development to make MRTG uses 
"IF-MIB::ifAlias" to reference a target like "IF-MIB::ifDescr" is already used.

If Tobi has stopped further development I will have a look if I can patch mrtg.

 

Patrice

 

De : Steve Shipway [mailto:[email protected]] 
Envoyé : mardi 2 février 2010 22:09
À : Patrice Blot - FCNET
Cc : [email protected]
Objet : RE: graphing cisco virtual interface/PPPoE users

 

If the only way to uniquely identify a particular interface on your device is 
via the ifAlias then MRTG cannot do this - as you say, the Target syntax allows 
name, description, MAC, IP, type and number but not the Alias.  The cfgmaker 
utility (which can be used to build MRTG configs) can use ifAlias for 
descriptions but that's it.

 

The only way to do this I can think of is to write a custom data collection 
plugin for MRTG that can do this; then you can make it identify the required 
username and select the correct interface counters.  Of course this will 
require some coding to create the plugin...

 

It would be a good new feature to request for the next version of MRTG to have 
it able to use the ifAlias and Cisco description to identify an interface, but 
Tobi has indicated that he has stopped further development of MRTG (other than 
bug fixes)...

 

Steve

 

 

_______________________________________________
mrtg mailing list
[email protected]
https://lists.oetiker.ch/cgi-bin/listinfo/mrtg

Reply via email to