diff options
author | M. Sean Finney <seanius@users.sourceforge.net> | 2006-05-01 21:52:42 +0000 |
---|---|---|
committer | M. Sean Finney <seanius@users.sourceforge.net> | 2006-05-01 21:52:42 +0000 |
commit | e667553b97c358f5d80608f62c291deffc0328d5 (patch) | |
tree | 4e74625613f8d13f51752d84f03b436b45164ff7 /configure.in | |
parent | 3b91dfbcb05dbfa9a1a20c6ba233c5d163e06821 (diff) | |
download | monitoring-plugins-e667553b97c358f5d80608f62c291deffc0328d5.tar.gz |
- check_ntp:
- now roughly feature-complete.
- various bugfixes, esp. offset calculation.
- enhanced the asynchronous offset polling to set requests that
haven't recieved a response in >= 1 second to stale and retransmit them,
which results in much better performance on unreliable networks.
- we only spend timeout/2 seconds polling offsets, and if we don't get
everything by that point we work with what we have and set status to
warning/critical depending on how much data we have.
- set the same defaults as the perl script.
- commit changes to configure.in to support automatic building of check_apt
(if apt-get is installed and regex libraries available) and check_ntp
(unconditionally), now defaulting to check_ntp.c instead of the perl script.
if this is an issue we can back out the commit of course. an eye
should be kept on check_ntp building and running correctly in different
environments, esp. 64-bit and big-endian platforms, and those with more
"esoteric" API's (do any of the platforms not have poll()?).
- similar changes to Makefile.am's.
- common.h: add statement to include sys/poll.h
- runcmd.c: exit STATE_UNKNOWN if execve() fails.
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1386 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/configure.in b/configure.in index c143905b..6556ecdb 100644 --- a/configure.in +++ b/configure.in | |||
@@ -529,8 +529,9 @@ dnl | |||
529 | AC_HEADER_STDC | 529 | AC_HEADER_STDC |
530 | AC_HEADER_TIME | 530 | AC_HEADER_TIME |
531 | AC_HEADER_SYS_WAIT | 531 | AC_HEADER_SYS_WAIT |
532 | AC_CHECK_HEADERS(signal.h strings.h string.h syslog.h uio.h errno.h regex.h sys/types.h sys/time.h sys/socket.h sys/loadavg.h sys/un.h) | 532 | AC_CHECK_HEADERS(signal.h strings.h string.h syslog.h uio.h errno.h sys/types.h sys/time.h sys/socket.h sys/loadavg.h sys/un.h sys/poll.h) |
533 | AC_CHECK_HEADERS(features.h stdarg.h sys/unistd.h ctype.h stdlib.h) | 533 | AC_CHECK_HEADERS(features.h stdarg.h sys/unistd.h ctype.h stdlib.h) |
534 | AC_CHECK_HEADERS(regex.h,FOUNDREGEX=yes,FOUNDREGEX=no) | ||
534 | 535 | ||
535 | dnl Checks for typedefs, structures, and compiler characteristics. | 536 | dnl Checks for typedefs, structures, and compiler characteristics. |
536 | AC_C_CONST | 537 | AC_C_CONST |
@@ -601,7 +602,7 @@ AC_TRY_COMPILE([#include <sys/time.h>], | |||
601 | 602 | ||
602 | dnl Checks for library functions. | 603 | dnl Checks for library functions. |
603 | AC_CHECK_FUNCS(memmove select socket strdup strstr strtod strtol strtoul floor) | 604 | AC_CHECK_FUNCS(memmove select socket strdup strstr strtod strtol strtoul floor) |
604 | AC_CHECK_FUNCS(basename) | 605 | AC_CHECK_FUNCS(basename poll) |
605 | 606 | ||
606 | AC_MSG_CHECKING(return type of socket size) | 607 | AC_MSG_CHECKING(return type of socket size) |
607 | AC_TRY_COMPILE([#include <stdlib.h> | 608 | AC_TRY_COMPILE([#include <stdlib.h> |
@@ -1263,20 +1264,6 @@ AC_ARG_WITH(rpcinfo_command, | |||
1263 | [sets path to rpcinfo]), PATH_TO_RPCINFO=$withval) | 1264 | [sets path to rpcinfo]), PATH_TO_RPCINFO=$withval) |
1264 | AC_DEFINE_UNQUOTED(PATH_TO_RPCINFO,"$PATH_TO_RPCINFO",[path to rpcinfo binary]) | 1265 | AC_DEFINE_UNQUOTED(PATH_TO_RPCINFO,"$PATH_TO_RPCINFO",[path to rpcinfo binary]) |
1265 | 1266 | ||
1266 | AC_PATH_PROG(PATH_TO_NTPDATE,ntpdate) | ||
1267 | AC_ARG_WITH(ntpdate_command, | ||
1268 | ACX_HELP_STRING([--with-ntpdate-command=PATH], | ||
1269 | [sets path to ntpdate]), PATH_TO_NTPDATE=$withval) | ||
1270 | AC_PATH_PROGS(PATH_TO_NTPDC,ntpdc xntpdc) | ||
1271 | AC_PATH_PROGS(PATH_TO_NTPQ,ntpq) | ||
1272 | if (test -n "$PATH_TO_NTPDATE" || test -n "$PATH_TO_NTPQ") | ||
1273 | then | ||
1274 | AC_DEFINE_UNQUOTED(PATH_TO_NTPQ,"$PATH_TO_NTPQ",[path to ntpq binary]) | ||
1275 | AC_DEFINE_UNQUOTED(PATH_TO_NTPDATE,"$PATH_TO_NTPDATE",[path to ntpdate binary]) | ||
1276 | else | ||
1277 | AC_MSG_WARN([Install NTP programs (http://www.ntp.org) if you want to monitor time synchronization]) | ||
1278 | fi | ||
1279 | |||
1280 | AC_PATH_PROG(PATH_TO_LMSTAT,lmstat) | 1267 | AC_PATH_PROG(PATH_TO_LMSTAT,lmstat) |
1281 | if test -x "$PATH_TO_LMSTAT" | 1268 | if test -x "$PATH_TO_LMSTAT" |
1282 | then | 1269 | then |
@@ -1621,6 +1608,19 @@ if test -n "$PATH_TO_DIG"; then | |||
1621 | AC_DEFINE_UNQUOTED(PATH_TO_DIG,"$PATH_TO_DIG",[Path to dig command, if present]) | 1608 | AC_DEFINE_UNQUOTED(PATH_TO_DIG,"$PATH_TO_DIG",[Path to dig command, if present]) |
1622 | fi | 1609 | fi |
1623 | 1610 | ||
1611 | AC_PATH_PROG(PATH_TO_APTGET,apt-get) | ||
1612 | AC_ARG_WITH(apt-get_command, | ||
1613 | ACX_HELP_STRING([--with-apt-get-command=PATH], | ||
1614 | [Path to apt-get command]), | ||
1615 | with_apt_get_command=$withval, | ||
1616 | with_apt_get_command=$PATH_TO_APTGET) | ||
1617 | AC_DEFINE_UNQUOTED(PATH_TO_APTGET,"$PATH_TO_APTGET",[Path to apt-get command, if present]) | ||
1618 | # check_apt needs regex support | ||
1619 | if test -n "$PATH_TO_APTGET" && test "$FOUNDREGEX" = "yes"; then | ||
1620 | EXTRAS="$EXTRAS check_apt" | ||
1621 | fi | ||
1622 | |||
1623 | |||
1624 | if test -f plugins/check_nt.c ; then | 1624 | if test -f plugins/check_nt.c ; then |
1625 | EXTRAS="$EXTRAS check_nt" | 1625 | EXTRAS="$EXTRAS check_nt" |
1626 | elif test -f ../plugins/check_nt.c ; then | 1626 | elif test -f ../plugins/check_nt.c ; then |
@@ -1718,11 +1718,11 @@ dnl the ones below that are commented out need to be cleaned up | |||
1718 | dnl in the configure code above to use with_foo instead of ac_cv_foo | 1718 | dnl in the configure code above to use with_foo instead of ac_cv_foo |
1719 | dnl if we want them to show up here. it'd also make the code cleaner. | 1719 | dnl if we want them to show up here. it'd also make the code cleaner. |
1720 | dnl i'll get to that on another rainy day :) -sf | 1720 | dnl i'll get to that on another rainy day :) -sf |
1721 | ACX_FEATURE([with],[apt-get-command]) | ||
1721 | dnl ACX_FEATURE([with],[dig-command]) | 1722 | dnl ACX_FEATURE([with],[dig-command]) |
1722 | dnl ACX_FEATURE([with],[fping-command]) | 1723 | dnl ACX_FEATURE([with],[fping-command]) |
1723 | dnl ACX_FEATURE([with],[mailq-command]) | 1724 | dnl ACX_FEATURE([with],[mailq-command]) |
1724 | dnl ACX_FEATURE([with],[nslookup-command]) | 1725 | dnl ACX_FEATURE([with],[nslookup-command]) |
1725 | dnl ACX_FEATURE([with],[ntpdate-command]) | ||
1726 | ACX_FEATURE([with],[ping6-command]) | 1726 | ACX_FEATURE([with],[ping6-command]) |
1727 | ACX_FEATURE([with],[ping-command]) | 1727 | ACX_FEATURE([with],[ping-command]) |
1728 | dnl ACX_FEATURE([with],[qstat-command]) | 1728 | dnl ACX_FEATURE([with],[qstat-command]) |