[mrtg] nic ordering in snmp

Niall O'Reilly Niall.oReilly at ucd.ie
Sat Jan 10 15:28:48 CET 2009


On Sat, 2009-01-10 at 00:16 -0500, R Dicaire wrote:
> This isn't the first time nics have been reordered in snmp, and its
> annoying to have to go into mrtg.cfg to change it everytime the
> machine is rebooted.

	You can avoid the problem by not using some other character 
	than the interface number to refer to each interface in your
	configuration. Options include the interface name (ifName),
	description (ifDescr), or even the IPaddress.

	The MRTG Reference has this to say:

Interface by Name
        
        This is the only sensible way to reference the interfaces of
        your switches.
        
        You can tell cfgmaker to generate such references with the
        option --ifref=name.
        

	MRTG can then find the right index number each time it polls
	the device.

	IHTH

	/Niall




More information about the mrtg mailing list