1<?php 2/* 3** Zabbix 4** Copyright (C) 2001-2021 Zabbix SIA 5** 6** This program is free software; you can redistribute it and/or modify 7** it under the terms of the GNU General Public License as published by 8** the Free Software Foundation; either version 2 of the License, or 9** (at your option) any later version. 10** 11** This program is distributed in the hope that it will be useful, 12** but WITHOUT ANY WARRANTY; without even the implied warranty of 13** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14** GNU General Public License for more details. 15** 16** You should have received a copy of the GNU General Public License 17** along with this program; if not, write to the Free Software 18** Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 19**/ 20 21define('ZABBIX_VERSION', '5.4.9'); 22define('ZABBIX_API_VERSION', '5.4.9'); 23define('ZABBIX_EXPORT_VERSION', '5.4'); 24 25define('ZABBIX_DB_VERSION', 5040000); 26 27define('DB_VERSION_SUPPORTED', 0); 28define('DB_VERSION_LOWER_THAN_MINIMUM', 1); 29define('DB_VERSION_HIGHER_THAN_MAXIMUM', 2); 30define('DB_VERSION_FAILED_TO_RETRIEVE', 3); 31 32define('ZABBIX_COPYRIGHT_FROM', '2001'); 33define('ZABBIX_COPYRIGHT_TO', '2021'); 34 35define('ZBX_BCRYPT_COST', 10); 36define('ZBX_MD5_SIZE', 32); 37 38define('ZBX_SESSION_NAME', 'zbx_session'); // Session cookie name for Zabbix front-end. 39 40define('ZBX_KIBIBYTE', '1024'); 41define('ZBX_MEBIBYTE', '1048576'); 42define('ZBX_GIBIBYTE', '1073741824'); 43define('ZBX_TEBIBYTE', '1099511627776'); 44 45define('ZBX_MIN_PERIOD', 60); // 1 minute 46 47define('ZBX_MIN_INT32', -2147483648); 48define('ZBX_MAX_INT32', 2147483647); 49define('ZBX_MAX_UINT64', '18446744073709551615'); 50 51// Double precision 64-bit float. 52define('ZBX_FLOAT_DIG', PHP_FLOAT_DIG); 53define('ZBX_FLOAT_MIN', PHP_FLOAT_MIN); 54define('ZBX_FLOAT_MAX', PHP_FLOAT_MAX); 55 56define('ZBX_MAX_DATE', ZBX_MAX_INT32); // 19 Jan 2038 03:14:07 UTC 57define('ZBX_MIN_TIMESHIFT', -788400000); // Min valid timeshift value in seconds (25 years). 58define('ZBX_MAX_TIMESHIFT', 788400000); // Max valid timeshift value in seconds (25 years). 59 60define('ZBX_MAX_GRAPHS_PER_PAGE', 20); 61 62// Date and time format separators must be synced with setSDateFromOuterObj() in class.calendar.js. 63define('ZBX_FULL_DATE_TIME', 'Y-m-d H:i:s'); // Time selector full date and time presentation format. 64define('ZBX_DATE_TIME', 'Y-m-d H:i'); // Time selector date and time without seconds presentation format. 65define('ZBX_DATE', 'Y-m-d'); // Time selector date without minutes and seconds presentation format. 66 67// TTL timeout in seconds used to invalidate data cache of Vault response. Set 0 to disable Vault response caching. 68define('ZBX_DATA_CACHE_TTL', 60); 69 70define('ZBX_HISTORY_SOURCE_ELASTIC', 'elastic'); 71define('ZBX_HISTORY_SOURCE_SQL', 'sql'); 72 73define('ELASTICSEARCH_RESPONSE_PLAIN', 0); 74define('ELASTICSEARCH_RESPONSE_AGGREGATION', 1); 75define('ELASTICSEARCH_RESPONSE_DOCUMENTS', 2); 76 77define('ZBX_FONTPATH', realpath('assets/fonts')); // where to search for font (GD > 2.0.18) 78define('ZBX_GRAPH_FONT_NAME', 'DejaVuSans'); // font file name 79define('ZBX_GRAPH_LEGEND_HEIGHT', 120); // when graph height is less then this value, some legend will not show up 80 81define('GRAPH_YAXIS_SIDE_DEFAULT', 0); // 0 - LEFT SIDE, 1 - RIGHT SIDE 82 83define('ZBX_MAX_IMAGE_SIZE', ZBX_MEBIBYTE); 84 85define('ZBX_UNITS_ROUNDOFF_SUFFIXED', 2); 86define('ZBX_UNITS_ROUNDOFF_UNSUFFIXED', 4); 87 88define('ZBX_DEFAULT_INTERVAL', '1-7,00:00-24:00'); 89 90define('ZBX_SCRIPT_TYPE_CUSTOM_SCRIPT', 0); 91define('ZBX_SCRIPT_TYPE_IPMI', 1); 92define('ZBX_SCRIPT_TYPE_SSH', 2); 93define('ZBX_SCRIPT_TYPE_TELNET', 3); 94define('ZBX_SCRIPT_TYPE_WEBHOOK', 5); 95 96define('ZBX_SCRIPT_SCOPE_ACTION', 0x1); 97define('ZBX_SCRIPT_SCOPE_HOST', 0x2); 98define('ZBX_SCRIPT_SCOPE_EVENT', 0x4); 99 100define('ZBX_SEARCH_TYPE_STRICT', 0); 101define('ZBX_SEARCH_TYPE_PATTERN', 1); 102 103define('ZBX_SCRIPT_EXECUTE_ON_AGENT', 0); 104define('ZBX_SCRIPT_EXECUTE_ON_SERVER', 1); 105define('ZBX_SCRIPT_EXECUTE_ON_PROXY', 2); 106 107define('ZBX_FLAG_DISCOVERY_NORMAL', 0x0); 108define('ZBX_FLAG_DISCOVERY_RULE', 0x1); 109define('ZBX_FLAG_DISCOVERY_PROTOTYPE', 0x2); 110define('ZBX_FLAG_DISCOVERY_CREATED', 0x4); 111 112define('EXTACK_OPTION_ALL', 0); 113define('EXTACK_OPTION_UNACK', 1); 114define('EXTACK_OPTION_BOTH', 2); 115 116define('WIDGET_PROBLEMS_BY_SV_SHOW_GROUPS', 0); 117define('WIDGET_PROBLEMS_BY_SV_SHOW_TOTALS', 1); 118 119define('TRIGGERS_OPTION_RECENT_PROBLEM', 1); 120define('TRIGGERS_OPTION_ALL', 2); 121define('TRIGGERS_OPTION_IN_PROBLEM', 3); 122 123define('ZBX_FONT_NAME', 'DejaVuSans'); 124 125define('ZBX_AUTH_INTERNAL', 0); 126define('ZBX_AUTH_LDAP', 1); 127define('ZBX_AUTH_HTTP_DISABLED', 0); 128define('ZBX_AUTH_HTTP_ENABLED', 1); 129define('ZBX_AUTH_LDAP_DISABLED', 0); 130define('ZBX_AUTH_LDAP_ENABLED', 1); 131define('ZBX_AUTH_SAML_DISABLED', 0); 132define('ZBX_AUTH_SAML_ENABLED', 1); 133define('ZBX_AUTH_FORM_ZABBIX', 0); 134define('ZBX_AUTH_FORM_HTTP', 1); 135define('ZBX_AUTH_CASE_INSENSITIVE', 0); 136define('ZBX_AUTH_CASE_SENSITIVE', 1); 137 138define('ZBX_DB_MYSQL', 'MYSQL'); 139define('ZBX_DB_ORACLE', 'ORACLE'); 140define('ZBX_DB_POSTGRESQL', 'POSTGRESQL'); 141 142define('ZBX_DB_EXTENSION_TIMESCALEDB', 'timescaledb'); 143 144define('ZBX_DB_MAX_ID', '9223372036854775807'); 145 146// maximum number of records for create() or update() API calls 147define('ZBX_DB_MAX_INSERTS', 10000); 148 149// Default db and field character set (MYSQL & POSTGRESQL) 150define('ZBX_DB_POSTGRESQL_ALLOWED_CHARSET', 'UTF8'); 151define('ZBX_DB_MYSQL_ALLOWED_CHARSETS', ['UTF8', 'UTF8MB3']); 152define('ZBX_DB_MYSQL_ALLOWED_COLLATIONS', ['utf8_bin', 'utf8mb3_bin']); 153 154// Default db defines for Oracle DB 155define('ORACLE_MAX_STRING_SIZE', 4000); 156define('ORACLE_UTF8_CHARSET', 'AL32UTF8'); 157define('ORACLE_CESU8_CHARSET', 'UTF8'); 158 159define('DB_STORE_CREDS_CONFIG', 0); 160define('DB_STORE_CREDS_VAULT', 1); 161 162define('PAGE_TYPE_HTML', 0); 163define('PAGE_TYPE_IMAGE', 1); 164define('PAGE_TYPE_JS', 3); // javascript 165define('PAGE_TYPE_CSS', 4); 166define('PAGE_TYPE_HTML_BLOCK', 5); // simple block of html (as text) 167define('PAGE_TYPE_JSON', 6); // simple JSON 168define('PAGE_TYPE_JSON_RPC', 7); // api call 169define('PAGE_TYPE_TEXT', 9); // simple text 170define('PAGE_TYPE_TEXT_RETURN_JSON', 11); // input plaintext output json 171 172define('ZBX_SESSION_ACTIVE', 0); 173define('ZBX_SESSION_PASSIVE', 1); 174 175define('T_ZBX_STR', 0); 176define('T_ZBX_INT', 1); 177define('T_ZBX_DBL', 2); 178define('T_ZBX_RANGE_TIME', 3); 179define('T_ZBX_TU', 12); 180define('T_ZBX_ABS_TIME', 13); 181 182define('O_MAND', 0); 183define('O_OPT', 1); 184define('O_NO', 2); 185 186define('P_SYS', 0x0001); 187define('P_UNSET_EMPTY', 0x0002); 188define('P_CRLF', 0x0004); 189define('P_ACT', 0x0010); 190define('P_NZERO', 0x0020); 191define('P_NO_TRIM', 0x0040); 192define('P_ALLOW_USER_MACRO', 0x0080); 193define('P_ALLOW_LLD_MACRO', 0x0100); 194 195// misc parameters 196define('IMAGE_FORMAT_PNG', 'PNG'); 197define('IMAGE_FORMAT_JPEG', 'JPEG'); 198define('IMAGE_FORMAT_TEXT', 'JPEG'); 199define('IMAGE_FORMAT_GIF', 'GIF'); 200 201define('IMAGE_TYPE_ICON', 1); 202define('IMAGE_TYPE_BACKGROUND', 2); 203 204define('ITEM_CONVERT_WITH_UNITS', 0); // - do not convert empty units 205define('ITEM_CONVERT_NO_UNITS', 1); // - no units 206 207define('ZBX_SORT_UP', 'ASC'); 208define('ZBX_SORT_DOWN', 'DESC'); 209 210// Maximum number of tags to display. 211define('ZBX_TAG_COUNT_DEFAULT', 3); 212 213define('ZBX_TCP_HEADER_DATA', "ZBXD"); 214define('ZBX_TCP_HEADER_VERSION', "\1"); 215define('ZBX_TCP_HEADER', ZBX_TCP_HEADER_DATA.ZBX_TCP_HEADER_VERSION); 216define('ZBX_TCP_HEADER_LEN', 5); 217define('ZBX_TCP_DATALEN_LEN', 8); 218 219define('AUDIT_ACTION_ADD', 0); 220define('AUDIT_ACTION_UPDATE', 1); 221define('AUDIT_ACTION_DELETE', 2); 222define('AUDIT_ACTION_LOGIN', 3); 223define('AUDIT_ACTION_LOGOUT', 4); 224define('AUDIT_ACTION_ENABLE', 5); 225define('AUDIT_ACTION_DISABLE', 6); 226define('AUDIT_ACTION_EXECUTE', 7); 227 228define('AUDIT_RESOURCE_USER', 0); 229define('AUDIT_RESOURCE_ZABBIX_CONFIG', 2); // Currently not used but need for compatibility with old audit records. 230define('AUDIT_RESOURCE_MEDIA_TYPE', 3); 231define('AUDIT_RESOURCE_HOST', 4); 232define('AUDIT_RESOURCE_ACTION', 5); 233define('AUDIT_RESOURCE_GRAPH', 6); 234define('AUDIT_RESOURCE_GRAPH_ELEMENT', 7); 235define('AUDIT_RESOURCE_USER_GROUP', 11); 236define('AUDIT_RESOURCE_TRIGGER', 13); 237define('AUDIT_RESOURCE_HOST_GROUP', 14); 238define('AUDIT_RESOURCE_ITEM', 15); 239define('AUDIT_RESOURCE_IMAGE', 16); 240define('AUDIT_RESOURCE_VALUE_MAP', 17); 241define('AUDIT_RESOURCE_IT_SERVICE', 18); 242define('AUDIT_RESOURCE_MAP', 19); 243define('AUDIT_RESOURCE_SCENARIO', 22); 244define('AUDIT_RESOURCE_DISCOVERY_RULE', 23); 245define('AUDIT_RESOURCE_SCRIPT', 25); 246define('AUDIT_RESOURCE_PROXY', 26); 247define('AUDIT_RESOURCE_MAINTENANCE', 27); 248define('AUDIT_RESOURCE_REGEXP', 28); 249define('AUDIT_RESOURCE_MACRO', 29); 250define('AUDIT_RESOURCE_TEMPLATE', 30); 251define('AUDIT_RESOURCE_TRIGGER_PROTOTYPE', 31); 252define('AUDIT_RESOURCE_ICON_MAP', 32); 253define('AUDIT_RESOURCE_DASHBOARD', 33); 254define('AUDIT_RESOURCE_CORRELATION', 34); 255define('AUDIT_RESOURCE_GRAPH_PROTOTYPE', 35); 256define('AUDIT_RESOURCE_ITEM_PROTOTYPE', 36); 257define('AUDIT_RESOURCE_HOST_PROTOTYPE', 37); 258define('AUDIT_RESOURCE_AUTOREGISTRATION', 38); 259define('AUDIT_RESOURCE_MODULE', 39); 260define('AUDIT_RESOURCE_SETTINGS', 40); 261define('AUDIT_RESOURCE_HOUSEKEEPING', 41); 262define('AUDIT_RESOURCE_AUTHENTICATION', 42); 263define('AUDIT_RESOURCE_TEMPLATE_DASHBOARD', 43); 264define('AUDIT_RESOURCE_USER_ROLE', 44); 265define('AUDIT_RESOURCE_AUTH_TOKEN', 45); 266define('AUDIT_RESOURCE_SCHEDULED_REPORT', 46); 267 268define('CONDITION_TYPE_HOST_GROUP', 0); 269define('CONDITION_TYPE_HOST', 1); 270define('CONDITION_TYPE_TRIGGER', 2); 271define('CONDITION_TYPE_TRIGGER_NAME', 3); 272define('CONDITION_TYPE_TRIGGER_SEVERITY', 4); 273define('CONDITION_TYPE_TIME_PERIOD', 6); 274define('CONDITION_TYPE_DHOST_IP', 7); 275define('CONDITION_TYPE_DSERVICE_TYPE', 8); 276define('CONDITION_TYPE_DSERVICE_PORT', 9); 277define('CONDITION_TYPE_DSTATUS', 10); 278define('CONDITION_TYPE_DUPTIME', 11); 279define('CONDITION_TYPE_DVALUE', 12); 280define('CONDITION_TYPE_TEMPLATE', 13); 281define('CONDITION_TYPE_EVENT_ACKNOWLEDGED', 14); 282define('CONDITION_TYPE_SUPPRESSED', 16); 283define('CONDITION_TYPE_DRULE', 18); 284define('CONDITION_TYPE_DCHECK', 19); 285define('CONDITION_TYPE_PROXY', 20); 286define('CONDITION_TYPE_DOBJECT', 21); 287define('CONDITION_TYPE_HOST_NAME', 22); 288define('CONDITION_TYPE_EVENT_TYPE', 23); 289define('CONDITION_TYPE_HOST_METADATA', 24); 290define('CONDITION_TYPE_EVENT_TAG', 25); 291define('CONDITION_TYPE_EVENT_TAG_VALUE', 26); 292 293define('CONDITION_OPERATOR_EQUAL', 0); 294define('CONDITION_OPERATOR_NOT_EQUAL', 1); 295define('CONDITION_OPERATOR_LIKE', 2); 296define('CONDITION_OPERATOR_NOT_LIKE', 3); 297define('CONDITION_OPERATOR_IN', 4); 298define('CONDITION_OPERATOR_MORE_EQUAL', 5); 299define('CONDITION_OPERATOR_LESS_EQUAL', 6); 300define('CONDITION_OPERATOR_NOT_IN', 7); 301define('CONDITION_OPERATOR_REGEXP', 8); 302define('CONDITION_OPERATOR_NOT_REGEXP', 9); 303define('CONDITION_OPERATOR_YES', 10); 304define('CONDITION_OPERATOR_NO', 11); 305define('CONDITION_OPERATOR_EXISTS', 12); 306define('CONDITION_OPERATOR_NOT_EXISTS', 13); 307 308// correlation statuses 309define('ZBX_CORRELATION_ENABLED', 0); 310define('ZBX_CORRELATION_DISABLED', 1); 311 312// correlation condition types 313define('ZBX_CORR_CONDITION_OLD_EVENT_TAG', 0); 314define('ZBX_CORR_CONDITION_NEW_EVENT_TAG', 1); 315define('ZBX_CORR_CONDITION_NEW_EVENT_HOSTGROUP', 2); 316define('ZBX_CORR_CONDITION_EVENT_TAG_PAIR', 3); 317define('ZBX_CORR_CONDITION_OLD_EVENT_TAG_VALUE', 4); 318define('ZBX_CORR_CONDITION_NEW_EVENT_TAG_VALUE', 5); 319 320// correlation operation types 321define('ZBX_CORR_OPERATION_CLOSE_OLD', 0); 322define('ZBX_CORR_OPERATION_CLOSE_NEW', 1); 323 324// event type action condition values 325define('EVENT_TYPE_ITEM_NOTSUPPORTED', 0); 326define('EVENT_TYPE_LLDRULE_NOTSUPPORTED', 2); 327define('EVENT_TYPE_TRIGGER_UNKNOWN', 4); 328 329define('HOST_STATUS_MONITORED', 0); 330define('HOST_STATUS_NOT_MONITORED', 1); 331define('HOST_STATUS_TEMPLATE', 3); 332define('HOST_STATUS_PROXY_ACTIVE', 5); 333define('HOST_STATUS_PROXY_PASSIVE', 6); 334 335define('HOST_DISCOVER', 0); 336define('HOST_NO_DISCOVER', 1); 337 338define('HOST_ENCRYPTION_NONE', 1); 339define('HOST_ENCRYPTION_PSK', 2); 340define('HOST_ENCRYPTION_CERTIFICATE', 4); 341 342define('HOST_COMPRESSION_ON', 1); 343 344define('PSK_MIN_LEN', 32); 345 346define('HOST_MAINTENANCE_STATUS_OFF', 0); 347define('HOST_MAINTENANCE_STATUS_ON', 1); 348 349define('INTERFACE_SECONDARY', 0); 350define('INTERFACE_PRIMARY', 1); 351 352define('INTERFACE_USE_DNS', 0); 353define('INTERFACE_USE_IP', 1); 354 355define('INTERFACE_TYPE_ANY', -1); 356define('INTERFACE_TYPE_UNKNOWN', 0); 357define('INTERFACE_TYPE_AGENT', 1); 358define('INTERFACE_TYPE_SNMP', 2); 359define('INTERFACE_TYPE_IPMI', 3); 360define('INTERFACE_TYPE_JMX', 4); 361 362define('HOST_PROT_INTERFACES_INHERIT', 0); 363define('HOST_PROT_INTERFACES_CUSTOM', 1); 364 365define('SNMP_BULK_DISABLED', 0); 366define('SNMP_BULK_ENABLED', 1); 367 368define('MAINTENANCE_STATUS_ACTIVE', 0); 369define('MAINTENANCE_STATUS_APPROACH', 1); 370define('MAINTENANCE_STATUS_EXPIRED', 2); 371 372// Modules. 373define('MODULE_STATUS_DISABLED', 0); 374define('MODULE_STATUS_ENABLED', 1); 375 376define('INTERFACE_AVAILABLE_UNKNOWN', 0); 377define('INTERFACE_AVAILABLE_TRUE', 1); 378define('INTERFACE_AVAILABLE_FALSE', 2); 379define('INTERFACE_AVAILABLE_MIXED', 3); 380 381// Logo. 382define('LOGO_TYPE_NORMAL', 0); 383define('LOGO_TYPE_SIDEBAR', 1); 384define('LOGO_TYPE_SIDEBAR_COMPACT', 2); 385 386define('MAINTENANCE_TAG_EVAL_TYPE_AND_OR', 0); 387define('MAINTENANCE_TAG_EVAL_TYPE_OR', 2); 388define('MAINTENANCE_TAG_OPERATOR_EQUAL', 0); 389define('MAINTENANCE_TAG_OPERATOR_LIKE', 2); 390 391define('MAINTENANCE_TYPE_NORMAL', 0); 392define('MAINTENANCE_TYPE_NODATA', 1); 393 394define('TIMEPERIOD_TYPE_ONETIME', 0); 395define('TIMEPERIOD_TYPE_HOURLY', 1); 396define('TIMEPERIOD_TYPE_DAILY', 2); 397define('TIMEPERIOD_TYPE_WEEKLY', 3); 398define('TIMEPERIOD_TYPE_MONTHLY', 4); 399define('TIMEPERIOD_TYPE_YEARLY', 5); 400 401// report periods 402define('REPORT_PERIOD_TODAY', 0); 403define('REPORT_PERIOD_YESTERDAY', 1); 404define('REPORT_PERIOD_CURRENT_WEEK', 2); 405define('REPORT_PERIOD_CURRENT_MONTH', 3); 406define('REPORT_PERIOD_CURRENT_YEAR', 4); 407define('REPORT_PERIOD_LAST_WEEK', 5); 408define('REPORT_PERIOD_LAST_MONTH', 6); 409define('REPORT_PERIOD_LAST_YEAR', 7); 410 411// scheduled reports 412define('ZBX_REPORT_FILTER_SHOW_ALL', 0); 413define('ZBX_REPORT_FILTER_SHOW_MY', 1); 414 415define('ZBX_REPORT_STATUS_ENABLED', 0); 416define('ZBX_REPORT_STATUS_DISABLED', 1); 417define('ZBX_REPORT_STATUS_EXPIRED', 2); 418 419define('ZBX_REPORT_PERIOD_DAY', 0); 420define('ZBX_REPORT_PERIOD_WEEK', 1); 421define('ZBX_REPORT_PERIOD_MONTH', 2); 422define('ZBX_REPORT_PERIOD_YEAR', 3); 423 424define('ZBX_REPORT_CYCLE_DAILY', 0); 425define('ZBX_REPORT_CYCLE_WEEKLY', 1); 426define('ZBX_REPORT_CYCLE_MONTHLY', 2); 427define('ZBX_REPORT_CYCLE_YEARLY', 3); 428 429define('ZBX_REPORT_STATE_UNKNOWN', 0); 430define('ZBX_REPORT_STATE_SENT', 1); 431define('ZBX_REPORT_STATE_ERROR', 2); 432define('ZBX_REPORT_STATE_SUCCESS_INFO', 3); 433 434define('ZBX_REPORT_RECIPIENT_TYPE_USER', 0); 435define('ZBX_REPORT_RECIPIENT_TYPE_USER_GROUP', 1); 436 437define('ZBX_REPORT_CREATOR_TYPE_USER', 0); 438define('ZBX_REPORT_CREATOR_TYPE_RECIPIENT', 1); 439 440define('ZBX_REPORT_EXCLUDE_USER_FALSE', 0); 441define('ZBX_REPORT_EXCLUDE_USER_TRUE', 1); 442 443define('SYSMAP_LABEL_ADVANCED_OFF', 0); 444define('SYSMAP_LABEL_ADVANCED_ON', 1); 445 446define('SYSMAP_PROBLEMS_NUMBER', 0); 447define('SYSMAP_SINGLE_PROBLEM', 1); 448define('SYSMAP_PROBLEMS_NUMBER_CRITICAL', 2); 449 450define('MAP_LABEL_TYPE_LABEL', 0); 451define('MAP_LABEL_TYPE_IP', 1); 452define('MAP_LABEL_TYPE_NAME', 2); 453define('MAP_LABEL_TYPE_STATUS', 3); 454define('MAP_LABEL_TYPE_NOTHING', 4); 455define('MAP_LABEL_TYPE_CUSTOM', 5); 456 457define('MAP_LABEL_LOC_DEFAULT', -1); 458define('MAP_LABEL_LOC_BOTTOM', 0); 459define('MAP_LABEL_LOC_LEFT', 1); 460define('MAP_LABEL_LOC_RIGHT', 2); 461define('MAP_LABEL_LOC_TOP', 3); 462 463define('SYSMAP_ELEMENT_TYPE_HOST', 0); 464define('SYSMAP_ELEMENT_TYPE_MAP', 1); 465define('SYSMAP_ELEMENT_TYPE_TRIGGER', 2); 466define('SYSMAP_ELEMENT_TYPE_HOST_GROUP',3); 467define('SYSMAP_ELEMENT_TYPE_IMAGE', 4); 468 469define('SYSMAP_ELEMENT_SUBTYPE_HOST_GROUP', 0); 470define('SYSMAP_ELEMENT_SUBTYPE_HOST_GROUP_ELEMENTS', 1); 471 472define('SYSMAP_ELEMENT_AREA_TYPE_FIT', 0); 473define('SYSMAP_ELEMENT_AREA_TYPE_CUSTOM', 1); 474 475define('SYSMAP_ELEMENT_AREA_VIEWTYPE_GRID', 0); 476 477define('SYSMAP_ELEMENT_ICON_ON', 0); 478define('SYSMAP_ELEMENT_ICON_OFF', 1); 479define('SYSMAP_ELEMENT_ICON_MAINTENANCE', 3); 480define('SYSMAP_ELEMENT_ICON_DISABLED', 4); 481 482define('SYSMAP_SHAPE_TYPE_RECTANGLE', 0); 483define('SYSMAP_SHAPE_TYPE_ELLIPSE', 1); 484define('SYSMAP_SHAPE_TYPE_LINE', 2); 485 486define('SYSMAP_SHAPE_BORDER_TYPE_NONE', 0); 487define('SYSMAP_SHAPE_BORDER_TYPE_SOLID', 1); 488define('SYSMAP_SHAPE_BORDER_TYPE_DOTTED', 2); 489define('SYSMAP_SHAPE_BORDER_TYPE_DASHED', 3); 490 491define('SYSMAP_SHAPE_LABEL_HALIGN_CENTER', 0); 492define('SYSMAP_SHAPE_LABEL_HALIGN_LEFT', 1); 493define('SYSMAP_SHAPE_LABEL_HALIGN_RIGHT', 2); 494 495define('SYSMAP_SHAPE_LABEL_VALIGN_MIDDLE', 0); 496define('SYSMAP_SHAPE_LABEL_VALIGN_TOP', 1); 497define('SYSMAP_SHAPE_LABEL_VALIGN_BOTTOM', 2); 498 499define('SYSMAP_HIGHLIGHT_OFF', 0); 500define('SYSMAP_HIGHLIGHT_ON', 1); 501 502define('SYSMAP_GRID_SHOW_ON', 1); 503define('SYSMAP_GRID_SHOW_OFF', 0); 504 505define('SYSMAP_EXPAND_MACROS_OFF', 0); 506define('SYSMAP_EXPAND_MACROS_ON', 1); 507 508define('SYSMAP_GRID_ALIGN_ON', 1); 509define('SYSMAP_GRID_ALIGN_OFF', 0); 510 511define('PUBLIC_SHARING', 0); 512define('PRIVATE_SHARING', 1); 513 514define('ZBX_ITEM_DELAY_DEFAULT', '1m'); 515define('ZBX_ITEM_FLEXIBLE_DELAY_DEFAULT', '50s'); 516define('ZBX_ITEM_SCHEDULING_DEFAULT', 'wd1-5h9-18'); 517 518define('ITEM_TYPE_ZABBIX', 0); 519define('ITEM_TYPE_SNMPV1', 1); // Deprecated. Now only used in XML converters. Use ITEM_TYPE_SNMP instead. 520define('ITEM_TYPE_TRAPPER', 2); 521define('ITEM_TYPE_SIMPLE', 3); 522define('ITEM_TYPE_SNMPV2C', 4); // Deprecated. Now only used in XML converters. Use ITEM_TYPE_SNMP instead. 523define('ITEM_TYPE_INTERNAL', 5); 524define('ITEM_TYPE_SNMPV3', 6); // Deprecated. Now only used in XML converters. Use ITEM_TYPE_SNMP instead. 525define('ITEM_TYPE_ZABBIX_ACTIVE', 7); 526define('ITEM_TYPE_AGGREGATE', 8); // Deprecated. Now only used in XML converters. Use ITEM_TYPE_CALCULATED instead. 527define('ITEM_TYPE_HTTPTEST', 9); 528define('ITEM_TYPE_EXTERNAL', 10); 529define('ITEM_TYPE_DB_MONITOR', 11); 530define('ITEM_TYPE_IPMI', 12); 531define('ITEM_TYPE_SSH', 13); 532define('ITEM_TYPE_TELNET', 14); 533define('ITEM_TYPE_CALCULATED', 15); 534define('ITEM_TYPE_JMX', 16); 535define('ITEM_TYPE_SNMPTRAP', 17); 536define('ITEM_TYPE_DEPENDENT', 18); 537define('ITEM_TYPE_HTTPAGENT', 19); 538define('ITEM_TYPE_SNMP', 20); 539define('ITEM_TYPE_SCRIPT', 21); 540 541define('SNMP_V1', 1); 542define('SNMP_V2C', 2); 543define('SNMP_V3', 3); 544 545define('ZBX_DEPENDENT_ITEM_MAX_LEVELS', 3); 546define('ZBX_DEPENDENT_ITEM_MAX_COUNT', 29999); 547 548define('ITEM_VALUE_TYPE_FLOAT', 0); 549define('ITEM_VALUE_TYPE_STR', 1); // aka Character 550define('ITEM_VALUE_TYPE_LOG', 2); 551define('ITEM_VALUE_TYPE_UINT64', 3); 552define('ITEM_VALUE_TYPE_TEXT', 4); 553 554define('ITEM_DATA_TYPE_DECIMAL', 0); 555define('ITEM_DATA_TYPE_OCTAL', 1); 556define('ITEM_DATA_TYPE_HEXADECIMAL', 2); 557define('ITEM_DATA_TYPE_BOOLEAN', 3); 558 559define('ZBX_DEFAULT_KEY_DB_MONITOR', 'db.odbc.select[<unique short description>,<dsn>,<connection string>]'); 560define('ZBX_DEFAULT_KEY_DB_MONITOR_DISCOVERY', 'db.odbc.discovery[<unique short description>,<dsn>,<connection string>]'); 561define('ZBX_DEFAULT_KEY_SSH', 'ssh.run[<unique short description>,<ip>,<port>,<encoding>]'); 562define('ZBX_DEFAULT_KEY_TELNET', 'telnet.run[<unique short description>,<ip>,<port>,<encoding>]'); 563 564define('ZBX_DEFAULT_JMX_ENDPOINT', 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi'); 565 566define('SYSMAP_ELEMENT_USE_ICONMAP_ON', 1); 567define('SYSMAP_ELEMENT_USE_ICONMAP_OFF', 0); 568 569define('ZBX_ICON_PREVIEW_HEIGHT', 24); 570define('ZBX_ICON_PREVIEW_WIDTH', 24); 571 572define('ITEM_STATUS_ACTIVE', 0); 573define('ITEM_STATUS_DISABLED', 1); 574define('ITEM_DISCOVER', 0); 575define('ITEM_NO_DISCOVER', 1); 576 577/** 578 * Starting from Zabbix 2.2 items could not have ITEM_STATUS_NOTSUPPORTED status 579 * this constant is left for importing data from versions 1.8 and 2.0. 580 */ 581define('ITEM_STATUS_NOTSUPPORTED', 3); 582 583define('ITEM_STATE_NORMAL', 0); 584define('ITEM_STATE_NOTSUPPORTED', 1); 585 586define('ITEM_SNMPV3_SECURITYLEVEL_NOAUTHNOPRIV', 0); 587define('ITEM_SNMPV3_SECURITYLEVEL_AUTHNOPRIV', 1); 588define('ITEM_SNMPV3_SECURITYLEVEL_AUTHPRIV', 2); 589 590define('ITEM_AUTHTYPE_PASSWORD', 0); 591define('ITEM_AUTHTYPE_PUBLICKEY', 1); 592 593define('ITEM_SNMPV3_AUTHPROTOCOL_MD5', 0); 594define('ITEM_SNMPV3_AUTHPROTOCOL_SHA1', 1); 595define('ITEM_SNMPV3_AUTHPROTOCOL_SHA224', 2); 596define('ITEM_SNMPV3_AUTHPROTOCOL_SHA256', 3); 597define('ITEM_SNMPV3_AUTHPROTOCOL_SHA384', 4); 598define('ITEM_SNMPV3_AUTHPROTOCOL_SHA512', 5); 599 600define('ITEM_SNMPV3_PRIVPROTOCOL_DES', 0); 601define('ITEM_SNMPV3_PRIVPROTOCOL_AES128', 1); 602define('ITEM_SNMPV3_PRIVPROTOCOL_AES192', 2); 603define('ITEM_SNMPV3_PRIVPROTOCOL_AES256', 3); 604define('ITEM_SNMPV3_PRIVPROTOCOL_AES192C', 4); 605define('ITEM_SNMPV3_PRIVPROTOCOL_AES256C', 5); 606 607define('ITEM_LOGTYPE_INFORMATION', 1); 608define('ITEM_LOGTYPE_WARNING', 2); 609define('ITEM_LOGTYPE_ERROR', 4); 610define('ITEM_LOGTYPE_FAILURE_AUDIT', 7); 611define('ITEM_LOGTYPE_SUCCESS_AUDIT', 8); 612define('ITEM_LOGTYPE_CRITICAL', 9); 613define('ITEM_LOGTYPE_VERBOSE', 10); 614 615define('ITEM_DELAY_FLEXIBLE', 0); 616define('ITEM_DELAY_SCHEDULING', 1); 617 618// Item pre-processing types. 619define('ZBX_PREPROC_MULTIPLIER', 1); 620define('ZBX_PREPROC_RTRIM', 2); 621define('ZBX_PREPROC_LTRIM', 3); 622define('ZBX_PREPROC_TRIM', 4); 623define('ZBX_PREPROC_REGSUB', 5); 624define('ZBX_PREPROC_BOOL2DEC', 6); 625define('ZBX_PREPROC_OCT2DEC', 7); 626define('ZBX_PREPROC_HEX2DEC', 8); 627define('ZBX_PREPROC_DELTA_VALUE', 9); 628define('ZBX_PREPROC_DELTA_SPEED', 10); 629define('ZBX_PREPROC_XPATH', 11); 630define('ZBX_PREPROC_JSONPATH', 12); 631define('ZBX_PREPROC_VALIDATE_RANGE', 13); 632define('ZBX_PREPROC_VALIDATE_REGEX', 14); 633define('ZBX_PREPROC_VALIDATE_NOT_REGEX', 15); 634define('ZBX_PREPROC_ERROR_FIELD_JSON', 16); 635define('ZBX_PREPROC_ERROR_FIELD_XML', 17); 636define('ZBX_PREPROC_ERROR_FIELD_REGEX', 18); 637define('ZBX_PREPROC_THROTTLE_VALUE', 19); 638define('ZBX_PREPROC_THROTTLE_TIMED_VALUE', 20); 639define('ZBX_PREPROC_SCRIPT', 21); 640define('ZBX_PREPROC_PROMETHEUS_PATTERN', 22); 641define('ZBX_PREPROC_PROMETHEUS_TO_JSON', 23); 642define('ZBX_PREPROC_CSV_TO_JSON', 24); 643define('ZBX_PREPROC_STR_REPLACE', 25); 644define('ZBX_PREPROC_VALIDATE_NOT_SUPPORTED', 26); 645define('ZBX_PREPROC_XML_TO_JSON', 27); 646 647// Item pre-processing error handlers. 648define('ZBX_PREPROC_FAIL_DEFAULT', 0); 649define('ZBX_PREPROC_FAIL_DISCARD_VALUE', 1); 650define('ZBX_PREPROC_FAIL_SET_VALUE', 2); 651define('ZBX_PREPROC_FAIL_SET_ERROR', 3); 652 653define('ZBX_PREPROC_CSV_NO_HEADER', 0); 654define('ZBX_PREPROC_CSV_HEADER', 1); 655 656// LLD rule overrides. 657define('ZBX_LLD_OVERRIDE_STOP_NO', 0); 658define('ZBX_LLD_OVERRIDE_STOP_YES', 1); 659define('ZBX_PROTOTYPE_STATUS_ENABLED', 0); 660define('ZBX_PROTOTYPE_STATUS_DISABLED', 1); 661define('ZBX_PROTOTYPE_DISCOVER', 0); 662define('ZBX_PROTOTYPE_NO_DISCOVER', 1); 663define('OPERATION_OBJECT_ITEM_PROTOTYPE', 0); 664define('OPERATION_OBJECT_TRIGGER_PROTOTYPE', 1); 665define('OPERATION_OBJECT_GRAPH_PROTOTYPE', 2); 666define('OPERATION_OBJECT_HOST_PROTOTYPE', 3); 667 668define('GRAPH_DISCOVER', 0); 669define('GRAPH_NO_DISCOVER', 1); 670 671define('GRAPH_ITEM_DRAWTYPE_LINE', 0); 672define('GRAPH_ITEM_DRAWTYPE_FILLED_REGION', 1); 673define('GRAPH_ITEM_DRAWTYPE_BOLD_LINE', 2); 674define('GRAPH_ITEM_DRAWTYPE_DOT', 3); 675define('GRAPH_ITEM_DRAWTYPE_DASHED_LINE', 4); 676define('GRAPH_ITEM_DRAWTYPE_GRADIENT_LINE', 5); 677define('GRAPH_ITEM_DRAWTYPE_BOLD_DOT', 6); 678 679define('MAP_LINK_DRAWTYPE_LINE', 0); 680define('MAP_LINK_DRAWTYPE_BOLD_LINE', 2); 681define('MAP_LINK_DRAWTYPE_DOT', 3); 682define('MAP_LINK_DRAWTYPE_DASHED_LINE', 4); 683 684define('SERVICE_ALGORITHM_NONE', 0); // do not calculate 685define('SERVICE_ALGORITHM_MAX', 1); // problem, if one children has a problem 686define('SERVICE_ALGORITHM_MIN', 2); // problem, if all children have problems 687 688define('SERVICE_SLA', '99.9000'); 689 690define('SERVICE_SHOW_SLA_OFF', 0); 691define('SERVICE_SHOW_SLA_ON', 1); 692 693define('SERVICE_STATUS_OK', 0); 694 695define('TRIGGER_MULT_EVENT_DISABLED', 0); 696define('TRIGGER_MULT_EVENT_ENABLED', 1); 697 698define('ZBX_TRIGGER_CORRELATION_NONE', 0); 699define('ZBX_TRIGGER_CORRELATION_TAG', 1); 700 701define('ZBX_TRIGGER_MANUAL_CLOSE_NOT_ALLOWED', 0); 702define('ZBX_TRIGGER_MANUAL_CLOSE_ALLOWED', 1); 703 704define('ZBX_RECOVERY_MODE_EXPRESSION', 0); 705define('ZBX_RECOVERY_MODE_RECOVERY_EXPRESSION', 1); 706define('ZBX_RECOVERY_MODE_NONE', 2); 707 708define('TRIGGER_STATUS_ENABLED', 0); 709define('TRIGGER_STATUS_DISABLED', 1); 710define('TRIGGER_DISCOVER', 0); 711define('TRIGGER_NO_DISCOVER', 1); 712 713define('TRIGGER_VALUE_FALSE', 0); 714define('TRIGGER_VALUE_TRUE', 1); 715 716define('TRIGGER_STATE_NORMAL', 0); 717define('TRIGGER_STATE_UNKNOWN', 1); 718 719define('TRIGGER_SEVERITY_NOT_CLASSIFIED', 0); 720define('TRIGGER_SEVERITY_INFORMATION', 1); 721define('TRIGGER_SEVERITY_WARNING', 2); 722define('TRIGGER_SEVERITY_AVERAGE', 3); 723define('TRIGGER_SEVERITY_HIGH', 4); 724define('TRIGGER_SEVERITY_DISASTER', 5); 725define('TRIGGER_SEVERITY_COUNT', 6); 726 727define('EVENT_CUSTOM_COLOR_DISABLED', 0); 728define('EVENT_CUSTOM_COLOR_ENABLED', 1); 729 730define('ALERT_STATUS_NOT_SENT', 0); 731define('ALERT_STATUS_SENT', 1); 732define('ALERT_STATUS_FAILED', 2); 733define('ALERT_STATUS_NEW', 3); 734 735define('ALERT_TYPE_MESSAGE', 0); 736define('ALERT_TYPE_COMMAND', 1); 737 738define('MEDIA_STATUS_ACTIVE', 0); 739define('MEDIA_STATUS_DISABLED', 1); 740 741define('MEDIA_TYPE_STATUS_ACTIVE', 0); 742define('MEDIA_TYPE_STATUS_DISABLED', 1); 743define('ZBX_MEDIA_TYPE_TAGS_DISABLED', 0); 744define('ZBX_MEDIA_TYPE_TAGS_ENABLED', 1); 745define('ZBX_EVENT_MENU_HIDE', 0); 746define('ZBX_EVENT_MENU_SHOW', 1); 747 748define('MEDIA_TYPE_EMAIL', 0); 749define('MEDIA_TYPE_EXEC', 1); 750define('MEDIA_TYPE_SMS', 2); 751define('MEDIA_TYPE_WEBHOOK', 4); 752 753define('SMTP_CONNECTION_SECURITY_NONE', 0); 754define('SMTP_CONNECTION_SECURITY_STARTTLS', 1); 755define('SMTP_CONNECTION_SECURITY_SSL_TLS', 2); 756 757define('SMTP_AUTHENTICATION_NONE', 0); 758define('SMTP_AUTHENTICATION_NORMAL', 1); 759 760define('SMTP_MESSAGE_FORMAT_PLAIN_TEXT', 0); 761define('SMTP_MESSAGE_FORMAT_HTML', 1); 762 763define('ACTION_STATUS_ENABLED', 0); 764define('ACTION_STATUS_DISABLED', 1); 765 766define('ACTION_PAUSE_SUPPRESSED_FALSE', 0); 767define('ACTION_PAUSE_SUPPRESSED_TRUE', 1); 768 769define('OPERATION_TYPE_MESSAGE', 0); 770define('OPERATION_TYPE_COMMAND', 1); 771define('OPERATION_TYPE_HOST_ADD', 2); 772define('OPERATION_TYPE_HOST_REMOVE', 3); 773define('OPERATION_TYPE_GROUP_ADD', 4); 774define('OPERATION_TYPE_GROUP_REMOVE', 5); 775define('OPERATION_TYPE_TEMPLATE_ADD', 6); 776define('OPERATION_TYPE_TEMPLATE_REMOVE', 7); 777define('OPERATION_TYPE_HOST_ENABLE', 8); 778define('OPERATION_TYPE_HOST_DISABLE', 9); 779define('OPERATION_TYPE_HOST_INVENTORY', 10); 780define('OPERATION_TYPE_RECOVERY_MESSAGE', 11); 781define('OPERATION_TYPE_ACK_MESSAGE', 12); 782 783define('ACTION_OPERATION', 0); 784define('ACTION_RECOVERY_OPERATION', 1); 785define('ACTION_ACKNOWLEDGE_OPERATION', 2); 786 787define('CONDITION_EVAL_TYPE_AND_OR', 0); 788define('CONDITION_EVAL_TYPE_AND', 1); 789define('CONDITION_EVAL_TYPE_OR', 2); 790define('CONDITION_EVAL_TYPE_EXPRESSION', 3); 791 792// screen 793define('SCREEN_RESOURCE_GRAPH', 0); 794define('SCREEN_RESOURCE_SIMPLE_GRAPH', 1); 795define('SCREEN_RESOURCE_MAP', 2); 796define('SCREEN_RESOURCE_HISTORY', 17); 797define('SCREEN_RESOURCE_HTTPTEST_DETAILS', 21); 798define('SCREEN_RESOURCE_DISCOVERY', 22); 799define('SCREEN_RESOURCE_HTTPTEST', 23); 800define('SCREEN_RESOURCE_PROBLEM', 24); 801 802define('SCREEN_SORT_TRIGGERS_SEVERITY_DESC', 1); 803define('SCREEN_SORT_TRIGGERS_HOST_NAME_ASC', 2); 804define('SCREEN_SORT_TRIGGERS_TIME_ASC', 3); 805define('SCREEN_SORT_TRIGGERS_TIME_DESC', 4); 806define('SCREEN_SORT_TRIGGERS_TYPE_ASC', 5); 807define('SCREEN_SORT_TRIGGERS_TYPE_DESC', 6); 808define('SCREEN_SORT_TRIGGERS_STATUS_ASC', 7); 809define('SCREEN_SORT_TRIGGERS_STATUS_DESC', 8); 810define('SCREEN_SORT_TRIGGERS_RECIPIENT_ASC', 11); 811define('SCREEN_SORT_TRIGGERS_RECIPIENT_DESC', 12); 812define('SCREEN_SORT_TRIGGERS_SEVERITY_ASC', 13); 813define('SCREEN_SORT_TRIGGERS_HOST_NAME_DESC', 14); 814define('SCREEN_SORT_TRIGGERS_NAME_ASC', 15); 815define('SCREEN_SORT_TRIGGERS_NAME_DESC', 16); 816 817define('SCREEN_MODE_PREVIEW', 0); 818define('SCREEN_MODE_EDIT', 1); 819define('SCREEN_MODE_SLIDESHOW', 2); 820define('SCREEN_MODE_JS', 3); 821 822define('SCREEN_REFRESH_RESPONSIVENESS', 10); 823 824// default, minimum and maximum number of lines for dashboard widgets 825define('ZBX_DEFAULT_WIDGET_LINES', 25); 826define('ZBX_MIN_WIDGET_LINES', 1); 827define('ZBX_MAX_WIDGET_LINES', 100); 828 829// dashboards 830define('DASHBOARD_MAX_PAGES', 50); 831define('DASHBOARD_MAX_COLUMNS', 24); 832define('DASHBOARD_MAX_ROWS', 64); 833define('DASHBOARD_WIDGET_MIN_ROWS', 2); 834define('DASHBOARD_WIDGET_MAX_ROWS', 32); 835define('DASHBOARD_FILTER_SHOW_ALL', 0); 836define('DASHBOARD_FILTER_SHOW_MY', 1); 837define('DASHBOARD_DISPLAY_PERIODS', [10, 30, 60, 120, 600, 1800, 3600]); 838 839// alignments 840define('HALIGN_DEFAULT', 0); 841define('HALIGN_CENTER', 0); 842define('HALIGN_LEFT', 1); 843define('HALIGN_RIGHT', 2); 844 845define('VALIGN_DEFAULT', 0); 846define('VALIGN_MIDDLE', 0); 847define('VALIGN_TOP', 1); 848define('VALIGN_BOTTOM', 2); 849 850// info module style 851define('STYLE_HORIZONTAL', 0); 852define('STYLE_VERTICAL', 1); 853 854// view style [Overview, Plaintext] 855define('STYLE_LEFT', 0); 856define('STYLE_TOP', 1); 857 858// time module type 859define('TIME_TYPE_LOCAL', 0); 860define('TIME_TYPE_SERVER', 1); 861define('TIME_TYPE_HOST', 2); 862 863define('FILTER_TASK_SHOW', 0); 864define('FILTER_TASK_HIDE', 1); 865define('FILTER_TASK_MARK', 2); 866define('FILTER_TASK_INVERT_MARK', 3); 867 868define('MARK_COLOR_RED', 1); 869define('MARK_COLOR_GREEN', 2); 870define('MARK_COLOR_BLUE', 3); 871 872define('PROFILE_TYPE_ID', 1); 873define('PROFILE_TYPE_INT', 2); 874define('PROFILE_TYPE_STR', 3); 875 876define('CALC_FNC_MIN', 1); 877define('CALC_FNC_AVG', 2); 878define('CALC_FNC_MAX', 4); 879define('CALC_FNC_ALL', 7); 880define('CALC_FNC_LST', 9); 881 882define('SERVICE_TIME_TYPE_UPTIME', 0); 883define('SERVICE_TIME_TYPE_DOWNTIME', 1); 884define('SERVICE_TIME_TYPE_ONETIME_DOWNTIME', 2); 885 886define('ZBX_DISCOVERY_UNSPEC', 0); 887define('ZBX_DISCOVERY_DNS', 1); 888define('ZBX_DISCOVERY_IP', 2); 889define('ZBX_DISCOVERY_VALUE', 3); 890 891define('USER_TYPE_ZABBIX_USER', 1); 892define('USER_TYPE_ZABBIX_ADMIN', 2); 893define('USER_TYPE_SUPER_ADMIN', 3); 894 895define('ZBX_NOT_INTERNAL_GROUP', 0); 896define('ZBX_INTERNAL_GROUP', 1); 897 898define('GROUP_STATUS_DISABLED', 1); 899define('GROUP_STATUS_ENABLED', 0); 900 901define('LINE_TYPE_NORMAL', 0); 902define('LINE_TYPE_BOLD', 1); 903 904// IMPORTANT!!! by priority DESC 905define('GROUP_GUI_ACCESS_SYSTEM', 0); 906define('GROUP_GUI_ACCESS_INTERNAL', 1); 907define('GROUP_GUI_ACCESS_LDAP', 2); 908define('GROUP_GUI_ACCESS_DISABLED', 3); 909 910/** 911 * @see access_deny() 912 */ 913define('ACCESS_DENY_OBJECT', 0); 914define('ACCESS_DENY_PAGE', 1); 915 916define('GROUP_DEBUG_MODE_DISABLED', 0); 917define('GROUP_DEBUG_MODE_ENABLED', 1); 918 919define('PERM_READ_WRITE', 3); 920define('PERM_READ', 2); 921define('PERM_DENY', 0); 922define('PERM_NONE', -1); 923 924define('PARAM_TYPE_TIME', 0); 925define('PARAM_TYPE_COUNTS', 1); 926 927define('ZBX_DEFAULT_AGENT', 'Zabbix'); 928define('ZBX_AGENT_OTHER', -1); 929 930define('HTTPTEST_AUTH_NONE', 0); 931define('HTTPTEST_AUTH_BASIC', 1); 932define('HTTPTEST_AUTH_NTLM', 2); 933define('HTTPTEST_AUTH_KERBEROS', 3); 934define('HTTPTEST_AUTH_DIGEST', 4); 935 936define('HTTPTEST_STATUS_ACTIVE', 0); 937define('HTTPTEST_STATUS_DISABLED', 1); 938 939define('ZBX_HTTPFIELD_HEADER', 0); 940define('ZBX_HTTPFIELD_VARIABLE', 1); 941define('ZBX_HTTPFIELD_POST_FIELD', 2); 942define('ZBX_HTTPFIELD_QUERY_FIELD', 3); 943 944define('ZBX_POSTTYPE_RAW', 0); 945define('ZBX_POSTTYPE_FORM', 1); 946define('ZBX_POSTTYPE_JSON', 2); 947define('ZBX_POSTTYPE_XML', 3); 948 949define('HTTPCHECK_STORE_RAW', 0); 950define('HTTPCHECK_STORE_JSON', 1); 951 952define('HTTPCHECK_ALLOW_TRAPS_OFF', 0); 953define('HTTPCHECK_ALLOW_TRAPS_ON', 1); 954 955define('HTTPCHECK_REQUEST_GET', 0); 956define('HTTPCHECK_REQUEST_POST', 1); 957define('HTTPCHECK_REQUEST_PUT', 2); 958define('HTTPCHECK_REQUEST_HEAD', 3); 959 960define('HTTPSTEP_ITEM_TYPE_RSPCODE', 0); 961define('HTTPSTEP_ITEM_TYPE_TIME', 1); 962define('HTTPSTEP_ITEM_TYPE_IN', 2); 963define('HTTPSTEP_ITEM_TYPE_LASTSTEP', 3); 964define('HTTPSTEP_ITEM_TYPE_LASTERROR', 4); 965 966define('HTTPTEST_STEP_RETRIEVE_MODE_CONTENT', 0); 967define('HTTPTEST_STEP_RETRIEVE_MODE_HEADERS', 1); 968define('HTTPTEST_STEP_RETRIEVE_MODE_BOTH', 2); 969 970define('HTTPTEST_STEP_FOLLOW_REDIRECTS_OFF', 0); 971define('HTTPTEST_STEP_FOLLOW_REDIRECTS_ON', 1); 972 973define('HTTPTEST_VERIFY_PEER_OFF', 0); 974define('HTTPTEST_VERIFY_PEER_ON', 1); 975 976define('HTTPTEST_VERIFY_HOST_OFF', 0); 977define('HTTPTEST_VERIFY_HOST_ON', 1); 978 979define('EVENT_NOT_ACKNOWLEDGED', '0'); 980define('EVENT_ACKNOWLEDGED', '1'); 981 982define('ZBX_ACKNOWLEDGE_SELECTED', 0); 983define('ZBX_ACKNOWLEDGE_PROBLEM', 1); 984 985define('ZBX_PROBLEM_SUPPRESSED_FALSE', 0); 986define('ZBX_PROBLEM_SUPPRESSED_TRUE', 1); 987 988define('ZBX_PROBLEM_UPDATE_NONE', 0x00); 989define('ZBX_PROBLEM_UPDATE_CLOSE', 0x01); 990define('ZBX_PROBLEM_UPDATE_ACKNOWLEDGE', 0x02); 991define('ZBX_PROBLEM_UPDATE_MESSAGE', 0x04); 992define('ZBX_PROBLEM_UPDATE_SEVERITY', 0x08); 993define('ZBX_PROBLEM_UPDATE_UNACKNOWLEDGE', 0x10); 994 995define('ZBX_EVENT_HISTORY_PROBLEM_EVENT', 0); 996define('ZBX_EVENT_HISTORY_RECOVERY_EVENT', 1); 997define('ZBX_EVENT_HISTORY_MANUAL_UPDATE', 2); 998define('ZBX_EVENT_HISTORY_ALERT', 3); 999 1000define('ZBX_TM_TASK_CLOSE_PROBLEM', 1); 1001define('ZBX_TM_TASK_ACKNOWLEDGE', 4); 1002define('ZBX_TM_TASK_CHECK_NOW', 6); 1003define('ZBX_TM_TASK_DATA', 7); 1004 1005define('ZBX_TM_STATUS_NEW', 1); 1006define('ZBX_TM_STATUS_INPROGRESS', 2); 1007 1008define('ZBX_TM_DATA_TYPE_DIAGINFO', 1); 1009define('ZBX_TM_DATA_TYPE_CHECK_NOW', 6); 1010 1011define('EVENT_SOURCE_TRIGGERS', 0); 1012define('EVENT_SOURCE_DISCOVERY', 1); 1013define('EVENT_SOURCE_AUTOREGISTRATION', 2); 1014define('EVENT_SOURCE_INTERNAL', 3); 1015 1016define('EVENT_OBJECT_TRIGGER', 0); 1017define('EVENT_OBJECT_DHOST', 1); 1018define('EVENT_OBJECT_DSERVICE', 2); 1019define('EVENT_OBJECT_AUTOREGHOST', 3); 1020define('EVENT_OBJECT_ITEM', 4); 1021define('EVENT_OBJECT_LLDRULE', 5); 1022 1023// Problem and event tag constants. 1024define('TAG_EVAL_TYPE_AND_OR', 0); 1025define('TAG_EVAL_TYPE_OR', 2); 1026 1027define('TAG_OPERATOR_LIKE', 0); 1028define('TAG_OPERATOR_EQUAL', 1); 1029define('TAG_OPERATOR_NOT_LIKE', 2); 1030define('TAG_OPERATOR_NOT_EQUAL', 3); 1031define('TAG_OPERATOR_EXISTS', 4); 1032define('TAG_OPERATOR_NOT_EXISTS', 5); 1033 1034define('GRAPH_AGGREGATE_DEFAULT_INTERVAL', '1h'); 1035 1036define('GRAPH_AGGREGATE_NONE', 0); 1037define('GRAPH_AGGREGATE_MIN', 1); 1038define('GRAPH_AGGREGATE_MAX', 2); 1039define('GRAPH_AGGREGATE_AVG', 3); 1040define('GRAPH_AGGREGATE_COUNT', 4); 1041define('GRAPH_AGGREGATE_SUM', 5); 1042define('GRAPH_AGGREGATE_FIRST', 6); 1043define('GRAPH_AGGREGATE_LAST', 7); 1044 1045define('GRAPH_AGGREGATE_BY_ITEM', 0); 1046define('GRAPH_AGGREGATE_BY_DATASET', 1); 1047 1048define('GRAPH_YAXIS_TYPE_CALCULATED', 0); 1049define('GRAPH_YAXIS_TYPE_FIXED', 1); 1050define('GRAPH_YAXIS_TYPE_ITEM_VALUE', 2); 1051 1052define('GRAPH_YAXIS_SIDE_LEFT', 0); 1053define('GRAPH_YAXIS_SIDE_RIGHT', 1); 1054define('GRAPH_YAXIS_SIDE_BOTTOM', 2); 1055 1056define('GRAPH_ITEM_SIMPLE', 0); 1057define('GRAPH_ITEM_SUM', 2); 1058 1059define('GRAPH_TYPE_NORMAL', 0); 1060define('GRAPH_TYPE_STACKED', 1); 1061define('GRAPH_TYPE_PIE', 2); 1062define('GRAPH_TYPE_EXPLODED', 3); 1063define('GRAPH_TYPE_3D', 4); 1064define('GRAPH_TYPE_3D_EXPLODED', 5); 1065define('GRAPH_TYPE_BAR', 6); 1066define('GRAPH_TYPE_COLUMN', 7); 1067define('GRAPH_TYPE_BAR_STACKED', 8); 1068define('GRAPH_TYPE_COLUMN_STACKED', 9); 1069 1070define('SVG_GRAPH_TYPE_LINE', 0); 1071define('SVG_GRAPH_TYPE_POINTS', 1); 1072define('SVG_GRAPH_TYPE_STAIRCASE', 2); 1073define('SVG_GRAPH_TYPE_BAR', 3); 1074 1075define('SVG_GRAPH_MISSING_DATA_NONE', 0); 1076define('SVG_GRAPH_MISSING_DATA_CONNECTED', 1); 1077define('SVG_GRAPH_MISSING_DATA_TREAT_AS_ZERO', 2); 1078 1079define('SVG_GRAPH_DATA_SOURCE_AUTO', 0); 1080define('SVG_GRAPH_DATA_SOURCE_HISTORY', 1); 1081define('SVG_GRAPH_DATA_SOURCE_TRENDS', 2); 1082 1083define('SVG_GRAPH_CUSTOM_TIME', 1); 1084 1085define('SVG_GRAPH_LEGEND_TYPE_NONE', 0); 1086define('SVG_GRAPH_LEGEND_TYPE_SHORT', 1); 1087 1088define('SVG_GRAPH_LEGEND_LINES_MIN', 1); 1089define('SVG_GRAPH_LEGEND_LINES_MAX', 5); 1090 1091define('SVG_GRAPH_PROBLEMS_SHOW', 1); 1092 1093define('SVG_GRAPH_SELECTED_ITEM_PROBLEMS', 1); 1094 1095define('SVG_GRAPH_AXIS_SHOW', 1); 1096 1097define('SVG_GRAPH_AXIS_UNITS_AUTO', 0); 1098define('SVG_GRAPH_AXIS_UNITS_STATIC', 1); 1099 1100define('SVG_GRAPH_MAX_NUMBER_OF_METRICS', 50); 1101 1102define('SVG_GRAPH_DEFAULT_WIDTH', 1); 1103define('SVG_GRAPH_DEFAULT_POINTSIZE', 3); 1104define('SVG_GRAPH_DEFAULT_TRANSPARENCY', 5); 1105define('SVG_GRAPH_DEFAULT_FILL', 3); 1106 1107define('BR_DISTRIBUTION_MULTIPLE_PERIODS', 1); 1108define('BR_DISTRIBUTION_MULTIPLE_ITEMS', 2); 1109define('BR_COMPARE_VALUE_MULTIPLE_PERIODS', 3); 1110 1111define('GRAPH_3D_ANGLE', 70); 1112 1113define('GRAPH_STACKED_ALFA', 15); // 0..100 transparency 1114 1115define('GRAPH_ZERO_LINE_COLOR_LEFT', 'AAAAAA'); 1116define('GRAPH_ZERO_LINE_COLOR_RIGHT', '888888'); 1117 1118define('GRAPH_TRIGGER_LINE_OPPOSITE_COLOR', '000000'); 1119 1120define('ZBX_MAX_TREND_DIFF', 3600); 1121 1122define('ZBX_GRAPH_MAX_SKIP_CELL', 16); 1123define('ZBX_GRAPH_MAX_SKIP_DELAY', 4); 1124 1125define('DOBJECT_STATUS_UP', 0); 1126define('DOBJECT_STATUS_DOWN', 1); 1127define('DOBJECT_STATUS_DISCOVER', 2); // only for events 1128define('DOBJECT_STATUS_LOST', 3); // generated by discovery 1129 1130define('DRULE_STATUS_ACTIVE', 0); 1131define('DRULE_STATUS_DISABLED', 1); 1132 1133define('DSVC_STATUS_ACTIVE', 0); 1134define('DSVC_STATUS_DISABLED', 1); 1135 1136define('SVC_SSH', 0); 1137define('SVC_LDAP', 1); 1138define('SVC_SMTP', 2); 1139define('SVC_FTP', 3); 1140define('SVC_HTTP', 4); 1141define('SVC_POP', 5); 1142define('SVC_NNTP', 6); 1143define('SVC_IMAP', 7); 1144define('SVC_TCP', 8); 1145define('SVC_AGENT', 9); 1146define('SVC_SNMPv1', 10); 1147define('SVC_SNMPv2c', 11); 1148define('SVC_ICMPPING', 12); 1149define('SVC_SNMPv3', 13); 1150define('SVC_HTTPS', 14); 1151define('SVC_TELNET', 15); 1152 1153define('DHOST_STATUS_ACTIVE', 0); 1154define('DHOST_STATUS_DISABLED', 1); 1155 1156define('IM_FORCED', 0); 1157define('IM_ESTABLISHED', 1); 1158define('IM_TREE', 2); 1159 1160define('TRIGGER_EXPRESSION', 0); 1161define('TRIGGER_RECOVERY_EXPRESSION', 1); 1162 1163define('EXPRESSION_TYPE_INCLUDED', 0); 1164define('EXPRESSION_TYPE_ANY_INCLUDED', 1); 1165define('EXPRESSION_TYPE_NOT_INCLUDED', 2); 1166define('EXPRESSION_TYPE_TRUE', 3); 1167define('EXPRESSION_TYPE_FALSE', 4); 1168 1169define('HOST_INVENTORY_DISABLED', -1); 1170define('HOST_INVENTORY_MANUAL', 0); 1171define('HOST_INVENTORY_AUTOMATIC', 1); 1172 1173define('INVENTORY_URL_MACRO_NONE', -1); 1174define('INVENTORY_URL_MACRO_HOST', 0); 1175define('INVENTORY_URL_MACRO_TRIGGER', 1); 1176 1177define('EXPRESSION_HOST_UNKNOWN', '#ERROR_HOST#'); 1178define('EXPRESSION_HOST_ITEM_UNKNOWN', '#ERROR_ITEM#'); 1179define('EXPRESSION_NOT_A_MACRO_ERROR', '#ERROR_MACRO#'); 1180define('EXPRESSION_FUNCTION_UNKNOWN', '#ERROR_FUNCTION#'); 1181define('EXPRESSION_UNSUPPORTED_VALUE_TYPE', '#ERROR_VALUE_TYPE#'); 1182 1183define('ZBX_FUNCTION_TYPE_AGGREGATE', 0); 1184define('ZBX_FUNCTION_TYPE_BITWISE', 1); 1185define('ZBX_FUNCTION_TYPE_DATE_TIME', 2); 1186define('ZBX_FUNCTION_TYPE_HISTORY', 3); 1187define('ZBX_FUNCTION_TYPE_MATH', 4); 1188define('ZBX_FUNCTION_TYPE_OPERATOR', 5); 1189define('ZBX_FUNCTION_TYPE_PREDICTION', 6); 1190define('ZBX_FUNCTION_TYPE_STRING', 7); 1191 1192/** 1193 * @deprecated use either a literal space " " or a non-breakable space " " instead 1194 */ 1195define('SPACE', ' '); 1196 1197/** 1198 * Symbol used to separate name pairs such as "host: item" or "proxy: host". 1199 * 1200 * Should not be used as just a colon. 1201 */ 1202define('NAME_DELIMITER', ': '); 1203 1204define('UNKNOWN_VALUE', ''); 1205 1206// End of line sequence. 1207define('ZBX_EOL_LF', 0); 1208define('ZBX_EOL_CRLF', 1); 1209 1210// Time intervals. 1211define('SEC_PER_MIN', 60); 1212define('SEC_PER_HOUR', 3600); 1213define('SEC_PER_DAY', 86400); 1214define('SEC_PER_WEEK', 604800); 1215define('SEC_PER_MONTH', 2592000); 1216define('SEC_PER_YEAR', 31536000); 1217 1218// Time suffixes and multipliers. 1219define('ZBX_TIME_SUFFIXES', 'smhdw'); 1220define('ZBX_TIME_SUFFIXES_WITH_YEAR', 'smhdwMy'); 1221define('ZBX_TIME_SUFFIX_MULTIPLIERS', [ 1222 's' => 1, 1223 'm' => SEC_PER_MIN, 1224 'h' => SEC_PER_HOUR, 1225 'd' => SEC_PER_DAY, 1226 'w' => SEC_PER_WEEK, 1227 'M' => SEC_PER_MONTH, 1228 'y' => SEC_PER_YEAR 1229]); 1230 1231// Byte suffixes and multipliers. 1232define('ZBX_BYTE_SUFFIXES', 'KMGT'); 1233define('ZBX_BYTE_SUFFIX_MULTIPLIERS', [ 1234 'K' => ZBX_KIBIBYTE, 1235 'M' => ZBX_MEBIBYTE, 1236 'G' => ZBX_GIBIBYTE, 1237 'T' => ZBX_TEBIBYTE 1238]); 1239 1240// Regular expressions. 1241define('ZBX_PREG_PRINT', '^\x00-\x1F'); 1242define('ZBX_PREG_MACRO_NAME', '([A-Z0-9\._]+)'); 1243define('ZBX_PREG_MACRO_NAME_LLD', '([A-Z0-9\._]+)'); 1244define('ZBX_PREG_INTERNAL_NAMES', '([0-9a-zA-Z_\. \-]+)'); // !!! Don't forget sync code with C !!! 1245define('ZBX_PREG_NUMBER', '(?<number>-?(\d+(\.\d*)?|\.\d+)([Ee][+-]?\d+)?)'); 1246define('ZBX_PREG_INT', '(?<int>-?\d+)'); 1247define('ZBX_PREG_DEF_FONT_STRING', '/^[0-9\.:% ]+$/'); 1248define('ZBX_PREG_DNS_FORMAT', '([0-9a-zA-Z_\.\-$]|\{\$?'.ZBX_PREG_MACRO_NAME.'\})*'); 1249define('ZBX_PREG_HOST_FORMAT', ZBX_PREG_INTERNAL_NAMES); 1250define('ZBX_PREG_MACRO_NAME_FORMAT', '(\{[A-Z\.]+\})'); 1251define('ZBX_PREG_EXPRESSION_LLD_MACROS', '(\{\#'.ZBX_PREG_MACRO_NAME_LLD.'\})'); 1252 1253// !!! should be used with "x" modifier 1254define('ZBX_PREG_ITEM_KEY_PARAMETER_FORMAT', '( 1255 (?P>param) # match recursive parameter group 1256 | 1257 (\" # match quoted string 1258 ( 1259 ((\\\\)+?[^\\\\]) # match any amount of backslash with non-backslash ending 1260 | 1261 [^\"\\\\] # match any character except \ or " 1262 )*? # match \" or any character except " 1263 \") 1264 | 1265 [^\"\[\],][^,\]]*? #match unquoted string - any character except " [ ] and , at beginning and any character except , and ] afterwards 1266 | 1267 () # match empty and only empty part 1268)'); 1269define('ZBX_PREG_ITEM_KEY_FORMAT', '([0-9a-zA-Z_\. \-]+? # match key 1270(?P<param>( # name parameter group used in recursion 1271 \[ # match opening bracket 1272 ( 1273 \s*?'.ZBX_PREG_ITEM_KEY_PARAMETER_FORMAT .' # match spaces and parameter 1274 ( 1275 \s*?,\s*? # match spaces, comma and spaces 1276 '.ZBX_PREG_ITEM_KEY_PARAMETER_FORMAT .' # match parameter 1277 )*? # match spaces, comma, spaces, parameter zero or more times 1278 \s*? #matches spaces 1279 ) 1280 \] # match closing bracket 1281))*? # matches non comma separated brackets with parameters zero or more times 1282)'); 1283 1284define('TRIGGER_QUERY_PLACEHOLDER', '$'); // !!! Don't forget sync code with C !!! 1285 1286define('ZBX_USER_ONLINE_TIME', 600); // 10min 1287define('ZBX_GUEST_USER','guest'); 1288 1289// IPMI 1290define('IPMI_AUTHTYPE_DEFAULT', -1); 1291define('IPMI_AUTHTYPE_NONE', 0); 1292define('IPMI_AUTHTYPE_MD2', 1); 1293define('IPMI_AUTHTYPE_MD5', 2); 1294define('IPMI_AUTHTYPE_STRAIGHT', 4); 1295define('IPMI_AUTHTYPE_OEM', 5); 1296define('IPMI_AUTHTYPE_RMCP_PLUS', 6); 1297 1298define('IPMI_PRIVILEGE_CALLBACK', 1); 1299define('IPMI_PRIVILEGE_USER', 2); 1300define('IPMI_PRIVILEGE_OPERATOR', 3); 1301define('IPMI_PRIVILEGE_ADMIN', 4); 1302define('IPMI_PRIVILEGE_OEM', 5); 1303 1304define('ZBX_HAVE_IPV6', true); 1305define('ZBX_DISCOVERER_IPRANGE_LIMIT', 65536); 1306 1307// Value map mappings type 1308define('VALUEMAP_MAPPING_TYPE_EQUAL', 0); 1309define('VALUEMAP_MAPPING_TYPE_GREATER_EQUAL', 1); 1310define('VALUEMAP_MAPPING_TYPE_LESS_EQUAL', 2); 1311define('VALUEMAP_MAPPING_TYPE_IN_RANGE', 3); 1312define('VALUEMAP_MAPPING_TYPE_REGEXP', 4); 1313define('VALUEMAP_MAPPING_TYPE_DEFAULT', 5); 1314 1315define('ZBX_SOCKET_BYTES_LIMIT', ZBX_MEBIBYTE * 16); // socket response size limit 1316 1317// value is also used in servercheck.js file 1318define('SERVER_CHECK_INTERVAL', 10); 1319 1320define('DATE_TIME_FORMAT_SECONDS_XML', 'Y-m-d\TH:i:s\Z'); 1321 1322define('ZBX_DEFAULT_IMPORT_HOST_GROUP', 'Imported hosts'); 1323 1324// XML import flags 1325// See ZBX-8151. Old version of libxml suffered from setting DTDLOAD and NOENT flags by default, which allowed 1326// performing XXE attacks. Calling libxml_disable_entity_loader(true) also had no affect if flags passed to libxml 1327// calls were 0 - so for better security with legacy libxml we need to call libxml_disable_entity_loader(true) AND 1328// pass the LIBXML_NONET flag. Please keep in mind that LIBXML_NOENT actually EXPANDS entities, opposite to it's name - 1329// so this flag is not needed here. 1330define('LIBXML_IMPORT_FLAGS', LIBXML_NONET); 1331 1332// XML validation 1333define('XML_STRING', 0x01); 1334define('XML_ARRAY', 0x02); 1335define('XML_INDEXED_ARRAY', 0x04); 1336define('XML_REQUIRED', 0x08); 1337 1338// API validation 1339// multiple types 1340define('API_MULTIPLE', 0); 1341// scalar data types 1342define('API_STRING_UTF8', 1); 1343define('API_INT32', 2); 1344define('API_ID', 3); 1345define('API_BOOLEAN', 4); 1346define('API_FLAG', 5); 1347define('API_FLOAT', 6); 1348define('API_UINT64', 7); 1349// arrays 1350define('API_OBJECT', 8); 1351define('API_IDS', 9); 1352define('API_OBJECTS', 10); 1353define('API_STRINGS_UTF8', 11); 1354define('API_INTS32', 12); 1355define('API_FLOATS', 13); 1356define('API_UINTS64', 14); 1357// specific types 1358define('API_HG_NAME', 15); 1359define('API_SCRIPT_MENU_PATH', 16); 1360define('API_USER_MACRO', 17); 1361define('API_TIME_PERIOD', 18); 1362define('API_REGEX', 19); 1363define('API_HTTP_POST', 20); 1364define('API_VARIABLE_NAME', 21); 1365define('API_OUTPUT', 22); 1366define('API_TIME_UNIT', 23); 1367define('API_URL', 24); 1368define('API_H_NAME', 25); 1369define('API_RANGE_TIME', 26); 1370define('API_COLOR', 27); 1371define('API_NUMERIC', 28); 1372define('API_LLD_MACRO', 29); 1373define('API_PSK', 30); 1374define('API_SORTORDER', 31); 1375define('API_CALC_FORMULA', 32); 1376define('API_IP', 33); 1377define('API_DNS', 34); 1378define('API_PORT', 35); 1379define('API_TRIGGER_EXPRESSION', 36); 1380define('API_EVENT_NAME', 37); 1381define('API_JSONRPC_PARAMS', 38); 1382define('API_JSONRPC_ID', 39); 1383define('API_DATE', 40); 1384define('API_NUMERIC_RANGES', 41); 1385define('API_UUID', 42); 1386define('API_VAULT_SECRET', 43); 1387 1388// flags 1389define('API_REQUIRED', 0x0001); 1390define('API_NOT_EMPTY', 0x0002); 1391define('API_ALLOW_NULL', 0x0004); 1392define('API_NORMALIZE', 0x0008); 1393define('API_DEPRECATED', 0x0010); 1394define('API_ALLOW_USER_MACRO', 0x0020); 1395define('API_ALLOW_COUNT', 0x0040); 1396define('API_ALLOW_LLD_MACRO', 0x0080); 1397define('API_REQUIRED_LLD_MACRO', 0x0100); 1398define('API_TIME_UNIT_WITH_YEAR', 0x0200); 1399define('API_ALLOW_EVENT_TAGS_MACRO', 0x0400); 1400define('API_PRESERVE_KEYS', 0x0800); 1401define('API_ALLOW_MACRO', 0x1000); 1402define('API_ALLOW_GLOBAL_REGEX', 0x2000); 1403 1404// JSON error codes. 1405if (!defined('JSON_ERROR_NONE')) { 1406 define('JSON_ERROR_NONE', 0); 1407} 1408if (!defined('JSON_ERROR_SYNTAX')) { 1409 define('JSON_ERROR_SYNTAX', 4); 1410} 1411 1412// API errors 1413define('ZBX_API_ERROR_INTERNAL', 111); 1414define('ZBX_API_ERROR_PARAMETERS', 100); 1415define('ZBX_API_ERROR_PERMISSIONS', 120); 1416define('ZBX_API_ERROR_NO_AUTH', 200); 1417define('ZBX_API_ERROR_NO_METHOD', 300); 1418 1419define('API_OUTPUT_EXTEND', 'extend'); 1420define('API_OUTPUT_COUNT', 'count'); 1421 1422define('ZBX_AUTH_TOKEN_ENABLED', 0); 1423define('ZBX_AUTH_TOKEN_DISABLED', 1); 1424 1425define('ZBX_JAN_2038', 2145916800); 1426 1427define('DAY_IN_YEAR', 365); 1428 1429define('ZBX_MIN_PORT_NUMBER', 0); 1430define('ZBX_MAX_PORT_NUMBER', 65535); 1431 1432define('ZBX_MACRO_TYPE_TEXT', 0); // Display macro value as text. 1433define('ZBX_MACRO_TYPE_SECRET', 1); // Display masked macro value. 1434define('ZBX_MACRO_TYPE_VAULT', 2); // Display macro value as text (path to secret in HashiCorp Vault). 1435 1436define('ZBX_SECRET_MASK', '******'); // Placeholder for secret values. 1437 1438// Layout 1439define('ZBX_LAYOUT_NORMAL', 0); 1440define('ZBX_LAYOUT_KIOSKMODE', 1); 1441define('ZBX_LAYOUT_MODE', 'layout-mode'); 1442 1443// Sidebar 1444define('ZBX_SIDEBAR_VIEW_MODE_FULL', 0); 1445define('ZBX_SIDEBAR_VIEW_MODE_COMPACT', 1); 1446define('ZBX_SIDEBAR_VIEW_MODE_HIDDEN', 2); 1447 1448// input fields 1449define('ZBX_TEXTAREA_HTTP_PAIR_NAME_WIDTH', 218); 1450define('ZBX_TEXTAREA_HTTP_PAIR_VALUE_WIDTH', 218); 1451define('ZBX_TEXTAREA_MACRO_WIDTH', 250); 1452define('ZBX_TEXTAREA_MACRO_VALUE_WIDTH', 300); 1453define('ZBX_TEXTAREA_MACRO_INHERITED_WIDTH', 180); 1454define('ZBX_TEXTAREA_TAG_WIDTH', 250); 1455define('ZBX_TEXTAREA_TAG_VALUE_WIDTH', 300); 1456define('ZBX_TEXTAREA_MAPPING_VALUE_WIDTH', 250); 1457define('ZBX_TEXTAREA_MAPPING_NEWVALUE_WIDTH', 250); 1458define('ZBX_TEXTAREA_COLOR_WIDTH', 96); 1459define('ZBX_TEXTAREA_FILTER_SMALL_WIDTH', 150); 1460define('ZBX_TEXTAREA_FILTER_STANDARD_WIDTH', 300); 1461define('ZBX_TEXTAREA_TINY_WIDTH', 75); 1462define('ZBX_TEXTAREA_SMALL_WIDTH', 150); 1463define('ZBX_TEXTAREA_MEDIUM_WIDTH', 270); 1464define('ZBX_TEXTAREA_STANDARD_WIDTH', 453); 1465define('ZBX_TEXTAREA_BIG_WIDTH', 540); 1466define('ZBX_TEXTAREA_NUMERIC_STANDARD_WIDTH', 75); 1467define('ZBX_TEXTAREA_NUMERIC_BIG_WIDTH', 150); 1468define('ZBX_TEXTAREA_2DIGITS_WIDTH', 35); // please use for date selector only 1469define('ZBX_TEXTAREA_4DIGITS_WIDTH', 50); // please use for date selector only 1470define('ZBX_TEXTAREA_INTERFACE_IP_WIDTH', 225); 1471define('ZBX_TEXTAREA_INTERFACE_DNS_WIDTH', 175); 1472define('ZBX_TEXTAREA_INTERFACE_PORT_WIDTH', 100); 1473define('ZBX_TEXTAREA_STANDARD_ROWS', 7); 1474 1475// decoration borders 1476define('ZBX_HOST_INTERFACE_WIDTH', 750); 1477 1478// overviews help 1479define('ZBX_OVERVIEW_HELP_MIN_WIDTH', 125); 1480 1481// Helper buttons that allow selected objects to be added, replaced or removed. 1482define('ZBX_ACTION_ADD', 0); 1483define('ZBX_ACTION_REPLACE', 1); 1484define('ZBX_ACTION_REMOVE', 2); 1485define('ZBX_ACTION_REMOVE_ALL', 3); 1486define('ZBX_ACTION_RENAME', 4); 1487 1488// Maximum width for popups in Actions column for problems. 1489define('ZBX_ACTIONS_POPUP_MAX_WIDTH', 800); 1490 1491// dashboard widgets 1492define('WIDGET_ACTION_LOG', 'actionlog'); 1493define('WIDGET_CLOCK', 'clock'); 1494define('WIDGET_DATA_OVER', 'dataover'); 1495define('WIDGET_DISCOVERY', 'discovery'); 1496define('WIDGET_FAV_GRAPHS', 'favgraphs'); 1497define('WIDGET_FAV_MAPS', 'favmaps'); 1498define('WIDGET_SVG_GRAPH', 'svggraph'); 1499define('WIDGET_GRAPH', 'graph'); 1500define('WIDGET_GRAPH_PROTOTYPE', 'graphprototype'); 1501define('WIDGET_HOST_AVAIL', 'hostavail'); 1502define('WIDGET_MAP', 'map'); 1503define('WIDGET_NAV_TREE', 'navtree'); 1504define('WIDGET_PLAIN_TEXT', 'plaintext'); 1505define('WIDGET_PROBLEM_HOSTS', 'problemhosts'); 1506define('WIDGET_PROBLEMS', 'problems'); 1507define('WIDGET_PROBLEMS_BY_SV', 'problemsbysv'); 1508define('WIDGET_SYSTEM_INFO', 'systeminfo'); 1509define('WIDGET_TRIG_OVER', 'trigover'); 1510define('WIDGET_URL', 'url'); 1511define('WIDGET_WEB', 'web'); 1512 1513// sysmap widget source types 1514define('WIDGET_SYSMAP_SOURCETYPE_MAP', 1); 1515define('WIDGET_SYSMAP_SOURCETYPE_FILTER', 2); 1516 1517// widget select resource field types 1518define('WIDGET_FIELD_SELECT_RES_SYSMAP', 1); 1519 1520// max depth of navigation tree 1521define('WIDGET_NAVIGATION_TREE_MAX_DEPTH', 10); 1522 1523// event details widgets 1524define('WIDGET_HAT_TRIGGERDETAILS', 'hat_triggerdetails'); 1525define('WIDGET_HAT_EVENTDETAILS', 'hat_eventdetails'); 1526define('WIDGET_HAT_EVENTACTIONS', 'hat_eventactions'); 1527define('WIDGET_HAT_EVENTLIST', 'hat_eventlist'); 1528// search widget 1529define('WIDGET_SEARCH_HOSTS', 'search_hosts'); 1530define('WIDGET_SEARCH_HOSTGROUP', 'search_hostgroup'); 1531define('WIDGET_SEARCH_TEMPLATES', 'search_templates'); 1532 1533// dashboard widget dynamic state 1534define('WIDGET_SIMPLE_ITEM', 0); 1535define('WIDGET_DYNAMIC_ITEM', 1); 1536 1537// widget defaults 1538define('ZBX_WIDGET_ROWS', 20); 1539 1540// widget field types 1541define('ZBX_WIDGET_FIELD_TYPE_INT32', 0); 1542define('ZBX_WIDGET_FIELD_TYPE_STR', 1); 1543define('ZBX_WIDGET_FIELD_TYPE_GROUP', 2); 1544define('ZBX_WIDGET_FIELD_TYPE_HOST', 3); 1545define('ZBX_WIDGET_FIELD_TYPE_ITEM', 4); 1546define('ZBX_WIDGET_FIELD_TYPE_ITEM_PROTOTYPE', 5); 1547define('ZBX_WIDGET_FIELD_TYPE_GRAPH', 6); 1548define('ZBX_WIDGET_FIELD_TYPE_GRAPH_PROTOTYPE', 7); 1549define('ZBX_WIDGET_FIELD_TYPE_MAP', 8); 1550 1551define('ZBX_WIDGET_FIELD_RESOURCE_GRAPH', 0); 1552define('ZBX_WIDGET_FIELD_RESOURCE_SIMPLE_GRAPH', 1); 1553define('ZBX_WIDGET_FIELD_RESOURCE_GRAPH_PROTOTYPE', 2); 1554define('ZBX_WIDGET_FIELD_RESOURCE_SIMPLE_GRAPH_PROTOTYPE', 3); 1555 1556// widget view modes 1557define('ZBX_WIDGET_VIEW_MODE_NORMAL', 0); 1558define('ZBX_WIDGET_VIEW_MODE_HIDDEN_HEADER', 1); 1559 1560// validation 1561define('DB_ID', "({}>=0&&bccomp({},\"9223372036854775807\")<=0)&&"); 1562define('NOT_EMPTY', "({}!='')&&"); 1563define('NOT_ZERO', "({}!=0)&&"); 1564 1565define('ZBX_VALID_OK', 0); 1566define('ZBX_VALID_ERROR', 1); 1567define('ZBX_VALID_WARNING', 2); 1568 1569// user default language 1570define('LANG_DEFAULT', 'default'); 1571 1572// the default language 1573define('ZBX_DEFAULT_LANG', 'en_GB'); 1574 1575// user default time zone 1576define('TIMEZONE_DEFAULT', 'default'); 1577 1578// the default time zone 1579define('ZBX_DEFAULT_TIMEZONE', 'system'); 1580 1581// user default theme 1582define('THEME_DEFAULT', 'default'); 1583 1584// the default theme 1585define('ZBX_DEFAULT_THEME', 'blue-theme'); 1586 1587// date format context, usable for translators 1588define('DATE_FORMAT_CONTEXT', 'Date format (see http://php.net/date)'); 1589 1590// availability report modes 1591define('AVAILABILITY_REPORT_BY_HOST', 0); 1592define('AVAILABILITY_REPORT_BY_TEMPLATE', 1); 1593 1594// monitoring modes 1595define('ZBX_MONITORED_BY_ANY', 0); 1596define('ZBX_MONITORED_BY_SERVER', 1); 1597define('ZBX_MONITORED_BY_PROXY', 2); 1598 1599// queue modes 1600define('QUEUE_OVERVIEW', 0); 1601define('QUEUE_OVERVIEW_BY_PROXY', 1); 1602define('QUEUE_DETAILS', 2); 1603 1604// target types to copy items/triggers/graphs 1605define('COPY_TYPE_TO_HOST_GROUP', 0); 1606define('COPY_TYPE_TO_HOST', 1); 1607define('COPY_TYPE_TO_TEMPLATE', 2); 1608 1609define('HISTORY_GRAPH', 'showgraph'); 1610define('HISTORY_BATCH_GRAPH', 'batchgraph'); 1611define('HISTORY_VALUES', 'showvalues'); 1612define('HISTORY_LATEST', 'showlatest'); 1613 1614// Item history and trends storage modes. 1615define('ITEM_STORAGE_OFF', 0); 1616define('ITEM_STORAGE_CUSTOM', 1); 1617 1618// Item history and trends storage value to define 0 storage period. 1619define('ITEM_NO_STORAGE_VALUE', 0); 1620 1621// configuration -> maps default add icon name 1622define('MAP_DEFAULT_ICON', 'Server_(96)'); 1623 1624// Condition popup types. 1625define('ZBX_POPUP_CONDITION_TYPE_EVENT_CORR', 0); 1626define('ZBX_POPUP_CONDITION_TYPE_ACTION', 1); 1627define('ZBX_POPUP_CONDITION_TYPE_ACTION_OPERATION', 2); 1628 1629// Tab indicator names. 1630define('TAB_INDICATOR_MACROS', 'macros'); 1631define('TAB_INDICATOR_LINKED_TEMPLATE', 'linked-template'); 1632define('TAB_INDICATOR_TAGS', 'tags'); 1633define('TAB_INDICATOR_AUTH_HTTP', 'http'); 1634define('TAB_INDICATOR_AUTH_LDAP', 'ldap'); 1635define('TAB_INDICATOR_AUTH_SAML', 'saml'); 1636define('TAB_INDICATOR_INVENTORY', 'inventory'); 1637define('TAB_INDICATOR_ENCRYPTION', 'encryption'); 1638define('TAB_INDICATOR_GROUPS', 'groups'); 1639define('TAB_INDICATOR_PREPROCESSING', 'preprocessing'); 1640define('TAB_INDICATOR_DEPENDENCY', 'dependency'); 1641define('TAB_INDICATOR_LLD_MACROS', 'lld-macros'); 1642define('TAB_INDICATOR_FILTERS', 'filters'); 1643define('TAB_INDICATOR_OVERRIDES', 'overrides'); 1644define('TAB_INDICATOR_STEPS', 'steps'); 1645define('TAB_INDICATOR_HTTP_AUTH', 'http-auth'); 1646define('TAB_INDICATOR_OPERATIONS', 'operations'); 1647define('TAB_INDICATOR_SERVICE_DEPENDENCY', 'service-dependency'); 1648define('TAB_INDICATOR_TIME', 'time'); 1649define('TAB_INDICATOR_TAG_FILTER', 'tag-filter'); 1650define('TAB_INDICATOR_MEDIA', 'media'); 1651define('TAB_INDICATOR_MESSAGE_TEMPLATE', 'message-template'); 1652define('TAB_INDICATOR_FRONTEND_MESSAGE', 'frontend-message'); 1653define('TAB_INDICATOR_SHARING', 'sharing'); 1654define('TAB_INDICATOR_GRAPH_DATASET', 'graph-dataset'); 1655define('TAB_INDICATOR_GRAPH_OPTIONS', 'graph-options'); 1656define('TAB_INDICATOR_GRAPH_TIME', 'graph-time'); 1657define('TAB_INDICATOR_GRAPH_LEGEND', 'graph-legend'); 1658define('TAB_INDICATOR_GRAPH_PROBLEMS', 'graph-problems'); 1659define('TAB_INDICATOR_GRAPH_OVERRIDES', 'graph-overrides'); 1660define('TAB_INDICATOR_PERMISSIONS', 'permissions'); 1661define('TAB_INDICATOR_VALUEMAPS', 'valuemaps'); 1662 1663// CSS styles 1664define('ZBX_STYLE_ACTION_BUTTONS', 'action-buttons'); 1665define('ZBX_STYLE_ADM_IMG', 'adm-img'); 1666define('ZBX_STYLE_AVERAGE_BG', 'average-bg'); 1667define('ZBX_STYLE_ARROW_DOWN', 'arrow-down'); 1668define('ZBX_STYLE_ARROW_LEFT', 'arrow-left'); 1669define('ZBX_STYLE_ARROW_RIGHT', 'arrow-right'); 1670define('ZBX_STYLE_ARROW_UP', 'arrow-up'); 1671define('ZBX_STYLE_BLUE', 'blue'); 1672define('ZBX_STYLE_BTN_ADD_FAV', 'btn-add-fav'); 1673define('ZBX_STYLE_BTN_ALT', 'btn-alt'); 1674define('ZBX_STYLE_BTN_TOGGLE_CHEVRON', 'btn-toggle-chevron'); 1675define('ZBX_STYLE_BTN_SPLIT', 'btn-split'); 1676define('ZBX_STYLE_BTN_TOGGLE', 'btn-dropdown-toggle'); 1677define('ZBX_STYLE_BTN_BACK_MAP', 'btn-back-map'); 1678define('ZBX_STYLE_BTN_BACK_MAP_CONTAINER', 'btn-back-map-container'); 1679define('ZBX_STYLE_BTN_BACK_MAP_CONTENT', 'btn-back-map-content'); 1680define('ZBX_STYLE_BTN_BACK_MAP_ICON', 'btn-back-map-icon'); 1681define('ZBX_STYLE_BTN_ACTION', 'btn-action'); 1682define('ZBX_STYLE_BTN_DASHBOARD_CONF', 'btn-dashboard-conf'); 1683define('ZBX_STYLE_BTN_DASHBOARD_NORMAL', 'btn-dashboard-normal'); 1684define('ZBX_STYLE_BTN_DASHBOARD_KIOSKMODE_TOGGLE_SLIDESHOW', 'btn-dashboard-kioskmode-toggle-slideshow'); 1685define('ZBX_STYLE_BTN_DASHBOARD_KIOSKMODE_PREVIOUS_PAGE', 'btn-dashboard-kioskmode-previous-page'); 1686define('ZBX_STYLE_BTN_DASHBOARD_KIOSKMODE_NEXT_PAGE', 'btn-dashboard-kioskmode-next-page'); 1687define('ZBX_STYLE_BTN_DEBUG', 'btn-debug'); 1688define('ZBX_STYLE_BTN_GREY', 'btn-grey'); 1689define('ZBX_STYLE_BTN_INFO', 'btn-info'); 1690define('ZBX_STYLE_BTN_LINK', 'btn-link'); 1691define('ZBX_STYLE_BTN_KIOSK', 'btn-kiosk'); 1692define('ZBX_STYLE_BTN_MIN', 'btn-min'); 1693define('ZBX_STYLE_BTN_REMOVE_FAV', 'btn-remove-fav'); 1694define('ZBX_STYLE_BTN_TIME', 'btn-time'); 1695define('ZBX_STYLE_BTN_TIME_LEFT', 'btn-time-left'); 1696define('ZBX_STYLE_BTN_TIME_OUT', 'btn-time-out'); 1697define('ZBX_STYLE_BTN_TIME_RIGHT', 'btn-time-right'); 1698define('ZBX_STYLE_BTN_WIDGET_ACTION', 'btn-widget-action'); 1699define('ZBX_STYLE_BTN_WIDGET_COLLAPSE', 'btn-widget-collapse'); 1700define('ZBX_STYLE_BTN_WIDGET_EDIT', 'btn-widget-edit'); 1701define('ZBX_STYLE_BTN_WIDGET_EXPAND', 'btn-widget-expand'); 1702define('ZBX_STYLE_BOTTOM', 'bottom'); 1703define('ZBX_STYLE_BROWSER_LOGO_CHROME', 'browser-logo-chrome'); 1704define('ZBX_STYLE_BROWSER_LOGO_FF', 'browser-logo-ff'); 1705define('ZBX_STYLE_BROWSER_LOGO_ED', 'browser-logo-ed'); 1706define('ZBX_STYLE_BROWSER_LOGO_OPERA', 'browser-logo-opera'); 1707define('ZBX_STYLE_BROWSER_LOGO_SAFARI', 'browser-logo-safari'); 1708define('ZBX_STYLE_BROWSER_WARNING_CONTAINER', 'browser-warning-container'); 1709define('ZBX_STYLE_BROWSER_WARNING_FOOTER', 'browser-warning-footer'); 1710define('ZBX_STYLE_CELL', 'cell'); 1711define('ZBX_STYLE_CELL_WIDTH', 'cell-width'); 1712define('ZBX_STYLE_CENTER', 'center'); 1713define('ZBX_STYLE_CHECKBOX_RADIO', 'checkbox-radio'); 1714define('ZBX_STYLE_CLOCK', 'clock'); 1715define('ZBX_STYLE_SYSMAP', 'sysmap'); 1716define('ZBX_STYLE_NAVIGATIONTREE', 'navtree'); 1717define('ZBX_STYLE_CHECKBOX_LIST', 'checkbox-list'); 1718define('ZBX_STYLE_CLOCK_SVG', 'clock-svg'); 1719define('ZBX_STYLE_CLOCK_FACE', 'clock-face'); 1720define('ZBX_STYLE_CLOCK_HAND', 'clock-hand'); 1721define('ZBX_STYLE_CLOCK_HAND_SEC', 'clock-hand-sec'); 1722define('ZBX_STYLE_CLOCK_LINES', 'clock-lines'); 1723define('ZBX_STYLE_COLOR_PICKER', 'color-picker'); 1724define('ZBX_STYLE_COLOR_PREVIEW_BOX', 'color-preview-box'); 1725define('ZBX_STYLE_COLUMN_TAGS_1', 'column-tags-1'); 1726define('ZBX_STYLE_COLUMN_TAGS_2', 'column-tags-2'); 1727define('ZBX_STYLE_COLUMN_TAGS_3', 'column-tags-3'); 1728define('ZBX_STYLE_COMPACT_VIEW', 'compact-view'); 1729define('ZBX_STYLE_CURSOR_POINTER', 'cursor-pointer'); 1730define('ZBX_STYLE_DASHBOARD', 'dashboard'); 1731define('ZBX_STYLE_DASHBOARD_IS_MULTIPAGE', 'dashboard-is-multipage'); 1732define('ZBX_STYLE_DASHBOARD_IS_EDIT_MODE', 'dashboard-is-edit-mode'); 1733define('ZBX_STYLE_DASHBOARD_KIOSKMODE_CONTROLS', 'dashboard-kioskmode-controls'); 1734define('ZBX_STYLE_DASHBOARD_GRID', 'dashboard-grid'); 1735define('ZBX_STYLE_DASHBOARD_NAVIGATION', 'dashboard-navigation'); 1736define('ZBX_STYLE_DASHBOARD_NAVIGATION_CONTROLS', 'dashboard-navigation-controls'); 1737define('ZBX_STYLE_DASHBOARD_NAVIGATION_TABS', 'dashboard-navigation-tabs'); 1738define('ZBX_STYLE_DASHBOARD_PREVIOUS_PAGE', 'dashboard-previous-page'); 1739define('ZBX_STYLE_DASHBOARD_NEXT_PAGE', 'dashboard-next-page'); 1740define('ZBX_STYLE_DASHBOARD_TOGGLE_SLIDESHOW', 'dashboard-toggle-slideshow'); 1741define('ZBX_STYLE_DASHBOARD_WIDGET', 'dashboard-widget'); 1742define('ZBX_STYLE_DASHBOARD_WIDGET_FLUID', 'dashboard-widget-fluid'); 1743define('ZBX_STYLE_DASHBOARD_WIDGET_HEAD', 'dashboard-widget-head'); 1744define('ZBX_STYLE_DASHBOARD_WIDGET_FOOT', 'dashboard-widget-foot'); 1745define('ZBX_STYLE_DASHBOARD_EDIT', 'dashboard-edit'); 1746define('ZBX_STYLE_DASHBOARD_WIDGET_GRAPH_LINK', 'dashboard-widget-graph-link'); 1747define('ZBX_STYLE_DASHED_BORDER', 'dashed-border'); 1748define('ZBX_STYLE_DEBUG_OUTPUT', 'debug-output'); 1749define('ZBX_STYLE_DIFF', 'diff'); 1750define('ZBX_STYLE_DIFF_ADDED', 'diff-added'); 1751define('ZBX_STYLE_DIFF_REMOVED', 'diff-removed'); 1752define('ZBX_STYLE_DISABLED', 'disabled'); 1753define('ZBX_STYLE_DISASTER_BG', 'disaster-bg'); 1754define('ZBX_STYLE_DISPLAY_NONE', 'display-none'); 1755define('ZBX_STYLE_DRAG_ICON', 'drag-icon'); 1756define('ZBX_STYLE_PROBLEM_UNACK_FG', 'problem-unack-fg'); 1757define('ZBX_STYLE_PROBLEM_ACK_FG', 'problem-ack-fg'); 1758define('ZBX_STYLE_OK_UNACK_FG', 'ok-unack-fg'); 1759define('ZBX_STYLE_OK_ACK_FG', 'ok-ack-fg'); 1760define('ZBX_STYLE_OVERRIDES_LIST', 'overrides-list'); 1761define('ZBX_STYLE_OVERRIDES_LIST_ITEM', 'overrides-list-item'); 1762define('ZBX_STYLE_OVERRIDES_OPTIONS_LIST', 'overrides-options-list'); 1763define('ZBX_STYLE_PLUS_ICON', 'plus-icon'); 1764define('ZBX_STYLE_DRAG_DROP_AREA', 'drag-drop-area'); 1765define('ZBX_STYLE_TABLE_FORMS_SEPARATOR', 'table-forms-separator'); 1766define('ZBX_STYLE_TABLE_LEFT_BORDER', 'border-left'); 1767define('ZBX_STYLE_TIME_INPUT', 'time-input'); 1768define('ZBX_STYLE_TIME_INPUT_ERROR', 'time-input-error'); 1769define('ZBX_STYLE_TIME_QUICK', 'time-quick'); 1770define('ZBX_STYLE_TIME_QUICK_RANGE', 'time-quick-range'); 1771define('ZBX_STYLE_TIME_SELECTION_CONTAINER', 'time-selection-container'); 1772define('ZBX_STYLE_FILTER_BTN_CONTAINER', 'filter-btn-container'); 1773define('ZBX_STYLE_FILTER_CONTAINER', 'filter-container'); 1774define('ZBX_STYLE_FILTER_HIGHLIGHT_ROW_CB', 'filter-highlight-row-cb'); 1775define('ZBX_STYLE_FILTER_FORMS', 'filter-forms'); 1776define('ZBX_STYLE_FILTER_SPACE', 'filter-space'); 1777define('ZBX_STYLE_FILTER_TRIGGER', 'filter-trigger'); 1778define('ZBX_STYLE_FLH_AVERAGE_BG', 'flh-average-bg'); 1779define('ZBX_STYLE_FLH_DISASTER_BG', 'flh-disaster-bg'); 1780define('ZBX_STYLE_FLH_HIGH_BG', 'flh-high-bg'); 1781define('ZBX_STYLE_FLH_INFO_BG', 'flh-info-bg'); 1782define('ZBX_STYLE_FLH_NA_BG', 'flh-na-bg'); 1783define('ZBX_STYLE_FLH_WARNING_BG', 'flh-warning-bg'); 1784define('ZBX_STYLE_FLOAT_LEFT', 'float-left'); 1785define('ZBX_STYLE_FORM_INPUT_MARGIN', 'form-input-margin'); 1786define('ZBX_STYLE_FORM_FIELDS_INLINE', 'form-fields-inline'); 1787define('ZBX_STYLE_FORM_NEW_GROUP', 'form-new-group'); 1788define('ZBX_STYLE_GRAPH_WRAPPER', 'graph-wrapper'); 1789define('ZBX_STYLE_GREEN', 'green'); 1790define('ZBX_STYLE_GREEN_BG', 'green-bg'); 1791define('ZBX_STYLE_GREY', 'grey'); 1792define('ZBX_STYLE_TEAL', 'teal'); 1793define('ZBX_STYLE_HEADER_TITLE', 'header-title'); 1794define('ZBX_STYLE_HEADER_CONTROLS', 'header-controls'); 1795define('ZBX_STYLE_HEADER_Z_SELECT', 'header-z-select'); 1796define('ZBX_STYLE_HIGH_BG', 'high-bg'); 1797define('ZBX_STYLE_HOR_LIST', 'hor-list'); 1798define('ZBX_STYLE_HOVER_NOBG', 'hover-nobg'); 1799define('ZBX_STYLE_HINTBOX_WRAP', 'hintbox-wrap'); 1800define('ZBX_STYLE_ICON_ACKN', 'icon-ackn'); 1801define('ZBX_STYLE_ICON_CAL', 'icon-cal'); 1802define('ZBX_STYLE_ICON_DEPEND_DOWN', 'icon-depend-down'); 1803define('ZBX_STYLE_ICON_DEPEND_UP', 'icon-depend-up'); 1804define('ZBX_STYLE_ICON_DESCRIPTION', 'icon-description'); 1805define('ZBX_STYLE_ICON_INFO', 'icon-info'); 1806define('ZBX_STYLE_ICON_INVISIBLE', 'icon-invisible'); 1807define('ZBX_STYLE_ICON_USER', 'icon-user'); 1808define('ZBX_STYLE_ICON_USER_GROUP', 'icon-user-group'); 1809define('ZBX_STYLE_ICON_MAINT', 'icon-maint'); 1810define('ZBX_STYLE_ICON_WZRD_ACTION', 'icon-wzrd-action'); 1811define('ZBX_STYLE_ACTION_COMMAND', 'icon-action-command'); 1812define('ZBX_STYLE_ACTION_ICON_CLOSE', 'icon-action-close'); 1813define('ZBX_STYLE_ACTION_ICON_MSG', 'icon-action-msg'); 1814define('ZBX_STYLE_ACTION_ICON_MSGS', 'icon-action-msgs'); 1815define('ZBX_STYLE_ACTION_ICON_SEV_UP', 'icon-action-severity-up'); 1816define('ZBX_STYLE_ACTION_ICON_SEV_DOWN', 'icon-action-severity-down'); 1817define('ZBX_STYLE_ACTION_ICON_SEV_CHANGED', 'icon-action-severity-changed'); 1818define('ZBX_STYLE_ACTION_MESSAGE', 'icon-action-message'); 1819define('ZBX_STYLE_ACTION_ICON_ACK', 'icon-action-ack'); 1820define('ZBX_STYLE_ACTION_ICON_UNACK', 'icon-action-unack'); 1821define('ZBX_STYLE_PROBLEM_GENERATED', 'icon-problem-generated'); 1822define('ZBX_STYLE_PROBLEM_RECOVERY', 'icon-problem-recovery'); 1823define('ZBX_STYLE_ACTIONS_NUM_GRAY', 'icon-actions-number-gray'); 1824define('ZBX_STYLE_ACTIONS_NUM_YELLOW', 'icon-actions-number-yellow'); 1825define('ZBX_STYLE_ACTIONS_NUM_RED', 'icon-actions-number-red'); 1826define('ZBX_STYLE_INACTIVE_BG', 'inactive-bg'); 1827define('ZBX_STYLE_INFO_BG', 'info-bg'); 1828define('ZBX_STYLE_INPUT_COLOR_PICKER', 'input-color-picker'); 1829define('ZBX_STYLE_LAYOUT_KIOSKMODE', 'layout-kioskmode'); 1830define('ZBX_STYLE_LAYOUT_WRAPPER', 'wrapper'); 1831define('ZBX_STYLE_LEFT', 'left'); 1832define('ZBX_STYLE_LINK_ACTION', 'link-action'); 1833define('ZBX_STYLE_LINK_ALT', 'link-alt'); 1834define('ZBX_STYLE_LIST_CHECK_RADIO', 'list-check-radio'); 1835define('ZBX_STYLE_LIST_TABLE', 'list-table'); 1836define('ZBX_STYLE_LIST_TABLE_FOOTER', 'list-table-footer'); 1837define('ZBX_STYLE_LIST_VERTICAL_ACCORDION', 'list-vertical-accordion'); 1838define('ZBX_STYLE_LIST_ACCORDION_FOOT', 'list-accordion-foot'); 1839define('ZBX_STYLE_LIST_ACCORDION_ITEM', 'list-accordion-item'); 1840define('ZBX_STYLE_LIST_ACCORDION_ITEM_OPENED', 'list-accordion-item-opened'); 1841define('ZBX_STYLE_LIST_ACCORDION_ITEM_CLOSED', 'list-accordion-item-closed'); 1842define('ZBX_STYLE_LIST_ACCORDION_ITEM_HEAD', 'list-accordion-item-head'); 1843define('ZBX_STYLE_LIST_ACCORDION_ITEM_BODY', 'list-accordion-item-body'); 1844define('ZBX_STYLE_LOCAL_CLOCK', 'local-clock'); 1845define('ZBX_STYLE_LOG_NA_BG', 'log-na-bg'); 1846define('ZBX_STYLE_LOG_INFO_BG', 'log-info-bg'); 1847define('ZBX_STYLE_LOG_WARNING_BG', 'log-warning-bg'); 1848define('ZBX_STYLE_LOG_HIGH_BG', 'log-high-bg'); 1849define('ZBX_STYLE_LOG_DISASTER_BG', 'log-disaster-bg'); 1850define('ZBX_STYLE_LOGO', 'logo'); 1851define('ZBX_STYLE_MAP_AREA', 'map-area'); 1852define('ZBX_STYLE_MIDDLE', 'middle'); 1853define('ZBX_STYLE_MONOSPACE_FONT', 'monospace-font'); 1854define('ZBX_STYLE_MSG_GOOD', 'msg-good'); 1855define('ZBX_STYLE_MSG_BAD', 'msg-bad'); 1856define('ZBX_STYLE_MSG_WARNING', 'msg-warning'); 1857define('ZBX_STYLE_MSG_GLOBAL_FOOTER', 'msg-global-footer'); 1858define('ZBX_STYLE_MSG_DETAILS', 'msg-details'); 1859define('ZBX_STYLE_MSG_DETAILS_BORDER', 'msg-details-border'); 1860define('ZBX_STYLE_NA_BG', 'na-bg'); 1861define('ZBX_STYLE_NORMAL_BG', 'normal-bg'); 1862define('ZBX_STYLE_NOTIF_BODY', 'notif-body'); 1863define('ZBX_STYLE_NOTIF_INDIC', 'notif-indic'); 1864define('ZBX_STYLE_NOTIF_INDIC_CONTAINER', 'notif-indic-container'); 1865define('ZBX_STYLE_NOTHING_TO_SHOW', 'nothing-to-show'); 1866define('ZBX_STYLE_NOWRAP', 'nowrap'); 1867define('ZBX_STYLE_WORDWRAP', 'wordwrap'); 1868define('ZBX_STYLE_WORDBREAK', 'wordbreak'); 1869define('ZBX_STYLE_ORANGE', 'orange'); 1870define('ZBX_STYLE_OVERLAY_CLOSE_BTN', 'overlay-close-btn'); 1871define('ZBX_STYLE_OVERLAY_DESCR', 'overlay-descr'); 1872define('ZBX_STYLE_OVERLAY_DESCR_URL', 'overlay-descr-url'); 1873define('ZBX_STYLE_OVERFLOW_ELLIPSIS', 'overflow-ellipsis'); 1874define('ZBX_STYLE_PAGING_BTN_CONTAINER', 'paging-btn-container'); 1875define('ZBX_STYLE_PAGING_SELECTED', 'paging-selected'); 1876define('ZBX_STYLE_PAGE_TITLE', 'page-title-general'); 1877define('ZBX_STYLE_PAGE_TITLE_SUBMENU', 'page-title-submenu'); 1878define('ZBX_STYLE_PROGRESS_BAR_BG', 'progress-bar-bg'); 1879define('ZBX_STYLE_PROGRESS_BAR_CONTAINER', 'progress-bar-container'); 1880define('ZBX_STYLE_PROGRESS_BAR_LABEL', 'progress-bar-label'); 1881define('ZBX_STYLE_RED', 'red'); 1882define('ZBX_STYLE_RED_BG', 'red-bg'); 1883define('ZBX_STYLE_REL_CONTAINER', 'rel-container'); 1884define('ZBX_STYLE_REMOVE_BTN', 'remove-btn'); 1885define('ZBX_STYLE_RIGHT', 'right'); 1886define('ZBX_STYLE_ROW', 'row'); 1887define('ZBX_STYLE_INLINE_SR_ONLY', 'inline-sr-only'); 1888define('ZBX_STYLE_VALUEMAP_LIST_TABLE', 'valuemap-list-table'); 1889define('ZBX_STYLE_VALUEMAP_CHECKBOX', 'valuemap-checkbox'); 1890define('ZBX_STYLE_VALUEMAP_MAPPINGS_TABLE', 'mappings-table'); 1891define('ZBX_STYLE_SEARCH', 'search'); 1892define('ZBX_STYLE_FORM_SEARCH', 'form-search'); 1893define('ZBX_STYLE_SECOND_COLUMN_LABEL', 'second-column-label'); 1894define('ZBX_STYLE_SELECTED', 'selected'); 1895define('ZBX_STYLE_SELECTED_ITEM_COUNT', 'selected-item-count'); 1896define('ZBX_STYLE_SERVER_NAME', 'server-name'); 1897define('ZBX_STYLE_SETUP_CONTAINER', 'setup-container'); 1898define('ZBX_STYLE_SETUP_FOOTER', 'setup-footer'); 1899define('ZBX_STYLE_SETUP_LEFT', 'setup-left'); 1900define('ZBX_STYLE_SETUP_LEFT_CURRENT', 'setup-left-current'); 1901define('ZBX_STYLE_SETUP_RIGHT', 'setup-right'); 1902define('ZBX_STYLE_SETUP_RIGHT_BODY', 'setup-right-body'); 1903define('ZBX_STYLE_SETUP_TITLE', 'setup-title'); 1904define('ZBX_STYLE_SIGNIN_CONTAINER', 'signin-container'); 1905define('ZBX_STYLE_SIGNIN_LINKS', 'signin-links'); 1906define('ZBX_STYLE_SIGNIN_LOGO', 'signin-logo'); 1907define('ZBX_STYLE_SIGN_IN_TXT', 'sign-in-txt'); 1908define('ZBX_STYLE_STATUS_AVERAGE_BG', 'status-average-bg'); 1909define('ZBX_STYLE_STATUS_CONTAINER', 'status-container'); 1910define('ZBX_STYLE_STATUS_DARK_GREY', 'status-dark-grey'); 1911define('ZBX_STYLE_STATUS_DISABLED_BG', 'status-disabled-bg'); 1912define('ZBX_STYLE_STATUS_DISASTER_BG', 'status-disaster-bg'); 1913define('ZBX_STYLE_STATUS_GREEN', 'status-green'); 1914define('ZBX_STYLE_STATUS_GREY', 'status-grey'); 1915define('ZBX_STYLE_STATUS_HIGH_BG', 'status-high-bg'); 1916define('ZBX_STYLE_STATUS_INFO_BG', 'status-info-bg'); 1917define('ZBX_STYLE_STATUS_NA_BG', 'status-na-bg'); 1918define('ZBX_STYLE_STATUS_RED', 'status-red'); 1919define('ZBX_STYLE_STATUS_WARNING_BG', 'status-warning-bg'); 1920define('ZBX_STYLE_STATUS_YELLOW', 'status-yellow'); 1921define('ZBX_STYLE_SVG_GRAPH', 'svg-graph'); 1922define('ZBX_STYLE_SVG_GRAPH_PREVIEW', 'svg-graph-preview'); 1923define('ZBX_STYLE_SUBFILTER', 'subfilter'); 1924define('ZBX_STYLE_SUBFILTER_ENABLED', 'subfilter-enabled'); 1925define('ZBX_STYLE_TABLE', 'table'); 1926define('ZBX_STYLE_TABLE_FORMS', 'table-forms'); 1927define('ZBX_STYLE_TABLE_FORMS_CONTAINER', 'table-forms-container'); 1928define('ZBX_STYLE_TABLE_FORMS_SECOND_COLUMN', 'table-forms-second-column'); 1929define('ZBX_STYLE_TABLE_FORMS_TD_LEFT', 'table-forms-td-left'); 1930define('ZBX_STYLE_TABLE_FORMS_TD_RIGHT', 'table-forms-td-right'); 1931define('ZBX_STYLE_TABLE_FORMS_OVERFLOW_BREAK', 'overflow-break'); 1932define('ZBX_STYLE_TABLE_PAGING', 'table-paging'); 1933define('ZBX_STYLE_TABLE_STATS', 'table-stats'); 1934define('ZBX_STYLE_TABS_NAV', 'tabs-nav'); 1935define('ZBX_STYLE_TAG', 'tag'); 1936define('ZBX_STYLE_TEXTAREA_FLEXIBLE', 'textarea-flexible'); 1937define('ZBX_STYLE_TEXTAREA_FLEXIBLE_CONTAINER', 'textarea-flexible-container'); 1938define('ZBX_STYLE_TEXTAREA_FLEXIBLE_PARENT', 'textarea-flexible-parent'); 1939define('ZBX_STYLE_TFOOT_BUTTONS', 'tfoot-buttons'); 1940define('ZBX_STYLE_TD_DRAG_ICON', 'td-drag-icon'); 1941define('ZBX_STYLE_TIME_ZONE', 'time-zone'); 1942define('ZBX_STYLE_TIMELINE_AXIS', 'timeline-axis'); 1943define('ZBX_STYLE_TIMELINE_DATE', 'timeline-date'); 1944define('ZBX_STYLE_TIMELINE_DOT', 'timeline-dot'); 1945define('ZBX_STYLE_TIMELINE_DOT_BIG', 'timeline-dot-big'); 1946define('ZBX_STYLE_TIMELINE_TD', 'timeline-td'); 1947define('ZBX_STYLE_TIMELINE_TH', 'timeline-th'); 1948define('ZBX_STYLE_TOC', 'toc'); 1949define('ZBX_STYLE_TOC_ARROW', 'toc-arrow'); 1950define('ZBX_STYLE_TOC_ITEM', 'toc-item'); 1951define('ZBX_STYLE_TOC_LIST', 'toc-list'); 1952define('ZBX_STYLE_TOC_ROW', 'toc-row'); 1953define('ZBX_STYLE_TOC_SUBLIST', 'toc-sublist'); 1954define('ZBX_STYLE_TOP', 'top'); 1955define('ZBX_STYLE_TOTALS_LIST', 'totals-list'); 1956define('ZBX_STYLE_TOTALS_LIST_HORIZONTAL', 'totals-list-horizontal'); 1957define('ZBX_STYLE_TOTALS_LIST_VERTICAL', 'totals-list-vertical'); 1958define('ZBX_STYLE_TOTALS_LIST_COUNT', 'count'); 1959define('ZBX_STYLE_TREEVIEW', 'treeview'); 1960define('ZBX_STYLE_TREEVIEW_PLUS', 'treeview-plus'); 1961define('ZBX_STYLE_UPPERCASE', 'uppercase'); 1962define('ZBX_STYLE_WARNING_BG', 'warning-bg'); 1963define('ZBX_STYLE_WIDGET_URL', 'widget-url'); 1964define('ZBX_STYLE_BLINK_HIDDEN', 'blink-hidden'); 1965define('ZBX_STYLE_YELLOW', 'yellow'); 1966define('ZBX_STYLE_YELLOW_BG', 'yellow-bg'); 1967define('ZBX_STYLE_FIELD_LABEL_ASTERISK', 'form-label-asterisk'); 1968define('ZBX_STYLE_PROBLEM_ICON_LIST' , 'problem-icon-list'); 1969define('ZBX_STYLE_PROBLEM_ICON_LIST_ITEM' , 'problem-icon-list-item'); 1970define('ZBX_STYLE_ZABBIX_LOGO', 'zabbix-logo'); 1971define('ZBX_STYLE_ZABBIX_SIDEBAR_LOGO', 'zabbix-sidebar-logo'); 1972define('ZBX_STYLE_ZABBIX_SIDEBAR_LOGO_COMPACT', 'zabbix-sidebar-logo-compact'); 1973 1974// HTML column layout. 1975define('ZBX_STYLE_COLUMNS', 'columns-wrapper'); 1976define('ZBX_STYLE_COLUMNS_NOWRAP', 'columns-nowrap'); 1977define('ZBX_STYLE_COLUMNS_2', 'columns-2'); 1978define('ZBX_STYLE_COLUMNS_3', 'columns-3'); 1979// column occupies x% width of column wrapper 1980define('ZBX_STYLE_COLUMN_5', 'column-5'); 1981define('ZBX_STYLE_COLUMN_10', 'column-10'); 1982define('ZBX_STYLE_COLUMN_15', 'column-15'); 1983define('ZBX_STYLE_COLUMN_20', 'column-20'); 1984define('ZBX_STYLE_COLUMN_33', 'column-33'); // column occupies 1/3 width of column wrapper. 1985define('ZBX_STYLE_COLUMN_35', 'column-35'); 1986define('ZBX_STYLE_COLUMN_40', 'column-40'); 1987define('ZBX_STYLE_COLUMN_50', 'column-50'); 1988define('ZBX_STYLE_COLUMN_75', 'column-75'); 1989define('ZBX_STYLE_COLUMN_90', 'column-90'); 1990define('ZBX_STYLE_COLUMN_95', 'column-95'); 1991 1992// column visual options 1993define('ZBX_STYLE_COLUMN_CENTER', 'column-center'); 1994define('ZBX_STYLE_COLUMN_MIDDLE', 'column-middle'); 1995 1996// Widget "Host availability" styles. 1997define('ZBX_STYLE_HOST_AVAIL_WIDGET', 'host-avail-widget'); 1998define('ZBX_STYLE_HOST_AVAIL_TRUE', 'host-avail-true'); 1999define('ZBX_STYLE_HOST_AVAIL_FALSE', 'host-avail-false'); 2000define('ZBX_STYLE_HOST_AVAIL_UNKNOWN', 'host-avail-unknown'); 2001define('ZBX_STYLE_HOST_AVAIL_TOTAL', 'host-avail-total'); 2002 2003// Widget "Problems by severity" styles. 2004define('ZBX_STYLE_BY_SEVERITY_WIDGET', 'by-severity-widget'); 2005 2006define('ZBX_STYLE_CHECKBOX_BLOCK', 'checkbox-block'); 2007 2008// Icons. 2009define('ZBX_STYLE_ICON_TEXT', 'icon-text'); 2010define('ZBX_STYLE_ICON_SECRET_TEXT', 'icon-secret'); 2011 2012// Host interface styles. 2013define('ZBX_STYLE_HOST_INTERFACE_CONTAINER', 'interface-container'); 2014define('ZBX_STYLE_HOST_INTERFACE_CONTAINER_HEADER', 'interface-container-header'); 2015define('ZBX_STYLE_HOST_INTERFACE_ROW', 'interface-row'); 2016define('ZBX_STYLE_HOST_INTERFACE_ROW_HEADER', 'interface-row-header'); 2017define('ZBX_STYLE_HOST_INTERFACE_CELL', 'interface-cell'); 2018define('ZBX_STYLE_HOST_INTERFACE_CELL_DETAILS', 'interface-cell-details'); 2019define('ZBX_STYLE_HOST_INTERFACE_CELL_HEADER', 'interface-cell-header'); 2020define('ZBX_STYLE_HOST_INTERFACE_CELL_TYPE', 'interface-cell-type'); 2021define('ZBX_STYLE_HOST_INTERFACE_CELL_IP', 'interface-cell-ip'); 2022define('ZBX_STYLE_HOST_INTERFACE_CELL_DNS', 'interface-cell-dns'); 2023define('ZBX_STYLE_HOST_INTERFACE_CELL_USEIP', 'interface-cell-useip'); 2024define('ZBX_STYLE_HOST_INTERFACE_CELL_PORT', 'interface-cell-port'); 2025define('ZBX_STYLE_HOST_INTERFACE_CELL_DEFAULT', 'interface-cell-default'); 2026define('ZBX_STYLE_HOST_INTERFACE_CELL_ACTION', 'interface-cell-action'); 2027define('ZBX_STYLE_HOST_INTERFACE_BTN_TOGGLE', 'interface-btn-toggle'); 2028define('ZBX_STYLE_HOST_INTERFACE_BTN_REMOVE', 'interface-btn-remove'); 2029define('ZBX_STYLE_HOST_INTERFACE_BTN_MAIN_INTERFACE', 'interface-btn-main-interface'); 2030define('ZBX_STYLE_HOST_INTERFACE_INPUT_EXPAND', 'interface-input-expand'); 2031 2032define('ZBX_STYLE_ZSELECT_HOST_INTERFACE', 'z-select-host-interface'); 2033 2034// Dashboard list table classes. 2035define('ZBX_STYLE_DASHBOARD_LIST', 'dashboard-list'); 2036define('ZBX_STYLE_DASHBOARD_LIST_ITEM', 'dashboard-list-item'); 2037 2038// server variables 2039define('HTTPS', isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] && $_SERVER['HTTPS'] !== 'off'); 2040 2041define('ZBX_PROPERTY_INHERITED', 0x01); 2042define('ZBX_PROPERTY_OWN', 0x02); 2043define('ZBX_PROPERTY_BOTH', 0x03); // ZBX_PROPERTY_INHERITED | ZBX_PROPERTY_OWN 2044 2045// init $_REQUEST 2046ini_set('variables_order', 'GP'); 2047$_REQUEST = $_POST + $_GET; 2048 2049// init precision 2050ini_set('precision', 14); 2051 2052// BC Math scale. bcscale() can be undefined prior requirement check in setup. 2053if (function_exists('bcscale')) { 2054 bcscale(7); 2055} 2056 2057// Number of tags to display in Problems widget and Monitoring > Problems. 2058define('PROBLEMS_SHOW_TAGS_NONE', 0); 2059define('PROBLEMS_SHOW_TAGS_1', 1); 2060define('PROBLEMS_SHOW_TAGS_2', 2); 2061define('PROBLEMS_SHOW_TAGS_3', 3); 2062 2063// Tag name format to display in Problems widget and Monitoring > Problems. 2064define('PROBLEMS_TAG_NAME_FULL', 0); 2065define('PROBLEMS_TAG_NAME_SHORTENED', 1); 2066define('PROBLEMS_TAG_NAME_NONE', 2); 2067 2068define('OPERATIONAL_DATA_SHOW_NONE', 0); 2069define('OPERATIONAL_DATA_SHOW_SEPARATELY', 1); 2070define('OPERATIONAL_DATA_SHOW_WITH_PROBLEM', 2); 2071 2072// Allows to set "rel" tag value "noreferer" when setting target="_blank". 2073define('ZBX_NOREFERER', true); 2074