Detailed Zabbix monitoring system installation and deployment

Source: Internet
Author: User
Tags snmp tru64

Preface: Again to toss the monitor again. About monitoring, how to say it. Now it's all about "automating operations." The traditional way of monitoring is also slowly moving towards automation, intelligence. I believe that the future, monitoring can give us to reduce the burden of more work. From the original performance fault monitoring alarm to the future automatic warning processing. This article is about the deployment process. Installation also has no technical content, but also changed the configuration, loading library. But bloggers have a good habit: good at summing up. Just double benefit, novice students learn to use it.


System Information

System version: Centos6.5 32-bit

Server side: 192.168.175.133

Agent side: 192.168.175.130

Zabbix version: zabbix-2.0.6.tar.gz


#1 Environment Preparation

Architecture: LAMP

Required libraries: Curl Curl-devel net-snmp net-snmp-devel perl-dbi php-mbstring php-bcmath php-gd php-xml gd gd-devel

Install with Yum (server side):

[[email protected] ~]# yum install httpd httpd-devel php php-devel mysql mysql-server mysql-devel php-mysql-y
#库在Server端和Agent端都需要安装 [[email protected] ~]# Yum Install Curl curl-devel net-snmp net-snmp-devel perl-dbi php-mbstring ph P-bcmath php-gd php-xml GD gd-devel-y

#2 Service Configuration Installation

@1 Download Zabbix source package and save to/USR/LOCAL/SRC directory on server side and agent side respectively

[Email protected] ~]# cd/usr/local/src[[email protected] src]# wget http://heanet.dl.sourceforge.net/project/zabbix/ Zabbix%20latest%20stable/2.0.6/zabbix-2.0.6.tar.gz

@2 then add the user group on the server side and the agent side

[Email protected] src]# groupadd Zabbix; useradd-g Zabbix zabbix;usermod-s/sbin/nologin Zabbix

@3 server-side database configuration

Step: Initialize Database--Create Zabbix database--Import Zabbix database

[Email protected] ~]#/etc/init.d/mysqld restart
[Email protected] ~]# mysqladmin-u root password ' 111111 ' [[email protected] ~]# mysql-u root-p
mysql> CREATE DATABASE Zabbix; Query OK, 1 row Affected (0.00 sec) Mysql> Grant all on zabbix.* to [e-mail protected] identified by ' 123456 '; Query OK, 0 rows Affected (0.00 sec) Mysql>exit
[[email protected] ~]# mysql-uzabbix-p123456 Zabbix </usr/local/src/zabbix-2.0.6/database/mysql/schema.sql [[ Email protected] ~]# mysql-uzabbix-p123456 Zabbix </usr/local/src/zabbix-2.0.6/database/mysql/images.sql [email Protected] ~]# mysql-uzabbix-p123456 Zabbix </usr/local/src/zabbix-2.0.6/database/mysql/data.sql

@4 Server-side compilation installation Zabbix

[Email protected] ~]# cd/usr/local/src[[email protected] src]# tar zxvf zabbix-2.0.6.tar.gz [[email protected] src]# CD Zabbix-2.0.6[[email protected] zabbix-2.0.6]#./configure--prefix=/usr/local/zabbix/--enable-server--enable-agent --with-mysql--enable-ipv6--with-net-snmp--with-libcurl &&make Install

@5 configuration (server side)

[Email protected] zabbix-2.0.6]# ln-s/usr/local/zabbix/sbin/zabbix_*/usr/local/sbin/

Then enter/USR/LOCAL/ZABBIX/ETC to modify the zabbix_server.conf file. Modify the fields as follows:

logfile=/tmp/zabbix_server.logdbhost=localhostdbname=zabbixdbuser=zabbixdbpassword=123456

Then copy the script and start.

[[email protected] ~]# Cd/usr/local/src/zabbix-2.0.6[[email protected] zabbix-2.0.6]# CP misc/init.d/tru64/zabbix_ Server/etc/init.d/zabbix_server:chmod O+x/etc/init.d/zabbix_server[[email protected] zabbix-2.0.6]# cp-a frontends/ php/*/var/www/html/[[email protected] zabbix-2.0.6]# sed-i '/date.timezone/i date.timezone = PRC '/etc/php.ini

Modify PHP Related settings.

Sed-i '/post_max_size/s/8/16/g;/max_execution_time/s/30/300/g;/max_input_time/s/60/300/g; ' /etc/php.ini

@6 Configuring the agent side

Same as ibid. unzip the source package into the directory installation.

[[email protected] zabbix-2.0.6]#./configure--prefix=/usr/local/zabbix--enable-agent&&make Install

Add a soft connection.

[Email protected] zabbix-2.0.6]# ln-s/usr/local/zabbix/sbin/zabbix_*/usr/local/sbin/

Go to the/USR/LOCAL/ZABBIX/ETC directory and modify the zabbix_agentd.conf file. As follows:

Logfile=/tmp/zabbix_agentd.log

server=192.168.175.133

serveractive=192.168.175.133

Copy the startup script.

[email protected] zabbix-2.0.6]# CP Misc/init.d/tru64/zabbix_agentd/etc/init.d/zabbix_agentd; chmod O+x/etc/init.d/zabbix_agentd

@7 Start all services.

Server side:

[Email protected] ~]#/etc/init.d/zabbix_server restart[[email protected] ~]#/etc/init.d/httpd Restart[[email Protected] ~]#/etc/init.d/mysqld restart

Agent side:

[Email protected] ~]#/etc/init.d/zabbix_agentd restart

#3 Start the installation

Enter http://192.168.175.133 in the browser address bar to start the installation.

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/57/53/wKioL1SX90vwF8hXAAHNEZu_WSQ247.jpg "title=" Install.png "alt=" Wkiol1sx90vwf8hxaahnezu_wsq247.jpg "/>

Then fill in the relevant account.

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/57/56/wKiom1SX9uHQIfM0AAGpWb_wAGk376.jpg "title=" 2.png " alt= "Wkiom1sx9uhqifm0aagpwb_wagk376.jpg"/>

This step is because the MySQL account configuration on the server side is not modified. Very simple. Click on the button labeled down below to upload its download to the server-side/var/www/html/conf/.

The installation can be completed with the above steps. Default login account Admin/zabbix.

Let's take a picture.

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/57/56/wKiom1SX96KTkYB5AAVtjUQcU8Q339.jpg "title=" 3.png " alt= "Wkiom1sx96ktkyb5aavtjuqcu8q339.jpg"/>

This article is from the "Long Way to repair" blog, please make sure to keep this source http://systeminfo.blog.51cto.com/9746620/1592764

Detailed Zabbix monitoring system installation and deployment

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.