I am using inputs.exec to run a python script that is occasionally failing. Our log files are only showing “Error in plugin: exec: exit status 1 for command”. I am trying to get it to actually print the error from the script. I purposely break the script and run it getting a failure but when doing it he same through telegraf using --test all that pops up is “Loading config:” and then it exits with the same generic error listed above. Right now I have the entire python script wrapped in a
i write simple bash script (get information from url with curl). my script is very simple and it works everytimes, but i saw logs and found any errors to link with my script, every time when this script running i get error 23. My script works, but it has any errors (in my way - error 23)
I know that my script works and use next option: ignore_error = true
Such option will be ignore any errors my script
If you sure that your script works correctly - set option ignore_error = true, if not - will find any errors to script and after it use inputs.exec