Monitoring cisco switches with Telegraf

#1

Hi all!

I am very new to influxdb and am trying to setup telegraf to poll my network devices via snmp. I currently am failing when trying to test and receive this error:

Error in plugin [inputs.snmp]: initializing table snmp: getting table columns: exec: “snmptable”: executable file not found in $PATH

SNMP inputs config is below:

# Retrieves SNMP values from remote agents

[[inputs.snmp]]
agents = [ “xxx.xxx.xxx.xxx:161” ]
version = 2
name = "snmp"
community = “xxxxxxx”

[[inputs.snmp.field]]
name = "hostname"
oid = "1.3.6.1.4.1.9.2.1.3"
is_tag = true

[[inputs.snmp.table]]
name = "snmp"
inherit_tags = [ “hostname” ]
oid = “1.3.6.1.2.1.31.1.1”

[[inputs.snmp.table.field]]
name = "ifname"
oid = "1.3.6.1.2.1.31.1.1.1.1"
is_tag = true

I am running the influxdb and telegraf on RHEL

Any pointers in the right direction would be great! I am just starting out so im sure its something configurational

Thanks

Rob

#2

You need to make sure that the snmptable executable is in the telegraf users path. Usually that just requires installing the right package, I believe it is yum install net-snmp-utils on RHEL.

#3

Many thanks Daniel!

I will look into this.

Thanks

Rob

#4

Daniel that fixed the issue!

however I don’t see the new measurement in influxdb when I do show measurement. I would think to see snmp? Do I need to restart influxdb?

best regards

Rob

#5

I figured it out I had not started telegraf!