From a482c9d8cb433e146657fb17cfb6b2d7d66b747c Mon Sep 17 00:00:00 2001 From: Raimund Schlichtiger Date: Thu, 14 Nov 2024 11:32:35 +0100 Subject: [PATCH] Lower the fping amount to 9 pings A default of 9 pings and thereby 9 seconds makes more sense for most nagios nrpe installations. As the default nrpe timeout is 10s an unreachable host would cause this check to fail with a nrpe timeout rather then the correct output of the unreachble target. --- src/check_tunnels.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/check_tunnels.py b/src/check_tunnels.py index 45e9b8fc..b07bd6d4 100755 --- a/src/check_tunnels.py +++ b/src/check_tunnels.py @@ -73,7 +73,7 @@ def parse_args(): help='Warning threshold for packet loss in percent') parser.add_argument('--critical-loss', type=int, default=50, help='Critical threshold for packet loss in percent') - parser.add_argument('--count', type=int, default=10, + parser.add_argument('--count', type=int, default=9, help='Count of pings to send') return parser.parse_args()