[Xymon] xymon hostdata module going rogue

J.C. Cleaver cleaver at terabithia.org
Wed Jun 10 23:57:15 CEST 2015



On Wed, June 10, 2015 10:44 am, Scot Kreienkamp wrote:

>> >
>> > So every time I send a drop message I get a defunct process hanging
>> out.
>> > Bug in Xymon?
>> >
>> > This is on RHEL5, xymon 4.3.21.
>> >
>> > Thanks!
>>
>>
>> Scot,
>>
>>
>> Some background: When doing a full drop on a host, xymond_hostdata (and
>> xymond_history, IIRC) forks to perform the recursive directory removal
>> of
>> history files and whatnot in the background, then exits out. That's why
>> it
>> corresponds to those events.
>>
>>
>> Looks like xymond_hostdata.c is missing a SIGCHLD registration, which
>> is
>> causing the defunct processes to stack up. Strangely, I haven't
>> observed
>> this behavior on RHEL6 at all though, even though we're dropping hosts
>> all
>> the time. Odd.
>>
>>
>> The following patch should fix the issue for you, I believe.
>>
>>
>> Regards,
>>
>> -jc
>> This message is intended only for the individual or entity to which it
>> is
>> addressed.  It may contain privileged, confidential information which
>> is
>> exempt from disclosure under applicable laws.  If you are not the
>> intended
>> recipient, you are strictly prohibited from disseminating or
>> distributing this
>> information (other than to the intended recipient) or copying this
>> information.  If you have received this communication in error, please
>> notify
>> us immediately by e-mail or by telephone at the above number. Thank
>> you.
>
>
>
> Hi JC,
>
> Thanks, but no such luck.  I deleted the entire 4.3.21 source tree and
> expanded it again to make sure I get a pristine source, put the patch in
> the xymond directory, applied the patch with patch -p1.  It applied
> cleanly so I did a configure, make, make install.  I am still getting the
> defunct processes though.  I am not seeing anything in the logs.
>


Oy, my apologies.

That's what I get for typing faster than thinking.
Can you try this patch instead?

-jc


-------------- next part --------------
A non-text attachment was scrubbed...
Name: xymon.hostdata_child_ign.patch
Type: application/octet-stream
Size: 349 bytes
Desc: not available
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20150610/8b425efb/attachment.obj>


More information about the Xymon mailing list