Centos6.3 x64 install zabbix2.4.1

Source: Internet
Author: User
Tags snmp import database

This document has been collected and changed online. Add some content. The author is no stranger. Haha.

First, check that zabbix requires many PHP plug-ins.

Install zabbix based on the existing lamp or lnmp and install some dependent packages:

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

Add User:

groupadd zabbix useradd zabbix -g zabbix

Create a database and add an authorized account

create database zabbix character  set  utf8; grant all privileges on zabbix.* to [email protected] identified by  ‘zabbix‘ ;

4. Compile and install zabbix

Wget http://www.sourceforge.net/projects/zabbix/files/ZABBIX%20Latest%20Stable/2.4.1/zabbix-2.4.1.tar.gz/download

Http://www.sourceforge.net/projects/zabbix/files/ZABBIX%20Latest%20Stable/2.2.6/zabbix-2.2.6.tar.gz/download

tar zxf zabbix- 2.4 . 1 .tar.gz cd zabbix- 2.4 . 1 ./configure --prefix=/usr/local/zabbix --enable-server --enable-agent \ -- with -mysql -- with -net-snmp -- with -libcurl

make install

5. 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

6. 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 / var /www/html/zabbix sed -i  ‘s/^DBUser=.*$/DBUser=zabbix/g‘  /usr/local/zabbix/etc/zabbix_server.conf sed -i  ‘s/^.*DBPassword=.*$/DBPassword=zabbix/g‘  /usr/local/zabbix/etc/zabbix_server.conf sed -i  ‘s/BASEDIR=\/usr\/local/BASEDIR=\/usr\/local\/zabbix/g‘  /etc/init.d/zabbix_server sed -i  ‘s/BASEDIR=\/usr\/local/BASEDIR=\/usr\/local\/zabbix/g‘  /etc/init.d/zabbix_agentd

7. Add a service Port:

cat >>/etc/services <<EOF zabbix-agent  10050 /tcp Zabbix Agent zabbix-agent  10050 /udp Zabbix Agent zabbix-trapper  10051 /tcp Zabbix Trapper zabbix-trapper  10051 /udp Zabbix Trapper EOF

8. You need to switch to a non-root user to 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. Web page configuration. After HTTP access is configured, Web login: http: // ip/zabbix

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M02/4C/86/wKioL1Q_NPfSOJeuAALdsTK7Agc393.jpg "style =" float: none; "Title =" 1.jpg" alt = "wkiol1q_npfsojeuaaldstk7agc393.jpg"/>

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M02/4C/85/wKiom1Q_NMHgo2yTAANifjogMwI351.jpg "style =" float: none; "Title =" 2.jpg" alt = "wkiom1q_nmhgo2ytaanifjogmwi351.jpg"/>

Confirm that each required is OK before the next button is displayed. If there is a fail, complete the system requirements.

I have a time zone problem.Date. timezone = PRC

Bcmath mbstring xmlwriter xmlreader

Yum install-y * bcmath ** mbstring * PHP-XML *

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M00/4C/87/wKioL1Q_NnnTTNynAALd9Gv763Q978.jpg "style =" float: none; "Title =" 3.jpg" alt = "wkiol1q_nnnttnynaald9gv763q978.jpg"/>

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M00/4C/86/wKiom1Q_NkOiXteQAAMKgqYTP1U079.jpg "style =" float: none; "Title =" 4.jpg" alt = "wkiom1q_nkoixteqaamkgqytp1u079.jpg"/>

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M01/4C/87/wKioL1Q_NnqiAr6gAAJvnGJfeBM273.jpg "style =" float: none; "Title =" 5.jpg" alt = "wkiol1q_nnqiar6gaajvngjfebm273.jpg"/>

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M01/4C/86/wKiom1Q_NkSCAEyVAALXOj0Y9Ro042.jpg "style =" float: none; "Title =" 6.jpg" alt = "wkiom1q_nkscaeyvaalxoj0y9ro042.jpg"/>

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M02/4C/87/wKioL1Q_NnuTl1CeAAJgixM-hmE038.jpg "style =" float: none; "Title =" 8.jpg" alt = "wKioL1Q_NnuTl1CeAAJgixM-hmE038.jpg"/>

This step may cause an error in normal creation. You can directly change the name of the directory or download it, And then input the directory.

2.4 Add Chinese support. File to be modified

Zabbix/include/locales. Inc. php

'Zh _ cn' => array ('name' => _ ('Chinese (zh_cn) '), 'display' => true ),

Restart service

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M02/4C/86/wKiom1Q_N36CYMf9AAH1KUbLLeg276.jpg "style =" float: none; "Title =" 10.jpg" alt = "wkiom1q_n36cymf9aah1kublleg276.jpg"/>

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M02/4C/86/wKiom1Q_N37RGZedAAS3cR-qDto047.jpg "style =" float: none; "Title =" 11.jpg" alt = "wKiom1Q_N37RGZedAAS3cR-qDto047.jpg"/>

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M00/4C/87/wKioL1Q_N7Xjiz5BAAMTXrEcD64772.jpg "style =" float: none; "Title =" 12.jpg" alt = "wkiol1q_n7xjiz5baamtxrecd64772.jpg"/>

10. Change the Chinese font. After logging in, click "prefile" on the top right of the page"


Select "Chinese (zh_cn)" in the language option, and then save


11. If garbled characters appear, you can find your favorite font in the window system and upload it.

Copy a favorite font file in the c: \ windows \ fonts directory in windows, such as msyh. TTF.

Upload the copied font to the fonts directory in the zabbix root directory.

Back up the original font file "dejavussans. TTF"

Rename the uploaded font file, such as msyh. TTF, to dejavussans. TTF.

Log on to zabbix again.


This completes the installation ..

See http://bguncle.blog.51cto.com/3184079/1330247/



This article from the "low EQ Technology House" blog, please be sure to keep this source http://zhangyc.blog.51cto.com/955813/1564690

Centos6.3 x64 install zabbix2.4.1

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.