Centos 6.5 + Zabbix 3.0

Source: Internet
Author: User


CentOS 6.5 + LAMP installation Zabbix 3.0


Close: Iptables&selinux Service


#iptables-F

#iptables-nv-l


To view the SELinux status:

/usr/sbin/sestatus-v # #如果SELinux The status parameter is enabled is turned on

SELinux status:enabled


#getenforce # #也可以用这个命令检查

#setenforce 0 # #设置SELinux become permissive mode


To modify the SELinux configuration, the restart takes effect:

#vim/etc/selinux/config

Change Selinux=enforcing to Selinux=disabled



################################ #LAMP ##################################################

Linux version:

CentOS 6.5 x86_64


Apache version:

Server version:apache/2.2.15 (Unix)

Server Built:may 11 2016 19:28:33


MySQL version:

MySQL Ver 14.14 distrib 5.1.73, for Redhat-linux-gnu (x86_64) using ReadLine 5.1


PHP Version: (zabbix_3.0 requires PHP version at least 5.4)


PHP 5.4.45 (CLI) (built:oct 16 2015 11:24:58)

Copyright (c) 1997-2014 the PHP Group

Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies


1. Install lamp


Installing PHP5.4

RPM-UVH http://repo.webtatic.com/yum/el6/latest.rpm


# yum Install httpd httpd-devel

# yum Install MySQL Mysql-server

# yum Install php54w php54w-cli php54w-common php54w-devel php54w-pear php54w-gd php54w-mbstring php54w-mysql php54w-xml p Hp54w-bcmath


Test Web&mysql Service:

# service httpd Start

# service Mysqld Start


############################ #Zabbix 3.0 Mounting #######################################################



Centos/rhel 6:


wget http://repo.zabbix.com/zabbix/3.0/rhel/6/x86_64/zabbix-release-3.0-1.el6.noarch.rpm


Or as follows:

# RPM-UVH http://repo.zabbix.com/zabbix/3.0/rhel/6/x86_64/zabbix-release-3.0-1.el6.noarch.rpm


# yum Install zabbix-server-mysql zabbix-web-mysql zabbix-agent Zabbix-java-gateway


Log in to the database, create accounts and set permissions:


mysql> use MySQL;

Mysql>create database Zabbix character set UTF8;

Mysql> GRANT All privileges the zabbix.* to [e-mail protected]ocalhost identified by ' password ';

mysql> FLUSH privileges;

Mysql> quit


To import the Zabbix database template:

# cd/usr/share/doc/zabbix-server-mysql-3.0.0

# Zcat Create.sql.gz | Mysql-uroot Zabbix


Modify the database corresponding parameters of the Zabbix configuration file:

# vi/etc/zabbix/zabbix_server.conf

Dbhost=localhost

Dbname=zabbix

Dbuser=zabbix

dbpassword= Password


To start the Zabbix service process:


#server zabbix-server Start

#ss-TNL

[Email protected] ~]# SS-TNL | grep:10051

LISTEN 0::: 10051:::*

LISTEN 0 *:10051 *:*


To modify the php.ini parameter:


#vim/etc/php.ini


Max_execution_time 300 (default = 30)

Memory_limit 128M

Post_max_size 16M

Upload_max_filesize 2M

Max_input_time (default = 60)

Always_populate_raw_post_data-1

Date.timezone = RPC (default is empty)


Restart the HTTPD service and access the Zabbix-web service:

#service httpd Restart

Http://zabbix-web-hostIP/zabbix




########################################### #可选配置 #############################################################


Adding Zabbix Users and Groups


#groupadd Zabbix

#useradd-G zabbix-m Zabbix


This article is from "Write Blue" blog, please make sure to keep this source http://shadowhk.blog.51cto.com/2903709/1812246

Centos 6.5 + Zabbix 3.0

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.