zabbix-3.2.4 installation deployment under Centos7

Zabbix need to install the monitoring system at least four components, namely zabbix_server, zabbix_web, database, zabbix_agent

  Here is to set server server: 192.168.204.135

         agent terminal is: 192.168.204.136

A, server side configuration steps:

1.zabbix Download https://sourceforge.net/p/zabbix/activity/?page=0&limit=100#5e54dfbcf0d3470670587d2d

2. zabbix server upload or download the installation package to a local wget https://sourceforge.net/projects/zabbix/files/ZABBIX%20Latest%20Stable/4.0.6/zabbix-4.0.6.tar.gz

 After the download, unzip the file tar -zxvf zabbix-3.2.4.tar.gz

 

3. install the required dependencies, and the server side agent performs end yum -y install curl curl-devel net -snmp net-snmp-devel perl-DBIgcc* mysql-devel

 

   Zabbix create user groups and user groupadd zabbix; useradd -g zabbix zabbix; usermod -s / sbin / nologin zabbix

4.执行./configure --prefix=/usr/local/zabbix/ -enable-server --enable-agent --with-mysql --enable-ipv6 --with-net-snmp --with-libcurl 

  There solving error error error reference item https://blog.csdn.net/linux_player_c/article/details/52287921

  If no error execution make && make install

  After the directory corresponding to the mounted file generates the following four

  [@ localhost zabbix the root-3.2.4] # LS / usr / local / zabbix /
  bin sbin lib etc Share
system startup Item 5. Add will zabbix installation package files are copied to /etc/init.d, the following command:

  3.2.4 ZABBIX-CP / Misc / the init.d / Tru64 / O + X /etc/init.d/zabbix_server zabbix_server /etc/init.d/zabbix_server;chmod

6. The a / usr / local / zabbix / etc / zabbix_server .conf file backup, empty the contents of the file, add the following information:

  LogFile=/tmp/zabbix_server.log
  DBHost=localhost
  DBName=zabbix
  DBUser=zabbix
  DBPassword=123456

So far zabbix_server deployed, followed by the deployment zabbix_web

7. Installation LAMP perform yum install httpd httpd-devel php php -devel php-mysql mysql-server mysql -y

  After installation is complete, start Apache and mysql, php and test environment is normal.

  systemctl start httpd
  systemctl start mysql
 

8. Switch to the installation package php directory zabbix-3.2.4 / frontends / php the folder and all files are copied to the Apache Web Directory

  cd zabbix-3.2.4/frontends/php

  cp * / var / www / html / -a &

  Description: -a copy of all of the properties, into the background copy &

 9. Import zabbix database, yum installation default password is not required to reset the root password to login

   Log mysql database mysql -uroot -p

   Zabbix create a database, create user and authorization command zabbix

   create database zabbix charset=utf8;

   grant all on zabbix.*to zabbix@localhost identified by '123456';

  Then extracting files imported from a database zabbix zabbix-3.2.4 in

  mysql -uzabbix -p123456 zabbix <database/mysql/schema.sql

  mysql -uzabbix -p123456 zabbix <database/mysql/images.sql

  mysql -uzabbix -p123456 zabbix <database/mysql/data.sql

  Note that the order of data files into the

 10. The access server of web pages to install, click next, view the incorrect error, error there first error resolved, the normal state is all ok state to continue

  

 

  zabbix databases created before completing and user information   

  

 

Next, set up their own name to a zabbix of

Then been the next step, the following error message, and then upload to download zabbix.conf.php under / var / www / html / conf directory, and then return the next point

  

  After the installation, use the default user admin password zabbix zabbix sign in.

  zabbix server is not running prompt appears, is zabbix server does not start, try to perform /etc/init.d/zabbix_server start

  Note that if you can not start, check /etc/init.d/zabbix_server startup script installation path is correct, if not properly modified to correct DAEMON = / usr / local / zabbix / sbin / zabbix_server

  

  You can refresh the page after a successful start

  

  Click on the user interface changes to Chinese, English may not be a good change.

  

At this point, server-side configuration is complete.

Second, the configuration agent terminal

1. The first installation package on the server to the agent server copy, performs scp -r zabbix-3.2.4.tar.gz [email protected]: / root /

2. Extract the tar-zxf zabbix-3.2.4.tar.gz , unzip the directory compile zabbix, the command is as follows:

  ./configure --prefix=/usr/local/zabbix --enable-agent&&make install

  ln -s /usr/local/zabbix/sbin/zabbix_* /usr/local/sbin/

  Run the following command, zabbix_agent.conf content:

  LogFile=/tmp/zabbix_agentd.log

  Server=192.168.204.135

  ServerActive=192.168.204.135

  Hostname=192.168.204.136

Meanwhile copy zabbix_agentd script, run zabbix_agentd on the monitored machine, the default port is 10050

cd zabbix-3.2.4

cp misc/init.d/tru64/zabbix_agentd /etc/init.d/zabbix_agentd;chmod o+x /etc/init.d/zabbix_agentd

3. Start zabbix_agentd service to

Guess you like

Origin www.cnblogs.com/Simplelearning/p/12482486.html