diff options
author | Ton Voon <tonvoon@users.sourceforge.net> | 2003-12-05 18:08:16 (GMT) |
---|---|---|
committer | Ton Voon <tonvoon@users.sourceforge.net> | 2003-12-05 18:08:16 (GMT) |
commit | 0644f5a497bc49740e82a3219c58eea8a4065345 (patch) | |
tree | 3fe4ea943854f100d2d667d63296dda745d45623 /configure.in | |
parent | e8bcaefa0a009aeac6d35b95895e29d307aa7ecc (diff) | |
download | monitoring-plugins-0644f5a497bc49740e82a3219c58eea8a4065345.tar.gz |
Not correctly working out ps command if /usr/ucb before /usr/bin in PATH for
Solaris (reported by Ben Whaley)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@786 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/configure.in b/configure.in index 912f43e..9fe4ded 100644 --- a/configure.in +++ b/configure.in | |||
@@ -675,7 +675,8 @@ then | |||
675 | 675 | ||
676 | dnl SunOS 4.1.3: | 676 | dnl SunOS 4.1.3: |
677 | dnl F UID PID PPID CP PRI NI SZ RSS WCHAN STAT TT TIME COMMAND | 677 | dnl F UID PID PPID CP PRI NI SZ RSS WCHAN STAT TT TIME COMMAND |
678 | elif ps -laxnwww 2>/dev/null | \ | 678 | dnl Need the head -1 otherwise test will work because arguments are found |
679 | elif ps -laxnwww 2>/dev/null | head -1 | \ | ||
679 | egrep -i ["^ *F(LAGS)? +UID +PID +PPID +CP +PRI +NI +(SZ)|(VSZ)|(SIZE) +RSS +WCHAN +STAT? +TTY? +TIME +COMMAND"] >/dev/null | 680 | egrep -i ["^ *F(LAGS)? +UID +PID +PPID +CP +PRI +NI +(SZ)|(VSZ)|(SIZE) +RSS +WCHAN +STAT? +TTY? +TIME +COMMAND"] >/dev/null |
680 | then | 681 | then |
681 | ac_cv_ps_varlist="[&procuid,&procppid,&procvsz,&procrss,procstat,&pos,procprog]" | 682 | ac_cv_ps_varlist="[&procuid,&procppid,&procvsz,&procrss,procstat,&pos,procprog]" |
@@ -843,7 +844,7 @@ else | |||
843 | AC_MSG_WARN([unable to find usable ps syntax - check_procs and check_nagios will not be compiled]) | 844 | AC_MSG_WARN([unable to find usable ps syntax - check_procs and check_nagios will not be compiled]) |
844 | fi | 845 | fi |
845 | 846 | ||
846 | if test -n $ac_cv_ps_varlist ; then | 847 | if test -n "$ac_cv_ps_varlist" ; then |
847 | AC_DEFINE_UNQUOTED(PS_VARLIST,$ac_cv_ps_varlist, | 848 | AC_DEFINE_UNQUOTED(PS_VARLIST,$ac_cv_ps_varlist, |
848 | [Variable list for sscanf of 'ps' output]) | 849 | [Variable list for sscanf of 'ps' output]) |
849 | AC_DEFINE_UNQUOTED(PS_COMMAND,"$ac_cv_ps_command", | 850 | AC_DEFINE_UNQUOTED(PS_COMMAND,"$ac_cv_ps_command", |