Ganglia

http://www.cnblogs.com/MorZe/archive/2012/08/01/2618710.html

http://www.tuicool.com/articles/rYV3uu

http://blog.csdn.net/knowledgeaaa/article/details/23350215

gmetad : ganglia metadata deamon

gmond : ganglia monitor deamon

sudo apt-get install ganglia-monitor

sudo apt-get install ganglia-webfrontend

-- server

sudo vim /etc/ganglia/gmetad.conf  -- 修改收集器

sudo vim /etc/ganglia/gmond.conf  -- 修改监视器

sudo ln -s /usr/share/ganglia-webfrontend/ /var/www/ganglia -- 将web工程弄到apache2下面去

service gmetad restart

service ganglia-monitor restart

service apache2 restart

http://localhost/ganglia

-------------------------------------------------------------------------------------------------------------------------------------

下面做深入分析

gmond 和 gmeta 工具,

[email protected]:/etc/ganglia$ gmond -h

gmond 3.1.7

Purpose:

The Ganglia Monitoring Daemon (gmond) listens to the cluster

message channel, stores the data in-memory and when requested

will output an XML description of the state of the cluster

Usage: gmond [OPTIONS]...

-h, --help             Print help and exit

-V, --version          Print version and exit

-c, --conf=STRING      Location of gmond configuration file

(default=‘/etc/ganglia/gmond.conf‘)

-l, --location=STRING  Location of this host in the cluster

‘rack,rank,plane‘.  (default=‘0,0,0‘)

-d, --debug=INT        Debug level. If greater than zero, daemon will stay in

foreground.  (default=‘0‘)

-f, --foreground       Run in foreground (don‘t daemonize)  (default=off)

-t, --default_config   Print the default configuration to stdout and exit

(default=off)

-m, --metrics          Print the list of metrics this gmond supports

(default=off)

-b, --bandwidth        Calculate minimum bandwidth use for configuration

(default=off)

-r, --convert=STRING   Convert a 2.5.x configuration file to the new 3.x

format

-p, --pid-file=STRING  Write process-id to file

[email protected]:/etc/ganglia$ gmetad -h

gmetad 3.1.7

Purpose:

The Ganglia Meta Daemon (gmetad) collects information from

multiple gmond or gmetad data sources, saves the information to local

round-robin databases, and exports XML which is the concatentation of

all data sources

Usage: gmetad [OPTIONS]...

-h, --help             Print help and exit

-V, --version          Print version and exit

-c, --conf=STRING      Location of gmetad configuration file

(default=‘/etc/ganglia/gmetad.conf‘)

-d, --debug=INT        Debug level. If greater than zero, daemon will stay in

foreground.  (default=‘0‘)

-p, --pid-file=STRING  Write process-id to file

 

其中, gmond -m 列出了所有metrics

[email protected]:/etc/ganglia$ gmond -m

load_one        One minute load average (module load_module)

os_release      Operating system release date (module sys_module)

mem_total       Total amount of memory displayed in KBs (module mem_module)

cpu_intr        cpu_intr (module cpu_module)

proc_run        Total number of running processes (module proc_module)

load_five       Five minute load average (module load_module)

disk_free       Total free disk space (module disk_module)

gexec           gexec available (module core_metrics)

mem_cached      Amount of cached memory (module mem_module)

mtu             Network maximum transmission unit (module sys_module)

cpu_sintr       cpu_sintr (module cpu_module)

pkts_in         Packets in per second (module net_module)

location        Location of the machine (module core_metrics)

bytes_in        Number of bytes in per second (module net_module)

swap_total      Total amount of swap space displayed in KBs (module mem_module)

bytes_out       Number of bytes out per second (module net_module)

load_fifteen    Fifteen minute load average (module load_module)

mem_free        Amount of available memory (module mem_module)

os_name         Operating system name (module sys_module)

boottime        The last time that the system was started (module sys_module)

cpu_idle        Percentage of time that the CPU or CPUs were idle and the system did not have an outstanding disk I/O request (module cpu_module)

cpu_aidle       Percent of time since boot idle CPU (module cpu_module)

cpu_nice        Percentage of CPU utilization that occurred while executing at the user level with nice priority (module cpu_module)

cpu_user        Percentage of CPU utilization that occurred while executing at the user level (module cpu_module)

sys_clock       Time as reported by the system clock (module sys_module)

mem_buffers     Amount of buffered memory (module mem_module)

cpu_system      Percentage of CPU utilization that occurred while executing at the system level (module cpu_module)

part_max_used   Maximum percent used for all partitions (module disk_module)

disk_total      Total available disk space (module disk_module)

heartbeat       Last heartbeat (module core_metrics)

mem_shared      Amount of shared memory (module mem_module)

machine_type    System architecture (module sys_module)

cpu_wio         Percentage of time that the CPU or CPUs were idle during which the system had an outstanding disk I/O request (module cpu_module)

cpu_num         Total number of CPUs (module cpu_module)

proc_total      Total number of processes (module proc_module)

cpu_speed       CPU Speed in terms of MHz (module cpu_module)

pkts_out        Packets out per second (module net_module)

swap_free       Amount of available swap memory (module mem_module)

基本上对应 gmond.conf里面的配置, 这里指定了各个module的so对应的位置

/* Each metrics module that is referenced by gmond must be specified and

loaded. If the module has been statically linked with gmond, it does not

require a load path. However all dynamically loadable modules must include

a load path. */

modules {

module {

name = "core_metrics"

}

module {

name = "cpu_module"

path = "/usr/lib/ganglia/modcpu.so"

}

module {

name = "disk_module"

path = "/usr/lib/ganglia/moddisk.so"

}

module {

name = "load_module"

path = "/usr/lib/ganglia/modload.so"

}

module {

name = "mem_module"

path = "/usr/lib/ganglia/modmem.so"

}

module {

name = "net_module"

path = "/usr/lib/ganglia/modnet.so"

}

module {

name = "proc_module"

path = "/usr/lib/ganglia/modproc.so"

}

module {

name = "sys_module"

path = "/usr/lib/ganglia/modsys.so"

}

}

时间: 2025-01-18 01:05:16

Ganglia的相关文章

Nagios插件化之ganglia插件

架构: nagios跟ganglia一样可以都是监控软件,但是两个也有不同之处,Ganglia的优势在于实时对监控集群中的机器的各项指标,比如CPU.内存.磁盘.温度等数据,汇总成各种图形化界面,并提供可调用数据.而在出现问题的时候报警提示功能,相对较弱. Nagios的优势在于出现问题之时可以提供强大的报警提示功能,但是在时间监控上,功能比较弱,即使使用NRPE插件也不足以提供强大的机器监控,所以此处将两者结合起来.实现监控.报警功能. 环境介绍: 1.服务器中已经安装好了Ganglia,安装

Centos7.0 Ganglia监控 Yum 安装

简介: Ganglia由gmond.gmetad和gweb三部分组成. 1.服务器端(指的是汇总收集的监控数据机器):主要安装 gmetad  与 gweb :如果安装同时安装了 gmond ,服务        器端的这台机器监控数据也可以被收集. 2.客户端(指的是收集监控数据的机器):主要安装 gmond 即可. 3.显示端(指的就是一个web站点):主要安装 gweb. 实验环境: 1.centos 7.0 2.Ganglia 5.7 安装方式: 1.yum install  gangl

运维监控平台之ganglia

1.ganglia简介 Ganglia 是一款为 HPC(高性能计算)集群而设计的可扩展的分布式监控系统,它可以 监视和显示集群中的节点的各种状态信息,它由运行在各个节点上的 gmond 守护进程来采 集 CPU .内存.硬盘利用率. I/O 负载.网络流量情况等方面的数据,然后汇总到 gmetad 守护进程下,使用 rrdtool 存储数据,最后将历史数据以曲线方式通过 PHP 页面呈现. Ganglia 的特点如下: 良好的扩展性,分层架构设计能够适应大规模服务器集群的需要 负载开销低,支持

Ganglia安装扩容

现有的环境中Hbase集群的机器需要安装ganglia,遂采取了以下步骤. 查看机器的信息, uname –a cat /etc/issue 查看当前环境是x86的,安装的是red hat 6.4 之前有一些集群也是x86,安装的是red hat 6.2 决定从已安装的集群中直接复制过来. 步骤如下: 选中一台安装gmond的节点即可, rpm –qa | grep ganglia 然后对安装的包详细查看安装了哪些文件 rpm –ql packagename 把这些文件直接复制到新节点即可. 尝

hbase ganglia监控配置

hbase ganglia 显示器 hbase 构造 hadoop-metrics2-hbase.properties *.sink.ganglia.class=org.apache.hadoop.metrics2.sink.ganglia.GangliaSink31 *.sink.ganglia.period=10 hbase.sink.ganglia.period=10 hbase.sink.ganglia.servers=239.2.11.71:8649 hbase.class=org.a

ganglia监控自定义metric实践

Ganglia监控系统是UC Berkeley开源的一个项目,设计初衷就是要做好分布式集群的监控,监控层面包括资源层面和业务层面,资源层面包括cpu.memory.disk.IO.网络负载等,至于业务层面由于用户可以很方便的增加自定义的metric,因此可以用于做诸如服务性能.负载.出错率等的监控,例如某web服务的QPS.Http status错误率.此外,如果和Nagios集成起来还可以在某指标超过一定阈值时触发相应的报警. Ganglia相比zabbix的优势在于客户端收集agent(gm

Ganglia 安装 for centos6.5

环境: centos6.5x64 ,cdh5.1.0 三个节点: c1:gmeta gmond(gmeta类似于namenode,gmond 相当于datanode)主节点 c2: gmond (相当于datanode) c3:gmond(相当于datanode) 一.Ganglia介绍 Ganglia是UC Berkeley发起的一个开源集群监视项目,设计用于测量数以千计的节点.Ganglia的核心包含gmond.gmetad以及一个Web前端.主要是用来监控系统性能,如:cpu.mem.硬盘

点滴记录——Centos 6.5 yum安装Ganglia

转载请说明出处:http://blog.csdn.net/cywosp/article/details/39701141 注:以下操作都只是在一台机器上操作 1. 安装php支持 yum install php-common php-cli php-gb php 2. 安装ganglia及其相关组件 server端:yum install rrdtool rrdtool-devel ganglia-web ganglia-gmetad ganglia-gmond ganglia-gmond-py

每天进步一点点——Ganglia的Python扩展模块开发

转载请说明出处:http://blog.csdn.net/cywosp/article/details/39701245 注:本文涉及到的代码都在centos 6.5 64bit系统上通过验证,Ganglia版本为3.1,通过yum安装具体步骤请参考: http://blog.csdn.net/cywosp/article/details/39701141 1. 概述 Ganglia 项目是由加州大学发起的,现在已经成为一个应用非常广泛集群监控软件.可以监视和显示集群中的节点的各种状态信息,比如

CentOS 6.4安装Ganglia

1.这里安装的是3.1.7版本,web前端是最新版本,安装前期环境(yum源用的是本地的) yum -y insatll php php-gd rrdtools apr-devel apr-util 2.下载科大的rpm包,安装ganglia,这里用的是rpm包安装,及时不联网的机器也可以通过其它服务器scp文件到本机,客户端可以不安装gmetad,删除gmetad包再执行rpm包安装命令 wget http://mirrors.ustc.edu.cn/epel/6Server/i386/gan