summaryrefslogtreecommitdiffstats
path: root/configure.in
diff options
context:
space:
mode:
authorTon Voon <tonvoon@users.sourceforge.net>2004-12-17 18:14:18 (GMT)
committerTon Voon <tonvoon@users.sourceforge.net>2004-12-17 18:14:18 (GMT)
commite2f3ac72cf8084f588bcd90ea09d1804d5f8e3f9 (patch)
treebc9edf3a5df72da0483948252e61ca049653d9e6 /configure.in
parentdf5d53fb5d27e015e73358144c23aeedcfaf26d0 (diff)
downloadmonitoring-plugins-e2f3ac72cf8084f588bcd90ea09d1804d5f8e3f9.tar.gz
Support for FreeBSD 5.2.1 and 5.3 in check_procs
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1037 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/configure.in b/configure.in
index 5e95c91..21d28de 100644
--- a/configure.in
+++ b/configure.in
@@ -646,9 +646,10 @@ AC_PATH_PROG(PATH_TO_PS,ps)
646 646
647AC_MSG_CHECKING(for ps syntax) 647AC_MSG_CHECKING(for ps syntax)
648dnl For OpenBSD 3.2 & 3.3. Must come before ps -weo 648dnl For OpenBSD 3.2 & 3.3. Must come before ps -weo
649dnl Should also work for FreeBSD 5.2.1 and 5.3
649dnl STAT UCOMM VSZ RSS USER PPID COMMAND 650dnl STAT UCOMM VSZ RSS USER PPID COMMAND
650if ps -axwo 'stat comm vsz rss user uid ppid args' 2>/dev/null | \ 651if ps -axwo 'stat comm vsz rss user uid ppid args' 2>/dev/null | \
651 egrep -i ["^ *STAT +UCOMM +VSZ +RSS +USER +UID +PPID +COMMAND"] > /dev/null 652 egrep -i ["^ *STAT +[UCOMAND]+ +VSZ +RSS +USER +UID +PPID +COMMAND"] > /dev/null
652then 653then
653 ac_cv_ps_varlist="[procstat,&procuid,&procppid,&procvsz,&procrss,&procpcpu,procprog,&pos]" 654 ac_cv_ps_varlist="[procstat,&procuid,&procppid,&procvsz,&procrss,&procpcpu,procprog,&pos]"
654 ac_cv_ps_command="$PATH_TO_PS -axwo 'stat uid ppid vsz rss pcpu comm args'" 655 ac_cv_ps_command="$PATH_TO_PS -axwo 'stat uid ppid vsz rss pcpu comm args'"