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

Zabbix2.2 's plan to upgrade zabbix3.0.4

2025-01-30 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

Today, the editor will bring you an article about zabbix2.2 upgrading zabbix3.0.4. The editor thinks it's pretty good, so I'll share it for you as a reference. Let's follow the editor and have a look.

Requirements: zabbix2.2 upgrade to 3.0.4

Note: php is strictly required after zabbix 2.5. the version of php must be greater than php5.4.

The php upgrade can override the installation, or you can choose from multiple installations, and choose the latter here.

Install php5.6.24

Yum install-y libxml2 libxml2-devel\

Openssl openssl-devel\

Curl* libcurl*\

Libvpx* libjpeg*\

Libpng libpng-devel\

Freetype* T1 lib *\

Zlib zlib-devel\

Zip unzip gzip\

Ncurses* pcre pcre-devel\

Bzip2* gd gd-devel\

Libevent libevent-devel\

Libmcrypt-devel libmcrypt\

Libxslt-devel net-snmp-devel hping2 php-bcmath

# download php5.6.18

Wget http://10.31.67.32:8099/Download/php/php-5.6.18.tar.gz

Tar-zxf php-5.6.18.tar.gz

Cd php-5.6.18

/ configure-- prefix=/usr/local/php5-- with-config-file-path=/usr/local/php5/etc-- with-bz2-- with-curl-- enable-ftp-- enable-sockets-- disable-ipv6-- with-gd-- with-jpeg-dir=/usr/local-- with-png-dir=/usr/local-- with-freetype-dir=/usr/local-- enable-gd-native-ttf-- with-iconv-dir=/usr/local-- enable-mbstring-- enable -calendar-with-gettext-with-libxml-dir=/usr/local-with-zlib-with-pdo-mysql=mysqlnd-with-mysqli=mysqlnd-with-mysql=mysqlnd-enable-dom-enable-xml-enable-fpm-with-libdir=lib64-enable-bcmath-enable-xmlwriter-enable-xmlreade

Make & & make install

Cp php.ini-production / usr/local/php5/etc/php.ini

Cp / usr/local/php5/etc/php-fpm.conf.default / usr/local/php5/etc/php-fpm.conf

Vi / usr/local/php5/etc/php-fpm.conf

User = nginx

Group = nginx

Vi / usr/local/php5/etc/php.ini

Max_execution_time = 300

Memory_limit = 128m

Post_max_size = 16m

Upload_max_filesize = 2m

Max_input_time = 300

Date.timezone = PRC

# reverse php on nginx configuration

Location. *\. (php)? $

{

Expires-1s

Try_files $uri = 404

Fastcgi_split_path_info ^ (. +\ .php) (/. +) $

Include fastcgi_params

Fastcgi_param PATH_INFO $fastcgi_path_info

Fastcgi_index index.php

Fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name

Fastcgi_pass 127.0.0.1:9000

}

/ usr/local/php5/sbin/php-fpm

# install Zabix3.0.4 server

Tar-zxf zabbix-3.0.4.tar.gz

Cd zabbix-3.0.4

/ configure-- prefix=/usr/local/zabbix3.0.4-- enable-server-- enable-agent-- with-mysql-- with-net-snmp-- with-libcurl-- with-libxml2

Make & & make install

# # error configure: error: MySQL library not found

# yum install mysql-devel

# install Zabix3.0.4 agend

Tar-zxf zabbix-3.0.4.tar.gz

. / configure-prefix=/usr/local/zabbix3.0.4/-enable-agent

Make & & make install

# # configuration files of the old version of copy

Cp / etc/zabbix/zabbix_agentd.conf / usr/local/zabbix3.0.4/etc/

Cp / etc/zabbix/zabbix_server.conf / usr/local/zabbix3.0.4/etc/

"modify the log section to make it easier to query questions"

Vi / usr/local/php5/etc/php.ini

Always_populate_raw_post_data =-1

Date.timezone = Asia/Shanghai

# copy's new zabbix frontend directory

Cp-a / home/software/zabbix-2.2.10rc1/frontends/php/* / usr/local/nginx/html/zabbixdx/

# Editing zabbix.conf.php

Cp-a / usr/local/nginx/html/zabbix/conf/zabbix.conf.php / usr/local/nginx/html/zabbixdx/conf/

Vi zabbix.conf.php

# modify fonts

Mv / home/server/DejaVuSans.ttf / usr/local/nginx/html/zabbixdx/fonts/

# launch a new zabbix3.0.4

/ usr/local/zabbix3.0.4/sbin/zabbix_server-c / usr/local/zabbix3.0.4/etc/zabbix_server.conf

/ usr/local/zabbix3.0.4/sbin/zabbix_agentd-c / usr/local/zabbix3.0.4/etc/zabbix_agentd.conf

# modify fonts

# rollback the old version of zabbix2.2

/ etc/init.d/zabbix_server-c / etc/zabbix/zabbix_server.conf

/ etc/init.d/zabbix_agentd-c / etc/zabbix/zabbix_agentd.conf

# Mega-dimensional zabbix mysql restart command

Service mysqld restart

# modify how many alarms are displayed on the web page

Vi defines.inc.php

Define ('DEFAULT_LATEST_ISSUES_CNT', 500)

The above are the details of zabbix2.2 upgrade zabbix3.0.4, the details of the use also need to be used in your own hands in order to understand. If you want to know more, 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

Servers

Wechat

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

12
Report