First, installation of Zabbix-server
First, the monitoring system is the use of httpd PHP interface to transport the management interface, and the use of MARIADB database storage information, so, should first install a set of lamp.
For CENTOS7:
① #yum-y install httpd php php-mysql mariadb-server MySQL
1) do not need too much modification, PHP configuration file/etc/php.ini file needs to add Timezone=asia/shanghai time zone.
2) Create the Zabbix database in the database, the user, and authorize (of course, generally to skip the IP inverse solution):
# CREATE DATABASE Zabbix CHARSET ' UTF8 ' (set character sets); (Note: CHARSET ' UTF8 ' adds this to avoid Chinese garbled problems)--->
> CREATE DATABASE zabbix CHARSET ' UTF8 ';
>grant all on zabbix.* to ' zbuser ' @ ' host ' identified by ' 12345 ';
>flush privileges;
② #yum Install Zabbix-server-mysql Zabbix-get (General re-web GUI and agent side are similar, only need to install two of the newspaper)
③ for the 3.x series version, you only need to import a SQL script into the database;
#mysql Zabbix </usr/share/doc/zabbix-server-mysql-3.0.2/create.sql
Ii. Configuration of/etc/zabbix/zabbix.conf files
Common parameters: listenport=10051
SourceIP:
When performing a monitoring operation, if Zabbix server has multiple IP addresses, which address is used as the source IP, because the client
When performing the monitoring operation, it verifies the server-side IP, that is, IP-based authorization;
dbhost
DBName
DBUser
Dbpassword are very simple parameters.
Third, start monitoring
#systemctl Start Zabbix-server.service
#systemctl Start Httpd.service
This article is from the "Linux" blog, so be sure to keep this source http://ridingonhorse.blog.51cto.com/11265295/1787661
Zabbix Monitoring Overview