Skip to content

Instantly share code, notes, and snippets.

yokota-shinsuke

Block or report user

Report or block yokota-shinsuke

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@yokota-shinsuke
yokota-shinsuke / discover_s3
Created May 16, 2014
Monitor S3 with Zabbix
View discover_s3
#!/usr/bin/ruby
require 'rubygems'
require 'aws-sdk'
require 'optparse'
require 'json'
discovery = {'data' => []}
s3 = AWS::S3.new
s3.buckets.each do |bucket|
@yokota-shinsuke
yokota-shinsuke / cloud_watch
Last active May 25, 2018
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 …
View cloud_watch
#!/usr/bin/ruby
require 'rubygems'
require 'aws-sdk'
require 'optparse'
params = ARGV.getopts(
"",
"region:",
"service:",
You can’t perform that action at this time.