diff options
author | Ton Voon <tonvoon@users.sourceforge.net> | 2003-06-08 22:22:06 (GMT) |
---|---|---|
committer | Ton Voon <tonvoon@users.sourceforge.net> | 2003-06-08 22:22:06 (GMT) |
commit | e0ba1803822af74bdd85c1a0f413b56ec6225342 (patch) | |
tree | cbfbcd70a6fdb72bd65165e6a1e2ce14538c5ad9 | |
parent | 5911e022bc0be5445633410f88ab4611ac5e6e00 (diff) | |
download | monitoring-plugins-e0ba1803822af74bdd85c1a0f413b56ec6225342.tar.gz |
Support for OpenBSD 3.2 & 3.3 ps (Julien Touche)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@539 f882894a-f735-0410-b71e-b25c423dba1c
-rw-r--r-- | configure.in | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/configure.in b/configure.in index a7f3d1f..9c4265f 100644 --- a/configure.in +++ b/configure.in | |||
@@ -618,8 +618,19 @@ dnl #### Process table test | |||
618 | AC_PATH_PROG(PATH_TO_PS,ps) | 618 | AC_PATH_PROG(PATH_TO_PS,ps) |
619 | 619 | ||
620 | AC_MSG_CHECKING(for ps syntax) | 620 | AC_MSG_CHECKING(for ps syntax) |
621 | dnl For OpenBSD 3.2 & 3.3. Must come before ps -weo | ||
622 | dnl STAT UCOMM VSZ RSS USER PPID COMMAND | ||
623 | if ps -axwo 'stat comm vsz rss user uid ppid args' 2>/dev/null | \ | ||
624 | egrep -i ["^ *STAT +UCOMM +VSZ +RSS +USER +UID +PPID +COMMAND"] > /dev/null | ||
625 | then | ||
626 | ac_cv_ps_varlist="[procstat,&procuid,&procppid,&procvsz,&procrss,&procpcpu,procprog,&pos]" | ||
627 | ac_cv_ps_command="$PATH_TO_PS -axwo 'stat uid ppid vsz rss pcpu comm args'" | ||
628 | ac_cv_ps_format="%s %d %d %d %d %f %s %n" | ||
629 | EXTRAS="$EXTRAS check_nagios" | ||
630 | AC_MSG_RESULT([$ac_cv_ps_command]) | ||
631 | |||
621 | dnl STAT UCOMM VSZ RSS USER UID PPID COMMAND | 632 | dnl STAT UCOMM VSZ RSS USER UID PPID COMMAND |
622 | if ps -weo 'stat comm vsz rss user uid ppid args' 2>/dev/null | \ | 633 | elif ps -weo 'stat comm vsz rss user uid ppid args' 2>/dev/null | \ |
623 | egrep -i ["^ *S[TAUES]* +[UCOMDNA]+ +[VSIZE]+ +R[S]+ +U[SER]+ +U[ID]+ +P[PID]+ +[RGSCOMDNA]+"] >/dev/null | 634 | egrep -i ["^ *S[TAUES]* +[UCOMDNA]+ +[VSIZE]+ +R[S]+ +U[SER]+ +U[ID]+ +P[PID]+ +[RGSCOMDNA]+"] >/dev/null |
624 | then | 635 | then |
625 | ac_cv_ps_varlist="[procstat,&procuid,&procppid,&procvsz,&procrss,&procpcpu,procprog,&pos]" | 636 | ac_cv_ps_varlist="[procstat,&procuid,&procppid,&procvsz,&procrss,&procpcpu,procprog,&pos]" |