CentOS uses pagoda Linux panel to build Zabbix process record

Source: Internet
Author: User
Tags snmp

Statement: This article refers to the steps in the https://lala.im/2733.html and add their own installation step diagram, do not like to spray.

1, Use the image name for the mirror name: Centos-7-x86_64-dvd-1804.iso of the image to minimize the installation of CentOS (selected during installation), after installation view using the IP Add command to view the native IP.

2. Use the security CRT to login to CentOS.

3. Update the system with the Yum Update command.

4. using yum install-y wget && wget-o install.sh http://download.bt.cn/install/install.sh && sh ins tall.sh Install Pagoda Linux panel. After the installation is completed use the circle of the account and password (this account password is randomly generated when installed, after the installation can be seen directly or after the use of the BT default command to view and log into the Web panel for customized changes, if you forget to use Cd/www/server/panel && Python tools.pyc panel new password to modify, for more information on the Pagoda panel, please refer to its official website.

5, the use of http://IP:8888 (this IP is seen before the native IP) landed on the Pagoda Linux panel, the lamp environment to build.

6. Customize the default account name and password to modify the Pagoda Linux panel.

7. use Groupadd Zabbix, Useradd zabbix-g zabbix-s/sbin/nologin Two commands to create a new Zabbix user group and Zabbix user respectively.

8. Install the Epel source using the yum-y installation epel-release command.

9. Install the various dependencies and components required for compiling Zabbix using the yum-y installation net-snmp-devel fping command.

10, in the root directory download Zabbix-3.4.11 source (in your local computer also download a copy, will be used when the database will be imported). The download command is wget https://jaist.dl.sourceforge.net/project/zabbix/ZABBIX%20Latest%20Stable/3.4.11/zabbix-3.4.11.tar.gz.

11, Use the TAR-ZXVF zabbix-3.4.11.tar.gz command to extract the downloaded source code, and use the CD zabbix-3.4.11/command switch to extract zabbix-3.4.11 folder.

12, use./configure--enable-server--enable-agent--with-mysql--enable-ipv6--with-net-snmp--with-libcurl-- The WITH-LIBXML2 command compiles the Zabbix and then installs it using the Make install command.

13. Modify the database root password and synchronize it with the Pagoda Linux panel.

14. Open the phpMyAdmin in the Pagoda Linux panel, create the Zabbix database, and sort using utf8_general_ci.

15, import Zabbix required three database tables in the created Zabbix, import order.

After importing back to the Pagoda Linux panel, click to get the database from the server, find the Zabbix database after the synchronization, remember to remember.

16, back to the security CRT use vi/usr/local/etc/zabbix_server.conf to Zabbix server side of the modification.

17, the use of vi/usr/local/etc/zabbix_agentd.conf to Zabbix client modification, add the installation Zabbix the IP of the machine.

18. use Systemctl stop firewalld.service, systemctl disable Firewalld.service to close the CentOS firewall.

19, using Zabbix_server, ZABBIX_AGENTD start the Zabbix server, the client.

20. go back to the Pagoda Linux panel to create a site, and set the site you created as the default site, and locate the installed PHP version and change its max_input_time value to 300.

21, in the CRT use Cp-r/root/zabbix-3.4.11/frontends/php/*/www/wwwroot/zabbix.local/(here zabbix.local/ is the site directory created in the previous step).

22, Open the browser, enter the installation Zabbix the Ip/setup of the machine for the Web front-end installation, the contents of the ring in the section to fill in and then the next step to complete the installation.

23. Download the arrow pointing to the location of the file and upload it to the Conf folder in the Site directory.

Once the upload is complete, click Finish in the last image in the previous step to complete the installation of the Zabbix Web front end with the following content.

24, The previous step is completed and then click Finish will pop up the login interface, enter the default account name: Admin, Password: Zabbix can log in, after landing, if no accident will appear in the second picture below the circled part of the error.

25, back to the CRT use Cat/tmp/zabbix_server.log to see the cause of the error.

26. Use the Find/-name mysql.sock command to locate Mysql.sock where the path is within the/tmp/folder, and follow the previous step to see the/var/lib/mysql/ Mysql.sock This path does not match, for this we mysql.sock adopt soft link way to deal with.

The processing commands are as follows:

Mkdir/var/lib/mysql

Ln-s/tmp/mysql.sock/var/lib/mysql/mysql.sock

After the above command is complete, use/etc/rc.d/init.d/mysqld restart to restart MySQL.

27, Refresh the Zabbix Web interface, found that the error disappears, everything back to normal.

CentOS uses pagoda Linux panel to build Zabbix process record

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.