1.1 Install the required libraries
[email protected] ~]# Yum install-y epel-release
[email protected] ~]# Yum install Net-snmp net-snmp-utils
[email protected] ~]# Yum install-y Iksemel libssh2
1.2 Install LAMP Environment
[email protected] ~]# yum install-y httpd mysql mysql-libs php php-mysql mysql-server php-bcmath php-gd php-mbstring
1.2.1 Start httpd Service
[[email protected] ~]#/etc/init.d/httpd start
1.2.2 Open The php.ini configuration file, modify the following parameters
[[email protected] ~]# vim/etc/php.ini
memory_limit 128M
post_max_ Size 16M
Upload_max_filesize 2M
max_input_time
Date.timezone = Asia/shanghai
1.3 Installing Zabbix
1.3.1 Download and install
[email protected] ~]# RPM-IVH http://repo.zabbix.com/zabbix/2.4/rhel/6/x86_64/ zabbix-release-2.4-1.el6.noarch.rpm
[email protected] ~]# Yum install-y zabbix-server-mysql zabbix-web-mysql zabbix-agent
1.3.2 Creating an initialization database
[[email protected] ~]#/etc/init.d/mysqld start
[[email protected] ~]# MySQL
Mysql> CREATE database Zabbix character set UTF8 collate utf8_bin;
Mysql> Grant All on * * to ' zabbix ' @ ' localhost ' identified by ' Zabbix ';
Mysql> quit
[Email protected] ~]# cd/usr/share/doc/zabbix-server-mysql-2.4.7/create/
[Email protected] create]# Mysql-uroot Zabbix < Schema.sql
[Email protected] create]# Mysql-uroot Zabbix < Images.sql
[email protected] create]# Mysql-uroot Zabbix < data.sq
1.4 Configuring Zabbix
[email protected] ~]# vim/etc/zabbix/zabbix_server.conf
dbhost=localhost
Dbname=zabbix
Dbuser=zabbix
Dbpassword=zabbix
1.5 Enable monitoring vsphere options
Startvmwarecollectors=5 (0-250) only greater than 0 o'clock can be the function, meaning the number of pre-configured VMware monitoring instances.
vmwarefrequency=60 Zabbix Gets the minimum interval of time, in minutes, to update the VMware cluster structure.
vmwarecachesize=80m (256K-2G) the size of the VMware cluster structure maintained in memory, recommended 80M.
1.6 Starting the Service
[Email protected] ~]#/etc/init.d/zabbix-server start;/etc/init.d/zabbix-agent start
1.7 Web Installation
Http://ip/zabbix
Default User: Admin
Default password: Zabbix
650) this.width=650; "title=" z1.jpg "style=" Float:none "src=" http://s5.51cto.com/wyfs02/M02/78/8C/wKiom1Z_ Qnngkpaiaalwj1ldmme357.jpg "alt=" Wkiom1z_qnngkpaiaalwj1ldmme357.jpg "/>
650) this.width=650; "title=" z2.jpg "style=" Float:none "src=" http://s3.51cto.com/wyfs02/M02/78/8C/wKiom1Z_qN_ B2mokaalpvdtcrhq561.jpg "alt=" Wkiom1z_qn_b2mokaalpvdtcrhq561.jpg "/>
650) this.width=650; "title=" z3.jpg "style=" Float:none "src=" http://s3.51cto.com/wyfs02/M00/78/8C/wKiom1Z_ Qotbh1shaalm5jtl_e4349.jpg "alt=" Wkiom1z_qotbh1shaalm5jtl_e4349.jpg "/>
650) this.width=650; "title=" z4.jpg "style=" Float:none "src=" http://s4.51cto.com/wyfs02/M00/78/8C/wKiom1Z_ Qojbdv4eaai8ltthxbc375.jpg "alt=" Wkiom1z_qojbdv4eaai8ltthxbc375.jpg "/>
650) this.width=650; "title=" zz.jpg "style=" Float:none "src=" http://s2.51cto.com/wyfs02/M00/78/8C/wKiom1Z_ Qozatuhhaajhm8ecxko282.jpg "alt=" Wkiom1z_qozatuhhaajhm8ecxko282.jpg "/>
This article is from the "Dream Drift" blog, please be sure to keep this source http://25398.blog.51cto.com/15398/1728815
Zabbix RPM Rapid Deployment