Any one has experience on CloudWatch with Zabbix?

0

A customer is using Zabbix monitoring AWS resources like EC2, they are asking whether our CloudWatch can send alerts to Zabbix? Is there any one who have experience on that?

Thank you.

已提問 7 年前檢視次數 2351 次
2 個答案
0
已接受的答案

I've used Zabbix extensively at a previous company.

Zabbix collects 'items' which are usually datapoint on a server (eg: available memory in MB at x time). This would be the same as a CloudWatch Metric. Those items are evaluated against a criteria that is defined in Zabbix, and an 'Alert' is generated. Alerts can then trigger Events like notifications etc.

Generally an integration can take two approaches:

  1. Send all CloudWatch Metrics to Zabbix, and allow Zabbix to create your Alerts.
  2. Configure your Alerts in CloudWatch and send them to Zabbix as Items that trigger an Alert.

Both will require some heavy lifting. A general approach for Option 1:

  1. Use the Zabbix auto discovery process to configure the receiving Host, and Item keys to match the values in CloudWatch. You could cobble this together using both the CloudWatch API to gather inventory and the Zabbix API to do configuration.
  2. Build a gathering process that gathers metrics from CloudWatch using an API call and sends them to Zabbix using the 'zabbix_sender' library.
  3. Configure your Alerts and Events as you normally would within Zabbix.

General approach for Option 2:

  1. Configure CloudWatch to evaluate your metrics and create an Alert.
  2. Tie the alerts action to something that will trigger a zabbix_sender (probably Lambda).
  3. Use autodisocvery to configure the listener Host / Item key in Zabbix and trigger an Alert as soon as a single Item is received.

There's a handful of projects on Github that do either of these two approaches. I don't think either is 'right' or 'wrong'. Really depends where you want to manage the evaluation of your Metrics/Items - In Zabbix or in CloudWatch. If they are a Zabbix shop they will probably want to use Zabbix and Option 1 is the best bet for them.

For the very ambitious a fork of the virtual machine monitoring processes for Zabbix to work against CloudWatch rather than the vCenter SDK would be ideal:
https://www.zabbix.com/documentation/3.4/manual/vm_monitoring

AWS
已回答 7 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南