Inputs.snmp - Cisco # of Active SIP Calls - not working

influxdb
telegraf
#1

Hi there,

I have Telegraf 1.2.1 installed and working correctly using SNMP for a single Cisco router. It is logging to InfluxDB correctly also.

I am now attempting to expand the SNMP configuration, polling a different Cisco router to collect stats for active SIP calls.

The first inputs.snmp is working however the second configuration does not return any results using telegraf --test.
I can successfully poll the OID using snmpget from the CLI.
I’ve enable debug logging and there is nothing related to this showing up there either.
I had the SNMP MIBs in /usr/share/snmp/mibs, however I’ve also copied them to /etc/telegraf/.snmp/mibs.

Here is the current inputs.snmp configurations.

[[inputs.snmp]]
agents = [ "x.x.x.51:161" ]
version = 2
community = "Public"
name = "snmp"

[[inputs.snmp.field]]
name = "hostname"
oid = "RFC1213-MIB::sysName.0"
is_tag = true

[[inputs.snmp.table]]
name = "snmp"
inherit_tags = [ "hostname" ]
oid = "IF-MIB::ifXTable"

[[inputs.snmp.table.field]]
  name = "ifName"
  oid = "IF-MIB::ifName"
  is_tag = true

[[inputs.snmp]]
agents = [ "x.x.x.100:161" ]
version = 2
community = "Public"
name = "voip"

[[inputs.snmp.field]]
name = "hostname"
oid = "RFC1213-MIB::sysName.0"
is_tag = true

[[inputs.snmp.table]]
name = "voip"
inherit_tags = [ "hostname" ]

[[inputs.snmp.table.field]]
name = "calls"
oid = "CISCO-VOICE-DIAL-CONTROL-MIB::cvCallVolConnActiveConnection.2"
is_tag = true

The output from telegraf --test is shown below. The first configuration producing the expected output.

* Plugin: inputs.snmp, Collection 1

snmp,host=cl1-svv-v0534,ifName=NV0,hostname=dc1rtr03.gwip.domain.local,agent_host=x.x.x.xifHCInOctets=0i,ifCounterDiscontinuityTime=0i,ifLinkUpDownTrapEnable=1i,ifConnectorPresent=2i,ifName=“NV0”,ifInBroadcastPkts=0i,ifHCOutUcastPkts=0i,ifOutMulticastPkts=0i,ifHCInMulticastPkts=0i,ifHCInBroadcastPkts=0i,ifHCOutOctets=0i,ifHCOutMulticastPkts=0i,ifHCOutBroadcastPkts=0i,ifInMulticastPkts=0i,ifOutBroadcastPkts=0i,ifHCInUcastPkts=0i,ifHighSpeed=0i,ifPromiscuousMode=2i 1492747455000000000
snmp,ifName=Gi0/0,hostname=dc1-rtr03-gwip.domain.local,agent_host=x.x.x.x,host=cl1-svv-v0534 ifInBroadcastPkts=76222i,ifHCOutBroadcastPkts=66i,ifHCInUcastPkts=19068646659i,ifHighSpeed=100i,ifAlias=“To Telstra GWIP PE Switch - IP x.x.x.x”,ifName=“Gi0/0”,ifInMulticastPkts=6412657i,ifOutMulticastPkts=3446700i,ifHCOutOctets=18858000349940i,ifHCOutMulticastPkts=3446700i,ifLinkUpDownTrapEnable=1i,ifConnectorPresent=1i,ifOutBroadcastPkts=66i,ifHCInOctets=3159837565855i,ifHCInBroadcastPkts=76222i,ifCounterDiscontinuityTime=0i,ifHCInMulticastPkts=6412657i,ifHCOutUcastPkts=23942998189i,ifPromiscuousMode=2i 1492747455000000000
snmp,agent_host=x.x.x.x,host=cl1-svv-v0534,ifName=Gi0/1,hostname=dc1-rtr03-gwip.domain.local ifHCInMulticastPkts=11602492i,ifHCOutOctets=3165056708300i,ifHCOutBroadcastPkts=51i,ifConnectorPresent=1i,ifCounterDiscontinuityTime=0i,ifHCInOctets=18939126065874i,ifInBroadcastPkts=7597i,ifHCInUcastPkts=24074199815i,ifHCInBroadcastPkts=7597i,ifHighSpeed=1000i,ifInMulticastPkts=11602492i,ifLinkUpDownTrapEnable=1i,ifAlias=“to ASA Firewall”,ifOutMulticastPkts=17567154i,ifOutBroadcastPkts=51i,ifHCOutUcastPkts=19209497202i,ifHCOutMulticastPkts=17567154i,ifPromiscuousMode=2i,ifName=“Gi0/1” 1492747455000000000
snmp,hostname=dc1-rtr03-gwip.domain.local,agent_host=x.x.x.x,host=cl1-svv-v0534,ifName=Ba0/3 ifHCOutBroadcastPkts=0i,ifHighSpeed=1000i,ifConnectorPresent=1i,ifCounterDiscontinuityTime=0i,ifOutBroadcastPkts=0i,ifHCInOctets=0i,ifPromiscuousMode=2i,ifName=“Ba0/3”,ifHCInUcastPkts=0i,ifHCInMulticastPkts=0i,ifHCInBroadcastPkts=0i,ifHCOutOctets=0i,ifHCOutUcastPkts=0i,ifHCOutMulticastPkts=0i,ifInMulticastPkts=0i,ifInBroadcastPkts=0i,ifOutMulticastPkts=0i,ifLinkUpDownTrapEnable=1i 1492747455000000000
snmp,host=cl1-svv-v0534,ifName=Nu0,hostname=dc1-rtr03-gwip.domain.local,agent_host=x.x.x.xifLinkUpDownTrapEnable=1i,ifHighSpeed=10000i,ifConnectorPresent=2i,ifCounterDiscontinuityTime=0i,ifInBroadcastPkts=0i,ifInMulticastPkts=0i,ifOutMulticastPkts=0i,ifOutBroadcastPkts=0i,ifPromiscuousMode=2i,ifName=“Nu0” 1492747455000000000
snmp,ifName=Lo0,hostname=dc1-rtr03-gwip.domain.local,agent_host=x.x.x.x,host=cl1-svv-v0534 ifHCOutUcastPkts=5738913i,ifHCOutBroadcastPkts=0i,ifLinkUpDownTrapEnable=1i,ifName=“Lo0”,ifOutBroadcastPkts=0i,ifHCInOctets=0i,ifHCInUcastPkts=0i,ifHCInMulticastPkts=0i,ifHCOutOctets=1848164783i,ifConnectorPresent=2i,ifInMulticastPkts=0i,ifOutMulticastPkts=0i,ifHCInBroadcastPkts=0i,ifPromiscuousMode=2i,ifInBroadcastPkts=0i,ifHCOutMulticastPkts=0i,ifHighSpeed=8000i,ifCounterDiscontinuityTime=0i 1492747455000000000

The second config does not work as expected.

* Plugin: inputs.snmp, Collection 1

If anyone has any ideas or a working example that they could share I would greatly appreciate it.

Regards
Mark

#2

I’m not sure how to fix the problem, but it might be helpful for others if you post the command and output of snmpget for configuration that is not working.