Skip to content

Commit

Permalink
Fix travis issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Jones committed Mar 25, 2015
1 parent 93fe980 commit 7c57159
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 8 deletions.
5 changes: 4 additions & 1 deletion bin/check-es-cluster-status.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
# DEPENDENCIES:
# gem: sensu-plugin
# gem: rest-client
# gem: json
#
# USAGE:
# #YELLOW
Expand All @@ -27,11 +28,13 @@
# for details.
#

require 'rubygems' if RUBY_VERSION < '1.9.0'
require 'sensu-plugin/check/cli'
require 'rest-client'
require 'json'

#
# ES Cluster Status
#
class ESClusterStatus < Sensu::Plugin::Check::CLI
option :host,
description: 'Elasticsearch host',
Expand Down
6 changes: 4 additions & 2 deletions bin/check-es-file-descriptors.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,14 @@
# for details.
#

require 'rubygems' if RUBY_VERSION < '1.9.0'
require 'sensu-plugin/check/cli'
require 'rest-client'
require 'json'

class ESClusterStatus < Sensu::Plugin::Check::CLI
#
# ES File Descriptiors
#
class ESFileDescriptors < Sensu::Plugin::Check::CLI
option :host,
description: 'Elasticsearch host',
short: '-h HOST',
Expand Down
5 changes: 4 additions & 1 deletion bin/check-es-heap.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
# DEPENDENCIES:
# gem: sensu-plugin
# gem: rest-client
# gem: json
#
# USAGE:
# example commands
Expand All @@ -26,11 +27,13 @@
# for details.
#

require 'rubygems' if RUBY_VERSION < '1.9.0'
require 'sensu-plugin/check/cli'
require 'rest-client'
require 'json'

#
# ES Heap
#
class ESHeap < Sensu::Plugin::Check::CLI
option :host,
description: 'Elasticsearch host',
Expand Down
4 changes: 3 additions & 1 deletion bin/metrics-es-cluster.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,13 @@
# for details.
#

require 'rubygems' if RUBY_VERSION < '1.9.0'
require 'sensu-plugin/metric/cli'
require 'rest-client'
require 'json'

#
# ES Cluster Metrics
#
class ESClusterMetrics < Sensu::Plugin::Metric::CLI::Graphite
option :scheme,
description: 'Metric naming scheme, text to prepend to metric',
Expand Down
6 changes: 4 additions & 2 deletions bin/metrics-es-node-graphite.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,14 @@
# for details.
#

require 'rubygems' if RUBY_VERSION < '1.9.0'
require 'sensu-plugin/metric/cli'
require 'rest-client'
require 'json'

class ESMetrics < Sensu::Plugin::Metric::CLI::Graphite
#
# ES Node Graphite Metrics
#
class ESNodeGraphiteMetrics < Sensu::Plugin::Metric::CLI::Graphite
option :scheme,
description: 'Metric naming scheme, text to prepend to queue_name.metric',
short: '-s SCHEME',
Expand Down
7 changes: 6 additions & 1 deletion bin/metrics-es-node.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
#
# DEPENDENCIES:
# gem: sensu-plugin
# gem: rest-client
# gem: json
#
# USAGE:
# #YELLOW
Expand All @@ -27,11 +29,14 @@
# for details.
#

require 'rubygems' if RUBY_VERSION < '1.9.0'

require 'sensu-plugin/metric/cli'
require 'rest-client'
require 'json'

#
# ES Node Metrics
#
class ESMetrics < Sensu::Plugin::Metric::CLI::Graphite
option :scheme,
description: 'Metric naming scheme, text to prepend to queue_name.metric',
Expand Down

0 comments on commit 7c57159

Please sign in to comment.