実現したいこと
ZabbixサーバーをCentOS上で再起動したらソフトウェアの自動アップデートが始まってしまい、
再起動後、ZabbixのWeb画面が表示できなくなったのを復旧したい。
前提
以下の内容にて、Zabbixを構築して運用しておりました。
仮想環境:VMware ESXi 7.0上のゲストOS
OS:CentOS9 Stream
オープンソースソフトウェア: Zabbix 6.013 LTS
使用データベース: MariaDB 10.5.16-2 (MySQL)
PHPバージョン:8.1.14-1
トラブル
Zabbixのキャッシュサイズを変更する為、OSの再起動をしたころ、CentOS9上のいくつかのソフトウェアアップデートが
掛かってしまいいくつかのソフトウェアがアップデートしてしまいました。
その為、OS再起動後、Web画面でZabbixの画面を立ち上げたところ、
”正常に接続できませんでした”と表示のみで全く表示ができなくなりました。
ログ確認:
/var/log/zabbix/zabbix_server.log
4131:20230310:222523.462 syncing history data in progress... 4131:20230310:222523.464 syncing history data... 100.000000% 4131:20230310:222523.464 syncing history data done 1857:20230310:222524.477 syncing trend data... 1857:20230310:222527.932 syncing trend data done 2769:20230310:222528.068 HA manager has been stopped 1857:20230310:222528.072 Zabbix Server stopped. Zabbix 6.0.14 (revision 3f184b456c7). 6811:20230310:222528.082 Starting Zabbix Server. Zabbix 6.0.14 (revision 3f184b456c7). 6811:20230310:222528.083 ****** Enabled features ****** 6811:20230310:222528.083 SNMP monitoring: YES 6811:20230310:222528.083 IPMI monitoring: YES 6811:20230310:222528.083 Web monitoring: YES 6811:20230310:222528.083 VMware monitoring: YES 6811:20230310:222528.083 SMTP authentication: YES 6811:20230310:222528.083 ODBC: YES 6811:20230310:222528.083 SSH support: YES 6811:20230310:222528.083 IPv6 support: YES 6811:20230310:222528.083 TLS support: YES 6811:20230310:222528.083 ****************************** 6811:20230310:222528.083 using configuration file: /etc/zabbix/zabbix_server.conf 6811:20230310:222528.128 current database version (mandatory/optional): 06000000/06000018 6811:20230310:222528.128 required mandatory version: 06000000 6812:20230310:222528.131 starting HA manager 6812:20230310:222528.165 HA manager started in active mode 6811:20230310:222528.166 server #0 started [main process] 6814:20230310:222528.167 server #2 started [configuration syncer #1] 6813:20230310:222528.169 server #1 started [service manager #1] ・・・ 6851:20230310:222601.085 cannot send list of active checks to "127.0.0.1": host [kanshi-dv.pmsk.jp] not found ・・・ item "SW_Power5548:net.if.out.errors[ifOutErrors.50]" became not supported: No Such Instance currently exists cannot send list of active checks to "192.168.44.21": host [BK01] not found cannot send list of active checks to "127.0.0.1": host [kanshi-dv.pmsk.jp] not found cannot send list of active checks to "192.168.1.6": host [log1] not found cannot send list of active checks to "192.168.44.21": host [BK01] not found cannot send list of active checks to "127.0.0.1": host [kanshi-dv.pmsk.jp] not found item "SW_Power5548:net.if.in.errors[ifInErrors.40]" became supported cannot send list of active checks to "192.168.1.6": host [log1] not found cannot send list of active checks to "192.168.44.21": host [BK01] not found cannot send list of active checks to "127.0.0.1": host [kanshi-dv.pmsk.jp] not found cannot send list of active checks to "192.168.1.6": host [log1] not found item "SW_Power5548:net.if.in.errors[ifInErrors.21]" became supported item "SW_Power5548:net.if.in.errors[ifInErrors.24]" became not supported: No Such Instance currently exists at this OID item "SW_Powert5548:net.if.in.errors[ifInErrors.32]" became supported item "SW_Powert5548:net.if.in.errors[ifInErrors.2]" became not supported: No Such Instance currently exists at this OID item "SW_Power5548:net.if.in.errors[ifInErrors.50]" became supported item "SW_Power5548:net.if.in.errors[ifInErrors.101000]" became supported item "SW_Power5548:net.if.out.errors[ifOutErrors.49]" became not supported: No Such Instance currently exists at this OID
/var/log/php-fpm/error.log
NOTICE: [pool zabbix] child 1014969 exited with code 0 after 8249.996829 seconds from start NOTICE: [pool zabbix] child 1023984 started NOTICE: [pool zabbix] child 1015744 exited with code 0 after 8219.727031 seconds from start NOTICE: [pool zabbix] child 1024703 started NOTICE: [pool zabbix] child 1017420 exited with code 0 after 7748.745801 seconds from start NOTICE: [pool zabbix] child 1025867 started NOTICE: [pool zabbix] child 1017433 exited with code 0 after 7737.893720 seconds from start NOTICE: [pool zabbix] child 1025870 started NOTICE: [pool zabbix] child 1018549 exited with code 0 after 7854.658496 seconds from start NOTICE: [pool zabbix] child 1027115 started NOTICE: [pool zabbix] child 1018676 exited with code 0 after 7799.891319 seconds from start NOTICE: [pool zabbix] child 1027177 started NOTICE: [pool zabbix] child 1018608 exited with code 0 after 7980.378488 seconds from start
ZabbixやPHPやMySQLの現在のバージョン
zabbix-agent2-plugin-postgresql-6.0.13-release1.el9.x86_64 zabbix-agent2-plugin-mongodb-6.0.13-release1.el9.x86_64 zabbix-web-6.0.14-release1.el9.noarch zabbix-web-mysql-6.0.14-release1.el9.noarch zabbix-web-deps-6.0.14-release1.el9.noarch zabbix-apache-conf-6.0.14-release1.el9.noarch zabbix-server-mysql-6.0.14-release1.el9.x86_64 zabbix-agent2-6.0.14-release1.el9.x86_64 zabbix-selinux-policy-6.0.14-release1.el9.x86_64 zabbix-web-japanese-6.0.14-release1.el9.noarch zabbix-sql-scripts-6.0.14-release1.el9.noarch zabbix-release-6.0-4.el9.noarch mariadb-connector-c-config-3.2.6-1.el9.noarch mariadb-common-10.5.16-2.el9.x86_64 mariadb-connector-c-3.2.6-1.el9.x86_64 mariadb-errmsg-10.5.16-2.el9.x86_64 mariadb-backup-10.5.16-2.el9.x86_64 mariadb-gssapi-server-10.5.16-2.el9.x86_64 mariadb-server-utils-10.5.16-2.el9.x86_64 mariadb-server-10.5.16-2.el9.x86_64 mariadb-10.5.16-2.el9.x86_64 php-common-8.1.14-1.module_el9+260+8424407f.x86_64 php-bcmath-8.1.14-1.module_el9+260+8424407f.x86_64 php-fpm-8.1.14-1.module_el9+260+8424407f.x86_64 php-gd-8.1.14-1.module_el9+260+8424407f.x86_64 php-ldap-8.1.14-1.module_el9+260+8424407f.x86_64 php-mbstring-8.1.14-1.module_el9+260+8424407f.x86_64 php-pdo-8.1.14-1.module_el9+260+8424407f.x86_64 php-mysqlnd-8.1.14-1.module_el9+260+8424407f.x86_64 php-xml-8.1.14-1.module_el9+260+8424407f.x86_64 php-cli-8.1.14-1.module_el9+260+8424407f.x86_64
MySQLには、以下のように正常にログインができます。
# mysql Welcome to the MariaDB monitor. Commands end with ; or \g. Your MariaDB connection id is 132 Server version: 10.5.16-MariaDB MariaDB Server Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. MariaDB [(none)]>
対応したいこと
この状態・ログを確認してもZabbix・PHP・データベースは"start"となりエラーは無いよう起動しておりますが
ソフトウェアをアップデートした事により、データーベースに何らかの整合性ができなくなり、
cannot send list of active checks、host [xxx] not found、became not supported: No Such Instance currently exists at this OID等で
サポートできなくなってエラーが出ている状況だと思います。
このような状態になった場合はどのようにして復旧を試みれば良いのでしょうか?
発生している問題・エラーメッセージ
cannot send list of active checks to "xx.xx.xx.xx": host [xxxx] not found
became not supported: No Such Instance currently exists at this OID
試したこと
ログによる原因調査
Zabbixを6.013から6.014へアップデート
データベースのバックアップをして、MySQLの再インストール、リストア
・・・何を他にやれば良いのか分からず・・・。
補足情報(FW/ツールのバージョンなど)
今まで問題なくZabbixが起動できておりました。初回インストール時(初期ウィザード)上、
何もエラーが出ずに起動できておりました。
ご回答がつきましたら、情報が必要であれば随時追記します。
あなたの回答
tips
プレビュー