Install Zabbix2.2 using yum in CentOS
What is zabbix?
Zabbix is an enterprise-level open-source solution that provides distributed system monitoring and network monitoring functions based on the WEB interface. Zabbix can monitor various network parameters to ensure secure operation of server systems. It also provides a flexible notification mechanism for system administrators to quickly locate and solve various problems. Zabbix consists of two parts: zabbix server and the optional component zabbix agent. Zabbix server can provide remote server/network status monitoring, data collection and other functions through SNMP, zabbixagent, ping, port monitoring and other methods, it can run in Linux, Solaris, HP-UX, AIX, Free BSD, Open BSD, OS X, and other platforms.
This article only describes how to install Zabbix using yum in CentOS. Please make sure your system can access the Internet.
Zabbix-release-2.0-1.el6.noarch.rpm
Zabbix-release-2.2-1.el6.noarch.rpm
Zabbix-release-2.4-1.el6.noarch.rpm
Three Versions: 2.0, 2.2, and 2.4. Please select the desired version for download. Here we will use version 2.2 as an example.
- Rpm-ivh zabbix-release-2.2-1.el6.noarch.rpm
-
- Yum install zabbix-get zabbix-server zabbix-web-mysql zabbix-web zabbix-agent mysql-server
-
- # Edit/etc/my. cnf and add the following content to prevent Chinese garbled characters
- # Set the character set to utf8
- Character-set-server = utf8
-
- # Store each table file in innodb separately
- Innodb_file_per_table = 1
-
- # Start mysqld at startup
- Chkconfig mysqld on
-
- # Start mysql
- Service mysqld start
-
- # Set the root password
- Mysqladmin-uroot password admin
-
- # Logon
- Mysql-uroot-padmin
-
- # Creating databases and user authorization
- Mysql> create database zabbix character set utf8;
- Mysql> grant all privileges on zabbix. * to zabbix @ localhost identified by 'zabbix ';
- Mysql> flush privileges;
- Mysql> exit;
-
- # Log on to mysql using zabbix and import SQL
- Mysql-uzabbix-pzabbix
- Mysql> use zabbix;
- Mysql> source/usr/share/doc/zabbix-server-mysql-2.2.9/create/schema. SQL;
- Mysql> source/usr/share/doc/zabbix-server-mysql-2.2.9/create/images. SQL;
- Mysql> source/usr/share/doc/zabbix-server-mysql-2.2.9/create/data. SQL;
-
- # View the imported table
- Mysql> show tables;
- Mysql> exit;
-
-
- # Edit/etc/zabbix/zabbix_server.conf and modify the following content:
- DBPassword = zabbix
-
- # Create a required directory
- Mkdir/etc/zabbix/alertscripts/etc/zabbix/externalscripts
-
- # Start the zabbix Service
- Service zabbix-server start
-
- # Edit/etc/httpd/conf/httpd. conf and modify the following content:
- ServerName localhost: 80
-
- # Start httpd
- Service httpd start
-
- # Start the service
- Chkconfig zabbix-server on
- Chkconfig httpd on
-
- # Edit/etc/php. ini and modify the following content:
- Date. timezone = Asia/Shanghai
-
- # Restart httpd to take effect
- Service httpd restart
All right, the above preparations have been completed. Install zabbix now. Enter http: // ip/zabbix in the browser and press Enter.
Welcome Page
Php parameter detection. If it fails, it will be modified until it is passed. modify it in php. ini. Remember to restart httpd after modification.
For mysql database detection, enter the username and password you just created
Next step
Information Overview
Configuration File Detection
Installation Complete
Now the installation is complete, followed by various configurations.
CentOS 6.4 compilation, installation, and deployment of Zabbix 2.0
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: