本文共 2511 字,大约阅读时间需要 8 分钟。
如需搭建zabbix server端,请参考:
环境:
1、安装源码
[root@localhost ~]# rpm -ivh http://repo.zabbix.com/zabbix/2.4/rhel/6/x86_64/zabbix-release-2.4-1.el6.noarch.rpmRetrieving http://repo.zabbix.com/zabbix/2.4/rhel/6/x86_64/zabbix-release-2.4-1.el6.noarch.rpmwarning: /var/tmp/rpm-tmp.KgKscI: Header V4 DSA/SHA1 Signature, key ID 79ea5ed4: NOKEYPreparing... ################################# [100%]Updating / installing... 1:zabbix-release-2.4-1.el6 ################################# [100%]
2、安装zabbix客户端
[root@localhost ~]# yum install zabbix-agent -yLoaded plugins: langpacksbase | 3.6 kB 00:00:00 docker-main-repo | 2.9 kB 00:00:00 elrepo ……………………………………………………………………………………Installed: zabbix-agent.x86_64 0:2.4.8-1.el6 Dependency Installed: zabbix.x86_64 0:2.4.8-1.el6 Complete!
3、zabbix配置文件
[root@localhost ~]# cd /etc/zabbix/[root@localhost zabbix]# lszabbix_agentd.conf zabbix_agentd.d[root@localhost zabbix]# vi zabbix_agentd.conf Server=zbbix server ipServerActive= zbbix server ipHostname=本机ip
4、重启服务
[root@localhost zabbix]# service zabbix-agent startStarting zabbix-agent (via systemctl): [ OK ][root@localhost zabbix]#chkconfig zabbix-agent on
转载地址:http://cpyba.baihongyu.com/