diff options
author | Ton Voon <tonvoon@users.sourceforge.net> | 2003-06-04 23:09:29 +0000 |
---|---|---|
committer | Ton Voon <tonvoon@users.sourceforge.net> | 2003-06-04 23:09:29 +0000 |
commit | 2895fc4ae30ed7b4640b8b8a2d426582f39c0e45 (patch) | |
tree | 0e561ab9ffa33ad6ffd41c16fb8ac67360bf1dfa | |
parent | 623811dc9bbc9191aa6d6f90c4e867699dfffb3e (diff) | |
download | monitoring-plugins-2895fc4ae30ed7b4640b8b8a2d426582f39c0e45.tar.gz |
Display ps command used
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/branches/release-1.3.0@536 f882894a-f735-0410-b71e-b25c423dba1c
-rw-r--r-- | configure.in | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/configure.in b/configure.in index aa026fae..ea01c0e2 100644 --- a/configure.in +++ b/configure.in | |||
@@ -430,6 +430,7 @@ then | |||
430 | AC_DEFINE_UNQUOTED(VSZ_FORMAT,"%d %s",[Format string for scanning ps output in check_vsz]) | 430 | AC_DEFINE_UNQUOTED(VSZ_FORMAT,"%d %s",[Format string for scanning ps output in check_vsz]) |
431 | AC_DEFINE_UNQUOTED(RSS_COMMAND,"$PATH_TO_PS -axwo 'rss comm'",[Verbatim command to execute for ps in check_rss]) | 431 | AC_DEFINE_UNQUOTED(RSS_COMMAND,"$PATH_TO_PS -axwo 'rss comm'",[Verbatim command to execute for ps in check_rss]) |
432 | AC_DEFINE_UNQUOTED(RSS_FORMAT,"%d %s",[Format string for scanning ps output in check_rss]) | 432 | AC_DEFINE_UNQUOTED(RSS_FORMAT,"%d %s",[Format string for scanning ps output in check_rss]) |
433 | echo " ps syntax... $PATH_TO_PS -axwo 'stat uid ppid comm args'" | ||
433 | dnl STAT UCOMM VSZ RSS USER UID PPID COMMAND | 434 | dnl STAT UCOMM VSZ RSS USER UID PPID COMMAND |
434 | elif ps -weo 'stat comm vsz rss user uid ppid args' 2>/dev/null | egrep -i ["^ *S[TAUES]* +[UCOMDNA]+ +[VSIZE]+ +R[S]+ +U[SER]+ +U[ID]+ +P[PID]+ +[RGSCOMDNA]+"] >/dev/null | 435 | elif ps -weo 'stat comm vsz rss user uid ppid args' 2>/dev/null | egrep -i ["^ *S[TAUES]* +[UCOMDNA]+ +[VSIZE]+ +R[S]+ +U[SER]+ +U[ID]+ +P[PID]+ +[RGSCOMDNA]+"] >/dev/null |
435 | then | 436 | then |