diff options
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) |