[ZBX-23760] Disabled action can be enabled back with broken condition expression Created: 2023 Nov 29  Updated: 2025 Nov 19  Resolved: 2025 Apr 07

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: API (A), Frontend (F), Server (S)
Affects Version/s: 5.0.41rc1, 6.0.24rc1, 7.0.0alpha8
Fix Version/s: 6.0.39rc1, 7.0.10rc1, 7.2.4rc1, 7.4.0alpha1

Type: Problem report Priority: Critical
Reporter: Edgar Akhmetshin Assignee: Andrejs Griščenko
Resolution: Fixed Votes: 11
Labels: action, conditions
Remaining Estimate: 0h
Time Spent: 120h 35m
Original Estimate: 0h

Attachments: GIF File discovery_check_rule.gif     PNG File image-2024-10-21-10-57-23-905.png     PNG File image-2025-02-13-22-40-37-794.png     PNG File screenshot-1.png     PNG File screenshot-2.png     PNG File screenshot-3.png     PNG File screenshot-4.png     PNG File screenshot-5.png     PNG File screenshot-6.png     PNG File screenshot-7.png    
Issue Links:
Causes
Duplicate
duplicates ZBX-25806 An action is automatically disabled a... Closed
is duplicated by ZBX-24657 HTTP Error 500 on Trigger Actions Menu Closed
is duplicated by ZBX-25486 Zabbix Action - faulty behaviour whil... Closed
is duplicated by ZBX-9943 formula for action with "Custom expre... Closed
is duplicated by ZBX-25985 Triger Action Page (HTTP Error 500) Closed
is duplicated by ZBX-26032 Unable to access to trigger actions Closed
Related
related to ZBX-25142 SQL error on deleting LLD host that i... Closed
related to ZBX-26051 Zabbix server not creating audit log ... Open
Team: Team C
Sprint: Prev.Sprint, S24-W12/13, S24-W14/15, S24-W16/17, S24-W32/33, S24-W36/37, S24-W38/39, S24-W40/41, S24-W42/43, S24-W44/45, S24-W46/47, S24-W50/51/52/1, S25-W2/3, S25-W4/5, S25-W6/7, S25-W8/9, S25-W10/11, S25-W12/13
Story Points: 1

 Description   

Steps to reproduce:

  1. Create a two host groups (test1 and test2).
  2. Create a trigger action and add 3 conditions (not suppressed, host group “test1”, and host group “test2”). Use a custom expression and put “A and (B or C)”.
  3. Now delete host group “test1”. The trigger action is disabled as expected.
  4. Now go to the list of trigger actions and you can enable trigger action from the list page.
  5. The trigger action is now enabled with the custom expression of “A and (B or C)” but does not have a condition of “C”.

Result:
Action is enabled with a broken condition expression and wrong results.

Expected:
Do not allow to do this until condition expression is fixed.



 Comments   
Comment by dimir [ 2024 Feb 01 ]

Related change request: ZBXNEXT-551

Comment by ekorre [ 2025 Jan 30 ]

Hello, you close another ticets but we still have problem in my scenario I can't go to triggers acttion. I have 500 error. 
I tried coppy actions.inc.php from another server where i have the same version zabbix and there that working good. Hovewer that is server who started from 7.0.1.
My problemy is after update from 6.4 to 7.0 

 

My log from nginx:
2025/01/30 11:33:22 [error] 869#869: *1089 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 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(638): 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/s

Comment by Everaldo Santos Cabral [ 2025 Feb 13 ]

I also have the same problem when I put "any" or "disabled" in "trigger actions" and a 500 error occurs.

Comment by Alexander Vladishev [ 2025 Feb 13 ]

everaldoscabral, Could you provide more details about your issue and how to reproduce it? What do you mean by "I put 'any' or 'disabled'"?

Comment by Everaldo Santos Cabral [ 2025 Feb 14 ]

sasha 

 

mneveumx

My scenario:

zabbix-* ==> 7.0.8

Error:

If I change it to "any" or "disabled" and don't put anything in the filter, it will give a 500 error.

Comment by Andrejs Griščenko [ 2025 Feb 14 ]

Available in:

Comment by Martins Valkovskis [ 2025 Feb 26 ]

Updated documentation:

  • What's new: 7.0.10, 7.2.4
  • Conditions: 7.0, 7.2, 7.4 (see "Deleting objects used in actions")
  • Actions: 7.0, 7.2, 7.4 (new "Info" column)
  • Script configuration: 6.0 ("Host group" field updated with recommendation)

Updated API changes:

Generated at Sat Dec 13 23:08:26 EET 2025 using Jira 10.3.13#10030013-sha1:56dd970ae30ebfeda3a697d25be1f6388b68a422.