Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the installation steps for upgrading zabbix to 3.0.2?

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)05/31 Report--

This issue of the content of the editor will bring you about the zabbix upgrade to 3.0.2 installation steps is how, the article is rich in content and professional analysis and description for you, after reading this article, I hope you can get something.

Upgrade the original zabbix to version 3.0.2

As a result of upgrading on the original base, as long as the version of each supporting component meets the requirements, there is no problem. You only need to upgrade the zabbix.

LAMP is a prerequisite for zabbix installation

Among the machines upgraded this time, in addition to the low php version, other applicable versions are still available.

Therefore, only php and zabbix upgrade actions are carried out.

Now let's see what is installed in the original php version.

Yum list installed | grep php

In order to upgrade, it is necessary to get rid of the original version of Xi Xi.

Stop the apache service before clearing it.

Service httpd stop

Except for all installed parts of php

You can check the rpm above yum remove.

Check again to see if there is a reservation.

Yum list installed | grep php

After the rest, enter the new version of php installation

Rpm-Uvh php56w-5.6.27-1.w6.x86_64.rpm php56w-bcmath-5.6.27-1.w6.x86_64.rpm

Php56w-cli-5.6.27-1.w6.x86_64.rpm php56w-common-5.6.27-1.w6.x86_64.rpm

Php56w-devel-5.6.27-1.w6.x86_64.rpm php56w-gd-5.6.27-1.w6.x86_64.rpm

Php56w-ldap-5.6.27-1.w6.x86_64.rpm php56w-mbstring-5.6.27-1.w6.x86_64.rpm

Php56w-mcrypt-5.6.27-1.w6.x86_64.rpm php56w-mysqlnd-5.6.27-1.w6.x86_64.rpm

Php56w-odbc-5.6.27-1.w6.x86_64.rpm php56w-opcache-5.6.27-1.w6.x86_64.rpm

Php56w-pdo-5.6.27-1.w6.x86_64.rpm php56w-pear-1.10.1-1.w6.noarch.rpm

Php56w-pecl-apcu-4.0.11-1.w6.x86_64.rpm php56w-pecl-memcache-3.0.8-2.w6.x86_64.rpm

Php56w-pgsql-5.6.27-1.w6.x86_64.rpm php56w-process-5.6.27-1.w6.x86_64.rpm

Php56w-soap-5.6.27-1.w6.x86_64.rpm php56w-xml-5.6.27-1.w6.x86_64.rpm

Php56w-xmlrpc-5.6.27-1.w6.x86_64.rpm

If you find out what .so () (64bit) is required to install rpm, you need to install it according to the package.

After all problems have been solved, the installation is successful

Php-v (view php version)

PHP 5.6.27 (cli) (built: Oct 15 2016 21:31:59)

Copyright (c) 1997-2016 The PHP Group

Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies

Configure zabbix usage, password, and permissions in the database

# mysql-u root-p

Enter password:

Mysql > create database zabbix character set utf8

Mysql > insert into mysql.user (Host,User,Password) values ('localhost','zabbix',password (' zabbix'))

Mysql > grant all on zabbix.* to 'zabbix'@'127.0.0.1' identified by' zabbix' with grant option

Mysql > flush privileges

If the following error occurs:

[root@localhost ~] # / etc/init.d/mysqld restart

Stopping mysqld: [OK]

Another MySQL daemon already running with the same unix socket.

Starting mysqld: [FAILED]

Reason multiple Mysql processes use the same socket

# cd / var/lib/mysql/mysql.sock can directly rename the mysql.sock file

Then you can start mysql.

Unpack and install the downloaded zabbix-3.0.2

# tar-zxvf zabbix-3.0.2.tar.gz

# cd zabbix-3.0.2

#. / configure-with-mysql=/usr/bin/mysql_config-with-net-snmp

-with-libcurl-- enable-server-- enable-agent-- enable-proxy

-- prefix=/usr/local/zabbix

-- prefix---- > specify the zabbix installation directory

-- enable-server---- > supports zabbix server

-- enable-agent---- > supports zabbix proxy

-- enable-proxy---- > supports zabbix proxy server

-- with-libcurl---- > use the curl package

-- with-net-snmp---- > use the net-snmp package to selectively specify the path NET-SNMP configuration

-- with-mysql=/usr/bin/mysql_config can choose to specify a path mysql_config using the MySQL client library

Note: if the configure: error: MySQL library not found error occurs, it is due to the lack of mariadb-devel.

, yum install mariadb-devel for installation

# make

# make install

# mysql-uzabbix-pzabbix

# show databases

Mysql > use zabbix

Mysql > source / usr/local/zabbix-3.0.2/database/mysql/schema.sql

Mysql > source / usr/local/zabbix-3.0.2/database/mysql/data.sql

Mysql > source / usr/local/zabbix-3.0.2/database/mysql/p_w_picpaths.sql

Note: the above behavior is to first import the data table structure of zabbix into the specified null database.

# cat / etc/services | grep zabbix (view the port to which the server is added)

Test zabbix service startup

# / usr/local/zabbix/sbin/zabbix_agentd / / client

# / usr/lcoal/zabbix/sbin/zabbix_server / / Server

Modify the configuration file of zabbix

# vi / usr/local/zabbix/etc/zabbix_server.conf

DBName=zabbix

DBUser=zabbix

DBPassword=zabbix

ListenIP=127.0.0.1

AlertScriptsPath=/usr/local/zabbix/share/zabbix/alertscripts

Modify the configuration file of the zabbix client

# vi / usr/local/zabbix/etc/zabbix_agentd.conf

Include=/usr/local/zabbix/etc/zabbix_agentd.conf.d/

UnsafeUserParameters=1

Next, copy the execution script document of the location where your uninstalled package is located to the local default startup file / etc/init.d/.

# cp / usr/local/zabbix-3.0.2/misc/init.d/fedora/core/zabbix_server / etc/init.d/zabbix_server

# cp / usr/local/zabbix-3.0.2/misc/init.d/fedora/core/zabbix_agentd / etc/init.d/zabbix_agentd

In fact, however, CentOS is actually placed in the startup pad in / etc/rc.d/init.d/

Start this directory on the edit server side

# vi / etc/rc.d/init.d/zabbix_server

BASEDIR=/usr/local/zabbix/

Launch this directory on the client side

# vi / etc/rc.d/init.d/zabbix_agentd

BASEDIR=/usr/local/zabbix/

Next, start the services of the client and the server.

# service zabbix_agentd start

# service zabbix_server start

In order to improve the installation interface of zabbix, directly modify the default path of Apache to

# vi / etc/httpd/conf/httpd.conf

DocumentRoot "/ var/www/html/zabbix/" (just modify the path here)

Just put the default installation face of zabbix on the Apache gateway that we set up.

# cp-raf / usr/local/zabbix-3.0.2/frontends/php/* / var/www/html/zabbix

Click http://10.134.100.7 in the local browser to configure the interface for zabbix.

If you enter the verification panel, you will find that the value needs to be adjusted. You can modify the configuration file of php.

Vi / etc/php.ini

Post_max_size = 16m

Max_execution_time = 300

Max_input_time = 300

Date.timezone = Asia/Shanghai

Note: it can be adjusted mainly according to the information of the presentation.

After restarting the apache service, you can enter the following installation steps

# service httpd restart

If the following circumstances occur during this period

Httpd:Could not reliably determine the server's fully qualified domain name

Solution: modify the apache configuration file

Vi / etc/httpd/conf/httpd.conf

# ServerName www.example.com:80

To change to or add after it.

ServerName localhost:80

Restart the apache service

Service httpd restart

The last step may be reported:

Configuration file "/ var/www/html/zabbix/conf/zabbix.conf.php" created: Fail

You can download, or you can configure it with existing resources.

# cd / var/www/html/zabbix/conf

# cp zabbix.conf.php.example zabbix.conf.php

# vi zabbix.conf.php

Note: generally speaking, typical or example documents can be borrowed.

In order to understand that it is difficult to check the number of zabbix in English, you can modify the language configuration of zabbix itself.

# vi / var/www/html/zabbix/include/locales.inc.php

'zh_CN' = > array (' name' = > _ ('Chinese (zh_CN)'), 'display' = > false)

Modify to

'zh_CN' = > array (' name' = > _ ('Chinese (zh_CN)'), 'display' = > true)

Note: as long as the words of the noodles are changed to true, they can be presented.

The above is the editor for you to share the zabbix upgrade to 3.0.2 installation steps is how, if you happen to have similar doubts, you might as well refer to the above analysis to understand. If you want to know more about it, you are welcome to follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report