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

SNMP plugin not double-quoting strings and timeticks #1506

Closed
mattbakerau opened this issue Jul 18, 2016 · 3 comments
Closed

SNMP plugin not double-quoting strings and timeticks #1506

mattbakerau opened this issue Jul 18, 2016 · 3 comments
Labels
bug unexpected problem or unintended behavior

Comments

@mattbakerau
Copy link

mattbakerau commented Jul 18, 2016

I am trying to have Telegraf use the SNMP input plugin to capture some different metrics from an APC PDU.
Some of these are standard counters and they work fine, but other oids are either text or timetics and these seem to cause an error when the metric is entered into InfluxDB.

It seems that the SNMP plugin should be double-quoting values otherwise they are treated as boolean.

Using Telegraf & InfluxDB version 1.0.0 beta 2 on Centos 6.8

Config in telegraf.conf:

[[inputs.snmp]]

  [[inputs.snmp.host]]
    address = "10.1.1.3:161"
    community = "public"
    collect = ["PDUname"]

  [[inputs.snmp.get]]
        name = "PDUname"
        oid = ".1.3.6.1.2.1.1.5.0"

telegraf.log file:

2016/07/16 19:02:50 Output [influxdb] buffer fullness: 2 / 10000 metrics. Total gathered metrics: 2. Total dropped metrics: 0.
2016/07/16 19:02:50 ERROR: {"error":"unable to parse 'PDUname,host=monitor,snmp_host=10.1.1.3 PDUname=Rack 1468661560000000000': invalid boolean\nunable to parse 'PDUname,host=monitor,snmp_host=10.1.1.3 PDUname=Rack 1468661570000000000': invalid boolean"}
2016/07/16 19:02:50 Error writing to output [influxdb]: Could not write to any InfluxDB server in cluster

This example was for text OID. I found the same thing occurred if the OID was a timetics.

@sparrc sparrc added the bug unexpected problem or unintended behavior label Jul 18, 2016
@jlagrangefr
Copy link

Hello,

I have exactly the same problem. Did you find a solution or a fix ?

@ghost
Copy link

ghost commented Aug 15, 2016

I'm having the same issue while trying to parse diskIO metrics (diskIODevice). A fix would be highly appreciated! :)

@sparrc
Copy link
Contributor

sparrc commented Sep 6, 2016

I believe that the new snmp plugin (#1389) should fix this. It will be available in release 1.0

@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
bug unexpected problem or unintended behavior
Projects
None yet
Development

No branches or pull requests

3 participants