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 , | |||
610 | dnl #### Process table test | 610 | dnl #### Process table test |
611 | 611 | ||
612 | AC_PATH_PROG(PATH_TO_PS,ps) | 612 | AC_PATH_PROG(PATH_TO_PS,ps) |
613 | AC_PATH_PROG(PATH_TO_ENV,env) | ||
613 | 614 | ||
614 | AC_MSG_CHECKING(for ps syntax) | 615 | AC_MSG_CHECKING(for ps syntax) |
615 | AC_ARG_WITH(ps_command, | 616 | AC_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 | ||
935 | dnl HP-UX: | ||
936 | dnl S UID RUID USER RUSER PID PPID VSZ %CPU COMMAND COMMAND | ||
937 | dnl S 0 400 root oracle 2805 1 12904 0.00 ora_dism_SEA1X ora_dism_SEA1X | ||
938 | 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 | ||
939 | elif 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 | ||
941 | then | ||
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 | |||
934 | dnl AIX 4.1: | 948 | dnl AIX 4.1: |
935 | dnl F S UID PID PPID C PRI NI ADDR SZ RSS WCHAN TTY TIME CMD | 949 | dnl F S UID PID PPID C PRI NI ADDR SZ RSS WCHAN TTY TIME CMD |
936 | dnl 303 A 0 0 0 120 16 -- 1c07 20 24 - 0:45 swapper | 950 | dnl 303 A 0 0 0 120 16 -- 1c07 20 24 - 0:45 swapper |