This is the documentation page for an unsupported version of Zabbix.
Is this not what you were looking for? Switch to the current version or choose one from the drop-down menu.

settings.getglobal

This method has been removed in Zabbix 5.2.3.

Description

object settings.getglobal(object parameters)

The method allows to retrieve the global parameters of settings object according to the given parameters.

Property Type Description
default_theme string Default theme.
default_timezone string System time zone by default.
show_technical_errors integer Show technical errors (PHP/SQL) to non-Super admin users and to users that are not part of user groups with debug mode enabled.
severity_color_0 string Color for "Not classified" severity as a hexadecimal color code.
severity_color_1 string Color for "Information" severity as a hexadecimal color code.
severity_color_2 string Color for "Warning" severity as a hexadecimal color code.
severity_color_3 string Color for "Average" severity as a hexadecimal color code.
severity_color_4 string Color for "High" severity as a hexadecimal color code.
severity_color_5 string Color for "Disaster" severity as a hexadecimal color code.
custom_color integer Use custom event status colors.
problem_unack_color string Color for unacknowledged PROBLEM events as a hexadecimal color code.
problem_ack_color string Color for acknowledged PROBLEM events as a hexadecimal color code.
ok_unack_color string Color for unacknowledged RESOLVED events as a hexadecimal color code.
ok_ack_color string Color for acknowledged RESOLVED events as a hexadecimal color code.
default_lang string System language by default.
x_frame_options string X-Frame-Options HTTP header.
session_key string Secret key to sign session data.

This method is available to unauthenticated users and must be called without the auth parameter in the JSON-RPC request.

Parameters

(object) Parameters defining the desired output.

The method supports only one parameter.

Parameter Type Description
output query This parameter being common for all get methods described in the reference commentary.

Return values

(object) Returns settings object contained only global parameters.

Examples

Request:

{
           "jsonrpc": "2.0",
           "method": "settings.getglobal",
           "params": {
               "output": "extend"
           },
           "id": 1
       }

Response:

{
           "jsonrpc": "2.0",
           "result": {
               "default_theme": "blue-theme",
               "show_technical_errors": "0",
               "severity_color_0": "97AAB3",
               "severity_color_1": "7499FF",
               "severity_color_2": "FFC859",
               "severity_color_3": "FFA059",
               "severity_color_4": "E97659",
               "severity_color_5": "E45959",
               "custom_color": "0",
               "problem_unack_color": "CC0000",
               "problem_ack_color": "CC0000",
               "ok_unack_color": "009900",
               "ok_ack_color": "009900",
               "default_lang": "en_GB",
               "x_frame_options": "SAMEORIGIN",
               "session_key": "7c1f57f581c75116f358a5a6becf0f5f"
           },
           "id": 1
       }

Source

CSettings::getGlobal() in ui/include/classes/api/services/CSettings.php.