Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using aws service gems #342

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions bin/check-alb-target-group-health.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# Linux
#
# DEPENDENCIES:
# gem: aws-sdk
# gem: aws-sdk-elasticloadbalancingv2
# gem: sensu-plugin
#
# USAGE:
Expand All @@ -30,7 +30,7 @@
# Released under the same terms as Sensu (the MIT license); see LICENSE
# for details.

require 'aws-sdk'
require 'aws-sdk-elasticloadbalancingv2'
require 'sensu-plugin/check/cli'
require 'sensu-plugins-aws'

Expand Down
4 changes: 2 additions & 2 deletions bin/check-cloudwatch-metric.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# Linux
#
# DEPENDENCIES:
# gem: aws-sdk
# gem: aws-sdk-cloudwatch
# gem: sensu-plugin
#
# USAGE:
Expand All @@ -29,7 +29,7 @@

require 'sensu-plugins-aws'
require 'sensu-plugin/check/cli'
require 'aws-sdk'
require 'aws-sdk-cloudwatch'

class CloudWatchMetricCheck < Sensu::Plugin::Check::CLI
option :aws_region,
Expand Down
6 changes: 4 additions & 2 deletions bin/check-ebs-burst-limit.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
# Linux
#
# DEPENDENCIES:
# gem: aws-sdk
# gem: aws-sdk-ec2
# gem: aws-sdk-cloudwatch
# gem: sensu-plugin
#
# USAGE:
Expand All @@ -29,7 +30,8 @@

require 'sensu-plugin/check/cli'
require 'sensu-plugins-aws'
require 'aws-sdk'
require 'aws-sdk-ec2'
require 'aws-sdk-cloudwatch'
require 'net/http'

class CheckEbsBurstLimit < Sensu::Plugin::Check::CLI
Expand Down
6 changes: 4 additions & 2 deletions bin/check-elb-health-sdk.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
# Linux
#
# DEPENDENCIES:
# gem: aws-sdk
# gem: aws-sdk-elasticloadbalancing
# gem: aws-sdk-ec2
# gem: sensu-plugin
#
# USAGE:
Expand All @@ -28,7 +29,8 @@

require 'sensu-plugin/check/cli'
require 'sensu-plugins-aws'
require 'aws-sdk'
require 'aws-sdk-elasticloadbalancing'
require 'aws-sdk-ec2'

class ELBHealth < Sensu::Plugin::Check::CLI
include Common
Expand Down
6 changes: 4 additions & 2 deletions bin/check-rds.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
# Linux
#
# DEPENDENCIES:
# gem: aws-sdk
# gem: aws-sdk-rds
# gem: aws-sdk-cloudwatch
# gem: sensu-plugin
#
# USAGE:
Expand Down Expand Up @@ -54,7 +55,8 @@
#

require 'sensu-plugin/check/cli'
require 'aws-sdk'
require 'aws-sdk-rds'
require 'aws-sdk-cloudwatch'
require 'time'

class CheckRDS < Sensu::Plugin::Check::CLI
Expand Down