bin/metrics-dns.rb in sensu-plugins-dns-1.4.1 vs bin/metrics-dns.rb in sensu-plugins-dns-2.0.0
- old
+ new
@@ -76,10 +76,10 @@
# Response Time stat
output "#{config[:scheme]}.#{config[:type]}.#{key_name}.response_time", result.to_f.round(8)
rescue Dnsruby::NXDomain
critical "Could not resolve #{config[:domain]} #{config[:type]} record"
- rescue => e
+ rescue StandardError => e
unknown e
end
# and exit 'ok'
ok