mcst-linux-kernel/patches-2024.06.26/nagios-plugins-2.2.1/0001-fix-check_procs-build....

42 lines
1.5 KiB
Diff

From d497ae54c8125bac3f5062e3de54c97f18eeecac Mon Sep 17 00:00:00 2001
Date: Sat, 30 Sep 2017 21:38:27 +0300
Subject: [PATCH] fix check_procs build
---
configure | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
diff --git a/configure b/configure
index ab6e2a3..b97aee5 100755
--- a/configure
+++ b/configure
@@ -22063,9 +22063,12 @@ then
{ $as_echo "$as_me:$LINENO: result: $ac_cv_ps_command" >&5
$as_echo "$ac_cv_ps_command" >&6; }
-elif ps laxnwww 2>/dev/null | \
- egrep -i "^ *F(LAGS)? +UID +PID +PPID +PRI +NI +(VSZ)|(SIZE) +RSS +WCHAN +STAT? TTY +TIME +COMMAND" >/dev/null
-then
+
+#rasp:: we need it
+fi
+#elif ps laxnwww 2>/dev/null | \
+# egrep -i "^ *F(LAGS)? +UID +PID +PPID +PRI +NI +(VSZ)|(SIZE) +RSS +WCHAN +STAT? TTY +TIME +COMMAND" >/dev/null
+#then
ac_cv_ps_varlist="&procuid,&procpid,&procppid,procstat,&procvsz,&procrss,&pos,procprog"
ac_cv_ps_command="$PATH_TO_PS laxnwww"
ac_cv_ps_format="%*s %d %d %d %*s %*s %d %d %*s %s %*s %*s %n%s"
@@ -22073,7 +22076,8 @@ then
{ $as_echo "$as_me:$LINENO: result: $ac_cv_ps_command" >&5
$as_echo "$ac_cv_ps_command" >&6; }
-elif ps -axo 'stat comm vsz rss user uid pid ppid args' 2>/dev/null | \
+#elif
+if ps -axo 'stat comm vsz rss user uid pid ppid args' 2>/dev/null | \
egrep -i "^ *S[TAUES]* +[UCOMDNA]+ +[VSIZE]+ +R[S]+ +U[SER]+ +U[ID]+ +P[PID]+ +P[PID]+ +[RGSCOMDNA]+" >/dev/null
then
ac_cv_ps_varlist="procstat,&procuid,&procpid,&procppid,&procvsz,&procrss,&procpcpu,procprog,&pos"
--
2.16.4