-
Type:
Problem report
-
Resolution: Unresolved
-
Priority:
Minor
-
None
-
Affects Version/s: 7.0.28rc1, 7.4.12rc1, 8.0.0beta2 (master)
-
Component/s: API (A), Server (S)
Problem description: If You have two web scenarios and You disable them one by one, the steps that correspond to one of these scenarios will continue to be executed, even though both scenarios are disabled.
Steps to reproduce:
- Import the following host: host_with_strange_acting_web_scenarios.yaml

- Start server - wait for each of the scenarios to be executed
- Navigate to the list of web scenarios of the imported host
- Disable both web scenarios
- Wait for a couple of minutes
- Check log file for records containing string "?my_macro", for example using grep:
tail -f -n 10000 /tmp/zabbix_server.log | grep ?my_macro
Result: even though both web scenarios were disabled, steps for one of the scenarios are still being executed:
536884:20260619:144725.051 In substitute_simple_macros_impl() data:'http://{XML_VAL}/?my_macro_2nd_Scenario'
536884:20260619:144725.051 In http_substitute_variables() data:'http://{XML_VAL}/?my_macro_2nd_Scenario'
536884:20260619:144725.051 End of http_substitute_variables() data:'http://666666/?my_macro_2nd_Scenario'
536884:20260619:144725.052 process_httptest() go to URL "http://666666/?my_macro_2nd_Scenario"
536884:20260619:144755.287 In substitute_simple_macros_impl() data:'http://{XML_VAL}/?my_macro_2nd_Scenario'
536884:20260619:144755.287 In http_substitute_variables() data:'http://{XML_VAL}/?my_macro_2nd_Scenario'
536884:20260619:144755.287 End of http_substitute_variables() data:'http://666666/?my_macro_2nd_Scenario'
536884:20260619:144755.288 process_httptest() go to URL "http://666666/?my_macro_2nd_Scenario"
536884:20260619:144825.514 In substitute_simple_macros_impl() data:'http://{XML_VAL}/?my_macro_2nd_Scenario'
536884:20260619:144825.514 In http_substitute_variables() data:'http://{XML_VAL}/?my_macro_2nd_Scenario'
536884:20260619:144825.514 End of http_substitute_variables() data:'http://666666/?my_macro_2nd_Scenario'
536884:20260619:144825.515 process_httptest() go to URL "http://666666/?my_macro_2nd_Scenario"
Expected: Web scenario steps should not be executed after the web scenario is disabled.
Zabbix server log file at Debug level = 4: zabbix_server_debug_web_disable.log