Check for `ping`
@@ -41,6 +41,13 @@ class PingCheck(AgentCheck):
custom_tags.append('target_host:{}'.format(host))
custom_tags.append('instance:{}'.format(instance.get('name')))
+
+ lines, err, retcode = get_subprocess_output(
+ ["which", "ping"],
+ self.log, raise_on_empty_output=True)
+
+ self.log.debug("which returned {} - {} - {}".format(retcode, lines, err))
+
try:
lines, err, retcode = get_subprocess_output(
["ping", countOption, "1", timeoutOption, str(int(timeout)*1000), host],
