diff options
author | Holger Weiss <holger@zedat.fu-berlin.de> | 2013-08-17 22:30:58 (GMT) |
---|---|---|
committer | Holger Weiss <holger@zedat.fu-berlin.de> | 2013-08-17 22:30:58 (GMT) |
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 1c227cd..fde1d79 100644 --- a/plugins/check_fping.c +++ b/plugins/check_fping.c | |||
@@ -103,7 +103,7 @@ main (int argc, char **argv) | |||
103 | if (sourceif) | 103 | if (sourceif) |
104 | xasprintf(&option_string, "%s-I %s ", option_string, sourceif); | 104 | xasprintf(&option_string, "%s-I %s ", option_string, sourceif); |
105 | 105 | ||
106 | #ifdef USE_IPV6 | 106 | #ifdef PATH_TO_FPING6 |
107 | if (address_family == AF_INET6) | 107 | if (address_family == AF_INET6) |
108 | fping_prog = strdup(PATH_TO_FPING6); | 108 | fping_prog = strdup(PATH_TO_FPING6); |
109 | else | 109 | else |