randywallace / zabbix-cloudwatch

An external script for getting cloudwatch metrics into Zabbix
MIT License
27 stars 11 forks source link

print results on zabbix Dashboard #9

Open lbardelli opened 8 years ago

lbardelli commented 8 years ago

Hi Randy! I have no problem with the installation proccess, so futher I need to know how can I show these collect informations on zabbix dashboard... Could you help me ?

Thanks!

tiago-cruz-movile commented 8 years ago

You need to collect this data using some like this:

#!/bin/bash
#
/usr/bin/zabbix-cloudwatch -n $1 \
               -m $2 \
               -d $3 \
               --dimension-value $4 \
               -t $5 -s $6 \
               --aws-access-key 'xxxxxx' \
               --aws-secret-key 'yyyyy' \
               --aws-region "$7"
Name: CPUUtilization
Type: External check
Key : zabbix-cloudwatch["AWS/RDS","CPUUtilization","DBInstanceIdentifier",{$DBINSTANCEIDENTIFIER},"basic","Sum",{$DBREGION}]
Type of information: Numeric (float)
Units: %
Update interval (in sec): 60
[root@zabbix externalscripts]# ./zabbix-cloudwatch AWS/RDS CPUUtilization DBInstanceIdentifier zabbix-dtb basic Sum sa-east-1
15.81
randywallace commented 8 years ago

@tiago-cruz-movile Thanks for the assist! Unfortunately, I am no help at all b/c we no longer use Zabbix