- 论坛徽章:
- 0
|
本帖最后由 liyis永恒 于 2010-03-11 15:52 编辑
本人安装配置了ganglia,本机既当服务器,又当客户机。最后阶段重启服务:
[root@www ganglia]# service gmetad restart
Shutting down GANGLIA gmetad: [失败]
Starting GANGLIA gmetad: [确定]
[root@www ganglia]# service gmetad status
gmetad 已死,但是 subsys 被锁
到网上查了一些资料,说把RRDTOOL目录宿主给nobody,按照解决方法如下:
[root@www lib]# ll /usr/local | grep rrdtool
drwxr-xr-x 6 nobody nobody 4096 03-08 16:31 rrdtool
结果还是那样。
但我要说明的是 我的 gmetad 和 gmond 服务已经启动成功:
[root@www lib]# netstat -ntpl | grep 8651
tcp 0 0 0.0.0.0:8651 0.0.0.0:* LISTEN 3957/lt-gmetad
[root@www lib]# netstat -ntpl | grep 8649
tcp 0 0 0.0.0.0:8649 0.0.0.0:* LISTEN 4796/lt-gmond
附上 /etc/gmetad.conf 部分内容:
data_source "my cluster" localhost 127.0.0.1
/etc/gmond.conf 部分内容:
/* This configuration is as close to 2.5.x default behavior as possible
The values closely match ./gmond/metric.h definitions in 2.5.x */
globals {
daemonize = yes
setuid = yes
user = nobody
debug_level = 0
max_udp_msg_len = 1472
mute = no
deaf = true
allow_extra_data = yes
host_dmax = 0 /*secs */
cleanup_threshold = 300 /*secs */
gexec = no
send_metadata_interval = 0
}
/*
* The cluster attributes specified will be used as part of the <CLUSTER>
* tag that will wrap all hosts collected by this instance.
*/
cluster {
name = " my cluster" owner = "unspecified"
latlong = "unspecified"
url = "unspecified"
}
在浏览器里输入 192.168.10.6/ganglia 显示结果如下:
Cannot find any metrics for selected cluster "my cluster", exiting.
Check ganglia XML tree (telnet 127.0.0.1 8652)
但我 telnet 127.0.0.1 8652 是可以连上的。
请问各位,是什么原因呢? |
|