[Nagiosplug-checkins] nagiosplug configure.in,1.126,1.127

Ton Voon tonvoon at users.sourceforge.net
Fri Dec 17 10:15:02 CET 2004


Update of /cvsroot/nagiosplug/nagiosplug
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4122

Modified Files:
	configure.in 
Log Message:
Support for FreeBSD 5.2.1 and 5.3 in check_procs


Index: configure.in
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/configure.in,v
retrieving revision 1.126
retrieving revision 1.127
diff -u -d -r1.126 -r1.127
--- configure.in	15 Dec 2004 23:12:23 -0000	1.126
+++ configure.in	17 Dec 2004 18:14:18 -0000	1.127
@@ -646,9 +646,10 @@
 
 AC_MSG_CHECKING(for ps syntax)
 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
+	egrep -i ["^ *STAT +[UCOMAND]+ +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'"





More information about the Commits mailing list