From: Subhendu Ghosh Date: Wed, 8 May 2002 05:04:55 +0000 (+0000) Subject: updated messages and check for host command X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=9e674e7806ed0e4b192f067cbe8b4b05cd3f5831;p=nagiosplug.git 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 --- diff --git a/configure.in b/configure.in index e7af901..86a9cc6 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)