Install zabbix-2.2.5 on centos 6.5 x86_64

Source: Internet
Author: User
Tags snmp

Install zabbix_server:


# Yum install mysql-Server httpd PHP

# Yum install mysql-devel GCC net-snmp-devel curl-devel Perl-dbi php-Gd PHP-mysql PHP-bcmath PHP-mbstring PHP-XML


Downloads zabbix-2.2.5.tar.gz

# Tar-zxvf zabbix-2.2.5.tar.gz


# Groupadd zabbix

# Useradd-G zabbix-S/sbin/nologin zabbix


#/Etc/init. d/mysqld start # Initialization is executed by default at the first startup.

# Mysqladmin-u Root Password 'mysqlpw '# Set the Database Password


# Create database zabbix Character Set utf8;


# Zabbix-2.2.5/database/MySQL

# MySQL zabbix <schema. SQL

# MySQL zabbix <images. SQL

# MySQL zabbix <data. SQL


#./Configure -- With-mysql -- With-net-snmp -- With-libcurl -- enable-server -- enable-agent -- enable-proxy -- prefix =/usr/local/zabbix


# Make install


# Vi/etc/services


Zabbix-Agent 10050/tcp # zabbix agent

Zabbix-Agent 10050/udp # zabbix agent

Zabbix-Trapper 10051/tcp # zabbix trapper

Zabbix-Trapper 10051/udp # zabbix trapper



# Vi/usr/local/zabbix/etc/zabbix_server.conf


#/Etc/init. d/zabbix_server start


# SELinux = disabled

Or # service iptables stop


# Ln-S/etc/init. d/zabbix_server/usr/bin/zabbix_server





Install zabbix_agent


# Groupadd zabbix

# Useradd-G zabbix-S/sbin/nologin zabbix


# Tar-XF zabbix-2.2.5.tar.gz-C/usr/local/src/


# Cd/usr/local/src/zabbix-2.2.5


#./Configure -- prefix =/usr/local/zabbix -- enable-agent


# Make install


# Ln-S/etc/init. d/zabbix-agent/usr/bin/zabbix-agent



VI/usr/local/zabbix/etc/zabbix_agentd.conf


Server = 192.168.1.21


Serveractive = 192.168.1.21


Hostname = zabbix-client01



# Zabbix-Agent start

Or #/etc/init. d/zabbix_agentd start



(Cannot connect to server: 10051: [113] No route to host)

-- Ping OK,

SELinux disabled.

# Service iptables stop

# Setenforce 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.