$ sudo pip install psutil
Requirement already satisfied: psutil in /usr/local/lib/python2.7/site-packages
I have a check which looks something like:
{
"id": "cpuUsage",
"name": "CPU Usage",
"args": ["python", "/Users/consul/scripts/cpu_usage.py"],
"interval": "15s",
"timeout": "2s",
"status": "passing"
},
However, I'm getting an error with the following:
Traceback (most recent call last):
File "/Users/consul/scripts/cpu_usage.py", line 1, in <module>
import psutil
ImportError: No module named psutilBut running the script manually works as intended on the machine.
It seems that the consul agent isn't able to access the python library which I installed via pip...?
Can anyone suggest a way to fix this?
Thanks!
--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
GitHub Issues: https://github.com/hashicorp/consul/issues
Community chat: https://gitter.im/hashicorp-consul/Lobby
---
You received this message because you are subscribed to the Google Groups "Consul" group.
To unsubscribe from this group and stop receiving emails from it, send an email to consul-tool...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/consul-tool/5dfe5ca6-e086-403a-a621-dd57d3e20e46%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.