LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1172|回复: 1

配置ganglia出了点问题,高手帮帮忙

[复制链接]
发表于 2006-4-22 23:38:47 | 显示全部楼层 |阅读模式
这几天装了ganglia 3.0.2, 装上后可以正常远程用网页打开, 可以正常显示收集到到计算机的一些资源,但有一个问题一直没法解决,我的服务器有两个IP段,eth0: 192.168.0.100, eth1: 10.10.1.106 这两个IP段分别接的两个交换机,我装上gangia后,它只能显示出10.10.1.X IP段的所以机子,而192.168.0.X段的机子,没法显示,而两个IP段的机子我都已经正常安装了gmond客户端,且都可以正常起动,运行.哪位高手指点一下,是不是我的gmetad.conf的gmond.conf哪些地方设置的不对,非常感受谢!

Gmetad.conf:
data_source "rcmm1" localhost
gridname "RCMM1"
all_trusted on
setuid_username "ren"
其他配置都是默认的

Gmond.conf:
globals {
  setuid = yes
  user =  root
  cleanup_threshold = 300 /*secs */
}

cluster {
  name = "rcmm1"  
}   
   
host {  
  location = "unspecified"
}  
     
udp_send_channel {
  mcast_join = 239.2.11.71  
  port = 8649  
}  
   
udp_recv_channel {
  mcast_join = 239.2.11.71
  port = 8649
  bind = 239.2.11.71
}   
   
tcp_accept_channel {
  port = 8649
}


collection_group {
  collect_once = yes
  time_threshold = 20
  metric {
    name = "heartbeat"
  }
}

collection_group {
  collect_once = yes
  time_threshold = 1200
  metric {
    name = "cpu_num"
  }
  metric {
    name = "cpu_speed"
  }
  metric {
    name = "mem_total"
}  
  /* Should this be here? Swap can be added/removed between reboots. */
  metric {
    name = "swap_total"
  }
  metric {  
    name = "boottime"  
  }  
  metric {  
    name = "machine_type"
  }  
  metric {  
    name = "os_name"  
  }  
  metric {  
    name = "os_release"
  }  
  metric {  
    name = "location"
  }
}

collection_group {  
  collect_once = yes  
  time_threshold = 300
  metric {  
    name = "gexec"
  }  
}   
collection_group {
  collect_every = 20
  time_threshold = 90
  /* CPU status */
  metric {
    name = "cpu_user"
    value_threshold = "1.0"
  }
  metric {
    name = "cpu_system"
    value_threshold = "1.0"
  }
  metric {
    name = "cpu_idle"
    value_threshold = "5.0"
  }
  metric {
    name = "cpu_nice"
    value_threshold = "1.0"
  }
  metric {
    name = "cpu_aidle"
    value_threshold = "5.0"
  }
  metric {
    name = "cpu_wio"
    value_threshold = "1.0"
  }
   metric {
    name = "cpu_intr"
    value_threshold = "1.0"
}  
  metric {  
    name = "cpu_sintr"
    value_threshold = "1.0"
  }   
  */  
}   
     
collection_group {
  collect_every = 20
  time_threshold = 90  
  /* Load Averages */  
  metric {
    name = "load_one"
    value_threshold = "1.0"
  }  
  metric {
    name = "load_five"
    value_threshold = "1.0"
  }  
  metric {
    name = "load_fifteen"
    value_threshold = "1.0"
  }  
}  
   
collection_group {   
  collect_every = 80
  time_threshold = 950  
  metric {  
    name = "proc_run"
    value_threshold = "1.0"
  }  
metric {
    name = "proc_total"
    value_threshold = "1.0"
  }
}

collection_group {
  collect_every = 40
  time_threshold = 180
  metric {
    name = "mem_free"
    value_threshold = "1024.0"
  }
  metric {
    name = "mem_shared"
    value_threshold = "1024.0"
  }
  metric {
    name = "mem_buffers"
    value_threshold = "1024.0"
  }
  metric {
    name = "mem_cached"
    value_threshold = "1024.0"
  }
  metric {
    name = "swap_free"
    value_threshold = "1024.0"
  }
}
发表于 2006-4-28 17:24:50 | 显示全部楼层
未曾用过ganglia
mrtg倒是一个有相同功能的东西  搞起来也简单
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表