-
Notifications
You must be signed in to change notification settings - Fork 5.8k
telegraf fails to handle negative inputs since 1.2.0 #2324
Copy link
Copy link
Closed
Labels
bugunexpected problem or unintended behaviorunexpected problem or unintended behavior
Milestone
Description
Bug report
Since the update to Version 1.2.0, the mqtt_consumer plugin fails to fetch negative numbers
Relevant telegraf.conf:
[[inputs.mqtt_consumer]]
servers = ["localhost:1883"]
qos = 0
topics = [
"lab/sensor/#",
"office/sensor/#"
]
persistent_session = true
client_id = "telegraf"
username = "telegraf"
password = ""
data_format = "value"
data_type = "float"
System info:
Telegrav v1.2.0, Debian Jessie.
Steps to reproduce:
- configure output.file to output in /tmp/metrics.out
- tail -f on that file
- Publish a negative Value in an MQTT Topic -> No output in this file
- Publish a positive Value in an MQTT Topic -> gets shown: mqtt_consumer,topic=office/sensor/esp_0f4b61/temperature,host=host value=21.8125 1485459636345140907
Expected behavior:
As in a previous Version, it should deliver also the Negative Values.
Additional info:
The configfile didn't change in the Update.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugunexpected problem or unintended behaviorunexpected problem or unintended behavior