-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
snmp plugin not producing any data #2628
Comments
Not likely. Doesn't look like opaque values are in use here. At glance I don't see anything that would cause a problem. The |
Yes the conversion statement are unnecessary because expected output is an int. This was just a stab in dark to find if conversion makes any difference. |
Found the issue. PR is over at #2639
|
Thanks for the help telegraf -test -debug -config /etc/telegraf/telegraf.conf -config-directory /etc/telegraf/telegraf.d
|
Bug report
I am using snmp input to query different checkpoint firewall oids and writing them to a tcp socket which is a splunk instance. snmpget returns data but telegraf doesn't return any thing. e.g
[abc@xxxxxx telegraf.d]# snmpget -c public -v2c 10.xxx.xxx.xxx .1.3.6.1.4.1.2620.1.1.25.4.0
SNMPv2-SMI::enterprises.2620.1.1.25.4.0 = INTEGER: 1250140
[abc@xxxxxx telegraf.d]# snmpget -c public -v2c 10.xxx.xxx.xxx .1.3.6.1.4.1.2620.1.1.25.3.0
SNMPv2-SMI::enterprises.2620.1.1.25.3.0 = INTEGER: 129196
I have tried converting to float, int and without conversion but still nothing.
Relevant telegraf.conf:
[global_tags]
dc = "DC1" # will tag all metrics with dc=us-east-1
[agent]
interval = "60s"
round_interval = true
metric_batch_size = 1000
metric_buffer_limit = 10000
collection_jitter = "0s"
flush_interval = "60s"
flush_jitter = "0s"
precision = ""
debug = true
quiet = false
logfile = "/var/log/telegraf/telegraf.log"
hostname = "myhost"
omit_hostname = true
[[outputs.socket_writer]]
address = "tcp://10.xxx.xxx.xxx:2005"
data_format = "json"
[[inputs.snmp]]
agents = [ "10.xx.xx.xx:161" ]
version = 2
timeout = "5s"
retries = 3
community = "public"
[[inputs.snmp.field]]
name = "maxconns"
oid = ".1.3.6.1.4.1.2620.1.1.25.4.0"
conversion = "int"
[[inputs.snmp.field]]
name = "currconns"
oid = ".1.3.6.1.4.1.2620.1.1.25.3.0"
conversion = "int"
[[inputs.snmp.field]]
name = "hmem_failed"
oid = ".1.3.6.1.4.1.2620.1.1.26.1.21.0"
[[inputs.snmp.field]]
name = "kmem_failed"
oid = ".1.3.6.1.4.1.2620.1.1.26.2.15.0"
conversion = "int"
System info:
telegraf version : Telegraf vdev-112-g8bf193d (git: master 8bf193d)
kernel version : 2.6.18-411.0.0.0.1.el5
Steps to reproduce:
no data output by telegraf
telegraf -test -debug -config /etc/telegraf/telegraf.conf -config-directory /etc/telegraf/telegraf.d
[abc@xxxxx telegraf.d]
Expected behavior:
value of the oid.
snmpget -c public -v2c 10.xxx.xxx.xxx .1.3.6.1.4.1.2620.1.1.25.3.0
SNMPv2-SMI::enterprises.2620.1.1.25.3.0 = INTEGER: 129196
Actual behavior:
no data output
Additional info:
I have tried with below version with influxdb as output and still same
Telegraf v1.2.1 (git: release-1.2 3b6ffb3)
The text was updated successfully, but these errors were encountered: