File tree Expand file tree Collapse file tree 2 files changed +1
-11
lines changed
lib/sensu-plugins-graphite/graphite_proxy Expand file tree Collapse file tree 2 files changed +1
-11
lines changed Original file line number Diff line number Diff line change @@ -85,7 +85,6 @@ def check_age
85
85
end
86
86
end
87
87
88
- <<<<<<< HEAD
89
88
# grab data from graphite
90
89
def retrieve_data
91
90
unless @raw_data
@@ -153,14 +152,6 @@ def retrieve_data
153
152
def check ( type )
154
153
if config [ type ]
155
154
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
164
155
end
165
156
end
166
157
Original file line number Diff line number Diff line change @@ -76,8 +76,7 @@ def output_line(raw)
76
76
77
77
# grab data from graphite
78
78
def retrieve_data!
79
- # #YELLOW
80
- unless @raw_data # rubocop:disable GuardClause
79
+ unless @raw_data
81
80
begin
82
81
unless config [ :server ] . start_with? ( 'https://' , 'http://' )
83
82
config [ :server ] . prepend ( 'http://' )
You can’t perform that action at this time.
0 commit comments