[Nagiosplug-devel] [ nagiosplug-Bugs-677803 ] check_procs on Solaris doesn't see zombies
SourceForge.net
noreply at sourceforge.net
Thu Jan 30 19:44:02 CET 2003
Bugs item #677803, was opened at 2003-01-30 22:21
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=677803&group_id=29880
Category: None
Group: Release (specify)
Status: Open
Resolution: None
Priority: 5
Submitted By: Matthew Brown (morven)
Assigned to: Nobody/Anonymous (nobody)
Summary: check_procs on Solaris doesn't see zombies
Initial Comment:
I'm running v1.3.0 beta 2.
On Solaris 8 at least, check_procs does not see
zombies. This is because the sscanf does not see four
parameters:
i.e. in check_procs.c:
if (sscanf (input_buffer, PS_FORMAT, PS_VARLIST) >=
4)
fails. Under Solaris, ps does not return values for
command or args, and thus only three values (state, uid,
ppid) are present.
Suggested fix: fill command and args with empty strings
before the sscanf, and change the 4 above to a 3.
I've done this myself (not necessarily neatly) and it
works.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=677803&group_id=29880
More information about the Devel
mailing list