summaryrefslogtreecommitdiffstats
path: root/configure.in
diff options
context:
space:
mode:
authorSubhendu Ghosh <sghosh@users.sourceforge.net>2002-05-08 05:04:55 (GMT)
committerSubhendu Ghosh <sghosh@users.sourceforge.net>2002-05-08 05:04:55 (GMT)
commit9e674e7806ed0e4b192f067cbe8b4b05cd3f5831 (patch)
treec643004b65a1013cc1b3e12fbd6ab16a16f373ff /configure.in
parentc2be722c8592d416570c1a2aff4778042ebb5422 (diff)
downloadmonitoring-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.in18
1 files changed, 16 insertions, 2 deletions
diff --git a/configure.in b/configure.in
index e7af901..86a9cc6 100644
--- a/configure.in
+++ b/configure.in
@@ -612,6 +612,20 @@ else
612 AC_MSG_WARN("nslookup command not found") 612 AC_MSG_WARN("nslookup command not found")
613fi 613fi
614 614
615AC_PATH_PROG(PATH_TO_HOST,host)
616if test -n "$ac_cv_path_PATH_TO_HOST"
617then
618 AC_MSG_CHECKING("host syntax")
619 if [host 127.0.0.1 2>&1 | grep -v "ommand not found" > /dev/null]
620 then
621 AC_MSG_RESULT("$PATH_TO_HOST")
622 AC_DEFINE_UNQUOTED(HOST_COMMAND,"$PATH_TO_HOST")
623 fi
624 EXTRAS="$EXTRAS check_dns"
625else
626 AC_MSG_WARN("host command not found")
627fi
628
615AC_PATH_PROG(PATH_TO_UPTIME,uptime) 629AC_PATH_PROG(PATH_TO_UPTIME,uptime)
616AC_DEFINE_UNQUOTED(PATH_TO_UPTIME,"$PATH_TO_UPTIME") 630AC_DEFINE_UNQUOTED(PATH_TO_UPTIME,"$PATH_TO_UPTIME")
617 631
@@ -629,7 +643,7 @@ then
629 AC_DEFINE_UNQUOTED(PATH_TO_SNMPGET,"$PATH_TO_SNMPGET") 643 AC_DEFINE_UNQUOTED(PATH_TO_SNMPGET,"$PATH_TO_SNMPGET")
630 EXTRAS="$EXTRAS check_hpjd check_snmp" 644 EXTRAS="$EXTRAS check_hpjd check_snmp"
631else 645else
632 echo "** Get snmpget from http://ucd-snmp.ucdavis.edu to make check_hpjd and check_snmp plugins" 646 echo "** Get snmpget from http://net-snmp.sourceforge.net to make check_hpjd and check_snmp plugins"
633fi 647fi
634 648
635AC_PATH_PROG(PATH_TO_SNMPGETNEXT,snmpgetnext) 649AC_PATH_PROG(PATH_TO_SNMPGETNEXT,snmpgetnext)
@@ -658,7 +672,7 @@ then
658 AC_DEFINE_UNQUOTED(PATH_TO_FPING,"$PATH_TO_FPING") 672 AC_DEFINE_UNQUOTED(PATH_TO_FPING,"$PATH_TO_FPING")
659 EXTRAS="$EXTRAS check_fping" 673 EXTRAS="$EXTRAS check_fping"
660else 674else
661 echo "** Get fping from http://www.stanford.edu/~schemers/docs/fping/fping.html in order to make check_fping plugin" 675 echo "** Get fping from http://www.fping.com in order to make check_fping plugin"
662fi 676fi
663 677
664AC_PATH_PROG(PATH_TO_SSH,ssh) 678AC_PATH_PROG(PATH_TO_SSH,ssh)