Recommended first look at the official website installation
https://Www.zabbix.com/documentation/2.4/manual/installation/install
1. Download and unzip
TAR-ZXVF zabbix-2.4.0.tar.gz
2. Create Zabbix Users
Groupadd zabbixuseradd-g Zabbix Zabbix
3. Compiling the installation
./configure--enable-server--enable-agent--with-mysql--enable-ipv6--with-net-snmp--with-libcurl--WITH-LIBXML2-- WITH-OPENIPMI--with-unixodbc--prefix=/app/zabbix
Configure:error:Not found Mysqlclient library #yum-y install Mysql-devel
Configure:error:LIBXML2 Library not found #yum-y install Libxml2-devel
Configure:error:unixODBC Library not found # yum-y install Unixodbc-devel
Configure:error:Invalid Net-snmp directory-unable to find net-snmp-config #yum-y install Net-snmp-devel
Configure:error:Invalid OpenIPMI directory-unable to find ipmiif.h #yum-y install Openipmi-devel
Configure:error:Curl Library not found #yum-y install Curl-devel
4. installing the Web front end
Lamp environment Setup I won't say much.
CP zabbix-2.4.4/frontends/*/var/www/html # # #放在其他目录的别忘了selinux, and Iptables when connected
Do domain name resolution directory Configuration <---I'll have a little.
Through IP access, here I do an analysis, through the domain name to do the test
This is usually an error. Similar to other sites, lack of what to fill.
Vim/etc/php.ini changing parameters according to requirements
Date.timezone = Asia/shanghai #time Zone
Post_max_size = 16M
Max_execution_time = 300
Max_input_time = 300
--------------------------------------------
Yum-y Install php-bcmath php-mbstring php-gd php-xml
5. Create a Zabbix database
Shell>mysql-uroot-pxxxxx
Mysql>create database Zabbix Character set UTF8 collate utf8_bin;
Mysql>grant all on zabbix.* to [e-mail protected] identified by ' Zabbix ';
SHELL>CD zabbix/data/
Shell>mysql-uroot Zabbix<schema.sql
Shell>mysql-uroot Zabbix<images.sql
Shell>mysql-uroot Zabbix<data.sql
Sqlplus> @database/oracle/schema.sql
Sqlplus> @database/oracle/images.sql
Sqlplus> @database/oracle/data.sql
6. Continue to the Web front end next. Note Zabbix/conf/zabbix.conf.php If there is an error, manually built one, remember to change some parameters
<?php
Zabbix GUI configuration file.
Global $DB;
$DB [' TYPE '] = ' MYSQL ';
$DB [' SERVER '] = ' localhost ';
$DB [' PORT '] = ' 0 ';
$DB [' DATABASE '] = ' Zabbix ';
$DB [' USER '] = ' Zabbix ';
$DB [' PASSWORD '] = ' Zabbix ';
Schema name. Used for IBM DB2 and PostgreSQL.
$DB [' SCHEMA '] = ';
$ZBX _server = ' localhost ';
$ZBX _server_port = ' 10051 ';
$ZBX _server_name = ' zabbixtest ';
$IMAGE _format_default = image_format_png;
?>
7. Complete the Login
Default login account: Admin
Password: Zabbix
At this point to complete the host side, monitoring end to install agent, as well as monitoring add, really feel trouble, may not write down
This article is from the "gentleman Not the Device" blog, please make sure to keep this source http://cesar.blog.51cto.com/4356026/1631313
Zabbix Basic Installation