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”上會顯示具體描述,按照描述信息加以解決。

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM