Skip to content

Commit dfb5b42

Browse files
author
Matt Jones
committed
deploy
1 parent bc074e2 commit dfb5b42

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

bin/check-graphite-data.rb

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@ def check_age
8585
end
8686
end
8787

88-
<<<<<<< HEAD
8988
# grab data from graphite
9089
def retrieve_data
9190
unless @raw_data
@@ -153,14 +152,6 @@ def retrieve_data
153152
def check(type)
154153
if config[type]
155154
send(type, "#{@value['target']} has passed #{type} threshold (#{@data.last})") if below?(type) || above?(type)
156-
=======
157-
# type:: :warning or :critical
158-
# Return alert if required
159-
def check(type)
160-
# #YELLOW
161-
if config[type] # rubocop:disable GuardClause
162-
send(type, "value (#{@data.last}) for #{@value['target']} has passed #{type} threshold (#{config[type]})") if below?(type) || above?(type)
163-
>>>>>>> b6a092adbb33662ed331e5d97cb0a7b69f0c9cfe
164155
end
165156
end
166157

lib/sensu-plugins-graphite/graphite_proxy/proxy.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,7 @@ def output_line(raw)
7676

7777
# grab data from graphite
7878
def retrieve_data!
79-
# #YELLOW
80-
unless @raw_data # rubocop:disable GuardClause
79+
unless @raw_data
8180
begin
8281
unless config[:server].start_with?('https://', 'http://')
8382
config[:server].prepend('http://')

0 commit comments

Comments
 (0)