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 steps to upgrade Zabbix3.0 to 3.2?

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

Share

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

Today, I will talk to you about the steps of upgrading Zabbix3.0 to 3.2. many people may not understand it very well. in order to make you understand better, the editor has summarized the following content for you. I hope you can get something according to this article.

1. Stop the zabbix service

Service zabbix_server stop

Service zabbix_agentd stop

/ usr/local/zabbix/sbin/zabbix_java/shutdown.sh

two。 Save configuration Fil

Mv / usr/local/zabbix / usr/local/zabbix.bak

Mv / var/www/html/zabbix / var/www/html/zabbix.bak

Cp / etc/init.d/zabbix_server / etc/init.d/zabbix_server_bak

Cp / etc/init.d/zabbix_agentd / etc/init.d/zabbix_agentd_bak

3. Installation and compilation

Yum install-y libssh3-devel

. / configure-- prefix=/usr/local/zabbix-- enable-server-- enable-agent-- with-mysql-- with-net-snmp-- with-libcurl-- with-libxml2-with-unixodbc-- with-ssh3-- with-openipmi-- enable-ipv6-- enable-java

Make & & make install

4. Modify configuration parameters

Cp / usr/local/zabbix.bak/etc/zabbix_agentd.conf / usr/local/zabbix/etc/zabbix_agentd.conf

Cp / usr/local/zabbix.bak/etc/zabbix_server.conf / usr/local/zabbix/etc/zabbix_server.conf

Mkdir-p / usr/local/zabbix/logs

Chown-R zabbix:zabbix / usr/local/zabbix

Mv / etc/init.d/zabbix_server_bak / etc/init.d/zabbix_server

Mv / etc/init.d/zabbix_agentd_bak / etc/init.d/zabbix_agentd

5. Modify web page parameters

Mkdir / var/www/html/zabbix

Cp-a / root/zabbix-3.2.11/frontends/php/* / var/www/html/zabbix

Chown-R zabbix.zabbix / var/www/html/zabbix/

Chmod-R 755 / var/www/html/zabbix/

Cp / var/www/html/zabbix.bak/conf/zabbix.conf.php / var/www/html/zabbix/conf/zabbix.conf.php 6. Rebuild the history table

Mysql-uroot-p

Use zabbix

DROP TABLE history_log

DROP TABLE history_text

CREATE TABLE `history_ log` (

`id` BIGINT (20) UNSIGNED NOT NULL

`itemid` BIGINT (20) UNSIGNED NOT NULL

`clock`INT (11) NOT NULL DEFAULT'0'

`timestamp` INT (11) NOT NULL DEFAULT'0'

`source` VARCHAR (64) NOT NULL DEFAULT''COLLATE' utf8_bin'

`roomity` INT (11) NOT NULL DEFAULT'0'

`value`TEXT NOT NULL COLLATE 'utf8_bin'

`logeventid` INT (11) NOT NULL DEFAULT'0'

`ns`INT (11) NOT NULL DEFAULT'0'

PRIMARY KEY (`id`)

UNIQUE INDEX `history_log_ 2` (`itemid`, `id`)

INDEX `history_log_ 1` (`itemid`, `clock`)

)

COLLATE='utf8_bin'

ENGINE=InnoDB

; CREATE TABLE `history_ text` (

`id` BIGINT (20) UNSIGNED NOT NULL

`itemid` BIGINT (20) UNSIGNED NOT NULL

`clock`INT (11) NOT NULL DEFAULT'0'

`timestamp` INT (11) NOT NULL DEFAULT'0'

`source` VARCHAR (64) NOT NULL DEFAULT''COLLATE' utf8_bin'

`roomity` INT (11) NOT NULL DEFAULT'0'

`value`TEXT NOT NULL COLLATE 'utf8_bin'

`logeventid` INT (11) NOT NULL DEFAULT'0'

`ns`INT (11) NOT NULL DEFAULT'0'

PRIMARY KEY (`id`)

UNIQUE INDEX `history_text_ 2` (`itemid`, `id`)

INDEX `history_text_ 1` (`itemid`, `clock`)

)

COLLATE='utf8_bin'

ENGINE=InnoDB

; 7. Start zabbix

Chkconfig-add zabbix_server

Chkconfig-add zabbix_agentd

Chkconfig-level 35 zabbix_agentd on

Chkconfig-level 35 zabbix_server on # service snmpd restart

# service mysqld restart

# service httpd restart

# / etc/init.d/zabbix_server start

# / etc/init.d/zabbix_agentd start after reading the above, do you have any further understanding of the steps to upgrade Zabbix3.0 to 3.2? If you want to know more knowledge or related content, please follow the industry information channel, thank you for your support.

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