Create a gist now

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Zabbix template for AWS/RDS and Ruby script for external check. The template includes Item definitions(all CloudWatch metrics), Graph definitions and Screen definition. Zabbix server needs role with to enough permissions to read CloudWatch and rubygem-aws-sdk. Put script "cloud_watch" at zabbix-server:/usr/lib/zabbix/externalscripts, add excite …
#!/usr/bin/ruby
require 'rubygems'
require 'aws-sdk'
require 'optparse'
params = ARGV.getopts(
"",
"region:",
"service:",
"metric:",
"dimension_name:",
"dimension_value:",
"statistics:"
)
AWS.config({
:cloud_watch_endpoint => "monitoring.#{params['region']}.amazonaws.com",
})
metric = AWS::CloudWatch::Metric.new(
"AWS/#{params['service']}",
params['metric'],
:dimensions => [{
:name => params['dimension_name'],
:value => params['dimension_value']
}]
)
stats = metric.statistics(
:start_time => Time.now - 300,
:end_time => Time.now,
:statistics => params['statistics']
)
last_stats = stats.sort_by{|stat| stat[:timestamp]}.last
exit if last_stats.nil?
puts last_stats[params['statistics'].downcase.to_sym]
<?xml version="1.0" encoding="UTF-8"?>
<zabbix_export>
<version>2.0</version>
<date>2013-11-07T06:59:42Z</date>
<groups>
<group>
<name>Templates</name>
</group>
</groups>
<templates>
<template>
<template>Template AWS RDS</template>
<name>Template AWS RDS</name>
<groups>
<group>
<name>Templates</name>
</group>
</groups>
<applications/>
<items>
<item>
<name>BinLogDiskUsage</name>
<type>10</type>
<snmp_community/>
<multiplier>0</multiplier>
<snmp_oid/>
<key>cloud_watch[&quot;--metric&quot;,&quot;BinLogDiskUsage&quot;,&quot;--dimension_name&quot;,&quot;DBInstanceIdentifier&quot;,&quot;--dimension_value&quot;,&quot;{HOST.NAME}&quot;,&quot;--statistics&quot;,&quot;Average&quot;,&quot;--service&quot;,&quot;RDS&quot;,&quot;--region&quot;,&quot;ap-northeast-1&quot;]</key>
<delay>60</delay>
<history>90</history>
<trends>365</trends>
<status>0</status>
<value_type>0</value_type>
<allowed_hosts/>
<units>Bytes</units>
<delta>0</delta>
<snmpv3_securityname/>
<snmpv3_securitylevel>0</snmpv3_securitylevel>
<snmpv3_authpassphrase/>
<snmpv3_privpassphrase/>
<formula>1</formula>
<delay_flex/>
<params/>
<ipmi_sensor/>
<data_type>0</data_type>
<authtype>0</authtype>
<username/>
<password/>
<publickey/>
<privatekey/>
<port/>
<description/>
<inventory_link>0</inventory_link>
<applications/>
<valuemap/>
</item>
<item>
<name>CPUUtilization</name>
<type>10</type>
<snmp_community/>
<multiplier>0</multiplier>
<snmp_oid/>
<key>cloud_watch[&quot;--metric&quot;,&quot;CPUUtilization&quot;,&quot;--dimension_name&quot;,&quot;DBInstanceIdentifier&quot;,&quot;--dimension_value&quot;,&quot;{HOST.NAME}&quot;,&quot;--statistics&quot;,&quot;Average&quot;,&quot;--service&quot;,&quot;RDS&quot;,&quot;--region&quot;,&quot;ap-northeast-1&quot;]</key>
<delay>60</delay>
<history>90</history>
<trends>365</trends>
<status>0</status>
<value_type>0</value_type>
<allowed_hosts/>
<units>%</units>
<delta>0</delta>
<snmpv3_securityname/>
<snmpv3_securitylevel>0</snmpv3_securitylevel>
<snmpv3_authpassphrase/>
<snmpv3_privpassphrase/>
<formula>1</formula>
<delay_flex/>
<params/>
<ipmi_sensor/>
<data_type>0</data_type>
<authtype>0</authtype>
<username/>
<password/>
<publickey/>
<privatekey/>
<port/>
<description/>
<inventory_link>0</inventory_link>
<applications/>
<valuemap/>
</item>
<item>
<name>DatabaseConnections</name>
<type>10</type>
<snmp_community/>
<multiplier>0</multiplier>
<snmp_oid/>
<key>cloud_watch[&quot;--metric&quot;,&quot;DatabaseConnections&quot;,&quot;--dimension_name&quot;,&quot;DBInstanceIdentifier&quot;,&quot;--dimension_value&quot;,&quot;{HOST.NAME}&quot;,&quot;--statistics&quot;,&quot;Average&quot;,&quot;--service&quot;,&quot;RDS&quot;,&quot;--region&quot;,&quot;ap-northeast-1&quot;]</key>
<delay>60</delay>
<history>90</history>
<trends>365</trends>
<status>0</status>
<value_type>3</value_type>
<allowed_hosts/>
<units>Count</units>
<delta>0</delta>
<snmpv3_securityname/>
<snmpv3_securitylevel>0</snmpv3_securitylevel>
<snmpv3_authpassphrase/>
<snmpv3_privpassphrase/>
<formula>1</formula>
<delay_flex/>
<params/>
<ipmi_sensor/>
<data_type>0</data_type>
<authtype>0</authtype>
<username/>
<password/>
<publickey/>
<privatekey/>
<port/>
<description/>
<inventory_link>0</inventory_link>
<applications/>
<valuemap/>
</item>
<item>
<name>DiskQueueDepth</name>
<type>10</type>
<snmp_community/>
<multiplier>0</multiplier>
<snmp_oid/>
<key>cloud_watch[&quot;--metric&quot;,&quot;DiskQueueDepth&quot;,&quot;--dimension_name&quot;,&quot;DBInstanceIdentifier&quot;,&quot;--dimension_value&quot;,&quot;{HOST.NAME}&quot;,&quot;--statistics&quot;,&quot;Average&quot;,&quot;--service&quot;,&quot;RDS&quot;,&quot;--region&quot;,&quot;ap-northeast-1&quot;]</key>
<delay>60</delay>
<history>90</history>
<trends>365</trends>
<status>0</status>
<value_type>0</value_type>
<allowed_hosts/>
<units>Count</units>
<delta>0</delta>
<snmpv3_securityname/>
<snmpv3_securitylevel>0</snmpv3_securitylevel>
<snmpv3_authpassphrase/>
<snmpv3_privpassphrase/>
<formula>1</formula>
<delay_flex/>
<params/>
<ipmi_sensor/>
<data_type>0</data_type>
<authtype>0</authtype>
<username/>
<password/>
<publickey/>
<privatekey/>
<port/>
<description/>
<inventory_link>0</inventory_link>
<applications/>
<valuemap/>
</item>
<item>
<name>FreeableMemory</name>
<type>10</type>
<snmp_community/>
<multiplier>0</multiplier>
<snmp_oid/>
<key>cloud_watch[&quot;--metric&quot;,&quot;FreeableMemory&quot;,&quot;--dimension_name&quot;,&quot;DBInstanceIdentifier&quot;,&quot;--dimension_value&quot;,&quot;{HOST.NAME}&quot;,&quot;--statistics&quot;,&quot;Average&quot;,&quot;--service&quot;,&quot;RDS&quot;,&quot;--region&quot;,&quot;ap-northeast-1&quot;]</key>
<delay>60</delay>
<history>90</history>
<trends>365</trends>
<status>0</status>
<value_type>0</value_type>
<allowed_hosts/>
<units>Bytes</units>
<delta>0</delta>
<snmpv3_securityname/>
<snmpv3_securitylevel>0</snmpv3_securitylevel>
<snmpv3_authpassphrase/>
<snmpv3_privpassphrase/>
<formula>1</formula>
<delay_flex/>
<params/>
<ipmi_sensor/>
<data_type>0</data_type>
<authtype>0</authtype>
<username/>
<password/>
<publickey/>
<privatekey/>
<port/>
<description/>
<inventory_link>0</inventory_link>
<applications/>
<valuemap/>
</item>
<item>
<name>FreeStorageSpace</name>
<type>10</type>
<snmp_community/>
<multiplier>0</multiplier>
<snmp_oid/>
<key>cloud_watch[&quot;--metric&quot;,&quot;FreeStorageSpace&quot;,&quot;--dimension_name&quot;,&quot;DBInstanceIdentifier&quot;,&quot;--dimension_value&quot;,&quot;{HOST.NAME}&quot;,&quot;--statistics&quot;,&quot;Average&quot;,&quot;--service&quot;,&quot;RDS&quot;,&quot;--region&quot;,&quot;ap-northeast-1&quot;]</key>
<delay>60</delay>
<history>90</history>
<trends>365</trends>
<status>0</status>
<value_type>0</value_type>
<allowed_hosts/>
<units>Bytes</units>
<delta>0</delta>
<snmpv3_securityname/>
<snmpv3_securitylevel>0</snmpv3_securitylevel>
<snmpv3_authpassphrase/>
<snmpv3_privpassphrase/>
<formula>1</formula>
<delay_flex/>
<params/>
<ipmi_sensor/>
<data_type>0</data_type>
<authtype>0</authtype>
<username/>
<password/>
<publickey/>
<privatekey/>
<port/>
<description/>
<inventory_link>0</inventory_link>
<applications/>
<valuemap/>
</item>
<item>
<name>ReadIOPS</name>
<type>10</type>
<snmp_community/>
<multiplier>0</multiplier>
<snmp_oid/>
<key>cloud_watch[&quot;--metric&quot;,&quot;ReadIOPS&quot;,&quot;--dimension_name&quot;,&quot;DBInstanceIdentifier&quot;,&quot;--dimension_value&quot;,&quot;{HOST.NAME}&quot;,&quot;--statistics&quot;,&quot;Average&quot;,&quot;--service&quot;,&quot;RDS&quot;,&quot;--region&quot;,&quot;ap-northeast-1&quot;]</key>
<delay>60</delay>
<history>90</history>
<trends>365</trends>
<status>0</status>
<value_type>0</value_type>
<allowed_hosts/>
<units>Count/Second</units>
<delta>0</delta>
<snmpv3_securityname/>
<snmpv3_securitylevel>0</snmpv3_securitylevel>
<snmpv3_authpassphrase/>
<snmpv3_privpassphrase/>
<formula>1</formula>
<delay_flex/>
<params/>
<ipmi_sensor/>
<data_type>0</data_type>
<authtype>0</authtype>
<username/>
<password/>
<publickey/>
<privatekey/>
<port/>
<description/>
<inventory_link>0</inventory_link>
<applications/>
<valuemap/>
</item>
<item>
<name>ReadLatency</name>
<type>10</type>
<snmp_community/>
<multiplier>0</multiplier>
<snmp_oid/>
<key>cloud_watch[&quot;--metric&quot;,&quot;ReadLatency&quot;,&quot;--dimension_name&quot;,&quot;DBInstanceIdentifier&quot;,&quot;--dimension_value&quot;,&quot;{HOST.NAME}&quot;,&quot;--statistics&quot;,&quot;Average&quot;,&quot;--service&quot;,&quot;RDS&quot;,&quot;--region&quot;,&quot;ap-northeast-1&quot;]</key>
<delay>60</delay>
<history>90</history>
<trends>365</trends>
<status>0</status>
<value_type>0</value_type>
<allowed_hosts/>
<units>Seconds</units>
<delta>0</delta>
<snmpv3_securityname/>
<snmpv3_securitylevel>0</snmpv3_securitylevel>
<snmpv3_authpassphrase/>
<snmpv3_privpassphrase/>
<formula>1</formula>
<delay_flex/>
<params/>
<ipmi_sensor/>
<data_type>0</data_type>
<authtype>0</authtype>
<username/>
<password/>
<publickey/>
<privatekey/>
<port/>
<description/>
<inventory_link>0</inventory_link>
<applications/>
<valuemap/>
</item>
<item>
<name>ReadThroughput</name>
<type>10</type>
<snmp_community/>
<multiplier>0</multiplier>
<snmp_oid/>
<key>cloud_watch[&quot;--metric&quot;,&quot;ReadThroughput&quot;,&quot;--dimension_name&quot;,&quot;DBInstanceIdentifier&quot;,&quot;--dimension_value&quot;,&quot;{HOST.NAME}&quot;,&quot;--statistics&quot;,&quot;Average&quot;,&quot;--service&quot;,&quot;RDS&quot;,&quot;--region&quot;,&quot;ap-northeast-1&quot;]</key>
<delay>60</delay>
<history>90</history>
<trends>365</trends>
<status>0</status>
<value_type>0</value_type>
<allowed_hosts/>
<units>Bytes/Second</units>
<delta>0</delta>
<snmpv3_securityname/>
<snmpv3_securitylevel>0</snmpv3_securitylevel>
<snmpv3_authpassphrase/>
<snmpv3_privpassphrase/>
<formula>1</formula>
<delay_flex/>
<params/>
<ipmi_sensor/>
<data_type>0</data_type>
<authtype>0</authtype>
<username/>
<password/>
<publickey/>
<privatekey/>
<port/>
<description/>
<inventory_link>0</inventory_link>
<applications/>
<valuemap/>
</item>
<item>
<name>ReplicaLag</name>
<type>10</type>
<snmp_community/>
<multiplier>0</multiplier>
<snmp_oid/>
<key>cloud_watch[&quot;--metric&quot;,&quot;ReplicaLag&quot;,&quot;--dimension_name&quot;,&quot;DBInstanceIdentifier&quot;,&quot;--dimension_value&quot;,&quot;{HOST.NAME}&quot;,&quot;--statistics&quot;,&quot;Average&quot;,&quot;--service&quot;,&quot;RDS&quot;,&quot;--region&quot;,&quot;ap-northeast-1&quot;]</key>
<delay>60</delay>
<history>90</history>
<trends>365</trends>
<status>0</status>
<value_type>0</value_type>
<allowed_hosts/>
<units>Seconds</units>
<delta>0</delta>
<snmpv3_securityname/>
<snmpv3_securitylevel>0</snmpv3_securitylevel>
<snmpv3_authpassphrase/>
<snmpv3_privpassphrase/>
<formula>1</formula>
<delay_flex/>
<params/>
<ipmi_sensor/>
<data_type>0</data_type>
<authtype>0</authtype>
<username/>
<password/>
<publickey/>
<privatekey/>
<port/>
<description/>
<inventory_link>0</inventory_link>
<applications/>
<valuemap/>
</item>
<item>
<name>SwapUsage</name>
<type>10</type>
<snmp_community/>
<multiplier>0</multiplier>
<snmp_oid/>
<key>cloud_watch[&quot;--metric&quot;,&quot;SwapUsage&quot;,&quot;--dimension_name&quot;,&quot;DBInstanceIdentifier&quot;,&quot;--dimension_value&quot;,&quot;{HOST.NAME}&quot;,&quot;--statistics&quot;,&quot;Average&quot;,&quot;--service&quot;,&quot;RDS&quot;,&quot;--region&quot;,&quot;ap-northeast-1&quot;]</key>
<delay>60</delay>
<history>90</history>
<trends>365</trends>
<status>0</status>
<value_type>0</value_type>
<allowed_hosts/>
<units>Bytes</units>
<delta>0</delta>
<snmpv3_securityname/>
<snmpv3_securitylevel>0</snmpv3_securitylevel>
<snmpv3_authpassphrase/>
<snmpv3_privpassphrase/>
<formula>1</formula>
<delay_flex/>
<params/>
<ipmi_sensor/>
<data_type>0</data_type>
<authtype>0</authtype>
<username/>
<password/>
<publickey/>
<privatekey/>
<port/>
<description/>
<inventory_link>0</inventory_link>
<applications/>
<valuemap/>
</item>
<item>
<name>WriteIOPS</name>
<type>10</type>
<snmp_community/>
<multiplier>0</multiplier>
<snmp_oid/>
<key>cloud_watch[&quot;--metric&quot;,&quot;WriteIOPS&quot;,&quot;--dimension_name&quot;,&quot;DBInstanceIdentifier&quot;,&quot;--dimension_value&quot;,&quot;{HOST.NAME}&quot;,&quot;--statistics&quot;,&quot;Average&quot;,&quot;--service&quot;,&quot;RDS&quot;,&quot;--region&quot;,&quot;ap-northeast-1&quot;]</key>
<delay>60</delay>
<history>90</history>
<trends>365</trends>
<status>0</status>
<value_type>0</value_type>
<allowed_hosts/>
<units>Count/Second</units>
<delta>0</delta>
<snmpv3_securityname/>
<snmpv3_securitylevel>0</snmpv3_securitylevel>
<snmpv3_authpassphrase/>
<snmpv3_privpassphrase/>
<formula>1</formula>
<delay_flex/>
<params/>
<ipmi_sensor/>
<data_type>0</data_type>
<authtype>0</authtype>
<username/>
<password/>
<publickey/>
<privatekey/>
<port/>
<description/>
<inventory_link>0</inventory_link>
<applications/>
<valuemap/>
</item>
<item>
<name>WriteLatency</name>
<type>10</type>
<snmp_community/>
<multiplier>0</multiplier>
<snmp_oid/>
<key>cloud_watch[&quot;--metric&quot;,&quot;WriteLatency&quot;,&quot;--dimension_name&quot;,&quot;DBInstanceIdentifier&quot;,&quot;--dimension_value&quot;,&quot;{HOST.NAME}&quot;,&quot;--statistics&quot;,&quot;Average&quot;,&quot;--service&quot;,&quot;RDS&quot;,&quot;--region&quot;,&quot;ap-northeast-1&quot;]</key>
<delay>60</delay>
<history>90</history>
<trends>365</trends>
<status>0</status>
<value_type>0</value_type>
<allowed_hosts/>
<units>Seconds</units>
<delta>0</delta>
<snmpv3_securityname/>
<snmpv3_securitylevel>0</snmpv3_securitylevel>
<snmpv3_authpassphrase/>
<snmpv3_privpassphrase/>
<formula>1</formula>
<delay_flex/>
<params/>
<ipmi_sensor/>
<data_type>0</data_type>
<authtype>0</authtype>
<username/>
<password/>
<publickey/>
<privatekey/>
<port/>
<description/>
<inventory_link>0</inventory_link>
<applications/>
<valuemap/>
</item>
<item>
<name>WriteThroughput</name>
<type>10</type>
<snmp_community/>
<multiplier>0</multiplier>
<snmp_oid/>
<key>cloud_watch[&quot;--metric&quot;,&quot;WriteThroughput&quot;,&quot;--dimension_name&quot;,&quot;DBInstanceIdentifier&quot;,&quot;--dimension_value&quot;,&quot;{HOST.NAME}&quot;,&quot;--statistics&quot;,&quot;Average&quot;,&quot;--service&quot;,&quot;RDS&quot;,&quot;--region&quot;,&quot;ap-northeast-1&quot;]</key>
<delay>60</delay>
<history>90</history>
<trends>365</trends>
<status>0</status>
<value_type>0</value_type>
<allowed_hosts/>
<units>Bytes/Second</units>
<delta>0</delta>
<snmpv3_securityname/>
<snmpv3_securitylevel>0</snmpv3_securitylevel>
<snmpv3_authpassphrase/>
<snmpv3_privpassphrase/>
<formula>1</formula>
<delay_flex/>
<params/>
<ipmi_sensor/>
<data_type>0</data_type>
<authtype>0</authtype>
<username/>
<password/>
<publickey/>
<privatekey/>
<port/>
<description/>
<inventory_link>0</inventory_link>
<applications/>
<valuemap/>
</item>
</items>
<discovery_rules/>
<macros/>
<templates/>
<screens>
<screen>
<name>RDS Metrics</name>
<hsize>2</hsize>
<vsize>7</vsize>
<screen_items>
<screen_item>
<resourcetype>0</resourcetype>
<width>500</width>
<height>100</height>
<x>0</x>
<y>0</y>
<colspan>1</colspan>
<rowspan>1</rowspan>
<elements>0</elements>
<valign>0</valign>
<halign>0</halign>
<style>0</style>
<url/>
<dynamic>0</dynamic>
<sort_triggers>0</sort_triggers>
<resource>
<name>CPUUtilization</name>
<host>Template AWS RDS</host>
</resource>
</screen_item>
<screen_item>
<resourcetype>0</resourcetype>
<width>500</width>
<height>100</height>
<x>1</x>
<y>0</y>
<colspan>1</colspan>
<rowspan>1</rowspan>
<elements>0</elements>
<valign>0</valign>
<halign>0</halign>
<style>0</style>
<url/>
<dynamic>0</dynamic>
<sort_triggers>0</sort_triggers>
<resource>
<name>FreeableMemory</name>
<host>Template AWS RDS</host>
</resource>
</screen_item>
<screen_item>
<resourcetype>0</resourcetype>
<width>500</width>
<height>100</height>
<x>0</x>
<y>1</y>
<colspan>1</colspan>
<rowspan>1</rowspan>
<elements>0</elements>
<valign>0</valign>
<halign>0</halign>
<style>0</style>
<url/>
<dynamic>0</dynamic>
<sort_triggers>0</sort_triggers>
<resource>
<name>ReadIOPS</name>
<host>Template AWS RDS</host>
</resource>
</screen_item>
<screen_item>
<resourcetype>0</resourcetype>
<width>500</width>
<height>100</height>
<x>1</x>
<y>1</y>
<colspan>1</colspan>
<rowspan>1</rowspan>
<elements>0</elements>
<valign>0</valign>
<halign>0</halign>
<style>0</style>
<url/>
<dynamic>0</dynamic>
<sort_triggers>0</sort_triggers>
<resource>
<name>WriteIOPS</name>
<host>Template AWS RDS</host>
</resource>
</screen_item>
<screen_item>
<resourcetype>0</resourcetype>
<width>500</width>
<height>100</height>
<x>0</x>
<y>2</y>
<colspan>1</colspan>
<rowspan>1</rowspan>
<elements>0</elements>
<valign>0</valign>
<halign>0</halign>
<style>0</style>
<url/>
<dynamic>0</dynamic>
<sort_triggers>0</sort_triggers>
<resource>
<name>ReadThroughput</name>
<host>Template AWS RDS</host>
</resource>
</screen_item>
<screen_item>
<resourcetype>0</resourcetype>
<width>500</width>
<height>100</height>
<x>1</x>
<y>2</y>
<colspan>1</colspan>
<rowspan>1</rowspan>
<elements>0</elements>
<valign>0</valign>
<halign>0</halign>
<style>0</style>
<url/>
<dynamic>0</dynamic>
<sort_triggers>0</sort_triggers>
<resource>
<name>WriteThroughput</name>
<host>Template AWS RDS</host>
</resource>
</screen_item>
<screen_item>
<resourcetype>0</resourcetype>
<width>500</width>
<height>100</height>
<x>0</x>
<y>3</y>
<colspan>1</colspan>
<rowspan>1</rowspan>
<elements>0</elements>
<valign>0</valign>
<halign>0</halign>
<style>0</style>
<url/>
<dynamic>0</dynamic>
<sort_triggers>0</sort_triggers>
<resource>
<name>ReadLatency</name>
<host>Template AWS RDS</host>
</resource>
</screen_item>
<screen_item>
<resourcetype>0</resourcetype>
<width>500</width>
<height>100</height>
<x>1</x>
<y>3</y>
<colspan>1</colspan>
<rowspan>1</rowspan>
<elements>0</elements>
<valign>0</valign>
<halign>0</halign>
<style>0</style>
<url/>
<dynamic>0</dynamic>
<sort_triggers>0</sort_triggers>
<resource>
<name>WriteLatency</name>
<host>Template AWS RDS</host>
</resource>
</screen_item>
<screen_item>
<resourcetype>0</resourcetype>
<width>500</width>
<height>100</height>
<x>0</x>
<y>4</y>
<colspan>1</colspan>
<rowspan>1</rowspan>
<elements>0</elements>
<valign>0</valign>
<halign>0</halign>
<style>0</style>
<url/>
<dynamic>0</dynamic>
<sort_triggers>0</sort_triggers>
<resource>
<name>FreeStorageSpace</name>
<host>Template AWS RDS</host>
</resource>
</screen_item>
<screen_item>
<resourcetype>0</resourcetype>
<width>500</width>
<height>100</height>
<x>1</x>
<y>4</y>
<colspan>1</colspan>
<rowspan>1</rowspan>
<elements>0</elements>
<valign>0</valign>
<halign>0</halign>
<style>0</style>
<url/>
<dynamic>0</dynamic>
<sort_triggers>0</sort_triggers>
<resource>
<name>SwapUsage</name>
<host>Template AWS RDS</host>
</resource>
</screen_item>
<screen_item>
<resourcetype>0</resourcetype>
<width>500</width>
<height>100</height>
<x>0</x>
<y>5</y>
<colspan>1</colspan>
<rowspan>1</rowspan>
<elements>0</elements>
<valign>0</valign>
<halign>0</halign>
<style>0</style>
<url/>
<dynamic>0</dynamic>
<sort_triggers>0</sort_triggers>
<resource>
<name>DatabaseConnections</name>
<host>Template AWS RDS</host>
</resource>
</screen_item>
<screen_item>
<resourcetype>0</resourcetype>
<width>500</width>
<height>100</height>
<x>1</x>
<y>5</y>
<colspan>1</colspan>
<rowspan>1</rowspan>
<elements>0</elements>
<valign>0</valign>
<halign>0</halign>
<style>0</style>
<url/>
<dynamic>0</dynamic>
<sort_triggers>0</sort_triggers>
<resource>
<name>DiskQueueDepth</name>
<host>Template AWS RDS</host>
</resource>
</screen_item>
<screen_item>
<resourcetype>0</resourcetype>
<width>500</width>
<height>100</height>
<x>0</x>
<y>6</y>
<colspan>1</colspan>
<rowspan>1</rowspan>
<elements>0</elements>
<valign>0</valign>
<halign>0</halign>
<style>0</style>
<url/>
<dynamic>0</dynamic>
<sort_triggers>0</sort_triggers>
<resource>
<name>BinLogDiskUsage</name>
<host>Template AWS RDS</host>
</resource>
</screen_item>
<screen_item>
<resourcetype>0</resourcetype>
<width>500</width>
<height>100</height>
<x>1</x>
<y>6</y>
<colspan>1</colspan>
<rowspan>1</rowspan>
<elements>0</elements>
<valign>0</valign>
<halign>0</halign>
<style>0</style>
<url/>
<dynamic>0</dynamic>
<sort_triggers>0</sort_triggers>
<resource>
<name>ReplicaLag</name>
<host>Template AWS RDS</host>
</resource>
</screen_item>
</screen_items>
</screen>
</screens>
</template>
</templates>
<graphs>
<graph>
<name>BinLogDiskUsage</name>
<width>900</width>
<height>200</height>
<yaxismin>0.0000</yaxismin>
<yaxismax>100.0000</yaxismax>
<show_work_period>1</show_work_period>
<show_triggers>1</show_triggers>
<type>0</type>
<show_legend>1</show_legend>
<show_3d>0</show_3d>
<percent_left>0.0000</percent_left>
<percent_right>0.0000</percent_right>
<ymin_type_1>0</ymin_type_1>
<ymax_type_1>0</ymax_type_1>
<ymin_item_1>0</ymin_item_1>
<ymax_item_1>0</ymax_item_1>
<graph_items>
<graph_item>
<sortorder>0</sortorder>
<drawtype>0</drawtype>
<color>C80000</color>
<yaxisside>0</yaxisside>
<calc_fnc>2</calc_fnc>
<type>0</type>
<item>
<host>Template AWS RDS</host>
<key>cloud_watch[&quot;--metric&quot;,&quot;BinLogDiskUsage&quot;,&quot;--dimension_name&quot;,&quot;DBInstanceIdentifier&quot;,&quot;--dimension_value&quot;,&quot;{HOST.NAME}&quot;,&quot;--statistics&quot;,&quot;Average&quot;,&quot;--service&quot;,&quot;RDS&quot;,&quot;--region&quot;,&quot;ap-northeast-1&quot;]</key>
</item>
</graph_item>
</graph_items>
</graph>
<graph>
<name>CPUUtilization</name>
<width>900</width>
<height>200</height>
<yaxismin>0.0000</yaxismin>
<yaxismax>100.0000</yaxismax>
<show_work_period>1</show_work_period>
<show_triggers>1</show_triggers>
<type>0</type>
<show_legend>1</show_legend>
<show_3d>0</show_3d>
<percent_left>0.0000</percent_left>
<percent_right>0.0000</percent_right>
<ymin_type_1>0</ymin_type_1>
<ymax_type_1>0</ymax_type_1>
<ymin_item_1>0</ymin_item_1>
<ymax_item_1>0</ymax_item_1>
<graph_items>
<graph_item>
<sortorder>0</sortorder>
<drawtype>0</drawtype>
<color>C80000</color>
<yaxisside>0</yaxisside>
<calc_fnc>2</calc_fnc>
<type>0</type>
<item>
<host>Template AWS RDS</host>
<key>cloud_watch[&quot;--metric&quot;,&quot;CPUUtilization&quot;,&quot;--dimension_name&quot;,&quot;DBInstanceIdentifier&quot;,&quot;--dimension_value&quot;,&quot;{HOST.NAME}&quot;,&quot;--statistics&quot;,&quot;Average&quot;,&quot;--service&quot;,&quot;RDS&quot;,&quot;--region&quot;,&quot;ap-northeast-1&quot;]</key>
</item>
</graph_item>
</graph_items>
</graph>
<graph>
<name>DatabaseConnections</name>
<width>900</width>
<height>200</height>
<yaxismin>0.0000</yaxismin>
<yaxismax>100.0000</yaxismax>
<show_work_period>1</show_work_period>
<show_triggers>1</show_triggers>
<type>0</type>
<show_legend>1</show_legend>
<show_3d>0</show_3d>
<percent_left>0.0000</percent_left>
<percent_right>0.0000</percent_right>
<ymin_type_1>0</ymin_type_1>
<ymax_type_1>0</ymax_type_1>
<ymin_item_1>0</ymin_item_1>
<ymax_item_1>0</ymax_item_1>
<graph_items>
<graph_item>
<sortorder>0</sortorder>
<drawtype>0</drawtype>
<color>C80000</color>
<yaxisside>0</yaxisside>
<calc_fnc>2</calc_fnc>
<type>0</type>
<item>
<host>Template AWS RDS</host>
<key>cloud_watch[&quot;--metric&quot;,&quot;DatabaseConnections&quot;,&quot;--dimension_name&quot;,&quot;DBInstanceIdentifier&quot;,&quot;--dimension_value&quot;,&quot;{HOST.NAME}&quot;,&quot;--statistics&quot;,&quot;Average&quot;,&quot;--service&quot;,&quot;RDS&quot;,&quot;--region&quot;,&quot;ap-northeast-1&quot;]</key>
</item>
</graph_item>
</graph_items>
</graph>
<graph>
<name>DiskQueueDepth</name>
<width>900</width>
<height>200</height>
<yaxismin>0.0000</yaxismin>
<yaxismax>100.0000</yaxismax>
<show_work_period>1</show_work_period>
<show_triggers>1</show_triggers>
<type>0</type>
<show_legend>1</show_legend>
<show_3d>0</show_3d>
<percent_left>0.0000</percent_left>
<percent_right>0.0000</percent_right>
<ymin_type_1>0</ymin_type_1>
<ymax_type_1>0</ymax_type_1>
<ymin_item_1>0</ymin_item_1>
<ymax_item_1>0</ymax_item_1>
<graph_items>
<graph_item>
<sortorder>0</sortorder>
<drawtype>0</drawtype>
<color>C80000</color>
<yaxisside>0</yaxisside>
<calc_fnc>2</calc_fnc>
<type>0</type>
<item>
<host>Template AWS RDS</host>
<key>cloud_watch[&quot;--metric&quot;,&quot;DiskQueueDepth&quot;,&quot;--dimension_name&quot;,&quot;DBInstanceIdentifier&quot;,&quot;--dimension_value&quot;,&quot;{HOST.NAME}&quot;,&quot;--statistics&quot;,&quot;Average&quot;,&quot;--service&quot;,&quot;RDS&quot;,&quot;--region&quot;,&quot;ap-northeast-1&quot;]</key>
</item>
</graph_item>
</graph_items>
</graph>
<graph>
<name>FreeableMemory</name>
<width>900</width>
<height>200</height>
<yaxismin>0.0000</yaxismin>
<yaxismax>100.0000</yaxismax>
<show_work_period>1</show_work_period>
<show_triggers>1</show_triggers>
<type>0</type>
<show_legend>1</show_legend>
<show_3d>0</show_3d>
<percent_left>0.0000</percent_left>
<percent_right>0.0000</percent_right>
<ymin_type_1>0</ymin_type_1>
<ymax_type_1>0</ymax_type_1>
<ymin_item_1>0</ymin_item_1>
<ymax_item_1>0</ymax_item_1>
<graph_items>
<graph_item>
<sortorder>0</sortorder>
<drawtype>0</drawtype>
<color>C80000</color>
<yaxisside>0</yaxisside>
<calc_fnc>2</calc_fnc>
<type>0</type>
<item>
<host>Template AWS RDS</host>
<key>cloud_watch[&quot;--metric&quot;,&quot;FreeableMemory&quot;,&quot;--dimension_name&quot;,&quot;DBInstanceIdentifier&quot;,&quot;--dimension_value&quot;,&quot;{HOST.NAME}&quot;,&quot;--statistics&quot;,&quot;Average&quot;,&quot;--service&quot;,&quot;RDS&quot;,&quot;--region&quot;,&quot;ap-northeast-1&quot;]</key>
</item>
</graph_item>
</graph_items>
</graph>
<graph>
<name>FreeStorageSpace</name>
<width>900</width>
<height>200</height>
<yaxismin>0.0000</yaxismin>
<yaxismax>100.0000</yaxismax>
<show_work_period>1</show_work_period>
<show_triggers>1</show_triggers>
<type>0</type>
<show_legend>1</show_legend>
<show_3d>0</show_3d>
<percent_left>0.0000</percent_left>
<percent_right>0.0000</percent_right>
<ymin_type_1>0</ymin_type_1>
<ymax_type_1>0</ymax_type_1>
<ymin_item_1>0</ymin_item_1>
<ymax_item_1>0</ymax_item_1>
<graph_items>
<graph_item>
<sortorder>0</sortorder>
<drawtype>0</drawtype>
<color>C80000</color>
<yaxisside>0</yaxisside>
<calc_fnc>2</calc_fnc>
<type>0</type>
<item>
<host>Template AWS RDS</host>
<key>cloud_watch[&quot;--metric&quot;,&quot;FreeStorageSpace&quot;,&quot;--dimension_name&quot;,&quot;DBInstanceIdentifier&quot;,&quot;--dimension_value&quot;,&quot;{HOST.NAME}&quot;,&quot;--statistics&quot;,&quot;Average&quot;,&quot;--service&quot;,&quot;RDS&quot;,&quot;--region&quot;,&quot;ap-northeast-1&quot;]</key>
</item>
</graph_item>
</graph_items>
</graph>
<graph>
<name>ReadIOPS</name>
<width>900</width>
<height>200</height>
<yaxismin>0.0000</yaxismin>
<yaxismax>100.0000</yaxismax>
<show_work_period>1</show_work_period>
<show_triggers>1</show_triggers>
<type>0</type>
<show_legend>1</show_legend>
<show_3d>0</show_3d>
<percent_left>0.0000</percent_left>
<percent_right>0.0000</percent_right>
<ymin_type_1>0</ymin_type_1>
<ymax_type_1>0</ymax_type_1>
<ymin_item_1>0</ymin_item_1>
<ymax_item_1>0</ymax_item_1>
<graph_items>
<graph_item>
<sortorder>0</sortorder>
<drawtype>0</drawtype>
<color>C80000</color>
<yaxisside>0</yaxisside>
<calc_fnc>2</calc_fnc>
<type>0</type>
<item>
<host>Template AWS RDS</host>
<key>cloud_watch[&quot;--metric&quot;,&quot;ReadIOPS&quot;,&quot;--dimension_name&quot;,&quot;DBInstanceIdentifier&quot;,&quot;--dimension_value&quot;,&quot;{HOST.NAME}&quot;,&quot;--statistics&quot;,&quot;Average&quot;,&quot;--service&quot;,&quot;RDS&quot;,&quot;--region&quot;,&quot;ap-northeast-1&quot;]</key>
</item>
</graph_item>
</graph_items>
</graph>
<graph>
<name>ReadLatency</name>
<width>900</width>
<height>200</height>
<yaxismin>0.0000</yaxismin>
<yaxismax>100.0000</yaxismax>
<show_work_period>1</show_work_period>
<show_triggers>1</show_triggers>
<type>0</type>
<show_legend>1</show_legend>
<show_3d>0</show_3d>
<percent_left>0.0000</percent_left>
<percent_right>0.0000</percent_right>
<ymin_type_1>0</ymin_type_1>
<ymax_type_1>0</ymax_type_1>
<ymin_item_1>0</ymin_item_1>
<ymax_item_1>0</ymax_item_1>
<graph_items>
<graph_item>
<sortorder>0</sortorder>
<drawtype>0</drawtype>
<color>C80000</color>
<yaxisside>0</yaxisside>
<calc_fnc>2</calc_fnc>
<type>0</type>
<item>
<host>Template AWS RDS</host>
<key>cloud_watch[&quot;--metric&quot;,&quot;ReadLatency&quot;,&quot;--dimension_name&quot;,&quot;DBInstanceIdentifier&quot;,&quot;--dimension_value&quot;,&quot;{HOST.NAME}&quot;,&quot;--statistics&quot;,&quot;Average&quot;,&quot;--service&quot;,&quot;RDS&quot;,&quot;--region&quot;,&quot;ap-northeast-1&quot;]</key>
</item>
</graph_item>
</graph_items>
</graph>
<graph>
<name>ReadThroughput</name>
<width>900</width>
<height>200</height>
<yaxismin>0.0000</yaxismin>
<yaxismax>100.0000</yaxismax>
<show_work_period>1</show_work_period>
<show_triggers>1</show_triggers>
<type>0</type>
<show_legend>1</show_legend>
<show_3d>0</show_3d>
<percent_left>0.0000</percent_left>
<percent_right>0.0000</percent_right>
<ymin_type_1>0</ymin_type_1>
<ymax_type_1>0</ymax_type_1>
<ymin_item_1>0</ymin_item_1>
<ymax_item_1>0</ymax_item_1>
<graph_items>
<graph_item>
<sortorder>0</sortorder>
<drawtype>0</drawtype>
<color>C80000</color>
<yaxisside>0</yaxisside>
<calc_fnc>2</calc_fnc>
<type>0</type>
<item>
<host>Template AWS RDS</host>
<key>cloud_watch[&quot;--metric&quot;,&quot;ReadThroughput&quot;,&quot;--dimension_name&quot;,&quot;DBInstanceIdentifier&quot;,&quot;--dimension_value&quot;,&quot;{HOST.NAME}&quot;,&quot;--statistics&quot;,&quot;Average&quot;,&quot;--service&quot;,&quot;RDS&quot;,&quot;--region&quot;,&quot;ap-northeast-1&quot;]</key>
</item>
</graph_item>
</graph_items>
</graph>
<graph>
<name>ReplicaLag</name>
<width>900</width>
<height>200</height>
<yaxismin>0.0000</yaxismin>
<yaxismax>100.0000</yaxismax>
<show_work_period>1</show_work_period>
<show_triggers>1</show_triggers>
<type>0</type>
<show_legend>1</show_legend>
<show_3d>0</show_3d>
<percent_left>0.0000</percent_left>
<percent_right>0.0000</percent_right>
<ymin_type_1>0</ymin_type_1>
<ymax_type_1>0</ymax_type_1>
<ymin_item_1>0</ymin_item_1>
<ymax_item_1>0</ymax_item_1>
<graph_items>
<graph_item>
<sortorder>0</sortorder>
<drawtype>0</drawtype>
<color>C80000</color>
<yaxisside>0</yaxisside>
<calc_fnc>2</calc_fnc>
<type>0</type>
<item>
<host>Template AWS RDS</host>
<key>cloud_watch[&quot;--metric&quot;,&quot;ReplicaLag&quot;,&quot;--dimension_name&quot;,&quot;DBInstanceIdentifier&quot;,&quot;--dimension_value&quot;,&quot;{HOST.NAME}&quot;,&quot;--statistics&quot;,&quot;Average&quot;,&quot;--service&quot;,&quot;RDS&quot;,&quot;--region&quot;,&quot;ap-northeast-1&quot;]</key>
</item>
</graph_item>
</graph_items>
</graph>
<graph>
<name>SwapUsage</name>
<width>900</width>
<height>200</height>
<yaxismin>0.0000</yaxismin>
<yaxismax>100.0000</yaxismax>
<show_work_period>1</show_work_period>
<show_triggers>1</show_triggers>
<type>0</type>
<show_legend>1</show_legend>
<show_3d>0</show_3d>
<percent_left>0.0000</percent_left>
<percent_right>0.0000</percent_right>
<ymin_type_1>0</ymin_type_1>
<ymax_type_1>0</ymax_type_1>
<ymin_item_1>0</ymin_item_1>
<ymax_item_1>0</ymax_item_1>
<graph_items>
<graph_item>
<sortorder>0</sortorder>
<drawtype>0</drawtype>
<color>C80000</color>
<yaxisside>0</yaxisside>
<calc_fnc>2</calc_fnc>
<type>0</type>
<item>
<host>Template AWS RDS</host>
<key>cloud_watch[&quot;--metric&quot;,&quot;SwapUsage&quot;,&quot;--dimension_name&quot;,&quot;DBInstanceIdentifier&quot;,&quot;--dimension_value&quot;,&quot;{HOST.NAME}&quot;,&quot;--statistics&quot;,&quot;Average&quot;,&quot;--service&quot;,&quot;RDS&quot;,&quot;--region&quot;,&quot;ap-northeast-1&quot;]</key>
</item>
</graph_item>
</graph_items>
</graph>
<graph>
<name>WriteIOPS</name>
<width>900</width>
<height>200</height>
<yaxismin>0.0000</yaxismin>
<yaxismax>100.0000</yaxismax>
<show_work_period>1</show_work_period>
<show_triggers>1</show_triggers>
<type>0</type>
<show_legend>1</show_legend>
<show_3d>0</show_3d>
<percent_left>0.0000</percent_left>
<percent_right>0.0000</percent_right>
<ymin_type_1>0</ymin_type_1>
<ymax_type_1>0</ymax_type_1>
<ymin_item_1>0</ymin_item_1>
<ymax_item_1>0</ymax_item_1>
<graph_items>
<graph_item>
<sortorder>0</sortorder>
<drawtype>0</drawtype>
<color>C80000</color>
<yaxisside>0</yaxisside>
<calc_fnc>2</calc_fnc>
<type>0</type>
<item>
<host>Template AWS RDS</host>
<key>cloud_watch[&quot;--metric&quot;,&quot;WriteIOPS&quot;,&quot;--dimension_name&quot;,&quot;DBInstanceIdentifier&quot;,&quot;--dimension_value&quot;,&quot;{HOST.NAME}&quot;,&quot;--statistics&quot;,&quot;Average&quot;,&quot;--service&quot;,&quot;RDS&quot;,&quot;--region&quot;,&quot;ap-northeast-1&quot;]</key>
</item>
</graph_item>
</graph_items>
</graph>
<graph>
<name>WriteLatency</name>
<width>900</width>
<height>200</height>
<yaxismin>0.0000</yaxismin>
<yaxismax>100.0000</yaxismax>
<show_work_period>1</show_work_period>
<show_triggers>1</show_triggers>
<type>0</type>
<show_legend>1</show_legend>
<show_3d>0</show_3d>
<percent_left>0.0000</percent_left>
<percent_right>0.0000</percent_right>
<ymin_type_1>0</ymin_type_1>
<ymax_type_1>0</ymax_type_1>
<ymin_item_1>0</ymin_item_1>
<ymax_item_1>0</ymax_item_1>
<graph_items>
<graph_item>
<sortorder>0</sortorder>
<drawtype>0</drawtype>
<color>C80000</color>
<yaxisside>0</yaxisside>
<calc_fnc>2</calc_fnc>
<type>0</type>
<item>
<host>Template AWS RDS</host>
<key>cloud_watch[&quot;--metric&quot;,&quot;WriteLatency&quot;,&quot;--dimension_name&quot;,&quot;DBInstanceIdentifier&quot;,&quot;--dimension_value&quot;,&quot;{HOST.NAME}&quot;,&quot;--statistics&quot;,&quot;Average&quot;,&quot;--service&quot;,&quot;RDS&quot;,&quot;--region&quot;,&quot;ap-northeast-1&quot;]</key>
</item>
</graph_item>
</graph_items>
</graph>
<graph>
<name>WriteThroughput</name>
<width>900</width>
<height>200</height>
<yaxismin>0.0000</yaxismin>
<yaxismax>100.0000</yaxismax>
<show_work_period>1</show_work_period>
<show_triggers>1</show_triggers>
<type>0</type>
<show_legend>1</show_legend>
<show_3d>0</show_3d>
<percent_left>0.0000</percent_left>
<percent_right>0.0000</percent_right>
<ymin_type_1>0</ymin_type_1>
<ymax_type_1>0</ymax_type_1>
<ymin_item_1>0</ymin_item_1>
<ymax_item_1>0</ymax_item_1>
<graph_items>
<graph_item>
<sortorder>0</sortorder>
<drawtype>0</drawtype>
<color>C80000</color>
<yaxisside>0</yaxisside>
<calc_fnc>2</calc_fnc>
<type>0</type>
<item>
<host>Template AWS RDS</host>
<key>cloud_watch[&quot;--metric&quot;,&quot;WriteThroughput&quot;,&quot;--dimension_name&quot;,&quot;DBInstanceIdentifier&quot;,&quot;--dimension_value&quot;,&quot;{HOST.NAME}&quot;,&quot;--statistics&quot;,&quot;Average&quot;,&quot;--service&quot;,&quot;RDS&quot;,&quot;--region&quot;,&quot;ap-northeast-1&quot;]</key>
</item>
</graph_item>
</graph_items>
</graph>
</graphs>
</zabbix_export>
@gideon300

This comment has been minimized.

Show comment
Hide comment
@gideon300

gideon300 Aug 4, 2015

下記のようなエラーが出てしまいます。
原因が分からなく困っています。
ご教授頂けば幸いです。
よろしくお願いいたします。

/usr/share/ruby/gems/2.0/gems/aws-sdk-1.51.0/lib/aws/core/option_grammar.rb:240:in validate': expected enumerable value for option statistics (AWS::Core::OptionGrammar::FormatError) from /usr/share/ruby/gems/2.0/gems/aws-sdk-1.51.0/lib/aws/core/option_grammar.rb:590:inblock in validate'
from /usr/share/ruby/gems/2.0/gems/aws-sdk-1.51.0/lib/aws/core/option_grammar.rb:586:in each' from /usr/share/ruby/gems/2.0/gems/aws-sdk-1.51.0/lib/aws/core/option_grammar.rb:586:invalidate'
from /usr/share/ruby/gems/2.0/gems/aws-sdk-1.51.0/lib/aws/core/option_grammar.rb:601:in request_params' from /usr/share/ruby/gems/2.0/gems/aws-sdk-1.51.0/lib/aws/core/query_request_builder.rb:37:inpopulate_request'
from /usr/share/ruby/gems/2.0/gems/aws-sdk-1.51.0/lib/aws/core/client.rb:740:in block (2 levels) in define_client_method' from /usr/share/ruby/gems/2.0/gems/aws-sdk-1.51.0/lib/aws/core/client.rb:560:inbuild_request'
from /usr/share/ruby/gems/2.0/gems/aws-sdk-1.51.0/lib/aws/core/client.rb:491:in block (3 levels) in client_request' from /usr/share/ruby/gems/2.0/gems/aws-sdk-1.51.0/lib/aws/core/response.rb:175:incall'
from /usr/share/ruby/gems/2.0/gems/aws-sdk-1.51.0/lib/aws/core/response.rb:175:in build_request' from /usr/share/ruby/gems/2.0/gems/aws-sdk-1.51.0/lib/aws/core/response.rb:114:ininitialize'
from /usr/share/ruby/gems/2.0/gems/aws-sdk-1.51.0/lib/aws/core/client.rb:203:in new' from /usr/share/ruby/gems/2.0/gems/aws-sdk-1.51.0/lib/aws/core/client.rb:203:innew_response'
from /usr/share/ruby/gems/2.0/gems/aws-sdk-1.51.0/lib/aws/core/client.rb:490:in block (2 levels) in client_request' from /usr/share/ruby/gems/2.0/gems/aws-sdk-1.51.0/lib/aws/core/client.rb:391:inlog_client_request'
from /usr/share/ruby/gems/2.0/gems/aws-sdk-1.51.0/lib/aws/core/client.rb:477:in block in client_request' from /usr/share/ruby/gems/2.0/gems/aws-sdk-1.51.0/lib/aws/core/client.rb:373:inreturn_or_raise'
from /usr/share/ruby/gems/2.0/gems/aws-sdk-1.51.0/lib/aws/core/client.rb:476:in client_request' from (eval):3:inget_metric_statistics'
from /usr/share/ruby/gems/2.0/gems/aws-sdk-1.51.0/lib/aws/cloud_watch/metric.rb:108:in statistics' from ./cloud_watch2:30:in

'

下記のようなエラーが出てしまいます。
原因が分からなく困っています。
ご教授頂けば幸いです。
よろしくお願いいたします。

/usr/share/ruby/gems/2.0/gems/aws-sdk-1.51.0/lib/aws/core/option_grammar.rb:240:in validate': expected enumerable value for option statistics (AWS::Core::OptionGrammar::FormatError) from /usr/share/ruby/gems/2.0/gems/aws-sdk-1.51.0/lib/aws/core/option_grammar.rb:590:inblock in validate'
from /usr/share/ruby/gems/2.0/gems/aws-sdk-1.51.0/lib/aws/core/option_grammar.rb:586:in each' from /usr/share/ruby/gems/2.0/gems/aws-sdk-1.51.0/lib/aws/core/option_grammar.rb:586:invalidate'
from /usr/share/ruby/gems/2.0/gems/aws-sdk-1.51.0/lib/aws/core/option_grammar.rb:601:in request_params' from /usr/share/ruby/gems/2.0/gems/aws-sdk-1.51.0/lib/aws/core/query_request_builder.rb:37:inpopulate_request'
from /usr/share/ruby/gems/2.0/gems/aws-sdk-1.51.0/lib/aws/core/client.rb:740:in block (2 levels) in define_client_method' from /usr/share/ruby/gems/2.0/gems/aws-sdk-1.51.0/lib/aws/core/client.rb:560:inbuild_request'
from /usr/share/ruby/gems/2.0/gems/aws-sdk-1.51.0/lib/aws/core/client.rb:491:in block (3 levels) in client_request' from /usr/share/ruby/gems/2.0/gems/aws-sdk-1.51.0/lib/aws/core/response.rb:175:incall'
from /usr/share/ruby/gems/2.0/gems/aws-sdk-1.51.0/lib/aws/core/response.rb:175:in build_request' from /usr/share/ruby/gems/2.0/gems/aws-sdk-1.51.0/lib/aws/core/response.rb:114:ininitialize'
from /usr/share/ruby/gems/2.0/gems/aws-sdk-1.51.0/lib/aws/core/client.rb:203:in new' from /usr/share/ruby/gems/2.0/gems/aws-sdk-1.51.0/lib/aws/core/client.rb:203:innew_response'
from /usr/share/ruby/gems/2.0/gems/aws-sdk-1.51.0/lib/aws/core/client.rb:490:in block (2 levels) in client_request' from /usr/share/ruby/gems/2.0/gems/aws-sdk-1.51.0/lib/aws/core/client.rb:391:inlog_client_request'
from /usr/share/ruby/gems/2.0/gems/aws-sdk-1.51.0/lib/aws/core/client.rb:477:in block in client_request' from /usr/share/ruby/gems/2.0/gems/aws-sdk-1.51.0/lib/aws/core/client.rb:373:inreturn_or_raise'
from /usr/share/ruby/gems/2.0/gems/aws-sdk-1.51.0/lib/aws/core/client.rb:476:in client_request' from (eval):3:inget_metric_statistics'
from /usr/share/ruby/gems/2.0/gems/aws-sdk-1.51.0/lib/aws/cloud_watch/metric.rb:108:in statistics' from ./cloud_watch2:30:in

'

@vukomir

This comment has been minimized.

Show comment
Hide comment
@vukomir

vukomir Sep 11, 2015

Hi,

i have tried the script but it's not working with aws-sdk-2.1

do you have a update on it?

Thanks.
Br,
Vuko

vukomir commented Sep 11, 2015

Hi,

i have tried the script but it's not working with aws-sdk-2.1

do you have a update on it?

Thanks.
Br,
Vuko

@g-price

This comment has been minimized.

Show comment
Hide comment
@g-price

g-price Sep 24, 2015

Looks like the constant in 'aws-sdk' has changed from AWS to Aws, after making this change was able to pull data. Thank you!!!

g-price commented Sep 24, 2015

Looks like the constant in 'aws-sdk' has changed from AWS to Aws, after making this change was able to pull data. Thank you!!!

@vukomir

This comment has been minimized.

Show comment
Hide comment
@vukomir

vukomir Sep 28, 2015

Hi g-price,

Thanks for the info, i have change AWS to Aws but i get the following error in zabbix server log

cloud_watch["--metric","BinLogDiskUsage","--dimension_name","DBInstanceIdentifier","--dimension_value","{HOST.NAME}","--statistics","Average","--service","RDS","--region","ap-northeast-1"]" became not supported: Received value [/usr/lib/zabbix/externalscripts/cloud_watch:17:in `

': wrong number of arguments (1 for 0) (ArgumentError)] is not suitable for value type [Numeric (float)]

vukomir commented Sep 28, 2015

Hi g-price,

Thanks for the info, i have change AWS to Aws but i get the following error in zabbix server log

cloud_watch["--metric","BinLogDiskUsage","--dimension_name","DBInstanceIdentifier","--dimension_value","{HOST.NAME}","--statistics","Average","--service","RDS","--region","ap-northeast-1"]" became not supported: Received value [/usr/lib/zabbix/externalscripts/cloud_watch:17:in `

': wrong number of arguments (1 for 0) (ArgumentError)] is not suitable for value type [Numeric (float)]

@khoi-thinh

This comment has been minimized.

Show comment
Hide comment
@khoi-thinh

khoi-thinh Dec 8, 2015

Can someone tell me how to use this?
I downloaded the XML file and imported into Zabbix but when adding a new host how can i deal with the IP address? The RDS dont have IP, right?
In case i use the IP of my EC2 instance and use RDS template it still show up but i dont know what is it?

Can someone tell me how to use this?
I downloaded the XML file and imported into Zabbix but when adding a new host how can i deal with the IP address? The RDS dont have IP, right?
In case i use the IP of my EC2 instance and use RDS template it still show up but i dont know what is it?

@pratapsingh

This comment has been minimized.

Show comment
Hide comment
@pratapsingh

pratapsingh Sep 9, 2016

Anyone have solution for the error ?

[/usr/lib/zabbix/externalscripts/cloud_watch:17:in `

': wrong number of arguments (1 for 0) (ArgumentError)] is not suitable for value type [Numeric (float)]

Anyone have solution for the error ?

[/usr/lib/zabbix/externalscripts/cloud_watch:17:in `

': wrong number of arguments (1 for 0) (ArgumentError)] is not suitable for value type [Numeric (float)]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment