---
title: Ganglia监测软件安装
description: "1. 使用PuTTY工具，以root用户登录服务器。"
url: https://www.hikunpeng.com/document/detail/zh/kunpenghpcs/hpcindapp/instg-osc/openhpc_029.html
sourcePath: /source/zh/kunpenghpcs/hpcindapp/instg-osc/openhpc_029.html
indexId: c41ff3b100211e2472634826e83698aed5983dac6ab66af1fce16aa8be0be8e059
---
# Ganglia监测软件安装

#### 操作步骤

1. 使用PuTTY工具，以root用户登录服务器。
2. 执行以下命令在外网下载安装依赖包。

```
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
```


3. 执行以下命令安装以上安装包。

```
yum install -y
libconfuse-2.7-7.el7.aarch64.rpm php-ZendFramework-1.12.20-1.el7.remi.noarch.rpm
```


4. 执行以下命令在服务端安装Ganglia包。

```
yum install -y ohpc-ganglia
```


5. 执行以下命令在客户端安装Ganglia包。

```
yum install -y ganglia-gmond-ohpc
```


6. 执行以下命令在服务端配置Ganglia。

```
perl -pi -e “s/<sms>/${sms_name}/” /etc/ganglia/gmond.conf
```


  将gmond.conf配置文件的HOST的内容修改为服务端的主机名或者IP地址。

7. 执行以下命令在客户端上配置Ganglia。

```
scp SMS_IP:/etc/ganglia/gmond.conf /etc/ganglia
echo “gridname Mysite” >> /etc/ganglia/gmetad.conf
```


8. 执行以下命令在客户端上启动相关进程。

```
systemctl start gmond
systemctl enable gmond
```


9. 执行以下命令在服务端上启动相关进程。

```
systemctl start gmond
systemctl start gmetad
systemctl enable gmond
systemctl enable gmetad
systemctl try-restart httpd
systemctl enable httpd
```
