Skip to content

Commit

Permalink
deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Jones committed Aug 27, 2015
1 parent bc074e2 commit dfb5b42
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
9 changes: 0 additions & 9 deletions bin/check-graphite-data.rb
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ def check_age
end
end

<<<<<<< HEAD
# grab data from graphite
def retrieve_data
unless @raw_data
Expand Down Expand Up @@ -153,14 +152,6 @@ def retrieve_data
def check(type)
if config[type]
send(type, "#{@value['target']} has passed #{type} threshold (#{@data.last})") if below?(type) || above?(type)
=======
# type:: :warning or :critical
# Return alert if required
def check(type)
# #YELLOW
if config[type] # rubocop:disable GuardClause
send(type, "value (#{@data.last}) for #{@value['target']} has passed #{type} threshold (#{config[type]})") if below?(type) || above?(type)
>>>>>>> b6a092adbb33662ed331e5d97cb0a7b69f0c9cfe
end
end

Expand Down
3 changes: 1 addition & 2 deletions lib/sensu-plugins-graphite/graphite_proxy/proxy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,7 @@ def output_line(raw)

# grab data from graphite
def retrieve_data!
# #YELLOW
unless @raw_data # rubocop:disable GuardClause
unless @raw_data
begin
unless config[:server].start_with?('https://', 'http://')
config[:server].prepend('http://')
Expand Down

0 comments on commit dfb5b42

Please sign in to comment.