app/models/my_nagios/check.rb in my_nagios-0.0.11 vs app/models/my_nagios/check.rb in my_nagios-0.0.12
- old
+ new
@@ -40,11 +40,9 @@
ensure
check_list.update_all(state: :completed)
end
end
- private
-
def determinate_status_by_response(response)
return :critical if not regexp.blank? and response =~ /#{regexp}/
return :critical if not response.scan('CRITICAL').blank?
return :info if response.nil? or not response.scan('No such file or directory').blank?
:success