summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorYannick Charton <tontonitch-pro@yahoo.fr>2014-08-26 14:42:14 +0200
committerHolger Weiss <holger@zedat.fu-berlin.de>2014-11-28 17:05:57 +0100
commit366e6cdcf3884d9c62babb8e57e49d2fcd1be420 (patch)
tree7c927efff0718e852d046376f451eeb7f147edc7 /configure.ac
parent3aea6f8fa161836b18802c1a9791ec0c6e728799 (diff)
downloadmonitoring-plugins-366e6cdcf3884d9c62babb8e57e49d2fcd1be420.tar.gz
Added particular ps command for HP-UX (check_procs)
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac14
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 ,
610dnl #### Process table test 610dnl #### Process table test
611 611
612AC_PATH_PROG(PATH_TO_PS,ps) 612AC_PATH_PROG(PATH_TO_PS,ps)
613AC_PATH_PROG(PATH_TO_ENV,env)
613 614
614AC_MSG_CHECKING(for ps syntax) 615AC_MSG_CHECKING(for ps syntax)
615AC_ARG_WITH(ps_command, 616AC_ARG_WITH(ps_command,
@@ -931,6 +932,19 @@ then
931 ac_cv_ps_cols=6 932 ac_cv_ps_cols=6
932 AC_MSG_RESULT([$ac_cv_ps_command]) 933 AC_MSG_RESULT([$ac_cv_ps_command])
933 934
935dnl HP-UX:
936dnl S UID RUID USER RUSER PID PPID VSZ %CPU COMMAND COMMAND
937dnl S 0 400 root oracle 2805 1 12904 0.00 ora_dism_SEA1X ora_dism_SEA1X
938dnl S 400 400 oracle oracle 19261 1 126488 0.00 tnslsnr /u01/app/oracle/product/db/11.2.0.3/bin/tnslsnr LISTENER -inherit
939elif env UNIX95=1 ps -eo 'state uid ruid user ruser pid ppid vsz pcpu comm args' 2>/dev/null | head -n 1 | \
940 egrep -i ["^ *S +UID +RUID +USER +RUSER +PID +PPID +VSZ +%CPU +COMMAND +COMMAND"] >/dev/null
941then
942 ac_cv_ps_varlist="[procstat,&procuid,&procpid,&procppid,&procvsz,&procpcpu,procprog,&pos]"
943 ac_cv_ps_command="$PATH_TO_ENV UNIX95=1 $PATH_TO_PS -eo 'state uid pid ppid vsz pcpu comm args'"
944 ac_cv_ps_format="%s %d %d %d %d %f %s %n"
945 ac_cv_ps_cols=8
946 AC_MSG_RESULT([$ac_cv_ps_command])
947
934dnl AIX 4.1: 948dnl AIX 4.1:
935dnl F S UID PID PPID C PRI NI ADDR SZ RSS WCHAN TTY TIME CMD 949dnl F S UID PID PPID C PRI NI ADDR SZ RSS WCHAN TTY TIME CMD
936dnl 303 A 0 0 0 120 16 -- 1c07 20 24 - 0:45 swapper 950dnl 303 A 0 0 0 120 16 -- 1c07 20 24 - 0:45 swapper