-
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
performing get: marshal: Unable to parse OID: strconv.ParseInt: parsing "iso": invalid syntax #1833
Comments
Can you show your configuration please? |
The configuration file is this (available on https://github.com/influxdata/telegraf/tree/master/plugins/inputs/snmp) [[inputs.snmp]]
agents = [ "127.0.0.1:161" ]
version = 2
community = "public"
name = "system"
[[inputs.snmp.field]]
name = "hostname"
oid = ".1.0.0.1.1"
is_tag = true
[[inputs.snmp.field]]
name = "uptime"
oid = ".1.0.0.1.2"
[[inputs.snmp.field]]
name = "loadavg"
oid = ".1.0.0.1.3"
conversion = "float(2)"
[[inputs.snmp.table]]
name = "remote_servers"
inherit_tags = [ "hostname" ]
[[inputs.snmp.table.field]]
name = "server"
oid = ".1.0.0.0.1.1"
is_tag = true
[[inputs.snmp.table.field]]
name = "connections"
oid = ".1.0.0.0.1.2"
[[inputs.snmp.table.field]]
name = "latency"
oid = ".1.0.0.0.1.3"
conversion = "float" I commented conversion lines to avoid the error, but the error persists. |
Found the issue here and fixed it. The issue is an incorrect handling of OIDs that can't be found in the MIB. Very easy fix. PR is up at #1846 |
From your earlier comment, is sounds like you're using the sample config. This config is meant to demonstrate the usage of the plugin, and not actually be used. You have to generate a config specific to the device you're trying to probe. |
Thanks, now it's working with snmp fields supported by my system and without errors |
how did you solve this problem can you tell me |
I got the following error when I run telegraf with snmp filter
I used the same configuration on README.md
I running it over:
Ubuntu 16.04
Telegraf v1.0.0-beta3-136-gca8e512
The new database was created but without information
How can I fix it?
The text was updated successfully, but these errors were encountered: