[mrtg] Advice sought: extending cfgmaker for multicast

Niall O'Reilly Niall.oReilly at ucd.ie
Thu Jul 23 17:37:58 CEST 2009


Hello.

I want to provide some variables to a template for conditional 
generation of targets related to IPv4 multicast.

I've identified the OIDs I seem to need and changed cfgmaker
so that they are requested from the equipment and their status
placed in variables for use by the template.

Only two variables are involved:
'ciscoIpMRouteIfInMcastOctets' => '1.3.6.1.4.1.9.10.2.1.1.5.1.1'
and 'igmpInterfaceStatus' => '1.3.6.1.3.59.1.1.1.1.3', each of them
indexed by ifIndex and retrievable from the equipment using snmpwalk
from the command line. However, only one of them is retrieved by
cfgmaker.

I seem to be missing something (perhaps obvious), and would appreciate
a hint.

What I'm seeing follows below.

joe(user)312: snmpwalk -v2c -cSTRING ROUTER
  ciscoIpMRouteIfInMcastOctets
CISCO-IPMROUTE-MIB::ciscoIpMRouteIfInMcastOctets.1
  = Counter64: 14920150882
CISCO-IPMROUTE-MIB::ciscoIpMRouteIfInMcastOctets.16
  = Counter64: 13563360270
CISCO-IPMROUTE-MIB::ciscoIpMRouteIfInMcastOctets.17
  = Counter64: 81991616077
joe(user)313:

--base: Walking igmpInterfaceStatus
--snpd:   STRING at ROUTER: -> 1 -> igmpInterfaceStatus = 1
--snpd:   STRING at ROUTER: -> 16 -> igmpInterfaceStatus = 1
--snpd:   STRING at ROUTER: -> 17 -> igmpInterfaceStatus = 1
--base: Walking ciscoIpMRouteIfInMcastOctets
--base: Walking ifAlias
--snpd:   STRING at ROUTER: -> 1 -> ifAlias = EXPECTED-STUFF
--snpd:   STRING at ROUTER: -> 2 -> ifAlias = EXPECTED-STUFF

Thanks in advance for any helpful suggestions.

Best regards,


Niall O'Reilly
University College Dublin IT Services



More information about the mrtg mailing list