Zabbix2.4 installation Configuration

Source: Internet
Author: User

Zabbix2.4 installation Configuration

First download the rpm package from www.zabbix.com:

Next, I want to configure a zabbix server and monitor myself. Even if the server is a client, zabbix web gui and zabbix databases are all placed on the same host, except for the fourth and fifth packages, install yum-y install epel-release in advance to solve the dependency of some packages. (Note that you do not need to compile and install the rpm package. The rpm package can meet your enterprise needs)

In this way, I have to configure a mysql server and an httpd server in advance, mysql is used to store data, yum-y install httpd yum-y install mysql-server service mysqld start mysql

Create database zabbix character set utf8; create a zabbix database,

Grant all on zabbix. * to 'zbxuser' @ '%' identified by 'zbxpass'; Authorize zbxuser.

Flush privileges; refresh the user authorization table.

After installation, ls/etc/zabbix /:

You can see that the configuration files on both the client and server are available.

In/etc/httpd/conf. the configuration file related to zabbix is generated under the d directory. If httpd has been started, you need to restart httpd to load the configuration file zabbix, service httpd start.

To connect the server to mysql, you also need to import three files to mysql, cd/usr/share/doc/zabbix-server-mysql-2.4.7/create/

Mysql zabbix <schema. SQL, mysql zabbix <images. SQL, and mysql zabbix <data. SQL are imported in this order.

Next, run vim/etc/zabbix/zabbix_server.conf to open the configuration file of zabbix server.

Here, because the database and the server are on the same host, you can change it to the IP address of the Database Host instead of the same host:

Note that the host address must be correct. Otherwise, the zabbix server cannot be started.

The preceding DBName has created zabbix in mysql.

Here it is changed to zbxuser.

Add the user's password here.

Check which packages are installed on zabbix-server:

Service zabbix-server start ss-tnl

Port 10051 has been monitored, and zabbix server has been started.

Next, configure zabbix web gui. Its web interface is written in php. Php is automatically installed when httpd is installed.

Vim/etc/php. ini

 

The time zone is Shanghai. Restart httpd to make it take effect. service httpd restart

Open the browser and enter the address 192.168.238.221/zabbix.

Click next

All items are displayed as OK. Click next

Fill in according to the configuration file of zabbix server. Click test connection to test whether the connection is OK. click next.

Click Next. The name here is the host name. It doesn't matter if you leave it empty.

Click Next.

If the password is changed later, you can change the above file. Finish

Log on to admin zabbix with the default Administrator account and password.

Done!

Some Zabbix Tutorials:

Compile and install Zabbix2.4.5 source code in Ubuntu 14.04

Install and deploy the distributed monitoring system Zabbix 2.06

Install and deploy the distributed monitoring system Zabbix 2.06

Install and deploy Zabbix in CentOS 6.3

Zabbix distributed monitoring system practice

Under CentOS 6.3, Zabbix monitors apache server-status

Monitoring MySQL database Parameters Using Zabbix in CentOS 6.3

Install Zabbix 2.0.6 in 64-bit CentOS 6.2

ZABBIX details: click here
ZABBIX: click here

This article permanently updates the link address:

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.