dovecot: remove extra newline from stats query
Extra newline in the stats query is interpreted as an empty query which is an error for dovecot. closes #972
This commit is contained in:
parent
c78c7f994c
commit
91647d4282
|
@ -4,7 +4,8 @@
|
|||
|
||||
### Bugfixes
|
||||
- [#968](https://github.com/influxdata/telegraf/issues/968): Processes plugin gets unknown state when spaces are in (command name)
|
||||
- [#969](https://github.com/influxdata/telegraf/issues/968): ipmi_sensors: allow : in password. Thanks @awaw!
|
||||
- [#969](https://github.com/influxdata/telegraf/pull/969): ipmi_sensors: allow : in password. Thanks @awaw!
|
||||
- [#972](https://github.com/influxdata/telegraf/pull/972): dovecot: remove extra newline in dovecot command. Thanks @mrannanj!
|
||||
|
||||
## v0.12.0 [2016-04-05]
|
||||
|
||||
|
|
|
@ -85,7 +85,7 @@ func (d *Dovecot) gatherServer(addr string, acc telegraf.Accumulator, doms map[s
|
|||
// Extend connection
|
||||
c.SetDeadline(time.Now().Add(defaultTimeout))
|
||||
|
||||
c.Write([]byte("EXPORT\tdomain\n\n"))
|
||||
c.Write([]byte("EXPORT\tdomain\n"))
|
||||
var buf bytes.Buffer
|
||||
io.Copy(&buf, c)
|
||||
// buf := bufio.NewReader(c)
|
||||
|
|
Loading…
Reference in New Issue