Trim null characters in Value data format (#2049)

* Trim null characters in Value data format

Some producers (such as the paho embedded c mqtt client) add a null
character "\x00" to the end of a message.  The Value parser would fail on
any message from such a producer.

* Trim whitespace and null in all Value data formats

* No unnecessary reassignments in Value data format parser

* Update change log for Value data format fix
This commit is contained in:
Pieter Slabbert
2016-11-16 15:13:31 +02:00
committed by Cameron Sparr
parent 94ce67cc67
commit 196509cc53
3 changed files with 20 additions and 5 deletions

View File

@@ -8,6 +8,7 @@
### Bugfixes
- [#2049](https://github.com/influxdata/telegraf/pull/2049): Fix the Value data format not trimming null characters from input.
- [#1949](https://github.com/influxdata/telegraf/issues/1949): Fix windows `net` plugin.
- [#1775](https://github.com/influxdata/telegraf/issues/1775): Cache & expire metrics for delivery to prometheus