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

Not Able to run the demo python script using exec plugin #2

Open
vamossagar12 opened this issue Nov 13, 2016 · 1 comment
Open

Not Able to run the demo python script using exec plugin #2

vamossagar12 opened this issue Nov 13, 2016 · 1 comment

Comments

@vamossagar12
Copy link

Hi,

While trying to run the python script using the examples provided, I keep getting stuck at 1 point.

I have configured everything and influx jolokia are propelry setup. But eventually when I run using telegraf, I get this log(with error included)

2016/11/12 22:10:27 I! Using config file: /etc/telegraf/telegraf.conf
2016/11/12 22:10:27 I! Starting Telegraf (version 1.1.0)
2016/11/12 22:10:27 I! Loaded outputs: influxdb
2016/11/12 22:10:27 I! Loaded inputs: inputs.exec inputs.disk inputs.diskio inputs.processes inputs.swap inputs.system inputs.cpu inputs.kernel inputs.mem
2016/11/12 22:10:27 I! Tags enabled: host=feb261ef0aa1
2016/11/12 22:10:27 I! Agent Config: Interval:10s, Quiet:false, Hostname:"feb261ef0aa1", Flush Interval:10s
2016/11/12 22:10:30 E! ERROR in input [inputs.exec]: Errors encountered: [exec: exec: "python": executable file not found in $PATH for command 'python ~/gitprojects/kafka-jolokia-telegraf-collector/kafka_jolokia_reporter.py']

My config file has the same snippet in the exec as what you had mentioned. I have also tried calling the script from inside a shell script but still it doesn't run... Anything glarinlgy worng here?

@ththvseo
Copy link

ththvseo commented Jun 15, 2017

try passing the full path to python? (i.e. /usr/bin/python, or whatever it is on your system)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants