Quick Install configuration Zabbix

Source: Internet
Author: User
Tags php mysql

OneInstall deployment Zabbix Server
Zabbix server can run on Linux systems such as CentOS, RedHat Linux, Debain, and centos-6.6-x86_x64 as the deployment environment.

1.1server-side installation lamp environment
Yum-y install gcc gcc-c++ autoconf httpd php mysql mysql-server php-mysql
Httpd-manual mod_ssl mod_perl mod_auth_mysql php-gd php-xml php-mbstring php-ldap php-pear php-xmlrpc php-bcmath Mysql-co Nnector-odbc mysql-devel libdbi-dbd-mysql net-snmp-devel curl-devel iotop iftop

1.2service-side configuration lamp usage Environment
If you do not want to modify it manually, you can use the following SED command:
Sed-i "s/;d ate.timezone =/date.timezone = asia\/shanghai/g"/etc/php.ini
Sed-i "S#max_execution_time = 30#max_execution_time = 300#g"/etc/php.ini
Sed-i "s#post_max_size = 8m#post_max_size = 32m#g"/etc/php.ini
Sed-i "S#max_input_time = 60#max_input_time = 300#g"/etc/php.ini
Sed-i "S#memory_limit = 128m#memory_limit = 128m#g"/etc/php.ini
Sed-i "/;mbstring.func_overload = 0/ambstring.func_overload = 2\n"/etc/php.ini
Sed-i "[email protected] #ServerName Www.example.com:[email protected] localhost:[email protected]"/etc/httpd/conf/ httpd.conf

Open httpd, mysqld service
Chkconfig mysqld on
Chkconfig httpd on
Service mysqld Start
Service httpd Start

1.3server-side installation process
1.3.1,RPM-IVH http://repo.zabbix.com/zabbix/2.2/rhel/6/x86_64/zabbix-release-2.2-1.el6.noarch.rpm#安装zabbix官方2.2 of the Yum Source, recommended with 2.2,2.4 of the current use of less people, pit too much, out of the problem is not resolved, 2.2 of the online data a large heap, pit less, and the official version of 2.2 support time is more than 2.4 long, 2.4 is an over-product!!!!


Yum Install Zabbix-server-mysql zabbix-web-mysql-y

1.3.2,Creating Initial Database
# Mysql-uroot
Mysql> CREATE database Zabbix character set UTF8 collate utf8_bin;
Mysql> Grant all privileges the zabbix.* to [e-mail protected] identified by ' Zabbix ';
Mysql> exit

# cd/usr/share/doc/zabbix-server-mysql-2.2.11/create
# Mysql-uroot Zabbix < Schema.sql
# Mysql-uroot Zabbix < Images.sql
# Mysql-uroot Zabbix < Data.sql

1.3.3,starting Zabbix Server process
# vi/etc/zabbix/zabbix_server.conf
Dbhost=localhost
Dbname=zabbix
Dbuser=zabbix
Dbpassword=zabbix

Sed-i ' s/# dbhost=localhost/dbhost=localhost/g '/etc/zabbix/zabbix_server.conf #快速修改
Sed-i ' s/# dbpassword=/dbpassword=zabbix/g '/etc/zabbix/zabbix_server.conf

Egrep "dbhost| dbname| dbuser| Dbpassword "/etc/zabbix/zabbix_server.conf
# # Option:dbhost
Dbhost=localhost
# # Option:dbname
# for SQLite3 path to database file must is provided. DBUser and Dbpassword are ignored.
# dbname=
Dbname=zabbix
# # Option:dbuser
# dbuser=
Dbuser=zabbix
# # Option:dbpassword
Dbpassword=zabbix

# service Zabbix-server Start
# Rpm-qa zabbix*
Zabbix-release-2.2-1.el6.noarch
Zabbix-server-2.2.11-1.el6.x86_64
Zabbix-web-2.2.11-1.el6.noarch
Zabbix-2.2.11-1.el6.x86_64
Zabbix-server-mysql-2.2.11-1.el6.x86_64
Zabbix-web-mysql-2.2.11-1.el6.noarch
Zabbix-agent-2.2.11-1.el6.x86_64

RPM-QL Zabbix-web #查看yum安装的zabbix的web安装文件位置
Cd/usr/share/zabbix
# ls
acknow.php index.php
actionconf.php items.php
Adm.gui.php JS
adm.housekeeper.php jsloader.php
adm.iconmapping.php jsrpc.php
adm.images.php latest.php
adm.macros.php locale
adm.other.php maintenance.php
adm.regexps.php map.php
adm.triggerdisplayoptions.php maps.php
adm.triggerseverities.php media_types.php
adm.valuemapping.php nodes.php
adm.workingtime.php overview.php
API popup_bitem.php
api_jsonrpc.php popup_httpstep.php
applications.php popup_media.php
Audio popup_period.php
auditacts.php popup.php
auditlogs.php popup_right.php
authentication.php popup_trexpr.php
browserwarning.php popup_usrgrp.php
chart2.php profile.php
chart3.php proxies.php
chart4.php queue.php
chart5.php report1.php
chart6.php report2.php
chart7.php report3.php
chart_bar.php report4.php
chart.php report5.php
charts.php report6.php
Conf robots.txt
conf.import.php screenconf.php
dashboard.php screenedit.php
dashconf.php screens.php
discoveryconf.php scripts_exec.php
discovery.php scripts.php
disc_prototypes.php search.php
events.php services.php
Fonts setup.php
graphs.php slideconf.php
history.php slides.php
host_discovery.php srv_status.php
hostgroups.php Styles
hostinventoriesoverview.php sysmap.php
hostinventories.php sysmaps.php
host_prototypes.php templates.php
host_screen.php tr_comments.php
hosts.php tr_events.php
httpconf.php trigger_prototypes.php
httpdetails.php triggers.php
httpmon.php tr_logform.php
image.php tr_status.php
Images tr_testexpr.php
imgstore.php usergrps.php
Include users.php


MV */var/www/html
/ETC/INIT.D/HTTPD restart#注意, you must restart Apache here, otherwise, hehe, you know
stopping httpd: [OK]
Starting httpd: [OK]
After restarting the httpd, you can enter the Web interface to install the Zabbix Web application.
Install Zabbix Web program process, if there is unexpected situation, please return to the previous steps to re-examine the operation again, the author according to the above method is not any problem.
Login account Admin Password Zabbix haha success!!!!!!!!

TwoClient Installation and configuration
2.1Installing the client
Yum Install Zabbix-agent-y
2.2Configuring the Client
# vi/etc/zabbix/zabbix_agentd.conf
server=127.0.0.1
serveractive=127.0.0.1
Hostname=zabbix-server

Where both server and serveractive specify the IP address of the Zabbixserver, the difference is that the former is passive and the latter is active. This means that the Server configuration is used to allow 127.0.0.1 this IP to come to me to fetch the data. And Serveractive's 127.0.0.1 means that the client is actively submitting data to him. Do you understand? Why be active and passive? Follow up to discuss this issue again! Other host installation clients remember to add Zabbix users.

This article is from the "Lanzhou Linux operation and Maintenance" blog, please be sure to keep this source http://linuxzkq.blog.51cto.com/9379412/1736958

Quick Install configuration Zabbix

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.