First I have configured the lamp environment, or can use the following command:
[[Email protected] ~] #yum install make mysql-server httpd php mysql-devel gcc net-snmp-devel curl-devel perl-dbi php-gd ph P-mysql php-bcmath php-mbstring php-xml unixodbc-devel openipmi-devel libxml2-devel
To complete the installation:
1. Create a new Zabbix account:
[Email protected] ~]useradd zabbix-s/sbin/nologin
2, create Zabbix database, and assign to Zabbix permissions:
Mysql> CREATE database Zabbix character set UTF8 collate utf8_bin; Query OK, 1 row Affected (0.00 sec) Mysql> Grant all on zabbix.* to [e-mail protected] identified by ' Zabbix '; Query OK, 0 rows affected (0.02 sec) mysql> flush privileges;
3, download Zabbix, and import the database, I have a 2.2 here, so still use 2.2
[[email protected] src]# Cd/usr/local/src/zabbix-2.2.2[[email protected] zabbix-2.2.2]# CD Database/mysql/[[email Protected] mysql]# Mysql-uzabbix-pzabbix Zabbix < schema.sql[[email protected] mysql]# Mysql-uzabbix-pzabbix Zabbix < Images.sql [[email protected] mysql]# Mysql-uzabbix-pzabbix Zabbix < Data.sql
4. Compile and install Zabbix_server:
[Email protected] zabbix-2.2.2]#/configure--enable-server--enable-agent--with-mysql--WITH-NET-SNMP-- With-libcurl--with-libxml2--WITH-OPENIPMI--with-unixodbc--prefix=/usr/local/zabbix[[email protected] zabbix-2.2.2]# make && make install
5, edit httpd.conf support index.php
[Email protected] zabbix-2.2.2]# Vim/usr/local/apache2/conf/httpd.confdirectoryindex index.php index.html
6. Modify the database account and password for the Zabbix file:
[Email protected] zabbix-2.2.2]# Vim/usr/local/zabbix/etc/zabbix_server.confdbname=zabbixdbuser=zabbixdbpassword =zabbix
7. Copy the startup script and modify the appropriate options:
[[email protected] zabbix-2.2.2]# CP Misc/init.d/fedora/core5/zabbix_server/etc/init.d/[[email protected] zabbix-2.2.2]# CP misc/init.d/fedora/core5/zabbix_agentd/etc/init.d/Modify two configuration files [[email protected] zabbix-2.2.2]# VIM/ Etc/init.d/zabbix_agentd zabbix_bin= "/usr/local/sbin/zabbix_agentd" changed to Zabbix_bin= "/usr/local/zabbix/sbin/zabbix_ Agentd "[[email protected] zabbix-2.2.2]# vim/etc/init.d/zabbix_server zabbix_bin="/usr/local/sbin/zabbix_server " Change to zabbix_bin= "/usr/local/zabbix/sbin/zabbix_server"
Start:
[Email protected] zabbix-2.2.2]#/etc/init.d/zabbix_server start[[email protected] zabbix-2.2.2]#/etc/init.d/zabbix _agentd Start[[email protected] zabbix-2.2.2]# chkconfig zabbix_agentd on[[email protected] zabbix-2.2.2]# chkconfig Zabbix_server On8, modify php.ini file support size, or the web is not easy to error: [[email protected] zabbix-2.2.2]# Vim/etc/php.ini max_execution_time = 300max_input_time = 300date.timezone =asia/shanghaipost_max_size = 32M restart httpd make PHP configuration effective
9, copy Zabbix PHP project early HTTP directory, and give permissions:
[Email protected] frontends]# CP-RF php/usr/local/apache2/htdocs/zabbix[[email protected] htdocs]# chown-r Apache.apa che/usr/local/apache2/htdocs/zabbix/
10. Then access Web:http://ip/zabbix default Next:
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/5C/36/wKioL1Uc2FewbkAIAALO_ye9Izc732.jpg "title=" Zabix1.png "alt=" Wkiol1uc2fewbkaiaalo_ye9izc732.jpg "/>11, the following selection to be all OK to perform the next step, which can not be installed yum. Then always fill in the relevant database information:
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/5C/3B/wKiom1Uc2L2x5l9HAAFn0EEAFCQ067.jpg "title=" Zabbix2.png "alt=" Wkiom1uc2l2x5l9haafn0eeafcq067.jpg "/>
12, the installation is successful, the login account default is: Admin, password: Zabbix:
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/5C/3B/wKiom1Uc2WPhqJ5RAAGjbSGaRSs846.jpg "title=" Zabbix3.png "alt=" Wkiom1uc2wphqj5raagjbsgarss846.jpg "/>
Here the server side has been installed to complete. But in order to sometimes convenient, we still need to zabbix a bit,
Steps:
1, confirmed that Zabbix has supported the Noon language:
[Email protected] ~]# vim/var/www/html/zabbix/include/locales.inc.php ' zh_cn ' = = Array (' name ' = = = ' Chinese (zh_ CN), ' display ' = True),
2, in their own Windows computer found local C:\Windows\Fonts\simkai.ttf (in italics) uploaded to the server Zabbix site Directory Fonts directory. and modify the naming method (do not upload the font will be garbled):
[Email protected] fonts]# MV Simkai.ttf Dejavusans.ttf
MV: Do you want to overwrite "Dejavusans.ttf"? Y
3. Click on the top right corner. Profile. Select language as ZH-CN
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/5C/3B/wKiom1Uc3M6QLv9rAAGkatkSvKM407.jpg "title=" Zabbix4.png "alt=" Wkiom1uc3m6qlv9raagkatksvkm407.jpg "/>
#到此汉化已经完成. The next step is the installation of the client agent, where the agent is monitored because it is powerful enough:
Agent Installation steps:
Client installation without relying on lamp environment, directly installed on the good
1. Add an account:
[Email protected] ~]# useradd zabbix-s/sbin/nologin
2. Compile and install Zabbix_agent:
[Email protected] zabbix-2.2.2]#/configure--with-net-snmp--with-libcurl--enable-agent--prefix=/usr/local/ Zabbix[[email protected] zabbix-2.2.2]# make && make install
3. Set the startup item and modify the configuration file:
[[email protected] zabbix-2.2.2]# CP Misc/init.d/fedora/core5/zabbix_agentd/etc/init.d/[[email protected] zabbix-2.2.2]# chmod 700/etc/init.d/zabbix_agentd [[email protected] zabbix-2.2.2]# VIM/ETC/INIT.D/ZABBIX_AGENTD Zabbix_bin= "/usr/local/zabbix/sbin/zabbix_agentd"
4. Modify the server that Zabbix points to:
[Email protected] zabbix-2.2.2]# vim/usr/local/zabbix/etc/zabbix_agentd.confserver=192.168.10.205
After the completion of the save exit, today will be added to the big
This article is from the "Little Luo" blog, please be sure to keep this source http://xiaoluoge.blog.51cto.com/9141967/1627672
Zabbix (i) Construction of Zabbix environment