服务器信息集中监控工具---Ganglia

本文阅读 2 分钟
首页 特别推荐 正文

Ganglia的安装主要分为两大部分:
一部分为主控端,安装ganglia-web和gmetad,一部分为被控端,安装gmond。

一、主控端,安装ganglia-web和gmetad

主控端只需要集中在一台服务器上就可以,用于集中管理、展示需要被监控的服务器。

SSH下,root用户:安装相关依赖

yum -y install apr-devel apr-util check-devel cairo-devel pango-devel libxml2-devel rpm-build glib2-devel dbus-devel freetype-devel fontconfig-devel gcc gcc-c++ expat-devel python-devel libXrender-devel
yum install -y libart_lgpl-devel pcre-devel libtool
yum install  -y rrdtool rrdtool-devel

1、安装ganglia-web和gmetad

yum install -y epel-release
yum install -y ganglia-web.x86_64
yum install -y ganglia-gmetad.x86_64

2、启动 gmetad 服务

systemctl start gmetad.service

3、gmetad的配置文件更改

vi /etc/ganglia/gmetad.conf

data_source “bigdata-kylin” localhost
gridname “kylin”
setuid_username ganglia
case_sensitive_hostnames 0

备注:其中data_source “bigdata-kylin” localhost 此处设置cluster名称,gmond端务必一致,特别是在多播模式中,依此进行识别,最后的localhost是gmond传输的节点IP,因为设置gmond端将所有数据传输于gmetad处的的gmond节点,所以可以设置为localhost

4、新建站点,配置ganglia目录

root  /usr/share/ganglia

5、设置缓存等文件目录权限

chmod 777 -R /var/lib/ganglia-web/dwoo/compiled
chmod 777 -R /var/lib/ganglia-web/dwoo/cache

6、开放端口 5649

7、设置 开机启动

systemctl start gmetad.service
systemctl enable gmetad.service

二、被控端,gmond端安装、设置

1、安装gmond

yum install -y epel-release

yum install -y ganglia-gmond

2、配置修改

vi /etc/ganglia/gmond.conf
cluster {
  name = "bigdata-kylin"  ##需要与gmetad中定义的datasource名称一致
  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.  Gmond
   used to only support having a single channel */
udp_send_channel {
  #mcast_join = 239.27.1.1 ## 此处为多播设置,单播模式要去掉
  host = 10.239.1.35   ##向gmond传送数据的ip(ganglia-web),设置
  port = 8649            ## 接收gmond节点的端口
  ttl = 1
}
/* You can specify as many udp_recv_channels as you like as well. */
udp_recv_channel {
  port = 8649          ##gmond自身节点的端口
  bind = 0.0.0.0    ##gmond监听地址,去掉也可以
  retry_bind = true
}

3、设置开机启动

systemctl start gmond.service
systemctl enable gmond.service

本文来自投稿,不代表本站立场,如若转载,请注明出处:
给你的甲骨文免费VPS配置额外ip---此方法同样适用于其他VPS
« 上一篇 12-06
centos7 安装Wgcf 使用CF WARP 解锁Netflix
下一篇 » 03-10

发表评论

发表评论

热门文章

标签TAG

热评文章

最近回复

Monica abota
2天前

— Monica – Your Ultimate AI Assistant for Every Task!
Looking for a way to boost productivity and streamline your daily tasks? Monica.im is your all-in-one AI assistant, integrating top-tier AI models like OpenAI o1-preview, GPT-4o, Claude 3.5, and Gemini 1.5. It helps you with communication, research, writing, and even coding—all accessible through a browser extension for Chrome and Edge, as well as mobile apps for Android and iOS. (monica.im)

— Key Features of Monica (https://monica.im/invitation-affiliate?ref=ztk2ymi&ref_aff=ztk2ymi

AI Chat: Interact with leading AI models in one place.
AI Summarizer: Save up to 90% of your time by instantly summarizing web pages and videos.
AI Writer: Generate or enhance any content 10x faster, from short paragraphs to full-length articles.
AI Search: A powerful search engine with real-time access to the latest information.
AI Translator: Translate entire web pages for seamless bilingual reading.
AI Art Generator: Turn your ideas into stunning images effortlessly.

— Why Choose Monica?

Available Across All Platforms: Use Monica on browsers, desktops, or mobile devices.
Intelligent Toolbar: Quickly explain, translate, or summarize any highlighted text.
Writing Assistant: Create, rewrite, or improve text content on any webpage.
Enhanced Web Experience: Get AI-powered answers alongside search results, summarize YouTube videos, and extract key insights with timestamps.
— Start Boosting Your Productivity Today with Monica https://monica.im/invitation-affiliate?ref=ztk2ymi&ref_aff=ztk2ymi)

— Install for Free: https://monica.im/invitation-affiliate?ref=ztk2ymi&ref_aff=ztk2ymi

自建机场---快捷部署xboard面板,及hysteria2并对接