{"action":"opened","issue":{"url":"https://api.github.com/repos/prometheus/snmp_exporter/issues/92","repository_url":"https://api.github.com/repos/prometheus/snmp_exporter","labels_url":"https://api.github.com/repos/prometheus/snmp_exporter/issues/92/labels{/name}","comments_url":"https://api.github.com/repos/prometheus/snmp_exporter/issues/92/comments","events_url":"https://api.github.com/repos/prometheus/snmp_exporter/issues/92/events","html_url":"https://github.com/prometheus/snmp_exporter/issues/92","id":196160570,"number":92,"title":"error when dual nic have same lahel","user":{"login":"wtip","id":3502082,"avatar_url":"https://avatars.githubusercontent.com/u/3502082?v=3","gravatar_id":"","url":"https://api.github.com/users/wtip","html_url":"https://github.com/wtip","followers_url":"https://api.github.com/users/wtip/followers","following_url":"https://api.github.com/users/wtip/following{/other_user}","gists_url":"https://api.github.com/users/wtip/gists{/gist_id}","starred_url":"https://api.github.com/users/wtip/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wtip/subscriptions","organizations_url":"https://api.github.com/users/wtip/orgs","repos_url":"https://api.github.com/users/wtip/repos","events_url":"https://api.github.com/users/wtip/events{/privacy}","received_events_url":"https://api.github.com/users/wtip/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-16T21:43:18Z","updated_at":"2016-12-16T21:43:18Z","closed_at":null,"body":"The metrics gathering fails when the device has dual nics that have the same label.\r\n\r\n```\r\nsnmpwalk -v 2c -c public server123 | grep \"3.6.1.2.1.2.2.1.2\"\r\niso.3.6.1.2.1.2.2.1.2.1 = STRING: \"lo\"\r\niso.3.6.1.2.1.2.2.1.2.2 = STRING: \"Broadcom Corporation NetXtreme II BCM5716 Gigabit Ethernet\"\r\niso.3.6.1.2.1.2.2.1.2.3 = STRING: \"Broadcom Corporation NetXtreme II BCM5716 Gigabit Ethernet\"\r\niso.3.6.1.2.1.2.2.1.2.4 = STRING: \"bond0\"\r\niso.3.6.1.2.1.2.2.1.20.1 = Counter32: 0\r\niso.3.6.1.2.1.2.2.1.20.2 = Counter32: 0\r\niso.3.6.1.2.1.2.2.1.20.3 = Counter32: 0\r\niso.3.6.1.2.1.2.2.1.20.4 = Counter32: 0\r\niso.3.6.1.2.1.2.2.1.21.1 = Gauge32: 0\r\niso.3.6.1.2.1.2.2.1.21.2 = Gauge32: 0\r\niso.3.6.1.2.1.2.2.1.21.3 = Gauge32: 0\r\niso.3.6.1.2.1.2.2.1.21.4 = Gauge32: 0\r\niso.3.6.1.2.1.2.2.1.22.1 = OID: ccitt.0\r\niso.3.6.1.2.1.2.2.1.22.2 = OID: ccitt.0\r\niso.3.6.1.2.1.2.2.1.22.3 = OID: ccitt.0\r\niso.3.6.1.2.1.2.2.1.22.4 = OID: ccitt.0\r\n```\r\n\r\n```\r\nAn error has occurred during metrics gathering:\r\n\r\n31 error(s) occurred:\r\n* collected metric ifSpeed label:<name:\"ifDescr\" value:\"Broadcom Corporation NetXtreme II BCM5716 Gigabit Ethernet\" > untyped:<value:0 >  was collected before with the same name and label values\r\n* collected metric ifInErrors label:<name:\"ifDescr\" value:\"Broadcom Corporation NetXtreme II BCM5716 Gigabit Ethernet\" > untyped:<value:0 >  was collected before with the same name and label values\r\n* collected metric ifHCOutOctets label:<name:\"ifDescr\" value:\"Broadcom Corporation NetXtreme II BCM5716 Gigabit Ethernet\" > untyped:<value:0 >  was collected before with the same name and label values\r\n* collected metric ifOutBroadcastPkts label:<name:\"ifDescr\" value:\"Broadcom Corporation NetXtreme II BCM5716 Gigabit Ethernet\" > untyped:<value:0 >  was collected before with the same name and label values\r\n* collected metric ifHighSpeed label:<name:\"ifDescr\" value:\"Broadcom Corporation NetXtreme II BCM5716 Gigabit Ethernet\" > untyped:<value:1000 >  was collected before with the same name and label values\r\n* collected metric ifHCOutMulticastPkts label:<name:\"ifDescr\" value:\"Broadcom Corporation NetXtreme II BCM5716 Gigabit Ethernet\" > untyped:<value:0 >  was collected before with the same name and label values\r\n* collected metric ifInBroadcastPkts label:<name:\"ifDescr\" value:\"Broadcom Corporation NetXtreme II BCM5716 Gigabit Ethernet\" > untyped:<value:0 >  was collected before with the same name and label values\r\n* collected metric ifInOctets label:<name:\"ifDescr\" value:\"Broadcom Corporation NetXtreme II BCM5716 Gigabit Ethernet\" > untyped:<value:5.55099672e+08 >  was collected before with the same name and label values\r\n* collected metric ifOutQLen label:<name:\"ifDescr\" value:\"Broadcom Corporation NetXtreme II BCM5716 Gigabit Ethernet\" > untyped:<value:0 >  was collected before with the same name and label values\r\n* collected metric ifInMulticastPkts label:<name:\"ifDescr\" value:\"Broadcom Corporation NetXtreme II BCM5716 Gigabit Ethernet\" > untyped:<value:1.1497918e+08 >  was collected before with the same name and label values\r\n* collected metric ifConnectorPresent label:<name:\"ifDescr\" value:\"Broadcom Corporation NetXtreme II BCM5716 Gigabit Ethernet\" > untyped:<value:1 >  was collected before with the same name and label values\r\n* collected metric ifInDiscards label:<name:\"ifDescr\" value:\"Broadcom Corporation NetXtreme II BCM5716 Gigabit Ethernet\" > untyped:<value:12 >  was collected before with the same name and label values\r\n* collected metric ifMtu label:<name:\"ifDescr\" value:\"Broadcom Corporation NetXtreme II BCM5716 Gigabit Ethernet\" > untyped:<value:1500 >  was collected before with the same name and label values\r\n* collected metric ifInUcastPkts label:<name:\"ifDescr\" value:\"Broadcom Corporation NetXtreme II BCM5716 Gigabit Ethernet\" > untyped:<value:0 >  was collected before with the same name and label values\r\n* collected metric ifHCInUcastPkts label:<name:\"ifDescr\" value:\"Broadcom Corporation NetXtreme II BCM5716 Gigabit Ethernet\" > untyped:<value:0 >  was collected before with the same name and label values\r\n* collected metric ifOutMulticastPkts label:<name:\"ifDescr\" value:\"Broadcom Corporation NetXtreme II BCM5716 Gigabit Ethernet\" > untyped:<value:0 >  was collected before with the same name and label values\r\n* collected metric ifAdminStatus label:<name:\"ifDescr\" value:\"Broadcom Corporation NetXtreme II BCM5716 Gigabit Ethernet\" > untyped:<value:1 >  was collected before with the same name and label values\r\n* collected metric ifPromiscuousMode label:<name:\"ifDescr\" value:\"Broadcom Corporation NetXtreme II BCM5716 Gigabit Ethernet\" > untyped:<value:2 >  was collected before with the same name and label values\r\n* collected metric ifOperStatus label:<name:\"ifDescr\" value:\"Broadcom Corporation NetXtreme II BCM5716 Gigabit Ethernet\" > untyped:<value:1 >  was collected before with the same name and label values\r\n* collected metric ifInNUcastPkts label:<name:\"ifDescr\" value:\"Broadcom Corporation NetXtreme II BCM5716 Gigabit Ethernet\" > untyped:<value:1.1497918e+08 >  was collected before with the same name and label values\r\n* collected metric ifOutNUcastPkts label:<name:\"ifDescr\" value:\"Broadcom Corporation NetXtreme II BCM5716 Gigabit Ethernet\" > untyped:<value:0 >  was collected before with the same name and label values\r\n* collected metric ifHCOutUcastPkts label:<name:\"ifDescr\" value:\"Broadcom Corporation NetXtreme II BCM5716 Gigabit Ethernet\" > untyped:<value:1.026621e+06 >  was collected before with the same name and label values\r\n* collected metric ifInUnknownProtos label:<name:\"ifDescr\" value:\"Broadcom Corporation NetXtreme II BCM5716 Gigabit Ethernet\" > untyped:<value:0 >  was collected before with the same name and label values\r\n* collected metric ifHCInOctets label:<name:\"ifDescr\" value:\"Broadcom Corporation NetXtreme II BCM5716 Gigabit Ethernet\" > untyped:<value:2.6324903448e+10 >  was collected before with the same name and label values\r\n* collected metric ifHCInMulticastPkts label:<name:\"ifDescr\" value:\"Broadcom Corporation NetXtreme II BCM5716 Gigabit Ethernet\" > untyped:<value:0 >  was collected before with the same name and label values\r\n* collected metric ifHCInBroadcastPkts label:<name:\"ifDescr\" value:\"Broadcom Corporation NetXtreme II BCM5716 Gigabit Ethernet\" > untyped:<value:0 >  was collected before with the same name and label values\r\n* collected metric ifOutOctets label:<name:\"ifDescr\" value:\"Broadcom Corporation NetXtreme II BCM5716 Gigabit Ethernet\" > untyped:<value:0 >  was collected before with the same name and label values\r\n* collected metric ifOutUcastPkts label:<name:\"ifDescr\" value:\"Broadcom Corporation NetXtreme II BCM5716 Gigabit Ethernet\" > untyped:<value:1.026621e+06 >  was collected before with the same name and label values\r\n* collected metric ifOutDiscards label:<name:\"ifDescr\" value:\"Broadcom Corporation NetXtreme II BCM5716 Gigabit Ethernet\" > untyped:<value:0 >  was collected before with the same name and label values\r\n* collected metric ifOutErrors label:<name:\"ifDescr\" value:\"Broadcom Corporation NetXtreme II BCM5716 Gigabit Ethernet\" > untyped:<value:0 >  was collected before with the same name and label values\r\n* collected metric ifHCOutBroadcastPkts label:<name:\"ifDescr\" value:\"Broadcom Corporation NetXtreme II BCM5716 Gigabit Ethernet\" > untyped:<value:0 >  was collected before with the same name and label values\r\n\r\n```\r\n\r\nIs this something that I can fix with a different snmp.yml config?\r\n"}}
{"actor":{"display_login":"wtip"}}