免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 14321 | 回复: 13
打印 上一主题 下一主题

【ganglia】烦,gmetad/gmond 已死,但是 subsys 被锁~求指点~ [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2010-03-11 15:40 |只看该作者 |倒序浏览
本帖最后由 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 是可以连上的。

请问各位,是什么原因呢?

论坛徽章:
0
2 [报告]
发表于 2010-03-11 16:01 |只看该作者
帮帮忙阿,在下感激不尽..

论坛徽章:
0
3 [报告]
发表于 2010-03-12 08:53 |只看该作者
首先,在gmetad.conf里默认的RRD数据的存储路径:/var/lib/ganglia/rrds,这个要自己建立。例如
mkdir -p /var/lib/ganglia/rrds
chown -R nobody /var/lib/ganglia/rrds

其次,web里的conf.php做了设置
# Where gmetad stores the rrd archives.
$gmetad_root = :/var/lib/ganglia";
$rrds = "$gmetad_root/rrds";

指定你安装rrdtool的路径,默认如下
define("RRDTOOL", "/usr/bin/rrdtool");

如果你将rrdtool安装到/usr/local/rrdtool,就的更改为
define("RRDTOOL", "/usr/local/rrdtool/bin/rrdtool");

论坛徽章:
0
4 [报告]
发表于 2010-03-12 09:15 |只看该作者
回复 3# class3


    回楼上。

[root@www ssh]# ll /var/lib/ganglia/
总计 8
drwxr-xr-x 2 nobody nobody 4096 02-23 17:37 rrds

/etc/gmetad.conf  RRDTOOL内容如下:

# otherwise, change it if it is installed elsewhere (like /usr/bin)
define("RRDTOOL", "/usr/local/rrdtool/bin/rrdtool");

早已设置正确~~可是
[root@www ssh]# service gmetad restart
Shutting down GANGLIA gmetad: [失败]
Starting GANGLIA gmetad: [确定]
[root@www ssh]# service gmetad status
gmetad 已死,但是 subsys 被锁
问题依旧.

论坛徽章:
0
5 [报告]
发表于 2010-03-12 11:05 |只看该作者
localhost 192.168.10.6 ???

论坛徽章:
0
6 [报告]
发表于 2010-03-12 11:43 |只看该作者
回复 5# fllintel


    本机IP   192.168.10.6

论坛徽章:
0
7 [报告]
发表于 2010-03-12 11:59 |只看该作者
data_source "my cluster" localhost 127.0.0.1
我这边是本地IP 地址 不是回环口地址 你改下看看有没有效果

论坛徽章:
0
8 [报告]
发表于 2010-03-12 15:15 |只看该作者
回复 7# fllintel


    改了。还是那样

# data_source "my cluster" 10 localhost  my.machine.edu:8649  1.2.3.5:8655
# data_source "my grid" 50 1.3.4.7:8655 grid.org:8651 grid-backup.org:8651
# data_source "another source" 1.3.4.7:8655  1.3.4.8

data_source "my cluster" localhost 192.168.10.6

论坛徽章:
0
9 [报告]
发表于 2010-03-12 17:29 |只看该作者
我当时碰到这情况:chown nobody:nobody /var/lib/ganglia/rrds
就好了,你尝试下把subsys下的锁删除了,然后修改权限,启动gmetad。

我的gmond被锁解决方法:
gmond --debug=10:
udp_recv_channel mcast_join=239.2.11.71 mcast_if=NULL port=8649 bind=239.2.11.71
tcp_accept_channel bind=NULL port=8649
Unable to create tcp_accept_channel. Exiting.

remove the
tcp_accept_channel section from "/etc/ganglia/gmond.conf" file
好了之后改回去也没影响了

论坛徽章:
0
10 [报告]
发表于 2010-03-15 16:38 |只看该作者
回复 9# zjx1020


    /var/lib/ganglia/rrds 已经是 nobody了。但还是subsys 被锁。
  请问怎么解锁  subsys, 你发的我看不明白。谢谢帮助。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP