[Nagiosplug-checkins] CVS: nagiosplug configure.in,1.72,1.73
Ton Voon
tonvoon at users.sourceforge.net
Tue Mar 25 19:59:02 CET 2003
Update of /cvsroot/nagiosplug/nagiosplug
In directory sc8-pr-cvs1:/tmp/cvs-serv5612
Modified Files:
configure.in
Log Message:
Removal of ps_raw and ps_vars
Index: configure.in
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/configure.in,v
retrieving revision 1.72
retrieving revision 1.73
diff -C2 -r1.72 -r1.73
*** configure.in 23 Mar 2003 07:01:19 -0000 1.72
--- configure.in 26 Mar 2003 03:57:58 -0000 1.73
***************
*** 617,621 ****
AC_PATH_PROG(PATH_TO_PS,ps)
- ac_cv_use_ps_vars=no
AC_MSG_CHECKING(for ps syntax)
--- 617,620 ----
***************
*** 624,630 ****
egrep -i ["^ *S[TAUES]* +[UCOMDNA]+ +[VSIZE]+ +R[S]+ +U[SER]+ +U[ID]+ +P[PID]+ +[RGSCOMDNA]+"] >/dev/null
then
- ac_cv_use_ps_vars=yes
ac_cv_ps_varlist="[procstat,&procuid,&procppid,procprog,&pos]"
- ac_cv_ps_raw_command="$PATH_TO_PS -weo 'stat user ppid args'"
ac_cv_ps_command="$PATH_TO_PS -weo 'stat uid ppid comm args'"
ac_cv_ps_format="%s %d %d %s %n"
--- 623,627 ----
***************
*** 640,646 ****
egrep -i ["^STAT +COMMAND +VSZ +RSS +UID +USER +PPID"] >/dev/null
then
- ac_cv_use_ps_vars=yes
ac_cv_ps_varlist="[procstat,&procuid,&procppid,procprog,&pos]"
- ac_cv_ps_raw_command="$PATH_TO_PS waxo 'state uid ppid command'"
ac_cv_ps_command="$PATH_TO_PS waxco 'state uid ppid command command'"
ac_cv_ps_format="%s %d %d %s %n"
--- 637,641 ----
***************
*** 656,662 ****
egrep -i ["^S +COMMAND +VSZ +RSS +UID +USER +PPID +[RGSCOMDNA]+"] >/dev/null
then
- ac_cv_use_ps_vars=yes
ac_cv_ps_varlist="[procstat,&procuid,&procppid,procprog,&pos]"
- ac_cv_ps_raw_command="$PATH_TO_PS waxno 'state user ppid comm'"
ac_cv_ps_command="$PATH_TO_PS waxno 'state uid ppid comm args'"
ac_cv_ps_format="%s %d %d %s %n"
--- 651,655 ----
***************
*** 673,678 ****
egrep -i ["^ *F(LAGS)? +UID +PID +PPID +CP +PRI +NI +(SZ)|(VSZ)|(SIZE) +RSS +WCHAN +STAT? +TTY? +TIME +COMMAND"] >/dev/null
then
- ac_cv_use_ps_vars=yes
- ac_cv_ps_raw_command="$PATH_TO_PS laxnwww"
ac_cv_ps_varlist="[&procuid,&procppid,procstat,&pos,procprog]"
ac_cv_ps_command="$PATH_TO_PS -laxnwww"
--- 666,669 ----
***************
*** 692,697 ****
egrep -i ["^ *F(LAGS)? +UID +PID +PPID +PRI +NI +(VSZ)|(SIZE) +RSS +WCHAN +STAT? TTY +TIME +COMMAND"] >/dev/null
then
- ac_cv_use_ps_vars=yes
- ac_cv_ps_raw_command="$PATH_TO_PS laxnwww"
ac_cv_ps_varlist="[&procuid,&procppid,procstat,&pos,procprog]"
ac_cv_ps_command="$PATH_TO_PS laxnwww"
--- 683,686 ----
***************
*** 708,714 ****
egrep -i ["^ *S[TAUES]* +[UCOMDNA]+ +[VSIZE]+ +R[S]+ +U[SER]+ +U[ID]+ +P[PID]+ +[RGSCOMDNA]+"] >/dev/null
then
- ac_cv_use_ps_vars=yes
ac_cv_ps_varlist="[procstat,&procuid,&procppid,procprog,&pos]"
- ac_cv_ps_raw_command="$PATH_TO_PS -axo 'stat user ppid args'"
ac_cv_ps_command="$PATH_TO_PS -axo 'stat uid ppid comm args'"
ac_cv_ps_format="%s %d %d %s %n"
--- 697,701 ----
***************
*** 724,730 ****
egrep -i ["^ *S[TAUES]* +[UCOMDNA]+ +[VSIZE]+ +R[S]+ +U[SER]+ +U[ID]+ +P[PID]+ +[RGSCOMDNA]+"] >/dev/null
then
- ac_cv_use_ps_vars=yes
ac_cv_ps_varlist="[procstat,&procuid,&procppid,procprog,&pos]"
- ac_cv_ps_raw_command="$PATH_TO_PS -ao 'stat user ppid args'"
ac_cv_ps_command="$PATH_TO_PS -ao 'stat uid ppid comm args'"
ac_cv_ps_format="[["%s%*[ +] %d %d %s %n"]]"
--- 711,715 ----
***************
*** 739,745 ****
egrep -i ["^S[TAUES]* +C[OMDNA]+ +[VSIZE]+ +U[SER]+ +U[ID]+ +P[PID]+ +[RGSCOMDNA]+"] >/dev/null
then
- ac_cv_use_ps_vars=yes
ac_cv_ps_varlist="[procstat,&procuid,&procppid,procprog,&pos]"
- ac_cv_ps_raw_command="$PATH_TO_PS -eo 's user ppid args'"
ac_cv_ps_command="$PATH_TO_PS -eo 's uid ppid comm args'"
ac_cv_ps_format="%s %d %d %s %n"
--- 724,728 ----
***************
*** 754,760 ****
egrep -i ["^S[TAUES]* +C[OMDNA]+ +V[SIZE]+ +RSS +UID +USER +PPID +[RGSCOMDNA]+"] >/dev/null
then
- ac_cv_use_ps_vars=yes
ac_cv_ps_varlist="[procstat,&procuid,&procppid,procprog,&pos]"
- ac_cv_ps_raw_command="$PATH_TO_PS -Ao 's user ppid args'"
ac_cv_ps_command="$PATH_TO_PS -Ao 's uid ppid comm args'"
ac_cv_ps_format="%s %d %d %s %n"
--- 737,741 ----
***************
*** 769,775 ****
egrep -i ["^S[TAUES]* +C[OMDNA]+ +V[SIZE]+ +RSS +UID +USER +PPID +[RGSCOMDNA]+"] >/dev/null
then
- ac_cv_use_ps_vars=yes
ac_cv_ps_varlist="[procstat,&procuid,&procppid,procprog,&pos]"
- ac_cv_ps_raw_command="$PATH_TO_PS -Ao 'status user ppid args'"
ac_cv_ps_command="$PATH_TO_PS -Ao 'status uid ppid comm args'"
ac_cv_ps_format="%s %d %d %s %n"
--- 750,754 ----
***************
*** 784,790 ****
egrep -i ["^S[TAUES]* +C[OMDNA]+ +V[SIZE]+ +RSS +UID +USER +PPID +[RGSCOMDNA]+"] >/dev/null
then
- ac_cv_use_ps_vars=yes
ac_cv_ps_varlist="[procstat,&procuid,&procppid,procprog,&pos]"
- ac_cv_ps_raw_command="$PATH_TO_PS -Ao 'state user ppid args'"
ac_cv_ps_command="$PATH_TO_PS -Ao 'state uid ppid comm args'"
ac_cv_ps_format="%s %d %d %s %n"
--- 763,767 ----
***************
*** 800,806 ****
egrep -i ["^S[TAUES]* +C[OMDNA]+ +V[SIZE]+ +RSS +UID +USER +PPID +[RGSCOMDNA]+"] >/dev/null
then
- ac_cv_use_ps_vars=yes
ac_cv_ps_varlist="[procstat,&procuid,&procppid,procprog,&pos]"
- ac_cv_ps_raw_command="$PATH_TO_PS -ao 'state user ppid args'"
ac_cv_ps_command="$PATH_TO_PS -ao 'state uid ppid command args'"
ac_cv_ps_format="%s %d %d %s %n"
--- 777,781 ----
***************
*** 816,820 ****
egrep -i ["^ *F +S +UID +PID +PPID +C +PRI +NI +P +SZ +RSS +WCHAN +TTY +TIME +[RGSCOMDNA]+"] >/dev/null
then
- ac_cv_use_ps_vars=yes
ac_cv_ps_varlist="[procstat,&procuid,&procppid,&pos,procprog]"
ac_cv_ps_command="$PATH_TO_PS -el"
--- 791,794 ----
***************
*** 830,834 ****
egrep -i ["^ *F +S +UID +PID +PPID +C +PRI +NI +P +ADDR +SZ +RSS +WCHAN +TTY +TIME +[RGSCOMDNA]+"] >/dev/null
then
- ac_cv_use_ps_vars=yes
ac_cv_ps_varlist="[procstat,&procuid,&procppid,&pos,procprog]"
ac_cv_ps_command="$PATH_TO_PS -el"
--- 804,807 ----
***************
*** 846,850 ****
egrep -i ["^ *F +S +UID +PID +PPID +C +PRI +NI +ADDR +SZ +WCHAN +TTY +TIME +[RGSCOMDNA]+"] >/dev/null
then
- ac_cv_use_ps_vars=yes
ac_cv_ps_varlist="[procstat,&procuid,&procppid,&pos,procprog]"
ac_cv_ps_command="$PATH_TO_PS -el"
--- 819,822 ----
***************
*** 860,864 ****
egrep -i ["^ *F +UID +PID +PPID +PRI +NI +VSZ +RSS +WCHAN +STAT +TTY +TIME +COMMAND"] >/dev/null
then
- ac_cv_use_ps_vars=yes
ac_cv_ps_varlist="[&procuid,&procppid,procstat,&pos,procprog]"
ac_cv_ps_command="$PATH_TO_PS glaxen"
--- 832,835 ----
***************
*** 877,883 ****
egrep -i ["^STAT +VSZ +RSS +UID +USER +PPID +UCOMM +COMMAND"] >/dev/null
then
- ac_cv_use_ps_vars=yes
ac_cv_ps_varlist="[procstat,&procuid,&procppid,procprog,&pos]"
- ac_cv_ps_raw_command="$PATH_TO_PS waxo 'state uid ppid command'"
ac_cv_ps_command="$PATH_TO_PS waxo 'state uid ppid ucomm command'"
ac_cv_ps_format="%s %d %d %s %n"
--- 848,852 ----
***************
*** 893,897 ****
egrep -i ["^ *F +S +UID +PID +PPID +CLS +PRI +NI +C +ADDR +SZ +WCHAN +TTY +TIME +COMD"] >/dev/null
then
- ac_cv_use_ps_vars=yes
ac_cv_ps_varlist="[procstat,&procuid,&procppid,&pos,procprog]"
ac_cv_ps_command="$PATH_TO_PS -Al"
--- 862,865 ----
***************
*** 909,920 ****
fi
- if test "x$ac_cv_use_ps_vars" != "xno"
- then
- AC_DEFINE(USE_PS_VARS,1,[Define if 'ps' will be parsed with sscanf])
- fi
AC_DEFINE_UNQUOTED(PS_VARLIST,$ac_cv_ps_varlist,
[Variable list for sscanf of 'ps' output])
- AC_DEFINE_UNQUOTED(PS_RAW_COMMAND,"$ac_cv_ps_raw_command",
- [Verbatim command to execute for ps in check_netsaint])
AC_DEFINE_UNQUOTED(PS_COMMAND,"$ac_cv_ps_command",
[Verbatim command to execute for ps in check_procs])
--- 877,882 ----
More information about the Commits
mailing list