On a simple introduction of how to build Zabbix monitoring Server, next to introduce how to install the Zabbix_agent client on Windows and CENTOS7.
Zabbix is an enterprise-class open source solution that provides distributed system monitoring and network monitoring capabilities based on a web interface.
Zabbix is composed of 2 parts, Zabbix server (monitoring side) and optional Components Zabbix agent (monitored) One, the system environment
Linux system Windows System zabbix_agent installation package (I installed version 3.0.9, so the client used is also 3.0.9 version)
Second, to close SELinux
Sed-i "S/selinux=enforcing/selinux=disabled/g"/etc/selinux/config
Changing SELinux requires a reboot (reboot or init 6 restart) to take effect!
Third, temporarily shut down the firewall
Systemctl Stop Firewalld
Iv. Installation of Zabbix client
1. Compile and install
Install dependency Package yum-y install Net-snmp-devel gcc-c++ OpenSSL openssl-devel curl-devel create user groupadd zabbixuseradd-g zabbix-m Zabbix 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=127.0.0.1/server=172.16.*.*/g '/opt/ zabbix/etc/zabbix_agentd.conf # #更改第二个Server地址为zabbix服务端IP地址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 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 self-start
Cp/opt/zabbix-3.0.9/misc/init.d/fedora/core/zabbix_agentd/etc/rc.d/init.d/sed-i ' s/# chkconfig:-10/# chkconfig: 2345 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 starts normally
Ps-ef | grep zabbix_agentd
V. Windows installation Zabbix Client
1. Download Zabbix Package
2, unzip the file will appear two directories
Bin directory (run file) and conf directory (config file)
3. Modify the configuration file
Server=172.16.*.* #后面地址为Zabbix服务器端的IP地址ServerActive =172.16.*.* #后面地址为Zabbix服务器端的IP地址
4. Choose 64-bit or 32-bit installation according to your current version of Windows
My server is a 64-bit system.
C:\zabbix\bin\win64\zabbix_agentd.exe-c c:\zabbix\conf\zabbix_agentd.win.conf-i #加载配置文件c: \zabbix\bin\win64\ Zabbix_agentd.exe-c c:\zabbix\conf\zabbix_agentd.win.conf-s #添加windows自启动服务
win+r--> input services.msc--> turn on "Zabbix Agent"
Start automatically and restart the service! Opening the firewall requires 10050 ports to be released.
5, delete the service (need to delete, delete the same time first stop the service)
win+r--> input CMD-->SC Delete "Zabbix Agent" (Must be Administrator rights)
6. Check the port
win+r--> input cmd-->netstat-an--> find 10050 port default
The method of adding hosts to the server is the same as the Linux system, so there is no more writing here.
Introduction to this today! Follow up on updates!
Zabbix Installing the Client Agent (Windows and CENTOS7)