Hi folks ,
I’m using telegraf for monitoring lot of devices with influxdb and grafana . I’m trying to use the inputs.snmp module it’s working for some mibs but not able to get some metrics please find below some OIDS with are working
1- working
[[inputs.snmp]]
agents = [ “” ]
version = 2
community = “”
interval = “60s”
retries = 3
[[inputs.snmp.field]]
name = “hostname”
oid = “RFC1213-MIB::sysName.0”
is_tag = true
[[inputs.snmp.table]]
name = “interface”
inherit_tags = [ “hostname” ]
oid = “IF-MIB::ifTable”
[[inputs.snmp.table.field]]
name = “ifDescr”
oid = “IF-MIB::ifDescr”
is_tag = true
[[inputs.snmp.table]]
name = “interface”
inherit_tags = [ “hostname” ]
oid = “IF-MIB::ifXTable”
[[inputs.snmp.table.field]]
name = “ifDescr”
oid = “IF-MIB::ifDescr”
is_tag = true
[[inputs.snmp.table]]
name = “interface”
inherit_tags = [ “hostname” ]
oid = “EtherLike-MIB::dot3StatsTable”
[[inputs.snmp.table.field]]
name = “ifDescr”
oid = “IF-MIB::ifDescr”
is_tag = true
2- Not working
[[inputs.snmp.field]]
name = “hostname”
oid = “1.3.6.1.2.1.1.5”
is_tag = true
[[inputs.snmp.field]]
name = “tcpRtoMin”
oid = “1.3.6.1.2.1.6.2”
[[inputs.snmp.field]]
name = “tcpRtoMax”
oid = “1.3.6.1.2.1.6.3”
[[inputs.snmp.field]]
name = “tcpMaxConn”
oid = “1.3.6.1.2.1.6.4”
[[inputs.snmp.field]]
name = “tcpActiveOpens”
oid = “1.3.6.1.2.1.6.5”
[[inputs.snmp.field]]
name = “tcpPassiveOpens”
oid = “1.3.6.1.2.1.6.6”
[[inputs.snmp.field]]
name = “tcpAttemptFails”
oid = “1.3.6.1.2.1.6.7”
[[inputs.snmp.field]]
name = “tcpEstabResets”
oid = “1.3.6.1.2.1.6.8”
I have already copy all mibs in /usr/share/snmp/mibs . I’m able to query the device itself with smnpget and bulk command .
[@xxx telegraf]# snmptranslate -Td -Ob MCAFEE-MWG-MIB::stClientCount
MCAFEE-MWG-MIB::stClientCount
stClientCount OBJECT-TYPE
– FROM MCAFEE-MWG-MIB
SYNTAX Counter64
MAX-ACCESS read-only
STATUS current
DESCRIPTION “Currently connected clients”
::= { iso(1) org(3) dod(6) internet(1) private(4) enterprises(1) mcafee(1230) mcafeeGATEWAY(2) mwg(7) mwgStatistics(2) mwgMiscellaneous(5) 2 }
2020-10-08T09:19:01Z D! [inputs.snmp] executing “snmptable” “-Ch” “-Cl” “-c” “public” “127.0.0.1” “EtherLike-MIB::dot3StatsTable”
2020-10-08T09:19:01Z D! [inputs.snmp] executing “snmptranslate” “-Td” “-Ob” “EtherLike-MIB::dot3StatsIndex”
2020-10-08T09:19:01Z D! [inputs.snmp] executing “snmptranslate” “-Td” “-Ob” “EtherLike-MIB::dot3StatsAlignmentErrors”
2020-10-08T09:19:01Z D! [inputs.snmp] executing “snmptranslate” “-Td” “-Ob” “EtherLike-MIB::dot3StatsFCSErrors”
2020-10-08T09:19:01Z D! [inputs.snmp] executing “snmptranslate” “-Td” “-Ob” “EtherLike-MIB::dot3StatsSingleCollisionFrames”
2020-10-08T09:19:01Z D! [inputs.snmp] executing “snmptranslate” “-Td” “-Ob” “EtherLike-MIB::dot3StatsMultipleCollisionFrames”
2020-10-08T09:19:01Z D! [inputs.snmp] executing “snmptranslate” “-Td” “-Ob” “EtherLike-MIB::dot3StatsSQETestErrors”
2020-10-08T09:19:01Z D! [inputs.snmp] executing “snmptranslate” “-Td” “-Ob” “EtherLike-MIB::dot3StatsDeferredTransmissions”
2020-10-08T09:19:01Z D! [inputs.snmp] executing “snmptranslate” “-Td” “-Ob” “EtherLike-MIB::dot3StatsLateCollisions”
2020-10-08T09:19:01Z D! [inputs.snmp] executing “snmptranslate” “-Td” “-Ob” “EtherLike-MIB::dot3StatsExcessiveCollisions”
2020-10-08T09:19:01Z D! [inputs.snmp] executing “snmptranslate” “-Td” “-Ob” “EtherLike-MIB::dot3StatsInternalMacTransmitErrors”
2020-10-08T09:19:01Z D! [inputs.snmp] executing “snmptranslate” “-Td” “-Ob” “EtherLike-MIB::dot3StatsCarrierSenseErrors”
2020-10-08T09:19:01Z D! [outputs.influxdb] Buffer fullness: 0 / 10000 metrics
2020-10-08T09:19:01Z D! [inputs.snmp] executing “snmptranslate” “-Td” “-Ob” “EtherLike-MIB::dot3StatsFrameTooLongs”
2020-10-08T09:19:01Z D! [inputs.snmp] executing “snmptranslate” “-Td” “-Ob” “EtherLike-MIB::dot3StatsInternalMacReceiveErrors”
2020-10-08T09:19:01Z D! [inputs.snmp] executing “snmptranslate” “-Td” “-Ob” “EtherLike-MIB::dot3StatsEtherChipSet”
2020-10-08T09:19:01Z D! [inputs.snmp] executing “snmptranslate” “-Td” “-Ob” “EtherLike-MIB::dot3StatsSymbolErrors”
2020-10-08T09:19:01Z D! [inputs.snmp] executing “snmptranslate” “-Td” “-Ob” “EtherLike-MIB::dot3StatsDuplexStatus”
2020-10-08T09:19:01Z D! [inputs.snmp] executing “snmptranslate” “-Td” “-Ob” “EtherLike-MIB::dot3StatsRateControlAbility”
2020-10-08T09:19:01Z D! [inputs.snmp] executing “snmptranslate” “-Td” “-Ob” “EtherLike-MIB::dot3StatsRateControlStatus”
2020-10-08T09:19:01Z D! [inputs.snmp] executing “snmptranslate” “-Td” “-Ob” “RFC1213-MIB::sysName.0”
2020-10-08T09:19:01Z D! [inputs.snmp] executing “snmptranslate” “-Td” “-Ob” “UCD-SNMP-MIB::memIndex”
2020-10-08T09:19:01Z D! [inputs.snmp] executing “snmptranslate” “-Td” “-Ob” “MCAFEE-MWG-MIB::stClientCount”