Experience in Zabbix configuration and installation

Source: Internet
Author: User

Zabbix is a CS-structured monitoring system that has not been properly installed before: 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
Please configure it yourself
Next let's start the operation.
The operating system of the Operation example is Centos 5.2.
Wget http://prdownloads.sourceforge.net/zabbix/zabbix-1.6.4.tar.gz? Download the latest version from)
Tar zxvf zabbix-1.6.2.tar.gz
Mysql-uroot-p
Mysql> create databases zabbix;
Mysql> grant all privileges on zabbix. * TO zabbix @ localhost identified by 'zabbix' with grant option;
Mysql> use zabbix;
Mysql> source/usr/local/src/zabbix-1.6.2/create/schema/mysql. SQL
Mysql> source/usr/local/src/zabbix-1.6.2/create/data. SQL
Mysql> source/usr/local/src/zabbix-1.6.2/create/data/images_mysql. SQL
Cd zabbix-1.6.2
./Configure-prefix =/usr/local/zabbix // specify the installation directory
-Enable-server \ // install the server, which is not required by the monitored Node
-Enable-agent \ // install the agent
-With-mysql \ // a directory must be specified for mysql support
-With-net-snmp // you need to specify a directory for snmp support.
Common compilation options are as follows. For more information, see help.
-Enable-static Build statically linked binaries
-Enable-server Turn on build of server
-Enable-proxy Turn on build of proxy server
-Enable-agent Turn on build of agent
-Enable-ipv6 Turn on support of IPv6
-With-mysql
-With-oracle
-With-pgsql
With-sqlite3
-With-jabber
-With-net-snmp
-With-ucd-snmp
The Zabbix configuration client only needs to be executed:
./Configure-prefix =/usr/local/zabbix-enable-agent
Make & make install

If no error is reported during Zabbix configuration and installation, click OK. Then add the corresponding Port:

Vi/etc/services
Join
Zabbix_agent 10050/tcp # zabbix agent
Zabbix_agent 10050/udp # zabbix agent
Zabbix_trapper 10051/tcp # zabbix trapper
Zabbix_trapper 10051/udp # zabbix trapper
Copy the configuration file and Service Startup Script
Cp-rf misc/conf/opt/app/zabbix/etc-R
To
Misc/init. d/
Select a STARTUP script that suits your environment, or write
Add a zabbix user
Useradd zabbix
Run the script to start zabbix_server and zabbix_agentd.
[Root @ zabbix ~] # Ll/usr/local/zabbix/sbin/
Total 2344
-Rwxr-xr-x 1 root 362581 Apr 16 zabbix_agent
-Rwxr-xr-x 1 root 425336 Apr 16 zabbix_agentd
-Rwxr-xr-x 1 root 136854 Apr 16 zabbix_get
-Rwxr-xr-x 1 root 163086 Apr 16 zabbix_sender
-Rwxr-xr-x 1 root 1284665 Apr 16 zabbix_server

Zabbix configuration is returned to the zabbix compilation directory:
Generate the configuration file:
Mkdir/etc/zabbix
Cp misc/conf/*/etc/zabbix/
Vi frontends/php/include/db. inc. php
Change database content:
$ DB_TYPE = "MYSQL ";
$ DB_SERVER = "localhost ";
$ DB_DATABASE = "zabbix ";
$ DB_USER = "zabbix ";
$ DB_PWD = "zabbix ";
Cp-rf frontends/php/var/www/html/zabbix-R

Configure Zabbix to access the web: http: // localhost/zabbix for installation.
Php environment requirements
PHP version: 5.2.8 OK
PHP Memory limit: 128 M OK
PHP post max size: 8 M OK
PHP max execution time: 300 sec OK
PHP Databases support: MySQL OK
Php bc math support yes OK
GD Version: bundled (2.0.34 compatible) OK
Image formats: PNG OK
PHP Timezone: Asia/Shanghai

NOTE: If gd-devel is not installed, it will not be able to be installed on the web end. The corresponding installation also needs to be performed, such as net-snmp, which can be installed through yum for convenience.

[Root @ zabbix ~] # Rpm-qa | grep gd
Gd-devel-2.0.33-9.4.el5_1.1
Gd-2.0.33-9.4.el5_1.1

Install php-bcmath
Yum-y install php-bcmath
Modify Time Zone
Vi/etc/php. ini
Date. timezone = Asia/Shanghai

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.