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:
Martti Rannanjärvi
2016-04-05 16:56:00 +03:00
committed by Cameron Sparr
parent bcf1fc658d
commit 73bd98df57
2 changed files with 3 additions and 2 deletions

View File

@@ -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)