summaryrefslogtreecommitdiffstats
path: root/configure.in
diff options
context:
space:
mode:
authorMatthew Kent <mattkent@users.sourceforge.net>2004-12-03 04:10:19 (GMT)
committerMatthew Kent <mattkent@users.sourceforge.net>2004-12-03 04:10:19 (GMT)
commitf0336fc9accee63c1500ec735944d936259865ea (patch)
tree768eae4e149cb19c234ac6e9b31870a837d4a68f /configure.in
parent06f6a8522704a5deabdc961d8db9e9462f34ea02 (diff)
downloadmonitoring-plugins-f0336fc9accee63c1500ec735944d936259865ea.tar.gz
Patch from Russell Miller which adds elapsed time as a metric. Only for linux so far. (991359)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@984 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in12
1 files changed, 6 insertions, 6 deletions
diff --git a/configure.in b/configure.in
index 17bc5ab..d409b1c 100644
--- a/configure.in
+++ b/configure.in
@@ -662,13 +662,13 @@ then
662 AC_MSG_RESULT([$ac_cv_ps_command]) 662 AC_MSG_RESULT([$ac_cv_ps_command])
663 663
664dnl STAT UCOMM VSZ RSS USER UID PPID COMMAND 664dnl STAT UCOMM VSZ RSS USER UID PPID COMMAND
665elif ps -weo 'stat comm vsz rss user uid ppid args' 2>/dev/null | \ 665elif ps -weo 'stat comm vsz rss user uid ppid etime args' 2>/dev/null | \
666 egrep -i ["^ *S[TAUES]* +[UCOMDNA]+ +[VSIZE]+ +R[S]+ +U[SER]+ +U[ID]+ +P[PID]+ +[RGSCOMDNA]+"] >/dev/null 666 egrep -i ["^ *S[TAUES]* +[UCOMDNA]+ +[VSIZE]+ +R[S]+ +U[SER]+ +U[ID]+ +P[PID]+ +[ELAPSD]+ +[RGSCOMDNA]+"] >/dev/null
667then 667then
668 ac_cv_ps_varlist="[procstat,&procuid,&procppid,&procvsz,&procrss,&procpcpu,procprog,&pos]" 668 ac_cv_ps_varlist="[procstat,&procuid,&procppid,&procvsz,&procrss,&procpcpu,procetime,procprog,&pos]"
669 ac_cv_ps_command="$PATH_TO_PS -weo 'stat uid ppid vsz rss pcpu comm args'" 669 ac_cv_ps_command="$PATH_TO_PS -weo 'stat uid ppid vsz rss pcpu etime comm args'"
670 ac_cv_ps_format="%s %d %d %d %d %f %s %n" 670 ac_cv_ps_format="%s %d %d %d %d %f %s %s %n"
671 ac_cv_ps_cols=8 671 ac_cv_ps_cols=9
672 AC_MSG_RESULT([$ac_cv_ps_command]) 672 AC_MSG_RESULT([$ac_cv_ps_command])
673 673
674dnl FreeBSD 674dnl FreeBSD