Coder Social home page Coder Social logo

zabbix_upgrade's Introduction

Zabbix upgrade 6.4 to 7.0

CRIAR AS PASTAS PARA O BACKUP

mkdir -p /mnt/bkp_zabbix/etc_zabbix/zabbix_conf_files;
mkdir -p /mnt/bkp_zabbix/usr_sbin/zabbix_server_files;
mkdir -p /mnt/bkp_zabbix/usr_share_doc/zabbix_files;
mkdir -p /mnt/bkp_zabbix/etc_nginx/conf_files;
mkdir -p /mnt/bkp_zabbix/etc_nginx/conf_d/conf_files;
mkdir -p /mnt/bkp_zabbix/php_fpm_d/zabbix_conf_files;
mkdir -p /mnt/bkp_zabbix/zabbixbd/bdzabbix_files;

-COPIAR OS BACKUP´S

cp -rp /etc/zabbix//mnt/bkp_zabbix/etc_zabbix/zabbix_conf_files;
cp -rp /usr/sbin/zabbix/mnt/bkp_zabbix/usr_sbin/zabbix_server_files;
cp -rp /usr/share/doc/zabbix-*/mnt/bkp_zabbix/usr_share_doc/zabbix_files;
cp -rp /etc/nginx/nginx.conf/mnt/bkp_zabbix/etc_nginx/conf_files;
cp -rp /etc/nginx/conf.d/zabbix.conf//mnt/bkp_zabbix/etc_nginx/conf_d/conf_files;
cp -rp /etc/php-fpm.d/mnt/bkp_zabbix/php_fpm_d/zabbix_conf_files;

-FAZER BACKUP DO BANCO
mysqldump -u root -p --single-transaction 'zabbixbd' |gzip > /mnt/bkp_zabbix/zabbixbd/bdzabbix_files/zabbix_bkp.sql.gz

-PARAR O SERVIÇO DO ZABBIX

systemctl stop zabbix-server

-VER A SENHA DO MYSQL

egrep -v '^$|^#' /etc/zabbix/zabbix_server.conf

-ACESSAR O MYSQL E ATIVAR log_bin_trust PARA ALTERAR AS TABELAS DO BANCO DURANTE A ATUALIZAÇÃO.

mysql -uroot -p
password
mysql> set global log_bin_trust_function_creators = 1;
mysql> quit;

-VALIDAR VERSÃO LINUX
cat /etc/redhat-release

-VALIDAR VERSÃO ZABBIX INSTALADO
rpm -qa | grep zabbix

-ACESSAR A PAGINA DA ZABBIX PARA PEGAR O RELEASE DO S.O.
https://www.zabbix.com/download

-INSTALAR O NOVO RELEAsE (exemplo: rocky linux 9)
rpm -Uvh https://repo.zabbix.com/zabbix/6.5/rocky/9/x86_64/zabbix-release-6.5-2.el9.noarch.rpm
dnf clean all

-ATUALIZAR OS PACOTES DO ZABBIX PARA NOVA VERSÃO
dnf update -y

-ATUALIZAR O BANCO DE DADOS PARA A NOVA VERSÃO
systemctl start zabbix-server && tail -f /var/log/zabbix/zabbix_server.log

-PARAR O SERVIÇO DO ZABBIX

systemctl stop zabbix-server

-VER A SENHA DO MYSQL

egrep -v '^$|^#' /etc/zabbix/zabbix_server.conf

-ACESSAR O MYSQL PARA DESATIVAR log_bin_trust

mysql -uroot -p
password
mysql> set global log_bin_trust_function_creators = 0;
mysql> quit;

-INICIAR NOVAMENTE O SERVIÇO DO ZABBIX E VALIDAR ERROS NO LOG
systemctl start zabbix-server && tail -f /var/log/zabbix/zabbix_server.log

PRONTO!

Procedimentos by Mvenzi em 19/04/24 01:37AM

zabbix_upgrade's People

Contributors

mvenzi avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.