You could just add --if-filter=’$if_type!=166’ to the cfgmaker command
line, this will cause cfgmaker to ignore type 166 interfaces (though you’ll
need to also use --ifref=’name,nr’ to make it fall back to using the
interface number for the unique identifier since name is not unique).

 

The ifref and ifdesc options of cfgmaker (after MRTG 2.16.something) allow
multiple option to be specified in comma-separated form as alternative
options if the first one is nonunique (My patch! My patch!)

 

Or is the problem that you want one graph from the type 6 and one form the
type 166?  In this case, you might be able to achieve it with an interface
template  that tests the iftype and uses the default for type 6 but a
different setup for the type 166.

 

Steve

 

  _____  

Steve Shipway

ITS Unix Services Design Lead

University of Auckland, New Zealand

Floor 1, 58 Symonds Street, Auckland

Phone: +64 (0)9 3737599 ext 86487

DDI: +64 (0)9 923 6487

Mobile: +64 (0)21 753 189

Email:  <mailto:[email protected]> [email protected]

P Please consider the environment before printing this e-mail : 打印本邮件,
将减少一棵树存活的机会

 

From: [email protected]
[mailto:[email protected]] On Behalf Of
Daniel McDonald
Sent: Wednesday, 12 June 2013 9:42 a.m.
To: mrtg
Subject: [mrtg] IfName and MPLS interfaces

 

In general, we use ifName to identify interfaces monitored by mrtg.
However, on MPLS PE or P routers, there are two instances with the same
ifName �C one with ifType 6 for the physical characteristics, and one with
ifType 166 for the MPLS counters.  Without a lot of hacking to ignore ifType
166 interfaces, I think I’ll need to come up with another way to identify
those interfaces.

Cfgmaker doesn’t appear to have any sort of fallback to change ifref if the
criteria specified by ―ifref is unavailable.  I tried a bunch of ways to
work around it, but short of creating a new configuration option, it’s
pretty insistent on not allowing it.

Would anyone find that a useful option for cfgmaker?  Perhaps a name like ―
ifref2?  I imagine for consistency I would also need --ifdesc2....



-- 
Daniel J McDonald, CCIE # 2495, CISSP # 78281

Attachment: smime.p7s
Description: S/MIME cryptographic signature

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

Reply via email to