1. Install MySQL
CREATE DATABASE Zabbix;
GRANT all on zabbix.* to ' Zabbix ' @ ' 192.168.19.% ' identified by ' 123456 ';
GRANT all on zabbix.* to ' Zabbix ' @ ' localhost ' identified by ' 123456 ';
GRANT all on zabbix.* to ' Zabbix ' @ ' mysql.jason.com ' identified by ' 123456 ';
FLUSH privileges;
Service mysqld Start
2. Groupadd Zabbix
Useradd-g Zabbix Zabbix
3. Yum install-y Curl curl-devel net-snmp SNMP net-snmp-devel perl-dbi php-gd php-xml php-bcmath php-mbstring
4. Import the database file:
wget http://iweb.dl.sourceforge.net/project/zabbix/ZABBIX%20Latest%20Development/3.0.0alpha2/zabbix-3.0.0alpha2.tar.gz
Tar XF zabbix-3.0.0alpha2.tar.gz
CD zabbix-3.0.0alpha2/database/mysql/
/usr/local/mysql/bin/mysql-uzabbix-p123456 Zabbix < Schema.sql//import order cannot be wrong
/usr/local/mysql/bin/mysql-uzabbix-p123456 Zabbix < Images.sql
/usr/local/mysql/bin/mysql-uzabbix-p123456 Zabbix < Data.sql
5. Compiling the installation parameters
./configure--prefix=/usr/local/zabbix--enable-server--enable-agent--enable-proxy--with-mysql--ENABLE-NET-SNMP- -with-libcurl
Make && make install
6. View Ports:
#netstart-TNLP | grep ' Zabbix '
To stop the Zabbix service:
Installing Zabbix under CentOS