diff options
author | Yannick Charton <tontonitch-pro@yahoo.fr> | 2014-08-26 14:42:14 +0200 |
---|---|---|
committer | Holger Weiss <holger@zedat.fu-berlin.de> | 2014-11-28 17:05:57 +0100 |
commit | 366e6cdcf3884d9c62babb8e57e49d2fcd1be420 (patch) | |
tree | 7c927efff0718e852d046376f451eeb7f147edc7 /configure.ac | |
parent | 3aea6f8fa161836b18802c1a9791ec0c6e728799 (diff) | |
download | monitoring-plugins-366e6cdcf3884d9c62babb8e57e49d2fcd1be420.tar.gz |
Added particular ps command for HP-UX (check_procs)
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 92d9ebfb..59875e5a 100644 --- a/configure.ac +++ b/configure.ac @@ -610,6 +610,7 @@ AC_DEFINE_UNQUOTED(SOCKET_SIZE_TYPE, $ac_cv_socket_size_type , dnl #### Process table test AC_PATH_PROG(PATH_TO_PS,ps) +AC_PATH_PROG(PATH_TO_ENV,env) AC_MSG_CHECKING(for ps syntax) AC_ARG_WITH(ps_command, @@ -931,6 +932,19 @@ then ac_cv_ps_cols=6 AC_MSG_RESULT([$ac_cv_ps_command]) +dnl HP-UX: +dnl S UID RUID USER RUSER PID PPID VSZ %CPU COMMAND COMMAND +dnl S 0 400 root oracle 2805 1 12904 0.00 ora_dism_SEA1X ora_dism_SEA1X +dnl S 400 400 oracle oracle 19261 1 126488 0.00 tnslsnr /u01/app/oracle/product/db/11.2.0.3/bin/tnslsnr LISTENER -inherit +elif env UNIX95=1 ps -eo 'state uid ruid user ruser pid ppid vsz pcpu comm args' 2>/dev/null | head -n 1 | \ + egrep -i ["^ *S +UID +RUID +USER +RUSER +PID +PPID +VSZ +%CPU +COMMAND +COMMAND"] >/dev/null +then + ac_cv_ps_varlist="[procstat,&procuid,&procpid,&procppid,&procvsz,&procpcpu,procprog,&pos]" + ac_cv_ps_command="$PATH_TO_ENV UNIX95=1 $PATH_TO_PS -eo 'state uid pid ppid vsz pcpu comm args'" + ac_cv_ps_format="%s %d %d %d %d %f %s %n" + ac_cv_ps_cols=8 + AC_MSG_RESULT([$ac_cv_ps_command]) + dnl AIX 4.1: dnl F S UID PID PPID C PRI NI ADDR SZ RSS WCHAN TTY TIME CMD dnl 303 A 0 0 0 120 16 -- 1c07 20 24 - 0:45 swapper |