Zabbix server-side installation configuration note

Source: Internet
Author: User
Tags import database

Because there are no idle servers, find a more idle Windows 2008 on all running servers, install VMware, and load a virtual machine.

Environment: CentOS6.7 x64 Minimal

Service-Side ip:172.16.10.30

Zabbix Version: 2.0

1. Install the Epel extension source before installing the dependent package //The system comes with a source that cannot be installed to Zabbix

#yum install-y Epel-release

2, install lamp environment //zabbix need to run in lamp environment

#yum install-y httpd mysql mysql-libs php php-mysql mysql-server php-bcmath php-gd php-mbstring

3, install Zabbix service side

#yum Install zabbix20 zabbix20-agent zabbix20-server zabbix20-server-mysql zabbix20-web zabbix20-web-mysql Net-snmp-devel

4. Mysql-uroot-e "Grant all on * * to ' zabbix ' @ ' localhost ' identified by ' Zabbix '"

//Create Zabbix user and password

5, Start related services:

/etc/init.d/zabbix-server start (typically this service is not started up and needs to be configured, such as 5.1)

/etc/init.d/zabbix-agent start

/ETC/INIT.D/HTTPD start

/etc/init.d/mysqld start

5.1 #vim/etc/zabbix/zabbix_server.conf Edit its profile

Mainly to modify the Dbpassword=zabbix

View socket file is not in /var/lib/mysql/mysql.sock (if not present, workaround in Blog search)

6. Create a Zabbix database
#mysql-uroot-p-E "CREATE DATABASE Zabbix"//Create Databases

Because the MySQL installation does not set the password, so when prompted to enter the password, the carriage return can

Import Database

#mysql-uroot-p--default-character-set=utf8 Zabbix </usr/share/zabbix-mysql/schema.sql

#mysql-uroot-p--default-character-set=utf8 Zabbix </usr/share/zabbix-mysql/images.sql

#mysql-uroot-p--default-character-set=utf8 Zabbix </usr/share/zabbix-mysql/data.sql

7. Modify the php.ini time zone

Vim/etc/php.ini setting date.timezone= "Asia/shanghai" //need to restart HTTPD service

At this point, the installation has completed 90% and the remainder is operating on the browser

8, browser access Zabbix address Http://172.16.10.30/zabbix

If you encounter a page that cannot be loaded, 403, and so on, please turn off SELinux and iptables

Concrete method: Vi/etc/selinux/config Modify parameter: selinux=disabled //need reboot

Iptables-f Empty firewall rules

The default user password is Admin:zabbix

9, click Next, modify the configuration file according to the error, until all pass detection, click Next

10. Input database information, user password, etc., click Test, click Next until Finish

So far, the server has finished installing.

Client installation and add monitoring, see the next blog

Zabbix server-side installation configuration note

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.