目录

一、Ganglia安装

1.1 三台机器安装epel源

1.2 在node01安装web,meta和monitor

1.3 在node02、node03安装monitor

1.4 node01修改配置文件/etc/httpd/conf.d/ganglia.conf

1.5 node01修改配置文件/etc/ganglia/gmetad.conf

1.6 node01,node02,node03上修改/etc/ganglia/gmond.conf

1.7 修改配置文件/etc/selinux/config

1.8 三台机器各自启动服务

1.9 打开监控页面

二、功能测试

2.1 Flume conf编写

2.2 启动服务

2.3 启动netcat发送数据


一、Ganglia安装

1.1 三台机器安装epel源

[usr@node01 flume]$ sudo yum install -y epel-release
[usr@node02 flume]$ sudo yum install -y epel-release
[usr@node03 flume]$ sudo yum install -y epel-release

1.2 在node01安装web,meta和monitor

[usr@node01 flume]$ sudo yum -y install ganglia-gmetad ganglia-web ganglia-gmond

1.3 在node02、node03安装monitor

[usr@node02 flume]$ sudo yum -y install ganglia-gmond
[usr@node03 flume]$ sudo yum -y install ganglia-gmond

1.4 node01修改配置文件/etc/httpd/conf.d/ganglia.conf

#
# Ganglia monitoring system php web frontend
#Alias /ganglia /usr/share/ganglia<Location /ganglia>#Order deny,allow#Deny from all#Allow from all#Allow from 127.0.0.1#Allow from ::1# Allow from .example.comRequire all granted</Location>

1.5 node01修改配置文件/etc/ganglia/gmetad.conf

data_source "node01" node01 #第44行

1.6 node01,node02,node03上修改/etc/ganglia/gmond.conf

cluster {name = "node01" owner = "unspecified"latlong = "unspecified"url = "unspecified"
}/* The host section describes attributes of the host, like the location */
host {location = "unspecified"
}/* Feel free to specify as many udp_send_channels as you like.  Gmondused to only support having a single channel */
udp_send_channel {#bind_hostname = yes # Highly recommended, soon to be default.# This option tells gmond to use a source address# that resolves to the machine's hostname.  Without# this, the metrics may appear to come from any# interface and the DNS names associated with# those IPs will be used to create the RRDs.#mcast_join = 239.2.11.71  host = node01port = 8649        ttl = 1
}/* You can specify as many udp_recv_channels as you like as well. */
udp_recv_channel {#mcast_join = 239.2.11.71 port = 8649bind = 0.0.0.0retry_bind = true# Size of the UDP buffer. If you are handling lots of metrics you really# should bump it up to e.g. 10MB or even higher.# buffer = 10485760
}

1.7 修改配置文件/etc/selinux/config

# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
#     enforcing - SELinux security policy is enforced.
#     permissive - SELinux prints warnings instead of enforcing.
#     disabled - No SELinux policy is loaded.
SELINUX=disabled
# SELINUXTYPE= can take one of these two values:
#     targeted - Targeted processes are protected,
#     mls - Multi Level Security protection.
SELINUXTYPE=targeted

1.8 三台机器各自启动服务

[usr@node01 flume]$ sudo systemctl start httpd
[usr@node01 flume]$ sudo systemctl start gmetad
[usr@node01 flume]$ sudo systemctl start gmond
[usr@node02 flume]$ sudo systemctl start gmond
[usr@node03 flume]$ sudo systemctl start gmond

1.9 打开监控页面

http://node01/ganglia

在红框处进行数据源选择,可以看到选择自己关注的机器进行查看。

二、功能测试

2.1 Flume conf编写

#Name the components on this agent
a1.sources = r1
a1.sinks = k1
a1.channels = c1# Describe/configure the source
a1.sources.r1.type = netcat
a1.sources.r1.bind = node03
a1.sources.r1.port = 44444# Describe the sink
a1.sinks.k1.type = logger# Use a channel which buffers events in memory
a1.channels.c1.type = memory
a1.channels.c1.capacity = 1000
a1.channels.c1.transactionCapacity = 100# Bind the source and sink to the channel
a1.sources.r1.channels = c1
a1.sinks.k1.channel = c1

2.2 启动服务

[usr@node03 flume]# bin/flume-ng agent --conf conf/ --name a1 --conf-file job/flume-netcat-logger.conf -Dflume.root.logger=INFO,console -Dflume.monitoring.type=ganglia -Dflume.monitoring.hosts=node01:8649

2.3 启动netcat发送数据

[usr@node03flume]$ nc node03 44444

图表名称 含义
ChannelCapacity
channel 的容量
ChannelFillPercentage
channel 占用百分比
ChannelSize
目前 channel 中事件的总数量
EventPutAttemptCount source 尝试写入 channel 的事件总数量
EventPutSuccessCount 成功写入 channel 且提交的事件总数量
EventTakeAttemptCount
sink 尝试从 channel 拉取事件的总数量
EventTakeSuccessCount
sink 成功读取的事件的总数量
StartTime
channel 启动的时间(毫秒)
StopTime
channel 停止的时间(毫秒)

Flume监控软件——Ganglia安装与部署相关推荐

  1. 开源监控软件ganglia安装手册

    Ganglia是一个监控服务器,集群的开源软件,能够用曲线图表现最近一个小时,最近一天,最近一周,最近一月,最近一年的服务器或者集群的cpu负载,内存,网络,硬盘等指标. Ganglia的强大在于:g ...

  2. linux下ganglia监控系统搭建,开源监控软件Ganglia 安装使用

    1.ganglia简介 Ganglia 是一款为 HPC(高性能计算)集群而设计的可扩展的分布式监控系统,它可以监视和显示集群中的节点的各种状态信息,它由运行在各个节点上的 gmond 守护进程来采集 ...

  3. Flume监控之Ganglia安装与简单实践

    写在前面: 博主是一名大数据的初学者,昵称来源于<爱丽丝梦游仙境>中的Alice和自己的昵称.作为一名互联网小白,写博客一方面是为了记录自己的学习历程,一方面是希望能够帮助到很多和自己一样 ...

  4. Nagios远程监控软件的安装与配置详解

    Nagios远程监控软件的安装与配置详解 作者:redhat_hu Nagios是一款功能强大的网络监视工具,它可以有效的监控windows.linux.unix主机状态以及路由器交换机的网络设置,打 ...

  5. 金仓监控软件kmonitor安装成功后打开监控界面,监控不到实例

    1.启动kmonitor服务 ./kmonitor.sh start./kmonitor.sh status 2.登录kmonitor监控平台 https://软件所安装的ip:3000/ kingb ...

  6. 电脑监控软件如何安装使用?

    员工电脑监控软件系统是一款企业专用的员工电脑监控软件,可以实时远程监控员工电脑屏幕,也可以自动记录电脑的各种操作,如键盘记录,聊天记录.邮件记录.屏幕记录等,还可以禁止员工使用与工作无关的软件,屏蔽掉 ...

  7. Flume 监控之 Ganglia 的安装与部署

    安装httpd服务与php sudo yum -y install httpd php 安装其他依赖 sudo yum -y install rrdtool perl-rrdtool rrdtool- ...

  8. Destoon源数据库配置文件在哪_数据库监控软件Lepus安装部署详解

    Lepus安装部署 一.软件介绍 Lepus是一套开源的数据库监控平台,目前已经支持MySQL.Oracle.SQLServer.MongoDB.Redis等数据库的基本监控和告警(MySQL已经支持 ...

  9. icinga服务器系统监控软件的安装

    系统环境rhel和Centos都可以安装 这里我们所使用的安装包为中文版的icinga-cn-1.9.3.tar.bz2 (1)安装icinga软件所支持的组件包(我们这里采用yum源的方式) 组件: ...

最新文章

  1. Log4j、slf4j
  2. 电脑键盘下划线怎么打_电脑键盘右边的数字键无法使用怎么办?
  3. 以CSGO为例 分析不同网络延时下FPS游戏同步的实现
  4. 动态控制SAP C4C UI元素的显示和隐藏
  5. 数据结构与算法分析:第1、2章:引论和算法分析
  6. 想要艺术气质高逼格,不吹牛真的有捷径可走
  7. android压力测试命令monkey详解,android压力测试命令monkey详解(示例代码)
  8. 魅族Android10内测招募答案,魅族flyme9内测招募答案,魅族16系列flyme9内测招募题目答案免费分享预约 v1.0-手游汇...
  9. 电子扫描件怎么弄?这个方法值得了解
  10. 苹果今年或无法推出M3芯片;​微软将推私有版ChatGPT:价格是常规版10倍;sudo和su用Rust重写|极客头条
  11. QPainter实现简单的绘图程序(绘图工具)
  12. RGB 转换至 YCbCr (YUV) 的计算公式
  13. 沉睡者IT - 短视频简单无脑玩法,播放量10w+的藏头诗玩法,操作思路分享给你!
  14. 【jackson异常】com.fasterxml.jackson.databind.JsonMappingException异常处理方法
  15. 2. IMU原理及姿态融合算法详解
  16. 【一句日历】2019年3月
  17. 阿尔法围棋是人工智能吗,围棋智能机器人阿法狗
  18. android 使用SAF框架操作外置sd卡
  19. C11编译 systemc 2.3.3 和 SCV 2.0.1
  20. CM-BERT: Cross-Modal BERT for Text-Audio Sentiment Analysis--文献笔记和翻译

热门文章

  1. UML之父:架构业务需求与软件开发的桥梁
  2. 图解Word2vec,读这一篇就够了!
  3. 清华大学计算机系保送,清华北大,保送到外校是什么水平?学姐:总比自己考研强...
  4. 武海滨:沪江如何搭建优秀的在线教育平台
  5. b'\\u4f60\\u597d'编码问题解决
  6. python输入多个整数 输入quit表示结束_从键盘输入接收多个整数,,直到输入quit时结束输入, 把所有输入的整数倒序排列打印。...
  7. Waves – 赞!超炫交互体验的点击动画效果
  8. 手把手教你做一块电路板,从设计到制作
  9. 谈谈软件测试职业的规划!
  10. 用友u8计算机快捷键,用友U8快捷键一览表