bin/metrics-curl.rb in sensu-plugins-http-6.0.0 vs bin/metrics-curl.rb in sensu-plugins-http-6.0.1
- old
+ new
@@ -55,10 +55,10 @@
long: '--scheme SCHEME',
required: true,
default: "#{Socket.gethostname}.curl_timings"
def run
- `type -t "curl" > /dev/null 2>&1`
+ `which curl > /dev/null 2>&1`
unless $CHILD_STATUS == 0
critical 'CRITICAL: curl executable not found in PATH on this system.'\
' If curl cannot be installed, consider using metrics_libcurl.rb instead.'
end