Hello, I have previously posted about this topic before. However, I am now setting up telegraf/influxdb onto another machine now.
I have implemented the [[inputs.exec]] plugin as well as the [[outputs.exec]] plugin into /etc/telegraf/telegraf.conf. By doing this, it worked on my old machine. However, with this same implementation on my new machine, it isn’t passing data from the exec input plugin into influxdb.
I have also tested my [[inputs.exec]] plugin by doing:
sudo -u telegraf telegraf --config /etc/telegraf/telegraf.conf --input-filter exec --test
And it executes my script successfully. I am just wondering why the data isn’t being reflected in the influxdb.
Any help would be appreciated thanks!