summaryrefslogtreecommitdiffstats
path: root/configure.in
diff options
context:
space:
mode:
authorM. Sean Finney <seanius@users.sourceforge.net>2005-09-22 09:43:12 +0000
committerM. Sean Finney <seanius@users.sourceforge.net>2005-09-22 09:43:12 +0000
commit5163656fe8b96a98def934c2fb4a8529fe3a7489 (patch)
tree16e919f6ae083783ae27b14ac80c2821e86ad3c0 /configure.in
parent07881972576a9a517100f7394d5538200d6986fd (diff)
downloadmonitoring-plugins-5163656fe8b96a98def934c2fb4a8529fe3a7489.tar.gz
first version of bob ingraham's pst3 to allow checking for longer
cmdline names than otherwise possible, by querying solaris kmem directly (ps forcibly truncates). added requisite configure.in voodoo and updated THANKS.in. git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1238 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in11
1 files changed, 10 insertions, 1 deletions
diff --git a/configure.in b/configure.in
index ee5fb906..176a8e22 100644
--- a/configure.in
+++ b/configure.in
@@ -598,9 +598,18 @@ dnl #### Process table test
598AC_PATH_PROG(PATH_TO_PS,ps) 598AC_PATH_PROG(PATH_TO_PS,ps)
599 599
600AC_MSG_CHECKING(for ps syntax) 600AC_MSG_CHECKING(for ps syntax)
601
602dnl Now using the pst3/kmem hack for solaris systems to avoid truncation
603if [ "$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
601dnl Some gnu/linux systems (debian for one) don't like -axwo and need axwo. 610dnl Some gnu/linux systems (debian for one) don't like -axwo and need axwo.
602dnl so test for this first... 611dnl so test for this first...
603if ps axwo 'stat comm vsz rss user uid pid ppid args' 2>/dev/null | \ 612elif 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
605then 614then
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]"