zabbix agent 3.0部署文件 安裝部署

lcl150800發表於2016-09-13

安裝 agent

git clone 下載

yum 安裝

[root@moban RPMS]# pwd

/root/zabbix3.0-rpm/RPMS

[root@moban RPMS]# yum install zabbix-agent-3.0.0-1.el6.x86_64.rpm -y

Loaded plugins: fastestmirror, refresh-packagekit, security

Loading mirror speeds from cached hostfile

 * base: mirrors.aliyun.com

 * epel: mirrors.ustc.edu.cn

 * extras: mirrors.aliyun.com

 * updates: mirrors.aliyun.com

Setting up Install Process

Examining zabbix-agent-3.0.0-1.el6.x86_64.rpm: zabbix-agent-3.0.0-1.el6.x86_64

Marking zabbix-agent-3.0.0-1.el6.x86_64.rpm to be installed

Resolving Dependencies

--> Running transaction check

---> Package zabbix-agent.x86_64 0:3.0.0-1.el6 will be installed

--> Processing Dependency: libodbc.so.2()(64bit) for package: zabbix-agent-3.0.0-1.el6.x86_64

--> Running transaction check

---> Package unixODBC.x86_64 0:2.2.14-14.el6 will be installed

--> Finished Dependency Resolution

 

Dependencies Resolved

 

========================================================================================================

 Package             Arch          Version                Repository                               Size

========================================================================================================

Installing:

 zabbix-agent        x86_64        3.0.0-1.el6            /zabbix-agent-3.0.0-1.el6.x86_64        1.1 M

Installing for dependencies:

 unixODBC            x86_64        2.2.14-14.el6          base                                    378 k

 

Transaction Summary

========================================================================================================

Install       2 Package(s)

 

Total size: 1.4 M

Total download size: 378 k

Installed size: 2.2 M

Downloading Packages:

unixODBC-2.2.14-14.el6.x86_64.rpm                                                | 378 kB     00:00    

Running rpm_check_debug

Running Transaction Test

Transaction Test Succeeded

Running Transaction

Warning: RPMDB altered outside of yum.

  Installing : unixODBC-2.2.14-14.el6.x86_64                                                        1/2

  Installing : zabbix-agent-3.0.0-1.el6.x86_64                                                      2/2

  Verifying  : unixODBC-2.2.14-14.el6.x86_64                                                        1/2

  Verifying  : zabbix-agent-3.0.0-1.el6.x86_64                                                      2/2

 

Installed:

  zabbix-agent.x86_64 0:3.0.0-1.el6                                                                    

 

Dependency Installed:

  unixODBC.x86_64 0:2.2.14-14.el6                                                                      

 

Complete!

------------------------------------------------

配置 [root@moban RPMS]# vi /etc/zabbix/zabbix_agentd.conf

Server=172.16.15.176    #zabbix 伺服器ip 用於被動模式

Hostname=172.16.15.177  #客戶端本機ip

UnsafeUserParameters=1 #允許自定義引數,如不需要請關閉 預設關閉

EnableRemoteCommands=1 #允許遠端執行命令,如無需要請款比,預設關閉

儲存退出

--------------------------------------------------

關閉selinux  並配置好iptables 如不是用iptables請關閉

[root@moban RPMS]# cat /etc/selinux/config

 

# This file controls the state of SELinux on the system.

# SELINUX= can take one of these three values:

#     enforcing - SELinux security policy is enforced.

#     permissive - SELinux prints warnings instead of enforcing.

#     disabled - No SELinux policy is loaded.

SELINUX=disabled

# SELINUXTYPE= can take one of these two values:

#     targeted - Targeted processes are protected,

#     mls - Multi Level Security protection.

SELINUXTYPE=targeted

 

[root@moban RPMS]# /etc/init.d/iptables status

iptables:未執行防火牆。

 

啟動 zabbix_agent

[root@moban RPMS]# /etc/init.d/zabbix-agent start

Starting Zabbix agent: [確定]

檢視 啟動狀態

[root@moban RPMS]# /etc/init.d/zabbix-agent status

zabbix_agentd (pid  2802) 正在執行...

-----------------------------------------------------

安裝完成

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/22390488/viewspace-2124869/,如需轉載,請註明出處,否則將追究法律責任。

相關文章