diff options
author | Subhendu Ghosh <sghosh@users.sourceforge.net> | 2002-05-08 05:04:55 +0000 |
---|---|---|
committer | Subhendu Ghosh <sghosh@users.sourceforge.net> | 2002-05-08 05:04:55 +0000 |
commit | 9e674e7806ed0e4b192f067cbe8b4b05cd3f5831 (patch) | |
tree | c643004b65a1013cc1b3e12fbd6ab16a16f373ff /configure.in | |
parent | c2be722c8592d416570c1a2aff4778042ebb5422 (diff) | |
download | monitoring-plugins-9e674e7806ed0e4b192f067cbe8b4b05cd3f5831.tar.gz |
updated messages and check for host command
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@24 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/configure.in b/configure.in index e7af9018..86a9cc62 100644 --- a/configure.in +++ b/configure.in @@ -612,6 +612,20 @@ else AC_MSG_WARN("nslookup command not found") fi +AC_PATH_PROG(PATH_TO_HOST,host) +if test -n "$ac_cv_path_PATH_TO_HOST" +then + AC_MSG_CHECKING("host syntax") + if [host 127.0.0.1 2>&1 | grep -v "ommand not found" > /dev/null] + then + AC_MSG_RESULT("$PATH_TO_HOST") + AC_DEFINE_UNQUOTED(HOST_COMMAND,"$PATH_TO_HOST") + fi + EXTRAS="$EXTRAS check_dns" +else + AC_MSG_WARN("host command not found") +fi + AC_PATH_PROG(PATH_TO_UPTIME,uptime) AC_DEFINE_UNQUOTED(PATH_TO_UPTIME,"$PATH_TO_UPTIME") @@ -629,7 +643,7 @@ then AC_DEFINE_UNQUOTED(PATH_TO_SNMPGET,"$PATH_TO_SNMPGET") EXTRAS="$EXTRAS check_hpjd check_snmp" else - echo "** Get snmpget from http://ucd-snmp.ucdavis.edu to make check_hpjd and check_snmp plugins" + echo "** Get snmpget from http://net-snmp.sourceforge.net to make check_hpjd and check_snmp plugins" fi AC_PATH_PROG(PATH_TO_SNMPGETNEXT,snmpgetnext) @@ -658,7 +672,7 @@ then AC_DEFINE_UNQUOTED(PATH_TO_FPING,"$PATH_TO_FPING") EXTRAS="$EXTRAS check_fping" else - echo "** Get fping from http://www.stanford.edu/~schemers/docs/fping/fping.html in order to make check_fping plugin" + echo "** Get fping from http://www.fping.com in order to make check_fping plugin" fi AC_PATH_PROG(PATH_TO_SSH,ssh) |