[Nagiosplug-devel] [ nagiosplug-Bugs-1033149 ] Plugins 1.4.0alpha1, check_procs, TRU64 bug, with bugfix
SourceForge.net
noreply at sourceforge.net
Wed Sep 22 22:34:06 CEST 2004
Bugs item #1033149, was opened at 2004-09-23 07:33
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1033149&group_id=29880
Category: Parsing problem
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Alex Peeters (zxr750)
Assigned to: Nobody/Anonymous (nobody)
Summary: Plugins 1.4.0alpha1, check_procs, TRU64 bug, with bugfix
Initial Comment:
Nagios Plugins 1.4.0alpha1
# uname -a
OSF1 mvm-smals-prod.be V5.1 2650 alpha
TRU64 work with the next settings
config.guess
dnl Tru64 - needs %*[ +] in PS_FORMAT
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
then
ac_cv_ps_varlist="[procstat,&procuid,&procppid,&procpc
pu,procprog,&pos]"
ac_cv_ps_command="$PATH_TO_PS -eo 'stat uid
ppid pcpu comm args'"
ac_cv_ps_format=["%s%*[ +] %d %d %f %s %n"]
ac_cv_ps_cols=6
AC_MSG_RESULT([$ac_cv_ps_command])
config.h
/* Number of columns in ps command */
#define PS_COLS 6
/* Verbatim command to execute for ps in check_procs
*/
#define PS_COMMAND "/sbin/ps -eo 'stat uid ppid pcpu
comm args'"
/* Format string for scanning ps output in check_procs
*/
#define PS_FORMAT "%s%*[ +] %d %d %f %s %n"
/* Variable list for sscanf of 'ps' output */
#define PS_VARLIST
procstat,&procuid,&procppid,&procpcpu,procprog,&pos
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1033149&group_id=29880
More information about the Devel
mailing list