summaryrefslogtreecommitdiff
path: root/net-mgmt/monitoring-plugins/files/patch-configure
blob: d9ef14e7f6d94484dfd65c3e6885962ae135a83b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--- configure.orig	2016-11-29 08:48:11 UTC
+++ configure
@@ -16747,6 +16747,16 @@ then
 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ps_command" >&5
 $as_echo "$ac_cv_ps_command" >&6; }
 
+elif ps -axwo 'stat comm vsz rss user uid pid ppid args jid' 2>/dev/null | \
+	egrep -i "^ *STAT +COMMAND +VSZ +RSS +USER +UID +PID +PPID +COMMAND +JID" > /dev/null
+then
+	ac_cv_ps_varlist="procstat,&procuid,&procpid,&procppid,&procjid,&procvsz,&procrss,&procpcpu,procprog,&pos"
+	ac_cv_ps_command="$PATH_TO_PS -axwo 'stat uid pid ppid jid vsz rss pcpu comm args'"
+	ac_cv_ps_format="%s %d %d %d %d %d %d %f %s %n"
+	ac_cv_ps_cols=10
+	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ps_command" >&5
+$as_echo "$ac_cv_ps_command" >&6; }
+
 elif ps -axwo 'stat comm vsz rss user uid pid ppid args' 2>/dev/null | \
 	egrep -i "^ *STAT +[UCOMAND]+ +VSZ +RSS +USER +UID +PID +PPID +COMMAND" > /dev/null
 then