diff options
author | Ton Voon <tonvoon@users.sourceforge.net> | 2003-02-10 23:08:25 +0000 |
---|---|---|
committer | Ton Voon <tonvoon@users.sourceforge.net> | 2003-02-10 23:08:25 +0000 |
commit | 529f5d421c4d394e8a1385dfa82d186c9e86763f (patch) | |
tree | c4b311074e07ab95e1214950a56ba8fb1493bfaf | |
parent | 671cc66eff84b3559019608e97cb4d7c8edc9de5 (diff) | |
download | monitoring-plugins-529f5d421c4d394e8a1385dfa82d186c9e86763f.tar.gz |
Fixed Tru64 ps command (Bug 669585 - Paula Arnold)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@307 f882894a-f735-0410-b71e-b25c423dba1c
-rw-r--r-- | configure.in | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/configure.in b/configure.in index 9a0a169a..cc9f96cc 100644 --- a/configure.in +++ b/configure.in | |||
@@ -511,7 +511,7 @@ then | |||
511 | AC_DEFINE_UNQUOTED(RSS_COMMAND,"$PATH_TO_PS -axo 'rss comm'",[Verbatim command to execute for ps in check_rss]) | 511 | AC_DEFINE_UNQUOTED(RSS_COMMAND,"$PATH_TO_PS -axo 'rss comm'",[Verbatim command to execute for ps in check_rss]) |
512 | AC_DEFINE_UNQUOTED(RSS_FORMAT,"%d %s",[Format string for scanning ps output in check_rss]) | 512 | AC_DEFINE_UNQUOTED(RSS_FORMAT,"%d %s",[Format string for scanning ps output in check_rss]) |
513 | echo " ps syntax... $PATH_TO_PS -axo 'stat comm vsz rss user ppid args'" | 513 | echo " ps syntax... $PATH_TO_PS -axo 'stat comm vsz rss user ppid args'" |
514 | dnl AIX 4.3.3 - needs verification. | 514 | dnl AIX 4.3.3 - needs verification. This works for Tru64 - needs %*[ +] in PS_FORMAT |
515 | elif [ps -ao '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] | 515 | elif [ps -ao '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] |
516 | then | 516 | then |
517 | AC_DEFINE(USE_PS_VARS,1,[Define if 'ps' will be parsed with sscanf]) | 517 | AC_DEFINE(USE_PS_VARS,1,[Define if 'ps' will be parsed with sscanf]) |
@@ -519,7 +519,7 @@ then | |||
519 | AC_DEFINE_UNQUOTED(PS_RAW_COMMAND,"$PATH_TO_PS -ao 'stat user ppid args'",[Verbatim command to execute for ps in check_netsaint]) | 519 | AC_DEFINE_UNQUOTED(PS_RAW_COMMAND,"$PATH_TO_PS -ao 'stat user ppid args'",[Verbatim command to execute for ps in check_netsaint]) |
520 | EXTRAS="$EXTRAS check_nagios" | 520 | EXTRAS="$EXTRAS check_nagios" |
521 | AC_DEFINE_UNQUOTED(PS_COMMAND,"$PATH_TO_PS -ao 'stat uid ppid comm args'") | 521 | AC_DEFINE_UNQUOTED(PS_COMMAND,"$PATH_TO_PS -ao 'stat uid ppid comm args'") |
522 | AC_DEFINE_UNQUOTED(PS_FORMAT,"%s %d %d %s %n",[Format string for scanning ps output in check_procs]) | 522 | AC_DEFINE_UNQUOTED(PS_FORMAT,"%s%*[ +] %d %d %s %n",[Format string for scanning ps output in check_procs]) |
523 | AC_DEFINE_UNQUOTED(VSZ_COMMAND,"$PATH_TO_PS -ao 'vsz comm'",[]) | 523 | AC_DEFINE_UNQUOTED(VSZ_COMMAND,"$PATH_TO_PS -ao 'vsz comm'",[]) |
524 | AC_DEFINE_UNQUOTED(VSZ_FORMAT,"%d %s",[]) | 524 | AC_DEFINE_UNQUOTED(VSZ_FORMAT,"%d %s",[]) |
525 | AC_DEFINE_UNQUOTED(RSS_COMMAND,"$PATH_TO_PS -ao 'rss comm'",[]) | 525 | AC_DEFINE_UNQUOTED(RSS_COMMAND,"$PATH_TO_PS -ao 'rss comm'",[]) |