CENTOS7 Installing Zabbix Monitoring
System Environment: Centos7.0
Zabbix: Download http://sourceforge.net/projects/zabbix/files/ZABBIX%20Latest%20Development/3.0.0alpha2/ Zabbix-3.0.0alpha2.tar.gz/download
Required Software: zabbix-3.0.0alpha2.tar.gz
Apache
Mysql
Php
To install a system-dependent package:
Yum–y install gcc gcc-c++ wget automake mysql-server httpd php mysql-devel net-snmp-devel
Curl-devel perl-dbi php-gd php-mysql php-bcmath php-mbstring php-xml
Because the CENTOS7 environment is MARIADB, re-install the MySQL Community Edition (the process may be a bit slow)
wget http://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpm
RPM-IVH mysql-community-release-el7-5.noarch.rpm
Yum Install Mysql-community-server
Set up a MySQL database
/etc/init.mysqld start
Set Password
Mysql–uroot
> Set password for ' root ' @ ' localhost ' = password (' 123456 ');
mysql–uroot–p123456 set Zabbix database and user password
mysq> create db Zabbix character set UTF8;
Mysql> Grant all on zabbix.*-zabbix@ ' localhost ' identified by ' Zabbix ';
mysql> flush Privileges;
CD Zabbix-3.0.0alpha2/database/mysql
mysql-uroot-p123456 < schema.sql
mysql-uroot-p123456 < Images.sql
mysql-uroot-p123456 < Data.sql
Add Zabbix User
Groupadd Zabbix
Useradd zabbix–g Zabbix–s/sbin/nologin
Installing the ZABIBX Service
Mkdir/opt/zabbix
tar–zxvf zabbix-3.0.0alpha2.tar.gz
cd zabbix-3.0.0alpha2
./configure--with-mysql --with-net-snmp--with-libcurl--enable-server--enable-agent--enable-proxy--prefix=/opt/zabbix/make && make Install
Installing fping Software
http://fping.sourceforge.net/
Tar Fping-3.4.tar
./configure
Make && make install
Modifying a configuration file
CP misc/init.d/fedora/core5/zabbix_server/etc/init.d/
chmod 755/etc/init.d/zabbix_*
Vim/etc/init.d/zabbix_server
Modify zabbix_bin= "/opt/zabbix/sbin/zabbix_server"
Vim/opt/zabbix/etc/zabbix_server.conf
Modify Fpinglocation=/usr/local/sbin/fping
vim/etc/httpd/conf/httpd.conf
Dbname=zabbix
Dbuser=zabbix
Dbpassword=zabbix
directoryindex index.html index.html.var index.php
alertscriptspath=/opt/scripts Specify where the script should be stored
Modify the PHP configuration file
Vim/etx/php.ini
max_execution_time =
Max_input_time =
Date.timezone = PRC
post_max_size = 32M
Place the deployment file for Zabbix under the httpd publish location
Cp-r frontend/php/*/var/www/html/
Chown–r zabbix:zabbix/var/www/html/*
Start the service
/etc/init.d/zabbix_server start
/ETC/INIT.D/HTTPD start
Browser Access 192.168.65.154
Set Login Password: Zabbix
Setting the configuration file for a server
vim/var/www/html/conf/zabbix.conf.php
$[' DATABASE '] = ' Zabbix ';
$[' USER '] = ' Zabbix ';
$[' PASSWORD '] = ' Zabbix ';
Zabbix Client Installation
zabbix Client Installation Groupadd Zabbix useradd zabbix-g zabbix–s/sbin/nologin yum-y install gcc gcc-c+ + libcurl libcurl-devel/configure--with-net-snmp--with-libcurl--enable-agent--prefix=/opt/zabbix/make && Make install 3, modify the configuration file CP misc/init.d/fedora/core5/zabbix_agentd/etc/init.d/chown-r Zabbix:zabbix/etc/init.d/zabbix_
* chmod 755/etc/init.d/zabbix_* vim/etc/init.d/zabbix_agentd Modify zabbix_bin= "/opt/zabbix_agentd/sbin/zabbix_agentd" vim/opt/zabbix/etc/zabbix_agentd.conf server=192.168.xxx.xxx serveractive=192.168.xx.xxx Hostname=Zabbix Server/ Etc/init.d/zabbix_agentd start Chkconfig zabbix_agentd on