Cloudwatch integration for Zabbix 3.x
Python 2.7.x
- Create specialized user account in AWS and grant it permissions for required services and API calls (for example
describe_instances()
for EC2) - Clone github repo: https://github.com/wawastein/zabbix-cloudwatch
- Copy contents of
zabbix-scripts
into/usr/lib/zabbix
directory, change owner of the dir and its contents to user under which you run Zabbix - Install system-wide
boto3
package - Import
cloudwatch_template.xml
into Zabbix - Put credentials of account created in (1) into
/usr/lib/zabbix/scripts/conf/aws.conf
- Create host with 0.0.0.0 as interface and link it to the template. Change macros
ACCOUNT
andREGION
to correspond to your case:
- Enable/Disable all discovery rules/items/triggers you think necessary, add new or modify existing ones.
Default template has rules and items for following services:
- EC2 (requires
describe_instances()
API call permissions) - RDS (
describe_db_instances()
API call) - ELB (
describe_load_balancers()
API call) - EMR (
list_clusters()
API call)
Detailed overview at: https://wordpress.com/read/feeds/49943587/posts/1417437611
Hit me up on twitter @wawastein if you got any questions, submit pull requests, fork all you want, and Papa bless.