This is a translation of the original English documentation page. Help us make it better.

5 フロントエンドメンテナンスモード

概要

Zabbix Webフロントエンドへのアクセスを禁止するために、一時的に無効にすることができます。これは、ユーザーが開始した変更からZabbixデータベースを保護し、データベースの整合性を保護するのに役立ちます。

Zabbixフロントエンドがメンテナンスモードのときに、Zabbixデータベースを停止してメンテナンスタスクを実行できます。

一部の許可されたIPアドレスのユーザーは、メンテナンスモード中でも通常どおりフロントエンドを操作できます。

設定

メンテナンスモードを有効にするにはmaintenance.inc.phpファイル(WebサーバーのZabbix HTMLドキュメントディレクトリの/confにあります)を変更して、次の行のコメントを解除する必要があります:

// Maintenance mode.
       define('ZBX_DENY_GUI_ACCESS', 1);
       
       // Array of IP addresses, which are allowed to connect to frontend (optional).
       $ZBX_GUI_ACCESS_IP_RANGE = array('127.0.0.1');
       
       // Message shown on warning screen (optional).
       $ZBX_GUI_ACCESS_MESSAGE = 'We are upgrading MySQL database till 15:00. Stay tuned...';

In most cases, the maintenance.inc.php file is located in /conf of the Zabbix HTML document directory on the web server. However, some operating systems and web servers may use a different location.

For example, the location for:

  • SUSE and RedHat is /etc/zabbix/web/maintenance.inc.php.
  • Debian-based systems is /usr/share/zabbix/conf/.

See also Copying PHP files.

Parameter Details
ZBX_DENY_GUI_ACCESS If defined with any value, maintenance mode will be enabled.
To disable maintenance mode, comment out or delete.
ZBX_GUI_ACCESS_IP_RANGE Array of IP addresses, which are allowed to connect to the frontend (optional).
For example:
array('192.168.1.1', '192.168.1.2')
ZBX_GUI_ACCESS_MESSAGE A message to inform users about the maintenance (optional).
If undefined, the default message 'Zabbix is under maintenance' will be used.

表示

メンテナンスモードでZabbixフロントエンドにアクセスしようとすると、次の画面が表示されます。メンテナンス終了後に、ユーザーの介入なしに通常の状態に戻るため、画面は30秒ごとに更新されます。

ZBX_GUI_ACCESS_IP_RANGEで定義されたIPアドレスは、メンテナンス中でも通常どおりフロントエンドにアクセスできます。