Skip to content
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

TOML indentation problem, snmp input plugin #1541

Closed
mire3212 opened this issue Jul 22, 2016 · 5 comments
Closed

TOML indentation problem, snmp input plugin #1541

mire3212 opened this issue Jul 22, 2016 · 5 comments

Comments

@mire3212
Copy link

I've got Telegraf capturing data from a machine and dumping that into InfluxDB. I'm trying to get it to also capture SNMP data and write that data into InfluxDB. I've configured it in the same way I've seen from the docs, and yet my data isn't showing up in InfluxDB. I can't seem to figure out why, any thoughts?

Telegraf - version 0.13.1
Connected to http://localhost:8086 version 0.13.0 InfluxDB shell version: 0.13.0

   interval 10s
...
 [[inputs.snmp]]
   snmptranslate_file = "/etc/telegraf/oids.txt"

   [[inputs.snmp.host]]
     address = "192.168.100.41:161"
     community = "public"
     version = 2
     timeout = 2.0
     retries = 2
     collect = ["if_out_octets", "if_in_octets"]

   [[inputs.snmp.bulk]]
      name = "if_out_octets"
      max_repetition = 127
      oid = ".1.3.6.1.2.1.31.1.1.1.10.48"

   [[inputs.snmp.bulk]]
      name = "if_in_octets"
      max_repetition = 127
      oid = ".1.3.6.1.2.1.31.1.1.1.6.48"
@sparrc
Copy link
Contributor

sparrc commented Jul 23, 2016

We try to reserve GitHub Issues for actionable bug reports or feature requests. Please send general questions to the [email protected] mailing list.

@sparrc sparrc closed this as completed Jul 23, 2016
@mire3212
Copy link
Author

I believe the issue is actually a potential bug.

It appears that having spaces in the config file in front of the descriptors is preventing telegraf from reading the config.

Example:

This doesn't work:

...[[inputs.snmp.host]]]
      stuff
      here

(. = space for clarification)

This does work:

[[inputs.snmp.host]]
   stuff
   here

@sparrc
Copy link
Contributor

sparrc commented Jul 25, 2016

that is strange, can you post your full working and non-working config, maybe in a gist?

@sparrc sparrc reopened this Jul 25, 2016
@sparrc sparrc changed the title SNMP Not Writing to InfluxDB TOML indentation problem, snmp input plugin Jul 25, 2016
@mire3212
Copy link
Author

I don't have the original configs anymore and I've re-worked a lot of since this post in an effort to get it working. :/

@sparrc
Copy link
Contributor

sparrc commented Sep 6, 2016

I believe this has been solved by #1389

@sparrc sparrc closed this as completed Sep 6, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants