我正在努力用datadog导入指标...尽管安装了所有必需的软件包,但我还是要低于错误...( - 实例#0 [错误]:异常('您需要" psutil"包来运行此检查',)
)请您请您在这里帮助我,因为这被证明是主要的展示。
[root@mudcsftpup01 init.d]#./datadog-agent info
2017-08-31 11:31:20,416 |信息|DD.Collector |util(util.py:481)|PID文件为:/var/run/dd-agent/dd-agent.pid
collector(v 4.4.0)
状态日期:2017-08-31 11:31:19(1S前) PID:32028 平台:linux-3.10.0-514.el7.x86_64-x86_64-with-redhat-7.3-maipo Python版本:2.7.5 logs:,/var/log/datadog/collector.log,syslog:/dev/log
时钟 ======
NTP offset: Unknown (timed out)
System UTC time: 2017-08-31 06:01:25.512491
路径 =====
conf.d: /etc/dd-agent/conf.d
checks.d: /usr/share/datadog/agent/checks.d
主机名 =========
socket-hostname: mudcsftpup01
hostname: mudcsftpup01
socket-fqdn: mudcsftpup01.paytm-pb.net
检查 ======
process
-------
- instance #0 [ERROR]: Exception('You need the "psutil" package to run this check',)
- instance #1 [ERROR]: Exception('You need the "psutil" package to run this check',)
- instance #2 [ERROR]: Exception('You need the "psutil" package to run this check',)
- instance #3 [ERROR]: Exception('You need the "psutil" package to run this check',)
- Collected 0 metrics, 0 events & 0 service checks
tcp_check
---------
- instance #0 [OK]
- instance #1 [OK]
- Collected 0 metrics, 0 events & 0 service checks
network
-------
- instance #0 [OK]
- Collected 0 metrics, 0 events & 0 service checks
发射器 ========
- http_emitter [OK]
2017-08-31 11:31:25,827 |信息|dd.dogstatsd |util(util.py:481)|PID文件为:/var/run/dd-agent/dogstatsd.pid
dogstatsd(v 4.4.0)
状态日期:2017-08-31 11:31:23(2s前) PID:32053 平台:linux-3.10.0-514.el7.x86_64-x86_64-with-redhat-7.3-maipo Python版本:2.7.5 日志:,/var/log/datadog/dogstatsd.log,syslog:/dev/log
冲洗数:1 数据包计数:0 每秒数据包:0.0 公制计数:0 事件计数:0
您的答案似乎在文本中存在 - 您缺少Python软件包。尝试运行sudo pip install psutil
,然后重新启动代理。您可以添加您的代理版本,操作系统和版本,以及如何将代理安装到文本中吗?看来您还使用了代理的非常的旧版本(最高为5.17。*对于许多操作系统),因此自从第4.4节以来,可能会有更好的软件包捆绑或关键更新。0。尝试安装较新版本。
请找到所需的
[root@mudcsftpup01〜]#sudo pip安装psutil需求已经满足:/usr/lib64/python2.7/site-packages中的psutil