aboutsummaryrefslogtreecommitdiff
path: root/plugins/check_fping.c
diff options
context:
space:
mode:
authorGravatar Holger Weiss <holger@zedat.fu-berlin.de> 2013-08-18 00:30:58 +0200
committerGravatar Holger Weiss <holger@zedat.fu-berlin.de> 2013-08-18 00:30:58 +0200
commit108baecaecbf09cc85c4925f82141beae40f7c1e (patch)
tree868b54bdb69676138153bc6ec7ffc24c3d4a6a03 /plugins/check_fping.c
parente4ccd85c5061fd2cc72e3f8ab7c9371751c93e34 (diff)
downloadmonitoring-plugins-108baecaecbf09cc85c4925f82141beae40f7c1e.tar.gz
check_fping: Use fping6(8) only if available
Let check_fping use IPv6 only if - the operating system supports IPv6, - the user didn't specify --without-ipv6, and - the "configure" script found the fping6(8) binary.
Diffstat (limited to 'plugins/check_fping.c')
-rw-r--r--plugins/check_fping.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/check_fping.c b/plugins/check_fping.c
index 1c227cdb..fde1d798 100644
--- a/plugins/check_fping.c
+++ b/plugins/check_fping.c
@@ -103,7 +103,7 @@ main (int argc, char **argv)
if (sourceif)
xasprintf(&option_string, "%s-I %s ", option_string, sourceif);
-#ifdef USE_IPV6
+#ifdef PATH_TO_FPING6
if (address_family == AF_INET6)
fping_prog = strdup(PATH_TO_FPING6);
else