Xymon Mailing List Archive search

badconn problem

4 messages in this thread

list Eric E *hs Schwimmer · Wed, 6 Apr 2005 12:31:38 -0400 ·
Hi again Henrik; are you tired of hearing from me yet?

Something that I noticed a few days ago but forgot to bring up until
now:
All of the hosts in our bb-hosts file are defined in a similar fashion
to this:

1.1.1.1	hostname # badconn:1:1:2

However, any host that we monitor that fails a single ping test
immediately
goes red.  I went so far as to change them all to "badconn:100:200:300",
with no result.  Any idea whats going on?

Thanks!
-Eric Schwimmer
Network Engineer
UVA HSCS Network Engineering
list Eric E *hs Schwimmer · Thu, 7 Apr 2005 10:03:49 -0400 ·
Don't know if this helps any, but I added the --debug flag to my
bbnet-test command for a single polling period, and got many lines
similar to this in my bb-network.log:

2005-04-06 15:49:54 No test for badtest spec host=foo-host,
test=conn:1:1:2

I found where this error is getting thrown in bbtest-net.c (789);  it
looks like the conn test isnt defined in the swalk linked list.  Its
been about 10 years since I've done any real C coding, but I'll let you
know if I can backtrace it any futher.

-Eric
quoted from Eric E *hs Schwimmer

-----Original Message-----
From: Schwimmer, Eric E *HS [mailto:user-1e1008b069d5@xymon.invalid] 
Sent: Wednesday, April 06, 2005 12:32 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: [hobbit] badconn problem


Hi again Henrik; are you tired of hearing from me yet?

Something that I noticed a few days ago but forgot to bring up until
now:
All of the hosts in our bb-hosts file are defined in a similar fashion
to this:

1.1.1.1	hostname # badconn:1:1:2

However, any host that we monitor that fails a single ping test
immediately goes red.  I went so far as to change them all to
"badconn:100:200:300", with no result.  Any idea whats going on?

Thanks!
-Eric Schwimmer
Network Engineer
UVA HSCS Network Engineering
list Eric E *hs Schwimmer · Thu, 7 Apr 2005 11:29:02 -0400 ·
Got it working;  looks like the sscanf statement in bbtest-net.c that
reads in the badconn values wasn't matching the string being fed to it.
I've attached a patch that fixed it.
quoted from Eric E *hs Schwimmer

-Eric 

-----Original Message-----
From: Schwimmer, Eric E *HS [mailto:user-1e1008b069d5@xymon.invalid] 
Sent: Thursday, April 07, 2005 10:04 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: RE: [hobbit] badconn problem


Don't know if this helps any, but I added the --debug flag to my
bbnet-test command for a single polling period, and got many lines
similar to this in my bb-network.log:

2005-04-06 15:49:54 No test for badtest spec host=foo-host,
test=conn:1:1:2

I found where this error is getting thrown in bbtest-net.c (789);  it
looks like the conn test isnt defined in the swalk linked list.  Its
been about 10 years since I've done any real C coding, but I'll let you
know if I can backtrace it any futher.

-Eric

-----Original Message-----
From: Schwimmer, Eric E *HS [mailto:user-1e1008b069d5@xymon.invalid]
Sent: Wednesday, April 06, 2005 12:32 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: [hobbit] badconn problem


Hi again Henrik; are you tired of hearing from me yet?

Something that I noticed a few days ago but forgot to bring up until
now:
All of the hosts in our bb-hosts file are defined in a similar fashion
to this:

1.1.1.1	hostname # badconn:1:1:2

However, any host that we monitor that fails a single ping test
immediately goes red.  I went so far as to change them all to
"badconn:100:200:300", with no result.  Any idea whats going on?

Thanks!
-Eric Schwimmer
Network Engineer
UVA HSCS Network Engineering
Attachments (1)
list Henrik Størner · Thu, 7 Apr 2005 17:42:12 +0200 ·
quoted from Eric E *hs Schwimmer
On Thu, Apr 07, 2005 at 11:29:02AM -0400, Schwimmer, Eric E *HS wrote:
Got it working;  looks like the sscanf statement in bbtest-net.c that
reads in the badconn values wasn't matching the string being fed to it.
I've attached a patch that fixed it.
Great! I was going to look at this tonight, but it seems I can just 
commit your patch. "Open Source" works :-)

I believe this was overlooked when I did the great conversion of how
the tools parse the bb-hosts file, back in the beta-3 -> beta-4 days
(3 months ago).


Thanks,
Henrik