ZABBIX Practice (ii) CentOS the agent-side deployment and installation __zabbix

Source: Internet
Author: User

First, repeat the previous plan.

Server end: 192.168.136.144 centos6.5 (virtual machine)

Agent End: 192.168.136.155 centos6.5 (virtual machine) below, we will install the Zabbix agent on agent end 155 to see how to install and monitor

1, synchronization client time, to prevent inconsistent with the server side, resulting in the detection of the unavailable monitoring data

This practice only involves Zabbix itself, so NTP time synchronization is not detailed, the other chapters of this blog are introduced.


2, create the Zabbix to run the user and group
GROUPADD-G 201 Zabbix
Useradd-g zabbix-u 201-m Zabbix

Usermod-s/sbin/nologin Zabbix

3, decompression installation zabbixagent end
Enter the directory where you put the installation package, first unpack the installation package.

TAR-VXF zabbix-3.2.0.tar.gz
CD zabbix-3.2.0
./configure--prefix=/usr/local/zabbix--with-net-snmp--enable-agent
Make
Make install
When make is successful, the following image is the interface:



4, copy agent side of the script required to run
CP misc/init.d/tru64/zabbix_agentd/etc/init.d/
chmod +x/etc/init.d/zabbix_agentd
Note that to modify this startup script, Vi/etc/init.d/zabbix_agentd changes the directory to the following


Daemon=/usr/local/zabbix/sbin/zabbix_agentd

5. Configure the agent-side configuration file

Vim/usr/local/zabbix/etc/zabbix_agentd.conf #此处千万别写成了zabbix_agent. conf, otherwise configured not to take effect
server=192.168.136.144 #填写Server的IP地址
serveractive=192.168.136.144 #修改为Server的IP地址
Hostname=h3.worker.com #填写本机的HostName, note that the server side should be able to resolve
Unsafeuserparameters=1 #是否允许自定义的key, 1 is allowed, 0 is not allowed
#Include = etc/zabbix/zabbix_agentd.conf.d/This option does not configure, otherwise it will cause the agent to find the Conf recursion, can not start.

6, from the Zabbix service side verification, you can resolve the client server hostname (NOTE: This step in the service side operation)



7, start Zabbix agent End
/etc/init.d/zabbix_agentd start

8, finally in Zabbix server end through configuer-"host configuration h3.worker.com, you can monitor






Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.