summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: cf01383)
raw | patch | inline | side by side (parent: cf01383)
author | Subhendu Ghosh <sghosh@users.sourceforge.net> | |
Fri, 10 May 2002 03:49:22 +0000 (03:49 +0000) | ||
committer | Subhendu Ghosh <sghosh@users.sourceforge.net> | |
Fri, 10 May 2002 03:49:22 +0000 (03:49 +0000) |
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@31 f882894a-f735-0410-b71e-b25c423dba1c
configure.in | patch | blob | history | |
plugins-scripts/utils.pm.in | patch | blob | history |
diff --git a/configure.in b/configure.in
index 86a9cc625c78db60a805cad81e814481be6ad041..5de40709d6a7f7bc168faa306691755dd1ca5dac 100644 (file)
--- a/configure.in
+++ b/configure.in
AC_PATH_PROG(PATH_TO_UPTIME,uptime)
AC_DEFINE_UNQUOTED(PATH_TO_UPTIME,"$PATH_TO_UPTIME")
+AC_PATH_PROG(PATH_TO_RPCINFO,rpcinfo)
+AC_DEFINE_UNQUOTED(PATH_TO_RPCINFO,"$PATH_TO_RPCINFO")
+
+AC_PATH_PROG(PATH_TO_NTPDATE,ntpdate)
+AC_PATH_PROG(PATH_TO_NTPDC,ntpdc)
+if (test -x "$PATH_TO_NTPDATE" || test -x "$PATH_TO_NTPDC")
+then
+ AC_DEFINE_UNQUOTED(PATH_TO_NTPDC,"$PATH_TO_NTPDC")
+ AC_DEFINE_UNQUOTED(PATH_TO_NTPDATE,"$PATH_TO_NTPDATE")
+else
+ echo "** Install NTP programs if you want to monitor time synchronization"
+fi
+
+AC_PATH_PROG(PATH_TO_LMSTAT,lmstat)
+if test -x "$PATH_TO_LMSTAT"
+then
+ AC_DEFINE_UNQUOTED(PATH_TO_LMSTAT,"$PATH_TO_LMSTAT")
+else
+ echo "** Get lmstat from Globetrotter Software to monitor flexlm licenses"
+fi
+
AC_PATH_PROG(PATH_TO_WHO,who)
if [who -q 2>/dev/null | egrep -i "^# users=[0-9]+$" >/dev/null]
then
fi
AC_PATH_PROG(PATH_TO_SNMPGET,snmpget)
-if test -f "$PATH_TO_SNMPGET"
+if test -x "$PATH_TO_SNMPGET"
then
AC_DEFINE_UNQUOTED(PATH_TO_SNMPGET,"$PATH_TO_SNMPGET")
EXTRAS="$EXTRAS check_hpjd check_snmp"
fi
AC_PATH_PROG(PATH_TO_SNMPGETNEXT,snmpgetnext)
-if test -f "$PATH_TO_SNMPGETNEXT"
+if test -x "$PATH_TO_SNMPGETNEXT"
then
AC_DEFINE_UNQUOTED(PATH_TO_SNMPGETNEXT,"$PATH_TO_SNMPGETNEXT")
fi
+if ( $PERL -MNet::SNMP -e 'print $Net::SNMP::VERSION;' )
+then
+ echo "Found Net::SNMP perl module"
+else
+ echo "** Tried $PERL - install Net::SNMP perl module if you want to"
+ echo " use the perl snmp plugins"
+fi
+
AC_PATH_PROG(PATH_TO_QUAKESTAT,quakestat)
AC_PATH_PROG(PATH_TO_QSTAT,qstat)
-if test -n "$PATH_TO_QUAKESTAT"
+if test -x "$PATH_TO_QUAKESTAT"
then
AC_DEFINE_UNQUOTED(PATH_TO_QSTAT,"$PATH_TO_QUAKESTAT")
EXTRAS="$EXTRAS check_game"
-elif test -n "$PATH_TO_QSTAT"
+elif test -x "$PATH_TO_QSTAT"
then
AC_DEFINE_UNQUOTED(PATH_TO_QSTAT,"$PATH_TO_QSTAT")
EXTRAS="$EXTRAS check_game"
fi
AC_PATH_PROG(PATH_TO_FPING,fping)
-if test -n "$PATH_TO_FPING"
+if test -x "$PATH_TO_FPING"
then
AC_DEFINE_UNQUOTED(PATH_TO_FPING,"$PATH_TO_FPING")
EXTRAS="$EXTRAS check_fping"
fi
AC_PATH_PROG(PATH_TO_SSH,ssh)
-if test -f "$PATH_TO_SSH"
+if test -x "$PATH_TO_SSH"
then
AC_DEFINE_UNQUOTED(SSH_COMMAND,"$PATH_TO_SSH")
EXTRAS="$EXTRAS check_by_ssh"
index ed105ddaf1f765d112e6629240ecfcf2dc809590..304d378d1e27530dd34762c8e383adc704fbd2f5 100644 (file)
# $Id$
#
# $Log$
+# Revision 1.3 2002/05/10 03:49:22 sghosh
+# added programs to autoconf
+#
# Revision 1.2 2002/05/08 05:10:35 sghosh
# is_hostname added, update CODES to POSIX
#
sub support();
sub is_hostname;
+## updated by autoconf
+$PATH_TO_RPCINFO = "@PATH_TO_RPCINFO@" ;
+$PATH_TO_NTPDATE = "@PATH_TO_NTPDATE@" ;
+$PATH_TO_NTPDC = "@PATH_TO_NTPDC@" ;
+$PATH_TO_LMSTAT = "@PATH_TO_LMSTAT@" ;
+
+## common variables
$TIMEOUT = 15;
%ERRORS=('OK'=>0,'WARNING'=>1,'CRITICAL'=>2,'UNKNOWN'=>3,'DEPENDENT'=>4);
+## utility subroutines
sub print_revision ($$) {
my $commandName = shift;
my $pluginRevision = shift;