Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File output writing to standard streams are closed after reload #2528

Closed
danielnelson opened this issue Mar 10, 2017 · 0 comments · Fixed by #2707
Closed

File output writing to standard streams are closed after reload #2528

danielnelson opened this issue Mar 10, 2017 · 0 comments · Fixed by #2707
Assignees
Labels
bug unexpected problem or unintended behavior

Comments

@danielnelson
Copy link
Contributor

Bug report

Relevant telegraf.conf:

[[outputs.file]]
  files = ["stdout"]
  data_format = "influx"

System info:

Telegraf vdev-85-g7a5d8578 (git: master 7a5d857

Steps to reproduce:

  1. Start telegraf
  2. pkill -HUP telegraf

Expected behavior:

Telegraf reload configuration and continues sending metrics

Actual behavior:

Telegraf cannot write to output because it is closed.

Additional info:

2017-03-10T22:38:30Z E! Error writing to output [file]: failed to write message: cpu,host=loaner,cpu=cpu0 usage_iowait=0,usage_irq=0,usage_guest=0,usage_guest_nice=0,usage_user=4.124748490945898,usage_idle=95.1710261569454,usage_softirq=0,usage_steal=0,usage_system=0.7042253521128432,usage_nice=0 1489185040000000000
, write /dev/stdout: file already closed
@danielnelson danielnelson added the bug unexpected problem or unintended behavior label Mar 10, 2017
danielnelson added a commit that referenced this issue Apr 24, 2017
vlamug pushed a commit to vlamug/telegraf that referenced this issue May 30, 2017
maxunt pushed a commit that referenced this issue Jun 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug unexpected problem or unintended behavior
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants