<div dir="ltr"><div class="gmail_quote"><div dir="ltr">On Thu, Sep 10, 2015 at 1:33 PM Matt Hite <<a href="mailto:lists@beatmixed.com">lists@beatmixed.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><div style="font-size:12.8000001907349px">I tried to insert 'Instance "IF-MIB::ifName"' into the <Data> definition but that didn't do anything except cause metrics to stop logging. ;)</div><div style="font-size:12.8000001907349px"><br></div></div></blockquote><div><br></div><div>What version of collectd are you using? v5.2.2 included better matching of SNMP subtrees. I tried something similar to what you are doing on CentOS 6 with collectd 4.10 from the repos and it did not work.<br><br>I basically tried to use the hrStorageDescr as the Instance mappings for the values of IF-MIB::ifInOctets, where the Instance is in a completely different table than the values. This did not work in 4.10 and the version of collectd is not compiled with debug enabled, so I couldn't debug further.<br><br></div><div>With v5.4.2, this configuration does work for me. Instead of getting "if_octets-eth0" for the filename, I get "if_octets-Physical\ memory", where Physical memory is index .1 in the hrStorageDescr, same as the index for eth0.<br><br></div><div>Give that a try, if you are indeed using an older version of collectd.<br></div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">BTW, the SNMP index number mapping to interfaces can vary across devices and also between reboots. (This is pretty standard AFAIK.)<br></div></blockquote><div><br> It's been a while, but on Cisco equipment, you should be able to save the interface index assignment to NVRAM by running:
<br><br> Router(config)# snmp-server ifindex persist
<br><br>There may be an equivalent for Juniper.<br><br></div><div>Giovanni<br></div></div></div>