diff options
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/configure.in b/configure.in index ee5fb90..176a8e2 100644 --- a/configure.in +++ b/configure.in | |||
@@ -598,9 +598,18 @@ dnl #### Process table test | |||
598 | AC_PATH_PROG(PATH_TO_PS,ps) | 598 | AC_PATH_PROG(PATH_TO_PS,ps) |
599 | 599 | ||
600 | AC_MSG_CHECKING(for ps syntax) | 600 | AC_MSG_CHECKING(for ps syntax) |
601 | |||
602 | dnl Now using the pst3/kmem hack for solaris systems to avoid truncation | ||
603 | if [ "$ac_cv_uname_s" = "SunOS" ]; then | ||
604 | ac_cv_ps_command="$prefix/pst3" | ||
605 | ac_cv_ps_format="%s %d %d %d %d %f %s %n" | ||
606 | ac_cv_ps_varlist="[procstat,&procuid,&procppid,&procvsz,&procrss,&procpcpu,procprog,&pos]" | ||
607 | ac_cv_ps_cols=8 | ||
608 | AC_MSG_RESULT([using nagios-plugins internal ps for solaris]) | ||
609 | |||
601 | dnl Some gnu/linux systems (debian for one) don't like -axwo and need axwo. | 610 | dnl Some gnu/linux systems (debian for one) don't like -axwo and need axwo. |
602 | dnl so test for this first... | 611 | dnl so test for this first... |
603 | if ps axwo 'stat comm vsz rss user uid pid ppid args' 2>/dev/null | \ | 612 | elif ps axwo 'stat comm vsz rss user uid pid ppid args' 2>/dev/null | \ |
604 | egrep -i ["^ *STAT +[UCOMAND]+ +VSZ +RSS +USER +UID +PID +PPID +COMMAND"] > /dev/null | 613 | egrep -i ["^ *STAT +[UCOMAND]+ +VSZ +RSS +USER +UID +PID +PPID +COMMAND"] > /dev/null |
605 | then | 614 | then |
606 | ac_cv_ps_varlist="[procstat,&procuid,&procpid,&procppid,&procvsz,&procrss,&procpcpu,procprog,&pos]" | 615 | ac_cv_ps_varlist="[procstat,&procuid,&procpid,&procppid,&procvsz,&procrss,&procpcpu,procprog,&pos]" |