Zabbix Documentation 3.0

2.23.04.04.2 (current)In development:4.4 (devel)Unsupported:1.82.02.43.23.4

User Tools

Site Tools


Sidebar

manual:web_interface:definitions

Table of Contents

6 Definitions

Overview

While many things in the frontend can be configured using the frontend itself, some customisations are currently only possible by editing a definitions file.

This file is defines.inc.php located in /include of the Zabbix HTML document directory.

Parameters

Parameters in this file that could be of interest to users:

  • ZBX_LOGIN_ATTEMPTS

Number of unsuccessful login attempts that is allowed to an existing system user before a login block in applied (see ZBX_LOGIN_BLOCK). By default 5 attempts. Once the set number of login attempts is tried unsuccessfully, each additional unsuccessful attempt results in a login block. Used with internal authentication only.

  • ZBX_LOGIN_BLOCK

Number of seconds for blocking a user from accessing Zabbix frontend after a number of unsuccessful login attempts (see ZBX_LOGIN_ATTEMPTS). By default 30 seconds. Used with internal authentication only.

  • ZBX_PERIOD_DEFAULT

Default graph period, in seconds. One hour by default.

  • ZBX_MIN_PERIOD

Minimum graph period, in seconds. One hour by default.

  • ZBX_MAX_PERIOD

Maximum graph period, in seconds. Two years by default since 1.6.7, one year before that.

  • ZBX_HISTORY_PERIOD

The maximum period to display history data in Latest data, Overview pages and Data overview screen element in seconds. By default set to 86400 seconds (24 hours). Unlimited period, if set to 0 seconds.

This constant value also affects how far in the past the value is searched when {ITEM.VALUE} macro in trigger name is resolved (since Zabbix 3.0.20).

  • GRAPH_YAXIS_SIDE_DEFAULT

Default location of Y axis in simple graphs and default value for drop down box when adding items to custom graphs. Possible values: 0 - left, 1 - right.

Default: 0

  • DEFAULT_LATEST_ISSUES_CNT

Controls how many issues are shown in the dashboard's Last n issues widget. By default 20 issues are shown.

  • SCREEN_REFRESH_TIMEOUT (available since 2.0.4)

Used in screens and defines the timeout seconds for a screen element update. When the defined number of seconds after launching an update pass and the screen element has still not been updated, the screen element will be darkened.

Default: 30

  • SCREEN_REFRESH_RESPONSIVENESS (available since 2.0.4)

Used in screens and defines the number of seconds after which query skipping will be switched off. Otherwise, if a screen element is in update status all queries on update are skipped until a response is received. With this parameter in use, another update query might be sent after N seconds without having to wait for the response to the first one.

Default: 10

  • QUEUE_DETAIL_ITEM_COUNT

Defines retrieval limit of the total queued items. In Zabbix 3.0.8 may be set higher than default value.

Default: 500

  • VALIDATE_URI_SCHEMES (available since 3.0.14)

Validate a URI against the scheme whitelist defined in ZBX_URI_VALID_SCHEMES.

Default: true

  • ZBX_URI_VALID_SCHEMES (available since 3.0.11)

A comma-separated list of allowed schemes.

Default: http,https,ftp,file,mailto,tel,ssh

  • ZBX_SHOW_TECHNICAL_ERRORS (available since 3.0.13)

Show technical errors (PHP/SQL) to non-Zabbix Super admin users and to users that are not part of user groups with debug mode enabled.

Default: false