PHP 5.5.38 + mysql 5.0.11 + zabbix3.0 + nginx
1. First install the zabbix3.0 under the environment of installation
2. Yum Install mysql-devel Net-snmp-devel Curl curl-devel-y
Groupadd Zabbix
Useradd-g Zabbix Zabbix
3. Wget-c http://ncu.dl.sourceforge.net/project/zabbix/ZABBIX%20Latest%20Development/3.0.0alpha2/ Zabbix-3.0.0alpha2.tar.gz
You can download a higher version here, but be aware that some versions above 3.0 are mysql5.5 above
Https://www.zabbix.com/download more versions
4. Tar XF zabbix-3.0.0alpha2.tar.gz
Ln-s/usr/local/lib/libiconv.so.2/usr/lib/libiconv.so.2
CD ZABBIX-3.0.0ALPHA2
./configure--enable-server--enable-agent--with-mysql--enable-ipv6--with-net-snmp--with-libcurl--with-libxml2
Make && make install
Note: ―prefix=/usr/local/zabbix is/usr/local/zabbix for the specified installation directory
―enable-server for installing the Zabbix service-side program
―enable-agent Installing the Agent Program
―with-mysql to use MySQL database
―enable-ipv6 to enable IPv6 support
―WITH-NET-SNMP to enable SNMP support
―with-libcurl to enable Curl
―WITH-LIBXML2 compiling XML modules, primarily for monitoring VM virtual machines
5. cd/usr/local/zabbix-3.0.0alpha2/database/mysql/ here must pay attention to your path/usr/local/if you put it under/usr/local/
Mysql-u root-p #输入密码, enter the MySQL console
Create database Zabbix character set UTF8; #创建数据库zabbix, and the database encoding uses UTF8
/*/Use the root MySQL user-free comment section
GRANT USAGE on *. User01 ' @ ' localhost ' identified by ' Zabbix ' with GRANT OPTION; #新建账户zabbix, Password Zabbix
Flush privileges; #再次刷新系统授权表
Grant all on zabbix.* to ' Zabbix ' @ ' localhost ' identified by ' Zabbix ' with GRANT option; #允许账户zabbix能从本机连接到数据库zabbix
Flush privileges; #再次刷新系统授权表
*/
Use Zabbix #进入数据库, be sure to follow the SQL file order
SOURCE Schema.sql #导入脚本文件到zabbix数据库
SOURCE Images.sql
SOURCE Data.sql
6.vim/usr/local/etc/zabbix_server.conf
Dbname=zabbix #数据库名称
Dbuser=zabbix #数据库用户名
Dbpassword=zabbix #数据库密码
listenip=127.0.0.1 #数据库ip地址
7.cp/usr/local/zabbix-3.0.0alpha2/misc/init.d/fedora/core/zabbix_server/etc/rc.d/init.d/zabbix_server
Cp/usr/local/zabbix-3.0.0alpha2/misc/init.d/fedora/core/zabbix_agentd/etc/rc.d/init.d/zabbix_agentd
Service Zabbix_server Start
Service Zabbix_agentd Start
8.cd/usr/local/zabbix-3.0.0alpha2/frontends
CP-RF Php/application/nginx/html/zabbix //Note: Here is the directory under which your website is accessed Zabbix
9. Open the Web input 127.0.0.1/zabbix
The installation page appears.
Download 1, update the directory under zabbix.conf.php
These are the next steps, just follow the instructions.
Finally, remember one:
With the default account: admin, Password: Zabbix, you can log in
Hey
Chinese version of the problem, the top right corner of the head button select language
If there is no Chinese
The original Zabbix default to the Chinese support is closed, we need to modify the Zabbix php source files. Modify the include/locales.inc.php file under the site root directory.
<< Finish >>
Problem:
Zabbix server is not running:the information displayed could not be current.
Such a problem arises
Zabbix_server.conf the following should be
Zabbix.conf.php.example consistent configuration, IP is localhost
<?php
Zabbix GUI configuration file.
Global $DB;
$DB [' TYPE '] = ' MYSQL ';
$DB [' SERVER '] = ' localhost ';
$DB [' PORT '] = ' 3306 ';
$DB [' DATABASE '] = ' Zabbix ';
$DB [' USER '] = ' root ';
$DB [' PASSWORD '] = ' xxxxxxx ';
Schema name. Used for IBM DB2 and PostgreSQL.
$DB [' SCHEMA '] = ';
$ZBX _server = ' localhost ';
$ZBX _server_port = ' your port ';
$ZBX _server_name = ";
$IMAGE _format_default = image_format_png;
?>
PHP 5.5.38 + mysql 5.0.11 + zabbix3.0 + nginx Installation