This article mainly introduces the use of Yum to achieve rapid installation Zabbix. Since Zabbix has some version requirements for the software, it is recommended to use more than CENTOS6 system, yum software version is enough to avoid the installation of their own alone.
mysql-5.0.3 above
Apache 1.3.12 above
PHP 5.3.0 or more
GD more than 2.0
LibXML 2.6.15 or more.
Basic knowledge Popularization:
Alexei Vladishev created the Zabbix project, which is currently in active development, and Zabbix Sia provides support.
Zabbix is an enterprise-class, open source, distributed monitoring Suite
Zabbix can monitor the status of network and service monitoring. Zabbix uses a flexible alarm mechanism to allow users to send email based alarms to events. This will ensure a quick response to the problem. Zabbix can use stored data to provide excellent reporting and graphical methods. This feature will help users complete capacity planning.
Zabbix supports two ways of polling and trapping. All Zabbix reports can be accessed on the Web front-end through configuration parameters. The Web front-end will help you quickly get your network and service status in any area. Zabbix can play the role of monitoring your IT infrastructure as much as possible, whether you're from a small organization or a large company.
The Zabbix is 0 cost. Because Zabbix writes and publishes a GPL based V2 protocol. means the source code is released free of charge.
Zabbix Process Introduction:
Zabbix_agentd
Client daemon, which collects client data such as CPU load, memory, hard disk usage, and so on
Zabbix_get
Zabbix Tools, separate commands, Commands that obtain remote client information are typically executed on the server or proxy side. Usually the user is in a wrong row. For example, we can not get the client's memory data on the server side, we could use Zabbix_get to get the content of the client to do troubleshooting. The
Zabbix_sender
Zabbix tool, which is used to send data to a server or proxy, is typically used for lengthy checks. Many checks are time-consuming, resulting in Zabbix timeouts. So we use sender to submit the data voluntarily after the script is executed. The
Zabbix_server
Zabbix The service-side daemon. Data from Zabbix_agentd, Zabbix_get, Zabbix_sender, Zabbix_proxy, and Zabbix_java_gateway are eventually submitted to the server
Note: Of course not the data are actively submitted to zabbix_server, but also some of the server to take the initiative to fetch data. The
Zabbix_proxy
Zabbix Agent daemon. function is similar to server, the only difference is that it is only a transit point, it needs to submit the collected data/be submitted to the server. A feature that is introduced after
Zabbix_java_gateway
zabbix2.0. As the name suggests: Java gateways, similar to AGENTD, but only for the Java aspect. The special attention is that it can only take the initiative to obtain data, but not passive access to data. Its data will eventually be given to the server or proxy.
installation of lamp environment
first need to install a source, can be Sohu, NetEase, Rpmforge can be. Specific methods do not understand their own Google.
Yum Install httpd*//Installation Note Check version is not high enough
Yum Install php*//Installation Note Check version is not high enough
Yum install mysql*//recommend MySQL or download the installation separately. After all, yum inside the version is too low, still in 5.1, I do. Now it's 5.6. Two large versions.
Yum install-y curl-devel gcc.x86_64 libgcc.x86_64 make net-snmp.x86_64 net-snmp-devel.x86_64 net-snmp-utils.x86_64 wget NTP vim//install some other tools and dependencies, I install the system will generally put the development library and all the installation, so if you compile the time to check what to make up for it.
Yum Install-y libxml2*
Basically the relevant package is installed, lamp environment is almost, temporarily do not change any configuration files.
Test if lamp can work.
[Root@localhost html]# pwd
/var/www/html
[Root@localhost html]# Cat index.php
Phpinfo ();
?>
#service httpd Restart
Then enter the server's IP address in the browser to see if you can print out PHP information, if printed out, then lamp OK.
This time you need to start MySQL as well.
Two, install Zabbix server and client
#cd
#mkdir soft
#wget http://downloads.sourceforge.net/project/ zabbix/zabbix%20latest%20stable/2.2.5/zabbix-2.2.5.tar.gz?r=http%3a%2f%2fwww.zabbix.com%2fdownload.php&ts= 1409107559&use_mirror=jaist
Download zabbix-2.2.5.tar.gz installation package
#tar-ZXVF zabbix-2.2.5.tar.gz
#cd zabbix-2.2.5
#./configure–prefix=/usr/local/zabbix-2.2.5/–enable-server–enable-agent–with-mysql–with-net-snmp– WITH-LIBCURL–WITH-LIBXML2
#make && make install
now Zabbix is installed to/usr/local/zabbix-2.2.5/
The following need to create the Zabbix user and initialize the database.
# Groupadd Zabbix
# useradd-g Zabbix zabbix-s/sbin/nologin
#初始化数据库
# mysql-uroot-p
#mysql > CREATE Database Zabbix;
Mysql> grant all privileges in zabbix.* to zabbix@ '% ' identified by ' zabbix123′;
# Mysql-uroot-p Zabbix < Database/mysql/schema.sql
# Mysql-uroot-p Zabbix < Database/mysql/images.sql
# Mysql-uroot-p Zabbix < Database/mysql/data.sql
Modify the Zabbix configuration file.
/*zabbix server's configuration file * *
# Cat/usr/local/zabbix-2.2.5/etc/zabbix_server.conf | Egrep-v ' ^#|^$ '
Logfile=/tmp/zabbix_server.log
dbhost=192.168.11.28
Dbname=zabbix
Dbuser=zabbix
Dbpassword=zabbix123
dbport=3306
/* Configure server Native agent*/
[Root@localhost zabbix-2.2.5]# cat/usr/local/zabbix-2.2.5/etc/zabbix_agentd.conf | Egrep-v ' ^#|^$ '
Logfile=/tmp/zabbix_agentd.log
server=127.0.0.1//Passively accept the server's monitoring data extraction
serveractive=127.0.0.1//actively send monitoring data to this server
Hostname=zabbix Server
/* Start the server and agent*/for this machine
#/usr/local/zabbix-2.2.5/sbin/zabbix_server
#/USR/LOCAL/ZABBIX-2.2.5/SBIN/ZABBIX_AGENTD
The server and client operations can be debugged through the/tmp/zabbix* log file. If the boot succeeds, the service listens on the port.
# NETSTAT-TULNP | grep Zabbix
TCP 0 0 0.0.0.0:10050 0.0.0.0:* LISTEN 18235/zabbix_agentd
TCP 0 0 0.0.0.0:10051 0.0.0.0:* LISTEN 18127/zabbix_server
The installation is complete by this Zabbix.