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

exec input documentation needs modernization #2731

Closed
danielnelson opened this issue Apr 27, 2017 · 3 comments
Closed

exec input documentation needs modernization #2731

danielnelson opened this issue Apr 27, 2017 · 3 comments
Labels
area/exec docs Issues related to Telegraf documentation and configuration descriptions
Milestone

Comments

@danielnelson
Copy link
Contributor

Bug report

The documentation for the exec should be updated:

System info:

c66e289

@danielnelson danielnelson added the docs Issues related to Telegraf documentation and configuration descriptions label Apr 27, 2017
@danielnelson danielnelson added this to the 1.4.0 milestone Apr 27, 2017
@mjesse88
Copy link

mjesse88 commented Jun 5, 2017

Hi danielnelson,

About remove incorrect information about JSON format:
It whether that when the script output empty json?

In version V1.3.0,
sometime I don't need metrics write to influxdb, so my script output empty json,

the telegraf write error to log file,see below my test script:

  1. test.bat
    @echo off
    exit /b 0
    E! Error in plugin [inputs.exec]: unable to parse out as JSON, unexpected end of JSON input

2.test.bat
@echo off
echo ""
exit /b 0
E! Error in plugin [inputs.exec]: unable to parse out as JSON, json: cannot unmarshal string into Go value of type map[string]interface {}

BTW
I Know the data format is influx. the warning or error is removed by devoloper.

thanks
Jesse

@danielnelson
Copy link
Contributor Author

@mjesse88 I opened #2887 for this.

@danielnelson danielnelson modified the milestones: 1.4.0, 1.5.0 Aug 14, 2017
@danielnelson
Copy link
Contributor Author

Closed in ab8376d

@danielnelson danielnelson modified the milestones: 1.5.0, 1.6.0 Dec 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/exec docs Issues related to Telegraf documentation and configuration descriptions
Projects
None yet
Development

No branches or pull requests

2 participants