Linux system Deployment installation Zabbix monitoring tools and Zabbix settings Chinese language background

Source: Internet
Author: User
Tags ini snmp import database

Zabbix, is a web-based interface to provide distributed system monitoring, network monitoring functions of enterprise-class open source software, its function is quite perfect and to be fully proficient in the mastery also need to have enough learning ability and research spirit. No wonder old left often see many large network companies recruit Zabbix system engineers full-time system and software monitoring operation and maintenance services.

Old left is also the first contact Zabbix monitoring tools, before in many Yun-Wei blog to see the introduction and the function is quite rich, so today a little time in the Linux server installed to see. May be behind the short term may not be used, but at least the legendary software is very powerful we can also see, later when bragging we can also say that the software has played, although not how to play.

At present, Zabbix has been upgraded to version 3.0, and the background is to support Simplified Chinese, which is divided into service and client parts, the server is we can detect the deployment of other multiple client servers information and software running state, to tell the truth the installation process a little bit of trouble.

First, the Installation Zabbix monitoring Tool preparation work

Here the old left uses the Linux CentOS6 environment, the Web environment uses the pre-installed military elder brother Lnmp a key package, because the Zabbix tool is based on the Web environment, we need in lamp or nginx Web environment.

Because this article old left is only used for demonstration and learning use, if we want to use the actual combat suggestion or use a separate machine to install the server, do not with other existing Web site environment with the use of the same machine, in case of compile time caused system problems, that much depressed.

Second, the installation of Zabbix monitoring tool process

1, deployment needs of the component package

The code is as follows Copy Code
Yum-y Install NET-SNMP net-snmp-devel libcurl mysql-devel
Before we install the deployment, we need to install the required component package environment.
2, download Zabbix program and compile
The code is as follows Copy Code
Official source file: http://www.zabbix.com/download.php
We can go to the official download/unzip the required version. Can download directly to a temporary directory of the current server, such as we directly to the root directory installation and compilation, after the end of the source code deleted.
The code is as follows Copy Code
./configure--prefix=/usr/local/zabbix--enable-server--enable-agent--with-net-snmp--with-mysql--with-libcurl
Then perform the install made && make install.

3. Create User and Import Database

Because of the security of the system, if we start Zabbix in the root user, we need to create the user individually.

The code is as follows Copy Code
Groupadd Zabbix
Useradd-g Zabbix Zabbix
Second, we also need to import the default database in the installation package (3 SQL files in/database/mysql/), we need to create a database user in the LNMP environment, and then put 3 databases in order (Schema.sql, Images.sql, Data.sql) import.
4, modify the Zabbix database configuration
The code is as follows Copy Code
/usr/local/zabbix/etc/zabbix_server.conf
Edit this file
The code is as follows Copy Code
Dbname= database name
dbuser= Database User
dbpassword= Database Password
dbport=3306

Here to the file in accordance with the actual database settings corresponding modifications to save.

5, Zabbix port configuration and startup item settings

A-/etc/services file add the following script
  code is as follows copy code
Zab bix-agent    10050/tcp                #Zabbix Agent
zabbix-agent    10050/udp       & nbsp;       #Zabbix Agent
zabbix-trapper  10051/tcp                #Zabbix Trapper
zabbix-trapper  10051/udp& nbsp;              #Zabbix Trapper
B-Install startup scripts
The code is as follows Copy Code
cp/root/zabbix*/misc/init.d/fedora/core/*/etc/init.d-p
C-Edit Startup script
# Modify Basedir=/usr/local to Basedir=/usr/local/zabbix in/etc/init.d/zabbix_server file
Modify Basedir=/usr/local to Basedir=/usr/local/zabbix in #到/etc/init.d/zabbix_agentd file
D-Add service and start
The code is as follows Copy Code
Chkconfig--add Zabbix_server
Chkconfig--add Zabbix_agentd
Then we execute the following boot server and client.
The code is as follows Copy Code
Service Zabbix_server Start
Service Zabbix_agentd Start

Third, Zabbix Web Client Installation Wizard

After we've deployed everything, we're ready to start installing the client Web side. Copy all files from the/frontends/php/file that we downloaded from the official download to the root directory of the Zabbix client domain name site that is currently required for installation.

We can see the installation Wizard, this is similar to the construction of the site, the following fill in the database information can be.

Here we can see a bit of a problem, this does not matter because of php.ini file restrictions, we go to the system to modify the corresponding php.ini parameters restart the server can be effective to continue.

Here you can fill in the database information.

See here should be almost, write configuration file, if we are not writable, we need to set the corresponding directory to write permissions.

After installation we can use the default username admin, password Zabbix login backstage.

Zabbix set up Simplified Chinese language

From the process above the old left has installed two versions, 3.0 and 2.4 versions, so there are two screenshots in the screenshot above, since the beginning of the installation of 3.0 when there is a database import incomplete problem, and then I reinstall the 2.4 can be done, after the installation of 2.4 version in the background profile in the setting of language time to see the Simplified Chinese option. In fact, we can modify the.
The code is as follows Copy Code
include/locales.inc.php

Modify 57 To change display in Simplified Chinese ZH-CN to true and then replace the refresh background to see the Simplified Chinese option.

After the settings are saved, we can see that the Zabbix background is Simplified Chinese.

Summary of installation Zabbix monitoring tools

1, the above article is just the old left simple experience Zabbix monitoring tool installation process, for ordinary users is still more complex, it is no wonder that the use of enterprise-class requirements, we generally individual or use the point of third-party free monitoring is relatively simple.

2, Zabbix function is very powerful, we can also see a variety of rich documents from the Internet, and even more Zabbix related book use manuals, if the tool can play a very proficient or very promising, after the old left in time to play and play.

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.