Module: check_mk
Branch: master
Commit: 82004701d773d35720909e96517e53e6db215440
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=82004701d773d3…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Nov 8 10:36:01 2013 +0100
Trying to improve ping feedback during host diag
---
modules/automation.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/automation.py b/modules/automation.py
index 6c9e5e0..94dc497 100644
--- a/modules/automation.py
+++ b/modules/automation.py
@@ -679,7 +679,7 @@ def automation_diag_host(args):
try:
if test == 'ping':
import subprocess
- p = subprocess.Popen('ping -c 3 -W 5 %s 2>&1' % ipaddress,
shell = True, stdout = subprocess.PIPE)
+ p = subprocess.Popen('ping -A -i 0.2 -c 2 -W 5 %s 2>&1' %
ipaddress, shell = True, stdout = subprocess.PIPE)
response = p.stdout.read()
return (p.wait(), response)