Xymon Mailing List Archive search

Program crashed - MY FAULT

6 messages in this thread

list Michael Lowery · Thu, 17 Feb 2005 10:24:25 -0600 ·
Henrik,
At some point just before I patched the file, I had also added the
"apache" key word to a host in bb-hosts.  After removing it and
restarting Hobbit, everything returned to normal. 

Sorry for blaming that on the patch.  I will try to re-patch it and let
you know if the patch works, as it probably does.  

Thank you for your help!
Michael Lowery

-----Original Message-----
From: Henrik Stoerner [mailto:user-ce4a2c883f75@xymon.invalid] 
Sent: Thursday, February 17, 2005 2:07 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] Program crashed - Fatal Signal Caught

On Thu, Feb 17, 2005 at 07:47:30AM +0100, Henrik Stoerner wrote:
On Wed, Feb 16, 2005 at 09:37:47PM -0600, Lowery, Michael wrote:
Ok, I re-downloaded RC2, un-tarred, re-configured, did make and make
install, I still get the "program crashed fatal signal caught" on
the
bbtest page and all network tests are still purple.

Any idea what I need to do to get back to the working hobbit I had
before I tried to apply the patch?
bbtest-net shouldn't crash like that, and it cannot possibly have
anything to do with the patch you installed. (Especially not after you
re-downloaded and re-built it all).

Send me the ~/server/bin/bbtest-net binary, and the newest core-file
from either ~/server/ or ~/server/tmp/
I got a report from another user that this can happen if you define a
test only as "http", e.g.

  10.0.0.1   www.foo.com # http

So I'd like to have a look at your bb-hosts file also, if that is
possible.


Regards,
Henrik
list Henrik Størner · Thu, 17 Feb 2005 17:33:02 +0100 ·
Hi Michael,
▸ quoted from Michael Lowery

On Thu, Feb 17, 2005 at 10:24:25AM -0600, Lowery, Michael wrote:
Henrik,
At some point just before I patched the file, I had also added the
"apache" key word to a host in bb-hosts.  After removing it and
restarting Hobbit, everything returned to normal. 
I thought the "apache" crashes were fixed in RC2. If your bbtest-net
is RC2 - "bbtest-net --version" - then I'm still curious to see what
caused this to crash.  So a copy of the bbtest-net binary, the core
dump and your bb-hosts file is still interesting.


Regards,
Henrik
list Michael Lowery · Thu, 17 Feb 2005 10:56:11 -0600 ·
I'm unable to send the files, they are too big for the mail server to
accept.  I've tried sending them separately and separately with maximum
compression.  Do you have another method?
▸ quoted from Henrik Størner

Michael Lowery


-----Original Message-----
From: Henrik Stoerner [mailto:user-ce4a2c883f75@xymon.invalid] 
Sent: Thursday, February 17, 2005 10:33 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] Program crashed - MY FAULT

Hi Michael,

On Thu, Feb 17, 2005 at 10:24:25AM -0600, Lowery, Michael wrote:
Henrik,
At some point just before I patched the file, I had also added the
"apache" key word to a host in bb-hosts.  After removing it and
restarting Hobbit, everything returned to normal. 
I thought the "apache" crashes were fixed in RC2. If your bbtest-net
is RC2 - "bbtest-net --version" - then I'm still curious to see what
caused this to crash.  So a copy of the bbtest-net binary, the core
dump and your bb-hosts file is still interesting.


Regards,
Henrik
list Henrik Størner · Thu, 17 Feb 2005 18:36:58 +0100 ·
▸ quoted from Michael Lowery
Hi Michael,

On Thu, Feb 17, 2005 at 10:24:25AM -0600, Lowery, Michael wrote:
Henrik,
At some point just before I patched the file, I had also added the
"apache" key word to a host in bb-hosts.  After removing it and
restarting Hobbit, everything returned to normal. 
OK, you had an error in the syntax for the check. It was 
  "cont=apache;http://199.227.199.22/server-status?auto)"
but when you use a "cont" setting - instead of just the "apache"
keyword - you must have some data for the content-matching. And
the parenthesis at the end looks like a typo :-)

So it should have been
  "cont=apache;http://199.227.199.22/server-status?auto;.";

Or just
  "apache=http://199.227.199.22/server-status?auto";
which internally in bbtest-net becomes the same thing.


I'll go back and see why it crashed - it shouldn't...


Henrik
list Michael Lowery · Thu, 17 Feb 2005 11:46:52 -0600 ·
If it helps any, I didn't have anything after the "apache" key word, no
parenthesis, nothing...

It looked something like:

xxx.xxx.199.22 gandalf.domain.com # # BBPAGER BBNET BBDISPLAY
http://host1.domain.com http://host2.domain.com http://host3.domain.com
http://host4.domain.com http://host5.domain.com pop3 smtp ssh dns ftp
mrtg mailq trap apache

all on one line, of course.
▸ quoted from Henrik Størner

Michael Lowery
-----Original Message-----
From: Henrik Stoerner [mailto:user-ce4a2c883f75@xymon.invalid] 
Sent: Thursday, February 17, 2005 11:37 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] Program crashed - MY FAULT

Hi Michael,

On Thu, Feb 17, 2005 at 10:24:25AM -0600, Lowery, Michael wrote:
Henrik,
At some point just before I patched the file, I had also added the
"apache" key word to a host in bb-hosts.  After removing it and
restarting Hobbit, everything returned to normal. 
OK, you had an error in the syntax for the check. It was 
  "cont=apache;http://199.227.199.22/server-status?auto)"
but when you use a "cont" setting - instead of just the "apache"
keyword - you must have some data for the content-matching. And
the parenthesis at the end looks like a typo :-)

So it should have been
  "cont=apache;http://199.227.199.22/server-status?auto;.";

Or just
  "apache=http://199.227.199.22/server-status?auto";
which internally in bbtest-net becomes the same thing.


I'll go back and see why it crashed - it shouldn't...


Henrik
list Henrik Størner · Mon, 21 Feb 2005 15:30:15 +0100 ·
[bbtest-net crashes]
▸ quoted from Michael Lowery

On Thu, Feb 17, 2005 at 11:46:52AM -0600, Lowery, Michael wrote:
If it helps any, I didn't have anything after the "apache" key word, no
parenthesis, nothing...
OK, looking at the problem after a couple of days usually helps.

bbtest-net was mis-calculating the size needed for a buffer to hold
the apache-test, and coming up a few bytes short. This probably
explains a lot of the weird crashes that the apache test has
triggered.


Henrik