[mrtg] Advice sought: extending cfgmaker for multicast

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


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' => ''
and 'igmpInterfaceStatus' => '', 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

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
  = Counter64: 14920150882
  = Counter64: 13563360270
  = Counter64: 81991616077

--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