Cannot find the ifHCInOctets in snmp_exporter

119 views
Skip to first unread message

Jack Chew

unread,
Feb 12, 2020, 7:07:04 AM2/12/20
to Prometheus Users

Hi team,

I recently checked the data collected by prometheus and found that ifHCInOctets is missing,but snmp config and snmp yml can find the ifHCInOctets OID.My SNMP_EXPORTER version is 0.018.1.


config

Thanks 

Jack





QQ截图20200212200607.png

Brian Candler

unread,
Feb 12, 2020, 7:25:18 AM2/12/20
to Prometheus Users
SNMPv1 devices don't support ifHCInOctets, only ifInOctets.

So if you are talking to an SNMPv1 device - or you are making an SNMPv1 query to an SNMPv2c/v3 capable device - then you won't get ifHCInOctets.

You can check with tcpdump -nnv -s0 udp port 161

Ben Kochie

unread,
Feb 12, 2020, 7:54:26 AM2/12/20
to Brian Candler, Prometheus Users
I don't think this is a v1 vs v2 protocol issue. I've seen devices with SNMPv2 not support HC counters. Example, some old netgear web-managed switches I have. :-)

--
You received this message because you are subscribed to the Google Groups "Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/a1be52e4-2d07-4c4a-af48-518aa1bf7ff9%40googlegroups.com.

Jack Chew

unread,
Feb 16, 2020, 9:44:44 AM2/16/20
to Prometheus Users
Thank Ben, I will try another device

在 2020年2月12日星期三 UTC+8下午8:54:26,Ben Kochie写道:
I don't think this is a v1 vs v2 protocol issue. I've seen devices with SNMPv2 not support HC counters. Example, some old netgear web-managed switches I have. :-)

On Wed, Feb 12, 2020 at 1:25 PM Brian Candler <b.ca...@pobox.com> wrote:
SNMPv1 devices don't support ifHCInOctets, only ifInOctets.

So if you are talking to an SNMPv1 device - or you are making an SNMPv1 query to an SNMPv2c/v3 capable device - then you won't get ifHCInOctets.

You can check with tcpdump -nnv -s0 udp port 161

--
You received this message because you are subscribed to the Google Groups "Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to promethe...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages