From 5163656fe8b96a98def934c2fb4a8529fe3a7489 Mon Sep 17 00:00:00 2001 From: "M. Sean Finney" Date: Thu, 22 Sep 2005 09:43:12 +0000 Subject: 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 --- configure.in | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'configure.in') 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 AC_PATH_PROG(PATH_TO_PS,ps) AC_MSG_CHECKING(for ps syntax) + +dnl Now using the pst3/kmem hack for solaris systems to avoid truncation +if [ "$ac_cv_uname_s" = "SunOS" ]; then + ac_cv_ps_command="$prefix/pst3" + ac_cv_ps_format="%s %d %d %d %d %f %s %n" + ac_cv_ps_varlist="[procstat,&procuid,&procppid,&procvsz,&procrss,&procpcpu,procprog,&pos]" + ac_cv_ps_cols=8 + AC_MSG_RESULT([using nagios-plugins internal ps for solaris]) + dnl Some gnu/linux systems (debian for one) don't like -axwo and need axwo. dnl so test for this first... -if ps axwo 'stat comm vsz rss user uid pid ppid args' 2>/dev/null | \ +elif ps axwo 'stat comm vsz rss user uid pid ppid args' 2>/dev/null | \ egrep -i ["^ *STAT +[UCOMAND]+ +VSZ +RSS +USER +UID +PID +PPID +COMMAND"] > /dev/null then ac_cv_ps_varlist="[procstat,&procuid,&procpid,&procppid,&procvsz,&procrss,&procpcpu,procprog,&pos]" -- cgit v1.2.3-74-g34f1