Commit bfa35e79 authored by Jonathan Michalon's avatar Jonathan Michalon

Let ping commands handle timeout themselves too

parent aea08760
...@@ -119,14 +119,14 @@ class Check6(CheckIP): ...@@ -119,14 +119,14 @@ class Check6(CheckIP):
class CheckPing4(Check4): class CheckPing4(Check4):
def check(self): def check(self):
command = ['/bin/ping', '-c', '1', self.addr] command = ['/bin/ping', '-c', '1', '-W', '2', self.addr]
return self.exec_with_timeout(command) return self.exec_with_timeout(command, timeout=3)
class CheckPing6(Check6): class CheckPing6(Check6):
def check(self): def check(self):
command = ['/bin/ping6', '-c', '1', self.addr] command = ['/bin/ping6', '-c', '1', '-W', '2', self.addr]
return self.exec_with_timeout(command) return self.exec_with_timeout(command, timeout=3)
class CheckDNSZone(Check): class CheckDNSZone(Check):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment