Install Zabbix2.2 using yum in CentOS

Source: Internet
Author: User

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.

  1. Rpm-ivh zabbix-release-2.2-1.el6.noarch.rpm
  2.  
  3. Yum install zabbix-get zabbix-server zabbix-web-mysql zabbix-web zabbix-agent mysql-server
  4.  
  5. # Edit/etc/my. cnf and add the following content to prevent Chinese garbled characters
  6. # Set the character set to utf8
  7. Character-set-server = utf8
  8.  
  9. # Store each table file in innodb separately
  10. Innodb_file_per_table = 1
  11.  
  12. # Start mysqld at startup
  13. Chkconfig mysqld on
  14.  
  15. # Start mysql
  16. Service mysqld start
  17.  
  18. # Set the root password
  19. Mysqladmin-uroot password admin
  20.  
  21. # Logon
  22. Mysql-uroot-padmin
  23.  
  24. # Creating databases and user authorization
  25. Mysql> create database zabbix character set utf8;
  26. Mysql> grant all privileges on zabbix. * to zabbix @ localhost identified by 'zabbix ';
  27. Mysql> flush privileges;
  28. Mysql> exit;
  29.  
  30. # Log on to mysql using zabbix and import SQL
  31. Mysql-uzabbix-pzabbix
  32. Mysql> use zabbix;
  33. Mysql> source/usr/share/doc/zabbix-server-mysql-2.2.9/create/schema. SQL;
  34. Mysql> source/usr/share/doc/zabbix-server-mysql-2.2.9/create/images. SQL;
  35. Mysql> source/usr/share/doc/zabbix-server-mysql-2.2.9/create/data. SQL;
  36.  
  37. # View the imported table
  38. Mysql> show tables;
  39. Mysql> exit;
  40.  
  41.  
  42. # Edit/etc/zabbix/zabbix_server.conf and modify the following content:
  43. DBPassword = zabbix
  44.  
  45. # Create a required directory
  46. Mkdir/etc/zabbix/alertscripts/etc/zabbix/externalscripts
  47.  
  48. # Start the zabbix Service
  49. Service zabbix-server start
  50.  
  51. # Edit/etc/httpd/conf/httpd. conf and modify the following content:
  52. ServerName localhost: 80
  53.  
  54. # Start httpd
  55. Service httpd start
  56.  
  57. # Start the service
  58. Chkconfig zabbix-server on
  59. Chkconfig httpd on
  60.  
  61. # Edit/etc/php. ini and modify the following content:
  62. Date. timezone = Asia/Shanghai
  63.  
  64. # Restart httpd to take effect
  65. 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:

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.