Zabbix-Agent 客户端的安装

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
[root@localhost ~] # rpm -ivh http://repo.zabbix.com/zabbix/2.4/rhel/6/x86_64/zabbix-release-2.4-1.el6.noarch.rpm
[root@localhost ~] # yum install -y zabbix zabbix-agent

客户端的配置
[root@localhost ~] # cat /etc/zabbix/zabbix_agent.conf|grep -n ^[^#]

PidFile=/var/run/zabbix/zabbix_agentd.pid
LogFile=/var/log/zabbix/zabbix_agentd.log
LogFileSize=0
Server=127.0.0.1,192.168.108.141#被动模式,Zabbix-Server的IP地址
ServerActive=192.168.108.141:10051 #主动模式
Hostname=Zabbix server
Include=/etc/zabbix/zabbix_agentd.d/
UnsafeUserParameters=1

启动客户端
[root@localhost ~] # chkconfig zabbix-agent on
[root@localhost ~] # service zabbix-agent start
Starting Zabbix agent: [ OK ]

建议安装好后在zabbix-server服务机配置自动发现规则。

Comments

2015-10-19