Install and deploy the distributed monitoring system Zabbix 2.06

Source: Internet
Author: User

The server listens on port 10051 and the client listens on port 10050. The user interface is developed using php. Data is stored in MySQL. You have to review the installation several times. Currently, the configuration and installation of Zabbix are as follows:

Zabbix configuration requires web, php, mysql, gcc, and other support

Reference: https://www.zabbix.com/documentation/doku.php? Id = 2.0/manual/installation/install

Zabbix Server Installation


Create a Zabbix running user:

  • # groupadd zabbix# useradd -g zabbix zabbix

  • Install libcurl and net-snmp:

  • # yum install net-snmp-devel curl-devel


    Install Fping:

  • # wget -c http://fping.org/dist/fping-3.4.tar.gz# tar zxvf fping-3.4.tar.gz# cd fping-3.4# ./configure# make && make install# chown root:zabbix /usr/local/sbin/fping# chmod 4710 /usr/local/sbin/fping 


    Install Zabbix Server:


    # wget -c http://downloads.sourceforge.net/project/zabbix/ZABBIX%20Latest%20Stable/2.0.6/zabbix-2.0.6.tar.gz?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fzabbix%2F%3Fsource%3Ddlp&ts=1367916060&use_mirror=ncu# tar zxvf zabbix-2.0.6.tar.gz# cd zabbix-2.0.6# ./configure --prefix=/usr/local/zabbix --enable-server --enable-agent --with-mysql=/usr/local/mysql/bin/mysql_config --with-net-snmp --with-libcurl#make install

    Add service port [root @ localhost ~] # Cat>/etc/services <your-agent 10050/tcp Zabbix Agentzabbix-agent 10050/udp Zabbix Agentzabbix-trapper 10051/tcp Zabbix your-trapper 10051/udp Zabbix Trapper


Configure and start Zabbix Server

Create a Zabbix database and a MySQL user:

Mysql> create database zabbix;

Query OK, 1 row affected (0.05 sec)mysql> grant all on zabbix.* to zabbix@localhost  identified by 'redhat';Query OK, 0 rows affected (0.03 sec)mysql> flush privileges;Query OK, 0 rows affected (0.04 sec)


Import Zabbix initial data:

# cd database/mysql/# mysql -uroot -p
sql> set sql_log_bin=0;mysql> source ./schema.sql;mysql> source ./images.sql;mysql> source ./data.sql;

Edit/usr/local/zabbix/etc/zabbix_server.conf:

LogFile=/usr/local/zabbix/logs/zabbix_server.logPidFile=/usr/local/zabbix/logs/zabbix_server.pidDBHost=192.168.1.190DBName=zabbixDBUser=zabbixDBPassword=redhatDBPort=3306FpingLocation=/usr/local/sbin/fping


Adjust firewall rules (Open Port 10051 ):


# vi /etc/sysconfig/iptables...                                                                                                           -A INPUT -p tcp -m state --state NEW -m tcp --dport 10051 -j ACCEPT...# /etc/init.d/iptables restart


Start Zabbix Server:

Cd/usr/local/zabbix/sbin

./Zabbix_server

Stop Zabbix Server:


Zabbix Web Front-end


Copy frontends to the specified web root in the installation directory:

# mkdir  /var/www/html/zabbix

# Cd zabbix-2.0.6


# Cp-a frontends/php/*/var/www/html/zabbix
 


Browser access: http: // 10.0.2.200/zabbix/index. php


If failed is displayed in the image, you need to modify the/etc/php. ini configuration file of php and change it to the required values.

If you need an extension of php, install the "php-extension" software package.


Database Configuration page:

1: Database type: mysql2: Database host: localhost3: Database port: 0 (mainly by default) 4: Databasename: zabbix5: User: zabbix (zabbix username added at the time) mysql-e "grant all privileges on zabbix. * to zabbix @ localhost identified by 'redhat'; "6: Password: redhat click test connection


Permission issues on the last page:

Cd/var/www/html/zabbix/conf

Cp zabbix. conf. php. example zabbix. conf. php

Chmod 666 zabbix. conf. php

Then refresh the page.

The web logon page of zabbix


Note: PHP must at least enable extensions: gd, bcmath, ctype, libXML, xmlreader, xmlwriter, session, sockets, mbstring, gettext, and mysql.


Access the Web interface http://zabbix.zrwm.com, the relevant web configuration, after the configuration is complete, use the default user admin (password: zabbix) login.



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.