diff options
author | Holger Weiss <holger@zedat.fu-berlin.de> | 2013-08-18 00:30:58 +0200 |
---|---|---|
committer | Holger Weiss <holger@zedat.fu-berlin.de> | 2013-08-18 00:30:58 +0200 |
commit | 108baecaecbf09cc85c4925f82141beae40f7c1e (patch) | |
tree | 868b54bdb69676138153bc6ec7ffc24c3d4a6a03 /plugins | |
parent | e4ccd85c5061fd2cc72e3f8ab7c9371751c93e34 (diff) | |
download | monitoring-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')
-rw-r--r-- | plugins/check_fping.c | 2 |
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 |