-
Problem report
-
Resolution: Duplicate
-
Trivial
-
None
-
7.0.3
Zabbix 7.0.3 running on RHEL 9.3 (Distributed architecture. 2 Zbx servers on HA, 2 DB servers on HA, 3 Zbx proxies on HA, LB) with Nginx web server, PHP 8.0.30 with Zend OPcache v8.0.30
DB: Postgres 16 w/ TimescaleDB
I have created some Trigger actions which are functioning correctly. However, now when trying to access the Trigger actions page, I get a 500 server error.
The error log of nginx when trying to access the page shows the following:
2024/09/12 15:39:40 [error] 2384640#2384640: *1569224 FastCGI sent in stderr: "PHP message: PHP Warning: Undefined array key "conditiontype" in /usr/share/zabbix/include/actions.inc.php on line 119PHP message: PHP Warning: Undefined array key "value" in /usr/share/zabbix/include/actions.inc.php on line 121PHP message: PHP Warning: Undefined array key "value" in /usr/share/zabbix/include/actions.inc.php on line 121PHP message: PHP Warning: Undefined array key "conditiontype" in /usr/share/zabbix/include/actions.inc.php on line 119PHP message: PHP Warning: Undefined array key "value" in /usr/share/zabbix/include/actions.inc.php on line 121PHP message: PHP Warning: Undefined array key "value" in /usr/share/zabbix/include/actions.inc.php on line 121PHP message: PHP Fatal error: Uncaught TypeError: array_key_exists(): Argument #2 ($array) must be of type array, bool given in /usr/share/zabbix/include/actions.inc.php:277 Stack trace: #0 /usr/share/zabbix/app/controllers/CControllerActionList.php(143): actionConditionValueToString() #1 /usr/share/zabbix/include/classes/mvc/CController.php(471): CControllerActionList->doAction() #2 /usr/share/zabbix/include/classes/core/ZBase.php(642): CController->run() #3 /usr/share/zabbix/include/classes/core/ZBase.php(228): ZBase->processRequest() #4 /usr/share/zabbix/include/config.inc.php(20): ZBase->run() #5 /usr/share/zabbix/zabbix.php(17): require_once('...') #6 \{main} thrown in /usr/share/zabbix/include/actions.inc.php on line 277" while reading response header from upstream, client: 10.53.146.92, server: _, request: "GET /zabbix.php?action=action.list&eventsource=0 HTTP/1.1", upstream: "fastcgi://unix:/run/php-fpm/zabbix.sock:", host: "***", referrer: "https://****/zabbix.php?action=dashboard.view&dashboardid=320&from=now-6h&to=now"
It seems like when loading the trigger actions from DB, it tries to access an array and check if some keys are present (array_key_exists function) but the object it tries against it is not an array (there is not a check of the type of object prior to this).
Pasting also the output of select * from actions from my DB:
zabbix=# select * from actions ; actionid | name | eventsource | evaltype | status | esc_period | formula | pause_suppressed | notify_if_canceled | pause_symptoms ----------+-----------------------------------------------------+-------------+----------+--------+------------+---------------------------------------------------------------------------------------------- ------------------------------------------------------------------------------+------------------+--------------------+---------------- 2 | Auto discovery. Linux servers. | 1 | 0 | 1 | 0 | | 1 | 1 | 1 4 | Report not supported items | 3 | 0 | 1 | 1h | | 1 | 1 | 1 5 | Report not supported low level discovery rules | 3 | 0 | 1 | 1h | | 1 | 1 | 1 6 | Report unknown triggers | 3 | 0 | 1 | 1h | | 1 | 1 | 1 21 | [OBM + EMAIL] - F5 Pool members | 0 | 3 | 0 | 1h | (\{133} and \{134}) and (\{135} or \{136} or \{137}) | 1 | 1 | 1 15 | [OBM + EMAIL] - F5 Virtual servers | 0 | 3 | 0 | 1h | (\{105} and \{106}) and (\{107} or \{108} or \{109}) | 1 | 1 | 1 22 | [EMAIL] - IPSLA track events | 0 | 1 | 0 | 1h | | 1 | 1 | 1 23 | [EMAIL] - F5 Certificates | 0 | 1 | 0 | 1h | | 1 | 1 | 1 24 | [EMAIL] - FTD events | 0 | 0 | 0 | 1h | | 1 | 1 | 1 25 | [EMAIL] - Adaptera NMS Infra | 0 | 0 | 0 | 1h | | 1 | 1 | 1 7 | [OBM + EMAIL] - Device Availability | 0 | 3 | 0 | 1h | \{9} and (\{59} or \{60} or \{17} or \{61}) | 1 | 1 | 1 16 | [OBM + EMAIL] - bud-n7k avail & performance Eth2/38 | 0 | 3 | 0 | 1h | \{110} and (\{111} or \{112} or \{113} or \{114} or \{115} or \{116} or \{117} or \{118}) and \{147} | 1 | 1 | 1 26 | [EMAIL] - OSPF events | 0 | 3 | 0 | 1h | (\{149} or \{150} or \{151}) and (\{152} or \{153} or \{154} or \{155} or \{156} or \{157} or \{158} or \{159}) | 1 | 1 | 1 9 | [OBM + EMAIL] - FAN issues | 0 | 3 | 1 | 1h | (\{68} or \{69}) and \{70} and (\{71} or \{72} or \{73}) | 1 | 1 | 1 8 | [OBM + EMAIL] - PSU issues | 0 | 3 | 1 | 1h | (\{34} or \{35}) and (\{65} or \{66} or \{67}) and (\{62} or \{63} or \{64}) | 1 | 1 | 1 12 | [OBM] - FTD events | 0 | 1 | 0 | 1h | | 1 | 1 | 1 13 | [OBM] - IPSLA events | 0 | 1 | 0 | 1h | | 1 | 1 | 1 20 | [EMAIL] - HSRP events | 0 | 1 | 0 | 1h | | 1 | 1 | 1 11 | [OBM + EMAIL] - BGP events | 0 | 1 | 0 | 1h | | 1 | 1 | 1 17 | [OBM + EMAIL] - Fortigate performance | 0 | 3 | 0 | 1h | \{119} or \{120} or \{121} or (\{122} and \{123}) | 1 | 1 | 1 10 | [OBM + EMAIL] - Interfaces 5548 & 5672 & 5696 | 0 | 3 | 0 | 1h | \{74} and (\{75} or \{76}) and (\{77} or \{78} or \{79} or \{80} or \{81} or \{82} or \{83} or \{84} or {85} or \{86} or \{87} or \{88} or \{89} or \{90} or \{91} or \{92} or \{93} or \{94}) | 1 | 1 | 1 18 | [OBM + EMAIL] - CPU & Memory | 0 | 3 | 0 | 1h | (\{124} or \{125}) and (\{126} or \{127} or \{128} or \{129}) | 1 | 1 | 1 19 | [OBM + EMAIL] - Squid proxies | 0 | 0 | 0 | 1h | | 1 | 1 | 1 (23 rows)
The issue started happening after a trigger action creation, however I cannot remember after which one specifically.
- is duplicated by
-
ZBX-24657 HTTP Error 500 on Trigger Actions Menu
- Closed