centos 6安装zabbix agent

安装zabbix agent


1:安装zabbix agent

[root@mail Packages]# rpm -ivh /tmp/soft/zabbix-agent-3.0.3-1.el6.x86_64.rpm 


warning: /tmp/soft/zabbix-agent-3.0.3-1.el6.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID 79ea5ed4: NOKEY
error: Failed dependencies:

        libodbc.so.2()(64bit) is needed by zabbix-agent-3.0.3-1.el6.x86_64


2:安装依赖包


[root@mail Packages]# rpm -ivh unixODBC-2.2.14-14.el6.x86_64.rpm
Preparing...                ########################################### [100%]

   1:unixODBC               ########################################### [100%]


3:再次安装agent


[root@mail Packages]# rpm -ivh /tmp/soft/zabbix-agent-3.0.3-1.el6.x86_64.rpm 
warning: /tmp/soft/zabbix-agent-3.0.3-1.el6.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID 79ea5ed4: NOKEY
Preparing...                ########################################### [100%]

   1:zabbix-agent           ########################################### [100%]


4:修改配置文件


[root@mail Packages]# cd /etc/zabbix/
[root@mail zabbix]# vi zabbix_agentd.conf 
Server=zabbix server ip
ServerActive=zabbix server ip

Hostname=本机Ip #不要用127.0.0.1


5:启动zabbix agent


/etc/init.d/zabbix-agent start

你可能感兴趣的:(zabbix,linux)