Centos6.8 Deploy the installation zabbix3.0:
Environmental requirements
PHP >= 5.4 (CentOS6 default is 5.3.3, update required)
Curl >= 7.20 (need to be updated to support SMTP authentication)
Install MySQL (installed ignore this step, preferably more than 5.6 version)
rpm-ivhhttp://dev.mysql.com/get/mysql-community-release-el6-5.noarch.rpm
Yum Install Mysql-server–y
Start:
To set the root password:
Mysql_secure_installation
Enter current password to root (enter for none):
Set root Password? [y/n]
Remove anonymous users? [y/n]
Disallow Root login remotely? [y/n]
Remove test database and access to it? [y/n]
Reload privilege tables now? [y/n]
To create a Zabbix database:
Mysql-uroot-p
mysql> CREATE DATABASE Zabbix CHARACTER SET utf8collate utf8_bin;
Mysql> GRANT all privileges in zabbix.* To[email protected] identified by ' Zabbix ';
mysql> show databases;
+--------------------+
| Database |
+--------------------+
| Information_schema |
| MySQL |
| Performance_schema |
| Zabbix |
+--------------------+
Where localhost is allowed IP, do not set the words can be changed to '% '
Install PHP:
Install the software Source: rpm-ivhhttp://repo.webtatic.com/yum/el6/latest.rpm
Uninstall old version: Yum erase php php-mysqlphp-gd php-imap php-ldap php-odbc php-pear php-xml php-xmlrpc php-mcrypt php-mbstring Php-dev El php-pecl-memcachedphp-pecl-memcache Php-common php-pdophp-cli php-fpm libmemcached
Install PHP5.6:
Yum install httpd php56w php56w-mysql php56w-gdphp56w-imap php56w-ldap php56w-odbc php56w-pear php56w-xml Php56w-xmlrpcphp56w-mcrypt php56w-mbstring php56w-devel php56w-pecl-memcached php56w-common php56w-pdo php56w-cli Php56w-pecl-memcache PHP56W-BCMATHPHP56W-FPM
To modify the time zone:
Sed–i "[Email protected]# php_value date.timezone europe/[email protected]_valuedate.timezone Asia/[email protected]"/ Etc/httpd/conf.d/zabbix.conf
Upgrade Curl
git clone https://github.com/zabbixcn/curl-rpm
CD Curl-rpm/rpms
Yum installcurl-7.29.0-25.el6.x86_64.rpm libcurl-7.29.0-25.el6.x86_64.rpm libcurl-devel-7.29.0-25.el6.x86_64.rpm
Git is not installed, execute: Yum install–y git
Verify:
Curl-v
Curl 7.29.0 (X86_64-REDHAT-LINUX-GNU) libcurl/7.29.0nss/3.16.1 Basic ECC zlib/1.2.3 libidn/1.18 libssh2/1.4.2
Protocols:dict file ftp FTPs Gopher http HTTPS imapimaps LDAP ldaps POP3 pop3s rtsp SCP sftp smtp Smtps telnet tftp
Features:asynchdnsgss-negotiate IDN IPv6 largefile NTLM ntlm_wb SSL libz
Install Zabbix-server:
Yum Localinstall zabbix-server-mysql-3.0.0-1.el6.x86_64.rpm
Initializing the Zabbix database
cd/usr/share/zabbix-server-mysql-3.0.0
Zcat create.sql.gz | Mysql-uzabbix-pzabbix Zabbix
Remote: Zcat create.sql.gz | Mysql-h 10.16.37.101-p 3306-uzabbix-pzabbixzabbix
Configure Database connection Information
Vi/etc/zabbix/zabbix_server.conf
Dbhost=localhost
Dbname=zabbix
Dbuser=zabbix
Dbpassword=zabbix
Start Zabbix-server:
/etc/init.d/zabbix-serverrestart
or service Zabbix-server start
If everything works, the log will look like this:
Configure Apache:
/etc/init.d/httpdstart
To access the Zabbix Web:
Browser access to Http://${ip}/zabbix, configuration can be, here no more detailed!
Default User name/password: Admin/zabbix (case sensitive)
Client Installation:
Download in http://repo.zabbix.com/zabbix/3.0/rhel/6/x86_64/
Direct RPM–IVH zabbix-agent-3.0.0-2.el6.x86 64.rpm
or RPM–IVH http://repo.zabbix.com/zabbix/3.0/rhel/6/x86_64/zabbix-agent-3.0.0-2.el6.x86_64.rpm.
May indicate a lack of lib, when Yum Install–y UnixODBC executes the above command
Then configure:
Vi/etc/zabbix/zabbix-agentd.cnf
Modify these two places and then start:
Add Zabbix-agent to boot entry:
View:
Firewall settings:
Open ports
Save
Restart
Problems encountered during installation:
Install Yum can only find 2.4 version after Git clone resolution
Install PHP5.6 show no libmysqlclient.so ignore resolution--skip-broken
Zcat create.sql.gz | Mysql-uzabbix-pzabbix Zabbix Initialization of Zabbix database failed:
Go to MySQL database and delete the Zabbix re-create solution
/etc/init.d/zabbix-server restart
Tail-n 100/var/log/zabbix/zabbix_server.log Error Permission denied
SELinux Shutdown Restart Resolution
/ETC/INIT.D/HTTPD start
80 port is occupied changed to 8080 resolved after login IP is nginx
Gedit/etc/zabbix/zabbix_server.conf
After listenip=192.168.255.129 changed, add port 8080 to solve
Phptimezone error: after reboot.
Deploy Zabbix3.0 under CentOS6.8