[Nagiosplug-devel] [ nagiosplug-Bugs-1595449 ] check_procs bus error, ... on Solaris 8, 9 & 10

SourceForge.net noreply at sourceforge.net
Mon Nov 13 09:23:37 CET 2006


Bugs item #1595449, was opened at 2006-11-13 09:23
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=1595449&group_id=29880

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Alex Peeters (zxr750)
Assigned to: Nobody/Anonymous (nobody)
Summary: check_procs bus error, ... on Solaris 8, 9 & 10

Initial Comment:
check_procs bus error, segmentation fault or wrong
output on Solaris 8, 9 & 10

Do first the next configure!
----------------------------

./configure --with-ps_command="/usr/bin/ps -eo 's uid
pid ppid vsz rss pcpu etime comm args'"
--with-ps_format='%s %d %d %d %d %d %f %s %s %n'
--with-ps_cols=10
--with-ps_varlist='procstat,&procuid,&procpid,&procppid,&procvsz,&procrss,&procpcpu,procetime,procprog,&pos'
--with-trusted-path=/usr/local/bin:/usr/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin



To solve the bus error and /or segmentation fault on
Solaris 8:
--------------------------------------------------

replace into check_procs.c

if ( cols >= expected_cols ) {
  resultsum = 0;
- asprintf (&procargs, "%s", input_line + pos);
  strip (procargs);

with

if ( cols >= expected_cols ) {
  resultsum = 0;
+ asprintf (&procargs, "%s", input_line);
  strip (procargs);


 
To solve the wrong output on Solaris 8, 9 & 10:
-----------------------------------------------

change into common.h
MAX_INPUT_BUFFER 1024
to
MAX_INPUT_BUFFER 4096



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

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1595449&group_id=29880




More information about the Devel mailing list