You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
zabbix_action - failed when create discovery action based on event_source=discovery, conditions.type=discovery_check and dchecks.type=Zabbix (Zabbix agent)
#1409
Open
Yuskovich opened this issue
Oct 25, 2024
· 0 comments
Creating discovery action with conditions.type=discovery_check and dchecks.type=Zabbix throw error. I look into zabbix_action module's code and there is no logic for distinguishing between discovery checks type "Zabbix" with different keys.
One discovery rule can have many checks with same type - "Zabbix agent", but with different keys. Current zabbix_action module's logic suggests only one discovery check with type "Zabbix agent" in rule. There is no way distinguish different "Zabbix agent" checks with different keys.
ISSUE TYPE
Bug Report
COMPONENT NAME
Module: zabbix_action.
ANSIBLE VERSION
ansible 10.5.0 [core 2.7,5]
CONFIGURATION
for security reasons I can't, but I carefully check - problem not correlated with any information in this output
The text was updated successfully, but these errors were encountered:
Yuskovich
changed the title
zabbix_action - not work condition based on event_source=discovery, conditions.type=discovery_check and dchecks.type=Zabbix (Zabbix agent)
zabbix_action - failed when create discovery action based on event_source=discovery, conditions.type=discovery_check and dchecks.type=Zabbix (Zabbix agent)
Oct 25, 2024
SUMMARY
Creating discovery action with conditions.type=discovery_check and dchecks.type=Zabbix throw error. I look into zabbix_action module's code and there is no logic for distinguishing between discovery checks type "Zabbix" with different keys.
One discovery rule can have many checks with same type - "Zabbix agent", but with different keys. Current zabbix_action module's logic suggests only one discovery check with type "Zabbix agent" in rule. There is no way distinguish different "Zabbix agent" checks with different keys.
ISSUE TYPE
COMPONENT NAME
Module: zabbix_action.
ANSIBLE VERSION
ansible 10.5.0 [core 2.7,5]
CONFIGURATION
for security reasons I can't, but I carefully check - problem not correlated with any information in this output
OS / ENVIRONMENT / Zabbix Version
Ubuntu 20.04.6
Python 3.12
Zabbix server: 7.0.2
STEPS TO REPRODUCE
EXPECTED RESULTS
Task done without any errors and any fails. Discovery action created in Zabbix.
ACTUAL RESULTS
Task failed. No discovery action created in Zabbix.
The text was updated successfully, but these errors were encountered: