Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zabbix Agent not sending Zabbix alerts into datadog #1771

Open
rahil471 opened this issue Feb 23, 2023 · 2 comments
Open

Zabbix Agent not sending Zabbix alerts into datadog #1771

rahil471 opened this issue Feb 23, 2023 · 2 comments

Comments

@rahil471
Copy link

We are trying to send Zabbix Alerts into DD so that we can have them in one place.

We are using the below link for the integration.

https://docs.datadoghq.com/integrations/zabbix/

The integration shows successful OK and we are able to get Zabbix metrics, however we are not receiving Zabbix alerts as events into datadog.

We tried reaching the DD team and they directed us here. Here is their response, which might help.

Error log from DD flare.
Error log from DD flare

Error observed on the media type integration page.

[datadog webhook] event creation failed : json undefined
[datadog webhook] event creation failed : ReferenceError : identifier 'CurlHttpRequest' undefined

Additionally they pointed out that the error is origination from this piece of code.
Code

@yzhan289
Copy link
Contributor

Pinging @KosukeKamiya, the maintainer of the zabbix integration.

@grady-reilly
Copy link

grady-reilly commented Dec 14, 2023

@yzhan289 did you ever get a resolution to this? I am having the same issue setting up Event collection using the script recommended by both zabbix and datadog?

`try {
Zabbix.Log(4, '[datadog webhook] received value=' + value);

	var params = JSON.parse(value);
    var req = new CurlHttpRequest();
	req.AddHeader('Content-Type: application/json');
    var webhook_url = 'https://app.datadoghq.com/intake/webhook/zabbix?api_key=' + params.api_key;
    var webhook_data = value;
    var resp = req.Post(webhook_url, webhook_data);
	if (req.Status() != 202) {
		throw 'Response code: '+req.Status();
	}
	Zabbix.Log(4, '[datadog webhook] received response with status code ' + req.Status() + '\n' + resp);
} catch (error) {
	Zabbix.Log(4, '[datadog webhook] event creation failed json : ' + webhook_data)
	Zabbix.Log(4, '[datadog webhook] event creation failed : ' + error);
}
return JSON.stringify({});`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants