[ZBX-24142] Problem sending events using Media Type Event-Driven Created: 2024 Feb 23  Updated: 2024 Mar 04  Resolved: 2024 Mar 04

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Problem report Priority: Trivial
Reporter: Angelo Gagliardi Assignee: Edgar Akhmetshin
Resolution: Cannot Reproduce Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: File chrome.exe     PNG File command.png     PNG File image-2024-02-23-19-58-19-300.png     PNG File image-2024-02-23-19-58-44-384.png     PNG File image-2024-02-26-13-07-26-722.png     PNG File image-2024-02-26-13-08-39-886.png     PNG File image-2024-02-26-13-09-09-746.png     File media_event_driven_ansible.yaml    

 Description   

Hi,

We followed this tutorial Video from Zabbix Youtube Channel and we followed every steps.

But when the trigger action start, we get an error "Can not get URL. Could not contact the server"

We tried from zabbix server to send curl manually and it works, we saw the data on Event-Driven controller.

 

I send you here our configuration:

 

 

Can you please tell me how to fix this issue ?

Thank you so much in Advance.

 

Have a nice day !



 Comments   
Comment by Edgar Akhmetshin [ 2024 Feb 26 ]

Hello Angelo,

Could you please check first from Zabbix Server if Ansible endpoint is reachable:

nc -vz 10.200.22 5001

Also confirm what version of Ansible you are using?

Is it Ansible Automation Platform from RHEL (commercial) or AWX community version?

Regards,
Edgar

Comment by Angelo Gagliardi [ 2024 Feb 26 ]

Hi Edgar,

We are Using Ansible Automation Platform from RHEL:

 

Comment by Edgar Akhmetshin [ 2024 Feb 26 ]

What Zabbix version is used? We are not able to reproduce with Zabbix 6.4. 

Webhook contains debug log definition inside, by default it's for level 4, could you please modify for all occurrence:

 

 Zabbix.log(4,
# to
 Zabbix.log(3,

 

Comment by Angelo Gagliardi [ 2024 Feb 26 ]

Hi Edgar,

This is our version of zabbix:

Can you please tell me how to modify the verbosity level?

Thanks in advance.

Comment by Edgar Akhmetshin [ 2024 Feb 28 ]

Under the Media type settings:
https://www.zabbix.com/documentation/current/en/manual/config/notifications/media/webhook#configuration

The code itself:
https://git.zabbix.com/projects/ZBX/repos/zabbix/browse/templates/media/event_driven_ansible/media_event_driven_ansible.yaml?at=release%2F6.4#189
https://git.zabbix.com/projects/ZBX/repos/zabbix/browse/templates/media/event_driven_ansible/media_event_driven_ansible.yaml?at=release%2F6.4#197

Here is a modified version:
media_event_driven_ansible.yaml

Zabbix Server log file will contain lines related to: '[ Event-Driven Ansible webhook ]' keyword.

Comment by Angelo Gagliardi [ 2024 Feb 28 ]

Hi Edgar,

 

We solved the problem without modifying anything on the configuration, we just upgrade to the pre-release version 7.

Now it's working.

I think that will be better to set a pre-requisite on the EDA guide if this version is needed to use EDA plugin.

Thanks.

Have a nice day !

Comment by Edgar Akhmetshin [ 2024 Mar 04 ]

Hello Angelo,

Hm, that's quite strange, looks like you have fixed something else during upgrade, since 6.4 also works in our test environment without issues.

Regards,
Edgar

Generated at Mon May 19 06:34:27 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.