[Nagiosplug-checkins] nagiosplug configure.in,1.47.2.10,1.47.2.11
Ton Voon
tonvoon at users.sourceforge.net
Tue Dec 21 04:48:02 CET 2004
Update of /cvsroot/nagiosplug/nagiosplug
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20933
Modified Files:
Tag: r1_3_0
configure.in
Log Message:
Fix for FreeBSD ps command (reported by Michael Bakker)
Index: configure.in
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/configure.in,v
retrieving revision 1.47.2.10
retrieving revision 1.47.2.11
diff -u -d -r1.47.2.10 -r1.47.2.11
--- configure.in 24 Nov 2004 21:01:43 -0000 1.47.2.10
+++ configure.in 21 Dec 2004 12:47:04 -0000 1.47.2.11
@@ -415,8 +415,9 @@
AC_PATH_PROG(PATH_TO_PS,ps)
dnl For OpenBSD 3.2 & 3.3. Must come before ps -weo
+dnl Should also work for FreeBSD 5.2.1 and 5.3
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
+if ps -axwo 'stat comm vsz rss user uid ppid args' 2>/dev/null | egrep -i ["^ *STAT +[UCOMAND]+ +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])
More information about the Commits
mailing list