[Nagiosplug-checkins] CVS: nagiosplug configure.in,1.78,1.79
Ton Voon
tonvoon at users.sourceforge.net
Sun Jun 8 15:23:02 CEST 2003
Update of /cvsroot/nagiosplug/nagiosplug
In directory sc8-pr-cvs1:/tmp/cvs-serv24299
Modified Files:
configure.in
Log Message:
Support for OpenBSD 3.2 & 3.3 ps (Julien Touche)
Index: configure.in
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/configure.in,v
retrieving revision 1.78
retrieving revision 1.79
diff -C2 -r1.78 -r1.79
*** configure.in 13 Apr 2003 04:28:58 -0000 1.78
--- configure.in 8 Jun 2003 22:22:06 -0000 1.79
***************
*** 619,624 ****
AC_MSG_CHECKING(for ps syntax)
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
--- 619,635 ----
AC_MSG_CHECKING(for ps syntax)
+ dnl For OpenBSD 3.2 & 3.3. Must come before ps -weo
+ 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_cv_ps_varlist="[procstat,&procuid,&procppid,&procvsz,&procrss,&procpcpu,procprog,&pos]"
+ ac_cv_ps_command="$PATH_TO_PS -axwo 'stat uid ppid vsz rss pcpu comm args'"
+ ac_cv_ps_format="%s %d %d %d %d %f %s %n"
+ EXTRAS="$EXTRAS check_nagios"
+ AC_MSG_RESULT([$ac_cv_ps_command])
+
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
More information about the Commits
mailing list