diff options
-rw-r--r-- | configure.in | 20 | ||||
-rw-r--r-- | plugins/check_fping.c | 2 |
2 files changed, 10 insertions, 12 deletions
diff --git a/configure.in b/configure.in index a5d4842..43fe4ad 100644 --- a/configure.in +++ b/configure.in | |||
@@ -1378,28 +1378,26 @@ then | |||
1378 | fi | 1378 | fi |
1379 | 1379 | ||
1380 | AC_PATH_PROG(PATH_TO_FPING,fping) | 1380 | AC_PATH_PROG(PATH_TO_FPING,fping) |
1381 | AC_PATH_PROG(PATH_TO_FPING6,fping6) | ||
1382 | |||
1381 | AC_ARG_WITH(fping_command, | 1383 | AC_ARG_WITH(fping_command, |
1382 | ACX_HELP_STRING([--with-fping-command=PATH], | 1384 | ACX_HELP_STRING([--with-fping-command=PATH], |
1383 | [Path to fping command]), PATH_TO_FPING=$withval) | 1385 | [Path to fping command]), PATH_TO_FPING=$withval) |
1386 | AC_ARG_WITH(fping6_command, | ||
1387 | ACX_HELP_STRING([--with-fping6-command=PATH], | ||
1388 | [Path to fping6 command]), PATH_TO_FPING6=$withval) | ||
1389 | |||
1384 | if test -n "$PATH_TO_FPING" | 1390 | if test -n "$PATH_TO_FPING" |
1385 | then | 1391 | then |
1386 | AC_DEFINE_UNQUOTED(PATH_TO_FPING,"$PATH_TO_FPING",[path to fping]) | 1392 | AC_DEFINE_UNQUOTED(PATH_TO_FPING,"$PATH_TO_FPING",[path to fping]) |
1387 | EXTRAS="$EXTRAS check_fping" | 1393 | EXTRAS="$EXTRAS check_fping" |
1394 | if test x"$with_ipv6" != xno && test -n "$PATH_TO_FPING6"; then | ||
1395 | AC_DEFINE_UNQUOTED(PATH_TO_FPING6,"$PATH_TO_FPING6",[path to fping6]) | ||
1396 | fi | ||
1388 | else | 1397 | else |
1389 | AC_MSG_WARN([Get fping from http://www.fping.com in order to make check_fping plugin]) | 1398 | AC_MSG_WARN([Get fping from http://www.fping.com in order to make check_fping plugin]) |
1390 | fi | 1399 | fi |
1391 | 1400 | ||
1392 | AC_PATH_PROG(PATH_TO_FPING6,fping6) | ||
1393 | AC_ARG_WITH(fping6_command, | ||
1394 | ACX_HELP_STRING([--with-fping6-command=PATH], | ||
1395 | [Path to fping6 command]), PATH_TO_FPING6=$withval) | ||
1396 | if test -n "$PATH_TO_FPING6" | ||
1397 | then | ||
1398 | AC_DEFINE_UNQUOTED(PATH_TO_FPING6,"$PATH_TO_FPING6",[path to fping6]) | ||
1399 | else | ||
1400 | AC_MSG_WARN([Get fping6 from http://www.fping.com in order to make check_fping plugin]) | ||
1401 | fi | ||
1402 | |||
1403 | AC_PATH_PROG(PATH_TO_SSH,ssh) | 1401 | AC_PATH_PROG(PATH_TO_SSH,ssh) |
1404 | AC_ARG_WITH(ssh_command, | 1402 | AC_ARG_WITH(ssh_command, |
1405 | ACX_HELP_STRING([--with-ssh-command=PATH], | 1403 | ACX_HELP_STRING([--with-ssh-command=PATH], |
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 |