You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2017-04-25T18:22:30Z E! ERROR in input [inputs.exec]: Errors encountered: [metric parsing error, reason: [buffer too short], buffer: [], index: [0]]
Additional info:
I can run the script independently, and use the output to INSERT into influxdb without issue, same with the output from telegraf -test -input-filter=exec -debug
However, when restarting the service via systemctl the error found in Actual behaviour is found in the log files and no entries into influxdb occur.
[Include gist of relevant config, logs, etc.]
The text was updated successfully, but these errors were encountered:
@danielnelson good call.
The script is not the perm issue but the privileged call to traceroute within causes the issue. Some doc / logging would help here.
I will add the non-zero return to make it more robust too.
I solved by adding telegraf to sudoers. For future troubleshoot test for perm issues with:
sudo -u telegraf <user_script>.sh
all is revealed
Bug report
Script provides correct influxdb output in test mode, but fails with metric parsing error in production.
Relevant telegraf.conf:
# Read metrics from one or more commands that can output to stdout
System info:
VM - Virtual Box
2 x vCPU
4 GB RAM
All elements run local, telegraf, influxdb, Grafana
[Include Telegraf version, operating system name, and other relevant details]
telegraf -version
Telegraf v1.2.1 (git: release-1.2 3b6ffb3)
centos 7
Linux netmon 3.10.0-514.16.1.el7.x86_64 #1 SMP Wed Apr 12 15:04:24 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
Steps to reproduce:
Expected behavior:
telegraf -test -input-filter=exec -debug
2017/04/25 14:21:25 I! Using config file: /etc/telegraf/telegraf.conf
Actual behavior:
2017-04-25T18:22:30Z E! ERROR in input [inputs.exec]: Errors encountered: [metric parsing error, reason: [buffer too short], buffer: [], index: [0]]
Additional info:
I can run the script independently, and use the output to INSERT into influxdb without issue, same with the output from telegraf -test -input-filter=exec -debug
However, when restarting the service via systemctl the error found in Actual behaviour is found in the log files and no entries into influxdb occur.
[Include gist of relevant config, logs, etc.]
The text was updated successfully, but these errors were encountered: