Zabbix install client agent (windows and Centos7), zabbixcentos7

Source: Internet
Author: User

Zabbix install client agent (windows and Centos7), zabbixcentos7

 

ZabbixIs an enterprise-level open-source solution that provides distributed system monitoring and network monitoring functions based on the WEB interface.

Zabbix consists of two parts: zabbix server (monitoring end) and zabbix agent (monitored end)

I. System Environment

Linux

Windows

Zabbix_agent installation package (I installed version 3.0.9, so the client used is also version 3.0.9)

Ii. Disable Selinux

Sed-I "s/SELINUX = enforcing/SELINUX = disabled/g"/etc/selinux/config

To change selinux, you must restart the system (reboot or init 6!

3. temporarily disable the Firewall

Systemctl stop firewalld # disable Firewall

4. Install the zabbix Client

1. Compile and install

Install dependency packages

Yum-y install net-snmp-devel gcc-c ++ openssl-devel curl-devel

Create user

Groupadd zabbix

Useradd-g zabbix-m zabbix

Compile and install

Cd/opt

Tar-zxvf zabbix-3.0.9.tar.gz

Cd zabbix-3.0.9

. /Configure -- prefix =/opt/zabbix -- sysconfdir =/opt/zabbix/etc -- enable-agent -- with-mysql -- with-net-snmp -- with-libcurl -- with-openssl

Make install

2. modify the configuration file

Cd/opt/zabbix/etc/

Cp zabbix_agentd.conf zabbix_agentd.conf.bak

Sed-I's/Server = 127.0.0.1/Server = 172. 16. *. */G'/opt/zabbix/etc/zabbix_agentd.conf # change the second Server address to the zabbix Server IP Address

Sed-I's/ServerActive = 127.0.0.1/ServerActive = 172. 16. *. */G'/opt/zabbix/etc/zabbix_agentd.conf

Echo "zabbix-agent 10050/tcp # Zabbix Agent">/etc/services

Echo "zabbix-agent 10050/udp # Zabbix Agent">/etc/services

Modify the Startup File

Cp/opt/zabbix-3.0.9/misc/init. d/fedora/core/zabbix_agentd/etc/init. d/

Chmod + x/etc/init. d/zabbix_agentd

Ln-s/opt/zabbix/sbin/*/usr/local/sbin/

Ln-s/opt/zabbix/bin/*/usr/local/bin/

3. Set auto-start

Cp/opt/zabbix-3.0.9/misc/init. d/fedora/core/zabbix_agentd/etc/rc. d/init. d/

Sed-I's/# chkconfig:-90 10/# chkconfig: 2345 10 90/G'/etc/rc. d/init. d/zabbix_agentd

Sed-I '4, 6d '/etc/rc. d/init. d/zabbix_agentd

Echo "# description: zabbix agent">/etc/rc. d/init. d/zabbix_agentd

Cd

Chkconfig -- add zabbix_agentd

Chkconfig zabbix_agentd on

Systemctl start zabbix_agentd

4. Check whether the process is started normally.

Ps-ef | grep zabbix_agentd

5. Install the Zabbix client in Windows

1. Download zabbix Software Package

 

 

2. decompress the file and two directories will appear.

Bin directory (running file) and conf directory (configuration file)

3. modify the configuration file

Server = 172. 16. *. * # the following address is the IP address of the Zabbix Server.

ServerActive = 172. 16. *. * # the following address is the IP address of the Zabbix server.

4. Select 64-bit or 32-bit for installation based on your current windows version.

My server is a 64-bit system.

C: \ zabbix \ bin \ win64 \ zabbix_agentd.exe-c: \ zabbix \ conf \ zabbix_agentd.win.conf-I # load the configuration file

C: \ zabbix \ bin \ win64 \ zabbix_agentd.exe-c: \ zabbix \ conf \ zabbix_agentd.win.conf-s # add windows auto-Start Service

Win + r --> enter services. msc --> enable "Zabbix Agent"

 

Start automatically and restart the service! To enable the firewall, open port 10050.

5. delete a service (if necessary, delete the service and stop it)

Win + r --> Enter cmd --> SC delete "Zabbix Agent" (administrator privilege required)

 

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.