[Nagiosplug-devel] [ nagiosplug-Bugs-1033149 ] Plugins 1.4.0alpha1, check_procs, TRU64 bug, with bugfix

SourceForge.net noreply at sourceforge.net
Thu Nov 18 15:45:02 CET 2004


Bugs item #1033149, was opened at 2004-09-23 06:33
Message generated for change (Comment added) made by tonvoon
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1033149&group_id=29880

Category: Parsing problem
Group: None
>Status: Pending
Resolution: None
Priority: 5
Submitted By: Alex Peeters (zxr750)
>Assigned to: Ton Voon (tonvoon)
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

----------------------------------------------------------------------

>Comment By: Ton Voon (tonvoon)
Date: 2004-11-18 23:44

Message:
Logged In: YES 
user_id=664364

Alex,

Thanks for the report, but I can't understand it due to the formatting on 
Sourceforge. I think Tru64 support is okay. Can you try against the latest 
snapshot? http://nagiosplug.sf.net/snapshot. If it is still a problem and 
you can get a patch, please attach.

Ton

----------------------------------------------------------------------

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