Zabbix installation Configuration

Source: Internet
Author: User

Install CentOS Linux. This is the CentOS 6.4 x86_64 version.

Installing the system using the base server configuration

Show details when you turn on system startup

Vim/boot/grub/grub.conf "RHGB" and "quiet" are removed

Enable NIC

Vi/etc/sysconfig/network-scripts/ifcfg-eth0
Onboot=yes

Shutting down the system firewall

#iptables-f#service iptables Stop
#chkconfig iptables off
Disable SELinux
Vi/etc/sysconfig/selinuxselinux=disabled

Add user

Groupadd Zabbixuseradd zabbix-g Zabbix

Installing the HTTPD Service

#yum Install httpd
#chkconfig--add httpd
#chkconfig httpd on
#service httpd Start

Installing PHP Support

#yum Install php*

Configure PHP.ini

#vi/etc/php.inishort_open_tag = onpost_max_size = 32mmax_execution_time = 300max_input_time = 300date.timezone = Asia/Ch Ongqing

Installing the MySQL Service

#yum install MySQL mysql-server mysql-devel
#chkconfig--add mysqld
#chkconfig mysqld on
#service mysqld Start
#mysqladmin-uroot password 'password'

Configuring the MySQL Character set

#vi/etc/my.cnf Add configuration [mysqld]character_set_server=utf8init_connect= ' Set NAMES UTF8 '

Create a database

#mysql-uroot-ppassword>create Database Zabbix character set utf8;>grant all on zabbix.* to [email protected] Ident ified by ' password '; >flush privileges;

Download Zabbix

#mkdir/zabbix
#cd/zabbix#wget http://jaist.dl.sourceforge.net/project/zabbix/ZABBIX%20Latest%20Stable/2.2.2/zabbix-2.2.2.tar.gz
#tar ZXVF zabbix-2.2.2.tar.gz

Import Zabbix Script sql

#mysql-uroot-pPassword Zabbix </zabbix/zabbix-2.2.2/database/mysql/schema.sql
#mysql-uroot-pPassword Zabbix </zabbix/zabbix-2.2.2/database/mysql/images.sql
#mysql-uroot-pPassword Zabbix </zabbix/zabbix-2.2.2/database/mysql/data.sql

Installing Zabbix Environment Support

#yum-y Install Curl curl-devel net-snmp net-snmp-devel perl-dbi#yum-y install gcc make

Installing Zabbix

#./configure  --enable-server--enable-agent--enable-proxy--with-mysql--with-net-snmp--with-libcurl
#make Install
#cp/usr/local/etc/*/etc/zabbix/
#cp-R frontends/php/*/var/www/html/

Configure Zabbix

Vi/usr/local/etc/zabbix_server.confvi/usr/local/etc/zabbix_agentd.conf

Visit http://localhost/to start the installation interface.

Add Zabbix Service

#chkconfig--add zabbix_server#chkconfig zabbix_server on#chkconfig--add zabbix_agentd#chkconfig zabbix_agentd on

Add a Windows Host

Edit c:\zabbix_agentd.confserver=Zabbix_serveriplistenport=10050serveractive=127.0.0.1:20051hostname= Localhostname

Add Zabbix_agentd service, run cmd, enter the directory where Zabbix_agentd.exe is located

Zabbix installation Configuration

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.