diff options
author | Subhendu Ghosh <sghosh@users.sourceforge.net> | 2002-05-27 02:03:37 +0000 |
---|---|---|
committer | Subhendu Ghosh <sghosh@users.sourceforge.net> | 2002-05-27 02:03:37 +0000 |
commit | 2d4960a4a7c2152faa57458f159e10ba74237537 (patch) | |
tree | 1ad460d2bda82bb58a7da05b428ec75ab4b7dace /configure.in | |
parent | a877143d110fd6c6146ea2ca3131c852e42fe8c1 (diff) | |
download | monitoring-plugins-2d4960a4a7c2152faa57458f159e10ba74237537.tar.gz |
typo, AIX 4.3 ps, smbclient, Net::SNMP fixes
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@37 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 33 |
1 files changed, 29 insertions, 4 deletions
diff --git a/configure.in b/configure.in index 5de40709..24291d00 100644 --- a/configure.in +++ b/configure.in | |||
@@ -37,7 +37,8 @@ AC_ARG_PROGRAM | |||
37 | 37 | ||
38 | dnl AC_ARG_WITH(nonposix_state_defs,--with-nonposix-state-defs uses POSIXLY incorrect states for netsaint < 0.0.7b2,,AC_DEFINE(POSIX_STATE_DEFS)) | 38 | dnl AC_ARG_WITH(nonposix_state_defs,--with-nonposix-state-defs uses POSIXLY incorrect states for netsaint < 0.0.7b2,,AC_DEFINE(POSIX_STATE_DEFS)) |
39 | 39 | ||
40 | AC_ARG_WITH(cgiurl,--with-cgiurl=<dir> sets URL for cgi programs,cgiurl=$withval,cgiurl=/cgi-bin/nagios) | 40 | dnl CGIURL has changed for Nagios with 1.0 beta |
41 | AC_ARG_WITH(cgiurl,--with-cgiurl=<dir> sets URL for cgi programs,cgiurl=$withval,cgiurl=/nagios/cgi-bin) | ||
41 | CGIURL="$cgiurl" | 42 | CGIURL="$cgiurl" |
42 | AC_DEFINE_UNQUOTED(CGIURL,"$CGIURL") | 43 | AC_DEFINE_UNQUOTED(CGIURL,"$CGIURL") |
43 | 44 | ||
@@ -52,7 +53,7 @@ AC_ARG_WITH(trusted_path,--with-trusted-path=/bin:/sbin:/usr/bin:/usr/sbin sets | |||
52 | AC_SUBST(trusted_path) | 53 | AC_SUBST(trusted_path) |
53 | 54 | ||
54 | EXTRAS= | 55 | EXTRAS= |
55 | PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/etc:/usr/local/bin:/usr/local/sbin:$PATH | 56 | dnl PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/etc:/usr/local/bin:/usr/local/sbin:$PATH |
56 | 57 | ||
57 | LDFLAGS="$LDFLAGS -L." | 58 | LDFLAGS="$LDFLAGS -L." |
58 | 59 | ||
@@ -314,7 +315,21 @@ then | |||
314 | AC_DEFINE_UNQUOTED(VSZ_FORMAT,"%d %s") | 315 | AC_DEFINE_UNQUOTED(VSZ_FORMAT,"%d %s") |
315 | AC_DEFINE_UNQUOTED(RSS_COMMAND,"$PATH_TO_PS -axo 'rss comm'") | 316 | AC_DEFINE_UNQUOTED(RSS_COMMAND,"$PATH_TO_PS -axo 'rss comm'") |
316 | AC_DEFINE_UNQUOTED(RSS_FORMAT,"%d %s") | 317 | AC_DEFINE_UNQUOTED(RSS_FORMAT,"%d %s") |
317 | echo " ps syntax... $PATH_TO_PS -eo 'stat comm vsz rss user ppid args'" | 318 | echo " ps syntax... $PATH_TO_PS -axo 'stat comm vsz rss user ppid args'" |
319 | dnl AIX 4.3.3 - needs verification. | ||
320 | elif [ps -ao 'stat comm vsz rss user uid ppid args' 2>/dev/null | egrep -i "^ *S[TAUES]* +[UCOMDNA]+ +[VSIZE]+ +R[S]+ +U[SER]+ +U[ID]+ +P[PID]+ +[RGSCOMDNA]+" >/dev/null] | ||
321 | then | ||
322 | AC_DEFINE(USE_PS_VARS) | ||
323 | AC_DEFINE_UNQUOTED(PS_VARLIST,[procstat,&procuid,&procppid,procprog,&pos]) | ||
324 | AC_DEFINE_UNQUOTED(PS_RAW_COMMAND,"$PATH_TO_PS -ao 'stat user ppid args'") | ||
325 | EXTRAS="$EXTRAS check_nagios" | ||
326 | AC_DEFINE_UNQUOTED(PS_COMMAND,"$PATH_TO_PS -ao 'stat uid ppid comm args'") | ||
327 | AC_DEFINE_UNQUOTED(PS_FORMAT,"%s %d %d %s %n") | ||
328 | AC_DEFINE_UNQUOTED(VSZ_COMMAND,"$PATH_TO_PS -ao 'vsz comm'") | ||
329 | AC_DEFINE_UNQUOTED(VSZ_FORMAT,"%d %s") | ||
330 | AC_DEFINE_UNQUOTED(RSS_COMMAND,"$PATH_TO_PS -ao 'rss comm'") | ||
331 | AC_DEFINE_UNQUOTED(RSS_FORMAT,"%d %s") | ||
332 | echo " ps syntax... $PATH_TO_PS -ao 'stat comm vsz rss user ppid args'" | ||
318 | elif [ps -eo 's comm vsz rss user uid ppid args' 2>/dev/null | egrep -i "^S[TAUES]* +C[OMDNA]+ +[VSIZE]+ +U[SER]+ +U[ID]+ +P[PID]+ +[RGSCOMDNA]+" >/dev/null] | 333 | elif [ps -eo 's comm vsz rss user uid ppid args' 2>/dev/null | egrep -i "^S[TAUES]* +C[OMDNA]+ +[VSIZE]+ +U[SER]+ +U[ID]+ +P[PID]+ +[RGSCOMDNA]+" >/dev/null] |
319 | then | 334 | then |
320 | AC_DEFINE(USE_PS_VARS) | 335 | AC_DEFINE(USE_PS_VARS) |
@@ -367,6 +382,7 @@ then | |||
367 | AC_DEFINE_UNQUOTED(RSS_COMMAND,"$PATH_TO_PS -Ao 'rss comm'") | 382 | AC_DEFINE_UNQUOTED(RSS_COMMAND,"$PATH_TO_PS -Ao 'rss comm'") |
368 | AC_DEFINE_UNQUOTED(RSS_FORMAT,"%d %s") | 383 | AC_DEFINE_UNQUOTED(RSS_FORMAT,"%d %s") |
369 | echo " ps syntax... $PATH_TO_PS -Ao 'state comm vsz rss'" | 384 | echo " ps syntax... $PATH_TO_PS -Ao 'state comm vsz rss'" |
385 | dnl wonder who takes state instead of stat | ||
370 | elif [ps -ao 'state command vsz rss user ppid args' 2>/dev/null | egrep -i "^S[TAUES]* +C[OMDNA]+ +V[SIZE]+ +RSS +UID +USER +PPID +[RGSCOMDNA]+" >/dev/null] | 386 | elif [ps -ao 'state command vsz rss user ppid args' 2>/dev/null | egrep -i "^S[TAUES]* +C[OMDNA]+ +V[SIZE]+ +RSS +UID +USER +PPID +[RGSCOMDNA]+" >/dev/null] |
371 | then | 387 | then |
372 | AC_DEFINE(USE_PS_VARS) | 388 | AC_DEFINE(USE_PS_VARS) |
@@ -650,6 +666,15 @@ else | |||
650 | echo "** Get lmstat from Globetrotter Software to monitor flexlm licenses" | 666 | echo "** Get lmstat from Globetrotter Software to monitor flexlm licenses" |
651 | fi | 667 | fi |
652 | 668 | ||
669 | AC_PATH_PROG(PATH_TO_SMBCLIENT,smbclient) | ||
670 | if test -x "$PATH_TO_SMBCLIENT" | ||
671 | then | ||
672 | AC_DEFINE_UNQUOTED(PATH_TO_SMBCLIENT,"$PATH_TO_SMBCLIENT") | ||
673 | else | ||
674 | echo "** Get smbclient from Samba.org to monitor SMB shares" | ||
675 | fi | ||
676 | |||
677 | |||
653 | AC_PATH_PROG(PATH_TO_WHO,who) | 678 | AC_PATH_PROG(PATH_TO_WHO,who) |
654 | if [who -q 2>/dev/null | egrep -i "^# users=[0-9]+$" >/dev/null] | 679 | if [who -q 2>/dev/null | egrep -i "^# users=[0-9]+$" >/dev/null] |
655 | then | 680 | then |
@@ -673,7 +698,7 @@ then | |||
673 | AC_DEFINE_UNQUOTED(PATH_TO_SNMPGETNEXT,"$PATH_TO_SNMPGETNEXT") | 698 | AC_DEFINE_UNQUOTED(PATH_TO_SNMPGETNEXT,"$PATH_TO_SNMPGETNEXT") |
674 | fi | 699 | fi |
675 | 700 | ||
676 | if ( $PERL -MNet::SNMP -e 'print $Net::SNMP::VERSION;' ) | 701 | if ( $PERL -M"Net::SNMP 3.6" -e 'exit' 2>/dev/null ) |
677 | then | 702 | then |
678 | echo "Found Net::SNMP perl module" | 703 | echo "Found Net::SNMP perl module" |
679 | else | 704 | else |