First, Introduction
Zabbix has several basic components: Server, Agent, Database, WebUI.
Server listener port is tcp:10050
Client Listening port is tcp:10051
Experimental environment: Zabbix 2.4.2, CentOS6.5
Second, installation and database configuration
1.Zabbix can support both compilation and Yum installation, Yum installation needs to go to the site next repo file, http://repo.zabbix.com/zabbix/2.4/rhel/6/x86_64/, or build a yum source yourself, I use Yum to install here.
Server installation, note: To install the Apache,mysql, and PHP before the service, and to ensure the normal use of
Linux Client Installation
Yum Install zabbix-agent zabbix-sender
Windows Client installation, the official website Download Agent Zip package, local decompression after the execution, this will be added in the Windows Service List Zabbix Agent background service
C:\zabbix\bin\win64\zabbix_agentd.exe-c "C:\zabbix\zabbix_agentd.conf"-I.
2. Create a database on the database server, default to native installation
Mysql>create DATABASES Zabbix
3. Importing data files
Cp-a/usr/share/doc/zabbix-servermysql/create/data.sql images.sql schema.sql/tmp/mysql-uroot-p Zabbix </tmp/ Schema.sqlmysql-uroot-p Zabbix </tmp/images.sqlmysql-uroot-p Zabbix </tmp/data.sql
4. Authorized Users
Mysql>grant all on zabbix.* to ' zbxuser ' @ ' 172.16.%.% ' identitifid by ' Zbxpass ', mysql>grant all on zabbix.* to ' Zbxus Er ' @ ' localhost ' identitifid by ' zbxpass ';
Third, Zabbix server configuration
1. Modify the configuration file/etc/zabbix/zabbix_server.conf
Dbhost=1.1.1.1#mysql server address dbuser=zbxuser# Specify MySQL user dbpassword=zbxpass# specify MySQL user password
2. Start Zabbix
Service Zabbix-server Startchkconfig Zabbix-server on
3. Configure PHP time zone, edit/etc/php.ini otherwise open Web page will have PHP warning, eliminate security warning
Date.timezone = Asia/shanghai
4. Start httpd, HTTP configuration file for Zabbix directory in/etc/httpd/conf.d/zabbix.conf
Service httpd Start
5. Verify the Address
Http://1.1.1.1/zabbix
Four, Zabbix agent configuration
1. Edit the configuration file,/etc/zabbix/zabbix_agentd.conf
#Hostname =zabbix server# Comment out the Hostname, so the server will automatically detect the host name of the client, and then join the Monitoring list # otherwise the server will display Loalhost typeface server=1.1.1.1# configuration Zabbix Server address serveractive=1.1.1.1# Configure the activity detection address, when a down client recovery can actively communicate with the server, to achieve rapid recovery on-line, #同时结合, Automatic registration of the server enables the new client to actively register hostmetadataitem=system.uname# gets the type of the client operating system, enabling automatic selection of templates
2. Start the agent, and then if there is no special requirements, basically the client does not need to do any more configuration
Service Zabbix-agent Startchkconfig zabbix-agent on
Five, login configuration
1. The above completed the basic installation, followed by the Web monitoring settings, the first access to Http://1.1.1.1/zabbix, will be located to the login initial Web configuration interface
650) this.width=650; "Style=" background-image:none; border-right-0px; margin:0px; padding-left:0px; padding-right:0px; border-top-width:0px; border-bottom-width:0px; border-left-width:0px; padding-top:0px "title=" image_thumb[1] "border=" 0 "alt=" image_thumb[1] "src=" http://s3.51cto.com/wyfs02/M01/58/C3/ Wkiom1s7rmtxloadaabl_vpppey227.jpg "width=" 244 "height=" 163 "/>
2. Always "Next" to check whether the current environment is correct, if there is a problem can be checked according to the error, generally no problem, up to a few PHP components.
3. In the database configuration interface, you must click "Test conncention" to display Next,host point to the MySQL address defined in the master profile, and then type the MySQL user and password previously defined. Then always next to finish.
650) this.width=650; "Style=" background-image:none; border-right-0px; margin:0px; padding-left:0px; padding-right:0px; border-top-width:0px; border-bottom-width:0px; border-left-width:0px; padding-top:0px "title=" image_thumb[3] "border=" 0 "alt=" image_thumb[3] "src=" http://s3.51cto.com/wyfs02/M02/58/C3/ Wkiom1s7rmubac3eaabgtckxjec571.jpg "width=" 244 "height=" 159 "/>
4. The Zabbix main interface appears, so Zabbix all installation configurations are complete, and the Zabbix server itself is added by default. You can view the graphical monitoring information for the Zabbix server through monitor->dashborad->graphs.
650) this.width=650; "Style=" background-image:none; border-right-0px; margin:0px; padding-left:0px; padding-right:0px; border-top-width:0px; border-bottom-width:0px; border-left-width:0px; padding-top:0px "title=" image_thumb[4] "border=" 0 "alt=" image_thumb[4] "src=" http://s3.51cto.com/wyfs02/M00/58/C3/ Wkiom1s7rmycz4jdaabjhav5ddo628.jpg "width=" 244 "height=" "/> 650" this.width=650; "style=" Background-image:none; border-right-0px; margin:0px; padding-left:0px; padding-right:0px; border-top-width:0px; border-bottom-width:0px; border-left-width:0px; padding-top:0px "title=" image_thumb[6] "border=" 0 "alt=" image_thumb[6] "src=" http://s3.51cto.com/wyfs02/M01/58/C0/ Wkiol1s7rz_h1wmnaabc1etwqli282.jpg "width=" 244 "height=" 142 "/>
The next step is to Zabbix basic monitoring of Linux and Windows and network devices, as well as basic usage such as template triggers.
Zabbix (1)--Basic installation deployment