zabbix2.2 Deployment Installation (Installation environment CentOS 6.* X64)

Source: Internet
Author: User
Tags php error php mysql snmp

Zabbix monitoring deployment One, Zabbix build 1, install Zabbix on the basis of existing lamp or LNMP, install some dependencies: Install Epel Source: Rpm-ivh HTTP://DL.FEDORAPROJECT.ORG/PUB/EPEL/6 /x86_64/epel-release-6-8.noarch.rpm
Yum Install GCC gcc-c++ autoconf httpd php mysql mysql-server php-mysql httpd-manual mod_ssl mod_perl mod_auth_mysql php-gd php-x ML php-mbstring php-ldap php-pear php-xmlrpc php-bcmath mysql-connector-odbc mysql-devel libdbi-dbd-mysql Net-snmp-devel curl-devel unixodbc-devel openpmi-devel java-devel libxml2-devel

2. Add User: Groupadd Zabbix
Useradd zabbix-g zabbix-s/sbin/nologin-m 3, CREATE DATABASE, add authorized Account
Create Database character Set UTF8; Grant  All Privileges  on Zabbix. *  to Zabbix@localhostby'zabbix';
4. Compile and install Zabbix:wget http://jaist.dl.sourceforge.net/project/zabbix/ZABBIX%20Latest%20Stable/2.2.0/zabbix-2.2.0.tar.gz
tar XF zabbix-2.2. 0. Tar . GZCD Zabbix-2.2. 0 . /configure--prefix=/usr/local/zabbix--enable-server--enable---with-mysql--with-net-snmp--with-  Libcurlmakeinstall
5, Import the database (the source package contains the database of the initial table, I do not give MySQL password, if there is a password, import by password)
MySQL Zabbix < database/mysql/< database/mysql/< Database/mysql/data.sql
6. Modify the configuration file
CPmisc/init.d/fedora/core/zabbix_server/etc/init.d/CPmisc/init.d/fedora/core/zabbix_agentd/etc/init.d/CP-R frontends/php/var/www/html/Zabbixsed-I.'s/^dbuser=.*$/dbuser=zabbix/g'/usr/local/zabbix/etc/zabbix_server.confsed-I.'s/^.*dbpassword=.*$/dbpassword=zabbix/g'/usr/local/zabbix/etc/zabbix_server.confsed-I.'s/basedir=\/usr\/local/basedir=\/usr\/local\/zabbix/g'/etc/init.d/Zabbix_serversed-I.'s/basedir=\/usr\/local/basedir=\/usr\/local\/zabbix/g'/etc/init.d/zabbix_agentd

7. Add the service port:
cat >>/etc/services <<Eofzabbix10050/tcp Zabbix Agentzabbix  10050/UDP Zabbix Agentzabbix10051/tcp ZabbixTrapperzabbix10051/UDP Zabbix trappereof
8. Start the service
/etc/init.d/zabbix_server start/etc/init.d/zabbix_agentd start/etc/init.d/httpd start Echo " /etc/init.d/zabbix_server Start " >>/etc/rc.localecho"/etc/init.d/zabbix_agentd start" >>/etc/rc.local

9, Web page configuration, configure HTTP access after the Web login: Http://ip/zabbix. The main will be reported some PHP error information, the corresponding modification is good, Date.timezone = Asia/shanghai Finally there may be said/var/www/html/zabbix/conf/ zabbix.conf.php file problem, this need to put a template file zabbix.conf.php.example copy to zabbix.conf.php, and then edit the PHP file, mainly the database connection information, check the correct. Initial login account and password: admin Zabbix This installation environment is 6.5 system, in fact all the same.

zabbix2.2 Deployment Installation (Installation environment CentOS 6.* X64)

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.