diff options
author | Subhendu Ghosh <sghosh@users.sourceforge.net> | 2002-05-08 05:04:55 (GMT) |
---|---|---|
committer | Subhendu Ghosh <sghosh@users.sourceforge.net> | 2002-05-08 05:04:55 (GMT) |
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 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") |
613 | fi | 613 | fi |
614 | 614 | ||
615 | AC_PATH_PROG(PATH_TO_HOST,host) | ||
616 | if test -n "$ac_cv_path_PATH_TO_HOST" | ||
617 | then | ||
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" | ||
625 | else | ||
626 | AC_MSG_WARN("host command not found") | ||
627 | fi | ||
628 | |||
615 | AC_PATH_PROG(PATH_TO_UPTIME,uptime) | 629 | AC_PATH_PROG(PATH_TO_UPTIME,uptime) |
616 | AC_DEFINE_UNQUOTED(PATH_TO_UPTIME,"$PATH_TO_UPTIME") | 630 | AC_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" |
631 | else | 645 | else |
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" |
633 | fi | 647 | fi |
634 | 648 | ||
635 | AC_PATH_PROG(PATH_TO_SNMPGETNEXT,snmpgetnext) | 649 | AC_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" |
660 | else | 674 | else |
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" |
662 | fi | 676 | fi |
663 | 677 | ||
664 | AC_PATH_PROG(PATH_TO_SSH,ssh) | 678 | AC_PATH_PROG(PATH_TO_SSH,ssh) |