Hi Daniel, thanks for you answer.
I have tried simulating exactly what you did and it worked, but it is still not working when I dont simulate it and use the real script/metrics.
This is the script listed on the exec configuration:
sed -i ‘s/*/"/g’ metrics.csv
cat metrics.csv
The sed command is to replace * with " to wrap the strings since the python script was giving me problems to print " into the file.
This is what the metrics.csv look like before being read by exec:
2017-12-12T13:11:54Z E! Error in plugin [inputs.exec]: metric parsing error, reason: [missing tag value], buffer: [metrics,ruxit.jmx.Hadoop.HD], index: [40]displayName=“Blocks”,detailedSource=“Apache Hadoop HDFS”
and so with every line.
Im stuck here, i dont understand why if i echo a line with the same protocol it would work, but doing it with the entire program and python scripts wont. Thanks for your help on advance.
@daniel and @4fz
Thanks both of you for your help. Now its working like a charm.
Although i have one problem i dont know if you will be able to help me, but cant lose anything by asking
I did implement this on my host (notebook running ubuntu) and worked with no problem at all.
But the idea is to run this implementation on a EC2 on AWS.
After installing everything exactly the same, including configuration files and etc, its starts working as it should, but after a minute or so, i get this problem.
Looking over the code, this means that the end of the line was reached while parsing the measurement or tags. So it looks to me that there were no fields. Maybe you can check for this in your python code and write debugging info to a log file?