zabbix8 にバージョンアップしたらzabbixが起動しない

前回の記事(Zabbix 7.4 を Zabbix 8.0 にバージョンアップする)で、zabbix8にバージョンアップしたらzabbix-agent2 と zabbix-serverも起動しなくなりました。その場合の対策を以下の記事にまとめておきます

zabbix-agent2が起動しない(zabbix-agent2-plugin-nvidia-gpu)

zabbix-agent2を起動すると以下のエラーで起動しません

$ sudo /usr/sbin/zabbix_agent2 -c /etc/zabbix/zabbix_agent2.conf -t agent.ping
zabbix_agent2 [2254028]: ERROR: Cannot register plugins: failed to register metrics of plugin "NVIDIA": failed plugin registration: 
Failed to validate plugin: Failed to validate nvml runner: failed to create new nvml runner: NVML error: 
NVML Shared Library couldn't be found or loaded.

「Nvidia GPU プラグイン(zabbix-agent2-plugin-nvidia-gpu)」が GPU のないサーバーにインストールされると初期化に失敗するケースや、
プラグインの実行権限・設定ファイルの不整合でエラーが発生します。

インストールしたサーバーはクラウドにあるサーバーでおそらくGPUなんか搭載していないので、このエラーで起動しなかったので、該当のプラグインを削除します

# zabbix-agent2-plugin-nvidia-gpu のプラグインを削除します
$ sudo dnf remove zabbix-agent2-plugin-nvidia-gpu

# zabbix-agent2を起動します
$ sudo systemctl start zabbix-agent2

zabbix-serverがMariaDBのバージョンが古く起動しない

zabbix8 で使用するデータベースが、MariaDBの場合は対応バージョンは「MariaDB 10.11.0以上」となり、RHEL8系の「MariaDB 10.5系」ではサポート外となり以下のような原因で起動しなかったです

$ sudo tail -n 30 /var/log/zabbix/zabbix_server.log
2254708:20261118:103657.589 ==================================================
2254708:20261118:103657.589 Zabbix Server stopped. Zabbix 8.0.0 (revision c81e276e505).
2254716:20261118:103700.030 Starting Zabbix Server. Zabbix 8.0.0 (revision c81e276e505).
2254716:20261118:103700.030 ****** Enabled features ******
2254716:20261118:103700.030 SNMP monitoring:           YES
2254716:20261118:103700.030 IPMI monitoring:           YES
2254716:20261118:103700.030 Web monitoring:            YES
2254716:20261118:103700.030 VMware monitoring:         YES
2254716:20261118:103700.030 SMTP authentication:       YES
2254716:20261118:103700.030 ODBC:                      YES
2254716:20261118:103700.030 SSH support:               YES
2254716:20261118:103700.030 IPv6 support:              YES
2254716:20261118:103700.030 TLS support:               YES
2254716:20261118:103700.030 ******************************
2254716:20261118:103700.030 using configuration file: /etc/zabbix/zabbix_server.conf
2254716:20261118:103700.042 ==================================================
2254716:20261118:103700.042 Unable to start Zabbix server due to unsupported MariaDB database version (10.5.22).
2254716:20261118:103700.042 Must be at least (10.11.0).
2254716:20261118:103700.042 Use of supported database version is highly recommended.
2254716:20261118:103700.042 Override by setting AllowUnsupportedDBVersions=1 in Zabbix server configuration file at your own risk.
2254716:20261118:103700.042 ==================================================
2254716:20261118:103700.043 Zabbix Server stopped. Zabbix 8.0.0 (revision c81e276e505).

ログに書いてますが、「Override by setting AllowUnsupportedDBVersions=1 in Zabbix server configuration file at your own risk.」とあります。

今回はログのメッセージを頼りにして古いMariaDBでも起動するようにします。根本的に解決するにはMariaDB 10.11以上にするのが良いですが今回は実施しません

# AllowUnsupportedDBVersions=1に変更します
$ sudo vim /etc/zabbix/zabbix_server.conf
AllowUnsupportedDBVersions=1

# Zabbixサーバー起動
$ sudo systemctl start zabbix-server

\ 最新情報をチェック /

コメントを残す

メールアドレスが公開されることはありません。 ※ が付いている欄は必須項目です