Zabbix Installation Record

Source: Internet
Author: User
Tags character set ini snmp create database

Data migration, our Zabbix also need to move ...

Software Environment:

Ubuntu 11.10

Nginx 1.0.15

php-5.3.16

MySQL 5.1.51

Zabbix-1.8.15

Installation steps:

Mysql,nginx omitted

PHP Installation:

Dependency Pack Installation: Apt-get install LIBXML2 Libxml2-dev libpng*

PHP must support PHP-GD, Php-bcmath, Php-xml, Php-mysql, Php-net-socket, php-mbstring

   ./configure--prefix=/usr/local/php--with-config-file-path=/usr/local/php/etc--with-mysql=/usr/local/mysql-- With-mysqli=/usr/local/mysql/bin/mysql_config--enable-fpm--enable-sockets--enable-pdo--with-pdo-mysql=/usr/ Local/mysql--with-gd--enable-bcmath--enable-xml--enable-mbstring  && make && make install

Copy configuration file

   Cp/data/php-5.3.19/php.ini-production  /usr/local/php/etc/php.ini

Modified section:

   Date.timezone = ' asia/chongqing '
   post_max_size = 16M
   max_execution_time =
   Max_input_time = 600

Zabbix Installation:

  Download: wget http://jaist.dl.sourceforge.net/project/zabbix/ZABBIX%20Latest%20Stable/1.8.15/zabbix-1.8.15.tar.gz

Tar-xzf zabbix-1.8.15.tar.gz

Groupadd Zabbix;useradd zabbix-g Zabbix

Database Modification Section:

  Create database Zabbix character set UTF8;
  Grant all on zabbix.* to zabbix@ ' 10.4.6.190 ' identified by ' xxxxxx ';
  Mysql-uroot-p Zabbix < Create/schema/mysql.sql  
  mysql-uroot-p Zabbix < create/data/data.sql  
  Mysql-uroot -P Zabbix < Create/data/images_mysql.sql
  

--enable-server Install Zabbix Server

--enable-proxy Install Zabbix Proxy

--enable-agent Install Zabbix Agent

--with-mysql use MySQL to do database server

--WITH-NET-SNMP supports SNMP

--with-libcurl support curl for web monitoring

(Missing Dependency Package: Apt-get Install libcurl4-gnutls-dev apt-get install libcurl4-openssl-dev apt-get install net-snmp* apt-get ins Tall Libsnmp-dev)

   Edit/etc/services, append later:
zabbix-agent 10050/tcp Zabbix agent  
zabbix-agent 10050/udp Agent  
Zabbix-trapper 10051/tcp Zabbix trapper zabbix-trapper 10051/udp Zabbix Trapper  
  

Configuration File Replication:

  Mkdir/etc/zabbix  
CP misc/conf/zabbix_server.conf/etc/zabbix/  
CP misc/conf/zabbix_proxy.conf/etc/zabbix/  
CP misc/conf/zabbix_agent.conf/etc/zabbix/  

/etc/zabbix/zabbix_server.conf

To modify the database connection settings:

Dbuser=zabbix

Dbpassword=zabbix

dbhost=10.4.3.163

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.