我在Ubuntu上有Ganglia服务器,在CentOS客户端上有Ganglia客户端(gmond)。客户端计算机的指标未出现在UI上
当我尝试在客户端上重新启动gmond服务时,出现错误:
service gmond restart
Shutting down GANGLIA gmond: [ OK ]
Starting GANGLIA gmond: Cannot load /usr/lib/ganglia/modcpu.so metric module: /usr/lib/ganglia/modcpu.so: cannot open shared object file: No such file or directory
Cannot load /usr/lib/ganglia/moddisk.so metric module: /usr/lib/ganglia/moddisk.so: cannot open shared object file: No such file or directory
Cannot load /usr/lib/ganglia/modload.so metric module: /usr/lib/ganglia/modload.so: cannot open shared object file: No such file or directory
Cannot load /usr/lib/ganglia/modmem.so metric module: /usr/lib/ganglia/modmem.so: cannot open shared object file: No such file or directory
Cannot load /usr/lib/ganglia/modnet.so metric module: /usr/lib/ganglia/modnet.so: cannot open shared object file: No such file or directory
Cannot load /usr/lib/ganglia/modproc.so metric module: /usr/lib/ganglia/modproc.so: cannot open shared object file: No such file or directory
Cannot load /usr/lib/ganglia/modsys.so metric module: /usr/lib/ganglia/modsys.so: cannot open shared object file: No such file or directory
/ var / log / messages也会报告:
/usr/sbin/gmond[6374]: Unable to find the metric information for 'pkts_in'. Possible that the module has not been loaded.#012
最佳答案
在64位计算机上,错误消息中提到的.so文件的路径应为/usr/lib64/ganglia/
,因此它抱怨在/usr/lib/ganglia/modcpu.so
找不到的文件实际上是在/usr/lib64/ganglia/modcpu.so
。
这些模块路径的配置也位于/etc/ganglia/gmond.conf
和documented here中。修改文件中的路径,然后在客户端上重新启动gmond服务,您就可以了。