Introduction to zabbix2.2 installation and configuration in centos

Source: Internet
Author: User
Tags character set snmp centos create database import database

1. Install lnmp first. I will not talk about it here.
2. Install necessary components

Yum-y install mysql-devel libcurl-devel net-snmp-devel

3. Add a user

Groupadd zabbix
Useradd zabbix-g zabbix

4. Create a database

Create database zabbix character set utf8;
Grant all privileges on zabbix. * to zabbix @ localhost identified by 'zabbix ';

5. Install and compile zabbix

Wget http://jaist.dl.sourceforge.net/project/zabbix/ZABBIX%20Latest%20Stable/2.2.7/zabbix-2.2.7.tar.gz
Tar zxvf zabbix-2.2.7.tar.gz
Cd zabbix-2.2.7
./Configure -- prefix =/usr/local/zabbix -- enable-server -- enable-agent \
-- With-mysql -- with-net-snmp -- with-libcurl
Make install

6. Import database

Mysql-uzabbix-pzabbix-hlocalhost zabbix <database/mysql/schema. SQL
Mysql-uzabbix-pzabbix-hlocalhost zabbix <database/mysql/images. SQL
Mysql-uzabbix-pzabbix-hlocalhost zabbix <database/mysql/data. SQL

7. Modify the configuration file
 
Cp misc/init. d/fedora/core/zabbix_server/etc/init. d/
Cp misc/init. d/fedora/core/zabbix_agentd/etc/init. d/
Cp-R frontends/php/home/wwwroot/default/zabbix # This directory is adjusted according to your website directory
Sed-I's/^ DBUser =. * $/DBUser = zabbix/g'/usr/local/zabbix/etc/zabbix_server.conf # Database username
Sed-I's/^. * DBPassword =. * $/DBPassword = zabbix/g'/usr/local/zabbix/etc/zabbix_server.conf # database password
Sed-I's/# DBSocket = \/tmp \/mysql. sock/DBSocket =\/ tmp \/mysql. sock/g'/usr/local/zabbix/etc/zabbix_server.conf
Sed-I's/BASEDIR =\/ usr \/local \/zabbix/g'/etc/init. d/zabbix_server
Sed-I's/BASEDIR =\/ usr \/local \/zabbix/g'/etc/init. d/zabbix_agentd

8. Start the service

/Etc/init. d/zabbix_server start
/Etc/init. d/zabbix_agentd start
Echo "/etc/init. d/zabbix_server start">/etc/rc. local
Echo "/etc/init. d/zabbix_agentd start">/etc/rc. local

9. Install the web client and access http: // ip/zabbix

 


 


 


 


 


 


 


 

 

The default username and password are admin: zabbix.

 

10. Language adjustment and localization

 

Open/include/locales. inc. php

 

Modify 'zh _ cn' => array ('name' => _ ('Chinese (zh_CN) '), 'display' => false) to true.

 

Click Profile in the upper-right corner of zabbix, and select Chinese (zh_CN) in Language)


Upload C:/Windows/Fonts/simkai. ttf (the download link is shown below) to the fonts directory of zabbix.

 

Modify the configuration file:

 

# Cd/home/wwwroot/default/zabbix/# My zabbix installation directory # sed-I's/DejaVuSans/simkai/g'./include/defines. inc. php
Related Article

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.