[Nagiosplug-checkins] CVS: nagiosplug configure.in,1.47.2.3,1.47.2.4
Ton Voon
tonvoon at users.sourceforge.net
Wed Jun 4 15:57:07 CEST 2003
Update of /cvsroot/nagiosplug/nagiosplug
In directory sc8-pr-cvs1:/tmp/cvs-serv17081
Modified Files:
Tag: r1_3_0
configure.in
Log Message:
Stupid bug - what happens when you don't bother testing
Index: configure.in
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/configure.in,v
retrieving revision 1.47.2.3
retrieving revision 1.47.2.4
diff -C2 -r1.47.2.3 -r1.47.2.4
*** configure.in 4 Jun 2003 22:37:07 -0000 1.47.2.3
--- configure.in 4 Jun 2003 22:56:25 -0000 1.47.2.4
***************
*** 420,423 ****
--- 420,424 ----
dnl STAT UCOMM VSZ RSS USER PPID COMMAND
if ps -axwo 'stat comm vsz rss user uid ppid args' 2>/dev/null | egrep -i ["^ *STAT +UCOMM +VSZ +RSS +USER +UID +PPID +COMMAND"] > /dev/null
+ then
AC_DEFINE(USE_PS_VARS,1,[Define if 'ps' will be parsed with sscanf])
AC_DEFINE_UNQUOTED(PS_VARLIST,[procstat,&procuid,&procppid,procprog,&pos],[Variable list for sscanf of 'ps' output])
***************
*** 431,435 ****
AC_DEFINE_UNQUOTED(RSS_FORMAT,"%d %s",[Format string for scanning ps output in check_rss])
dnl STAT UCOMM VSZ RSS USER UID PPID COMMAND
! if ps -weo '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
then
AC_DEFINE(USE_PS_VARS,1,[Define if 'ps' will be parsed with sscanf])
--- 432,436 ----
AC_DEFINE_UNQUOTED(RSS_FORMAT,"%d %s",[Format string for scanning ps output in check_rss])
dnl STAT UCOMM VSZ RSS USER UID PPID COMMAND
! elif ps -weo '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
then
AC_DEFINE(USE_PS_VARS,1,[Define if 'ps' will be parsed with sscanf])
More information about the Commits
mailing list