Ganglia监测软件安装
操作步骤
- 使用PuTTY工具,以root用户登录服务器。
- 执行以下命令在外网下载安装依赖包。
wget http://www.rpmfind.net/linux/epel/7/aarch64/Packages/l/libconfuse-2.7-7.el7.aarch64.rpm wget http://www.rpmfind.net/linux/remi/enterprise/7/remi/aarch64/php-ZendFramework-1.12.20-1.el7.remi.noarch.rpm
- 执行以下命令安装以上安装包。
yum install -y libconfuse-2.7-7.el7.aarch64.rpm php-ZendFramework-1.12.20-1.el7.remi.noarch.rpm
- 执行以下命令在服务端安装Ganglia包。
yum install -y ohpc-ganglia
- 执行以下命令在客户端安装Ganglia包。
yum install -y ganglia-gmond-ohpc
- 执行以下命令在服务端配置Ganglia。
perl -pi -e “s/<sms>/${sms_name}/” /etc/ganglia/gmond.conf
将gmond.conf配置文件的HOST的内容修改为服务端的主机名或者IP地址。
- 执行以下命令在客户端上配置Ganglia。
scp SMS_IP:/etc/ganglia/gmond.conf /etc/ganglia echo “gridname Mysite” >> /etc/ganglia/gmetad.conf
- 执行以下命令在客户端上启动相关进程。
systemctl start gmond systemctl enable gmond
- 执行以下命令在服务端上启动相关进程。
systemctl start gmond systemctl start gmetad systemctl enable gmond systemctl enable gmetad systemctl try-restart httpd systemctl enable httpd
父主题: 资源监测软件安装