Zabbix install client agent (windows and Centos7), zabbixcentos7

Source: Internet
Author: User

Zabbix install client agent (windows and Centos7), zabbixcentos7

The previous article briefly introduced how to set up the Zabbix monitoring server. Next I will introduce how to install the zabbix_agent client on windows and Centos7.

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 optional component zabbix agent (monitored end) I. System Environment
Linux windows zabbix_agent installation package (I installed version 3.0.9, so the client is also 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 the dependency package yum-y install net-snmp-devel gcc-c ++ openssl-devel curl-devel create user groupadd zabbixuseradd-g zabbix-m zabbix compile and install cd/opttar- zxvf zabbix-3.0.9.tar.gzcd zabbix-3.0.9. /configure -- prefix =/opt/zabbix -- sysconfdir =/opt/zabbix/etc -- enable-agent -- with-mysql -- with-net-snmp -- with-libcurl -- with-opensslmake install

2. modify the configuration file

Cd/opt/zabbix/etc/cp zabbix_agentd.conf zabbix_agentd.conf.baksed-I's/Server = FIG/Server = 172. 16. *. */G'/opt/zabbix/etc/zabbix_agentd.conf # change the second Server address to zabbix Server IP address sed-I's/ServerActive = 127.0.0.1/ServerActive = 172. 16. *. */G'/opt/zabbix/etc/zabbix_agentd.confecho "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_agentdln-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_agentdsed -i '4,6d' /etc/rc.d/init.d/zabbix_agentdecho "# description: zabbix agent" >> /etc/rc.d/init.d/zabbix_agentdcdchkconfig --add zabbix_agentdchkconfig zabbix_agentd onsystemctl 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 backend address is the IP address of the Zabbix Server. ServerActive = 172. 16. *. * # the backend 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 \ configure-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)

6. Check the port

Win + r --> Enter cmd --> netstat-an --> Search for the default port 10050

The method for adding a host on the server is the same as that on the linux system.

This is what we will introduce today! Please pay attention to updates later!

 

 

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.