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.

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.  I am quite new to Telegraf/InfluxDB but searching around seemed to 
indicate that the software did support text as either key or value so not sure 
what I am doing wrong?

-- 
Remember to include the InfluxDB version number with all issue reports
--- 
You received this message because you are subscribed to the Google Groups 
"InfluxDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/influxdb.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/influxdb/fb064f54-8e15-4117-858d-68e91dc4b3e0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to