CentOS6.5上Zabbix3.0的RPM安装【三】-安装并添加Agent

七、Download and install Zabbix Agent

Zabbix Agent is required to install on all remote systems needs to be monitor through Zabbix server. The Zabbix Agent collects resource utilization data and applications data on client system and provide such information to Zabbix server on their requests.

There are two types of checks between Zabbix Server and Client.

  • Passive Check : Zabbix Agent sent data to server on their request.
  • Active Check : Zabbix Agent sends data periodically to Server.

After installing zabbix server on your server, Now we are moving to install agent on remote system’s. This article will help you to install zabbix agent on CentOS/RHEL 7/6/5 systems. After completing this step go to next article add Host in Zabbix Server.

*Installing Zabbix Agent

Follow the below instructions to install Zabbix Agent on CentOS, RHEL 7/6/5 systems.

Step 1 – Add Required Repository

Before installing Zabbix Agent first configure zabbix yum repository using following commands as per your required version and operating system.

CentOS/RHEL 6:

# rpm -Uvh http://repo.zabbix.com/zabbix/3.0/rhel/6/x86_64/zabbix-release-3.0-1.el6.noarch.rpm

Step 2 – Install Zabbix Agent

After installing yum repository packages in our system. Now use following command to install Zabbix agent on your Linux system.

# yum install zabbix-agent

Step 3 – Edit Zabbix Agent Configuration

As zabbix agent has been successfully installed on our remote system. Now we just need to configure zabbix agent by adding zabbix server ip in 

its configuration file /etc/zabbix/zabbix_agentd.conf


#Server=[zabbix server ip]

#ServerActive=[zabbix server ip]

#Hostname=[Hostname of client system]

Server=Zabbix Server IP

ServerActive=Zabbix Server IP

Hostname=AgentName


Step 4 – Starting Zabbix Agent

After adding zabbix server ip in configuration file, now start agent service using below command.

# /etc/init.d/zabbix-agent start

# chconfig zabbix-agent on

Congratulation’s! You have successfully installed Zabbix Agent. Lets add host in zabbix server to be monitory.

八、添加Agent

点击”配置”/”主机”/”创建主机”,出现如下新增主机的界面:

填写对应内容

l “主机名称”选项填写一个唯一的名称,与Agent的hostname一致;“可见名称”填写任意你觉得易读的名称。 

l “群组”选择一个已存在的组名,或者在“新的群组”处填写一个新的分组。 

l “agent代理程序的接口”的IP地址填写为被监控端IP地址【Agent的IP地址】,port保持默认即可。 

l Description处可以填写任意描述(可空)。 

l 其他保持默认即可

配置主机模板,zabbix server 会根据主机模板生成图像。

点击"模板"

  通过在“搜索框”直接输入期望模拟的关键字,系统会自动匹配,或者点击“选择”按钮,会出现所有可供选择的模板,

点击选入期望的模板,完在模板的选择。

 

点击“添加”,完成模板添加

 

模板添加完成后,即可点击最下面的“添加”或“更新”按钮添加被监控主机。

主机添加完成之后会在主机列表显示刚添加的主机,并且可以看到监控方式为『ZAX』(zabbix-agent方式)。ZAX为绿色表示监控状态正常。

 

ZAX为红色状态,表示连接失败。

 

将鼠标放在“ZAX”上会显示具体描述,按照描述信息加以解决。

 

posted on 2016-08-02 21:47  kira+  阅读(3014)  评论(0编辑  收藏  举报