route statement in bb-hosts
list Robert Edeker
Hi, I've been trying to use the `route:` statement in bb-hosts and it's either not working, or I'm not understanding it correctly. Here's a sample: 1.2.3.4 foo1 # 1.2.3.5 foo2 # route:foo1 So the ping test fails for foo1 and it goes red. Ping fails for foo2, but the failure is really due to foo1's problem and I thought my route statement would make it turn yellow instead of red.. No luck.. What am I missing? Thank You, -r
list Henrik Størner
▸
On Tue, Mar 01, 2005 at 10:31:42PM -0500, Robert Edeker wrote:
I've been trying to use the `route:` statement in bb-hosts and it's either not working, or I'm not understanding it correctly.
You're right - it's broken. The attached patch should fix it: Apply
with
cd hobbit-4.0-RC4
patch -p0 </tmp/bbnet-route.patch
make
make install
Regards,
Henrik
-------------- next part --------------
--- bbnet/bbtest-net.c 2005/02/22 13:59:20 1.201
+++ bbnet/bbtest-net.c 2005/03/02 21:01:54
@@ -466,10 +466,10 @@
if (p) sscanf(p, "%d:%d:%d", &h->badconn[0], &h->badconn[1], &h->badconn[2]);
p = bbh_custom_item(hwalk, "route:");
- if (p) h->routerdeps = p;
+ if (p) h->routerdeps = p + strlen("route:");
if (routestring) {
p = bbh_custom_item(hwalk, routestring);
- if (p) h->routerdeps = p;
+ if (p) h->routerdeps = p + strlen(routestring);
}
if (bbh_item(hwalk, BBH_FLAG_NOCONN)) h->noconn = 1;
list Robert Edeker
▸
On Wed, 2 Mar 2005 22:07:06 +0100, Henrik Stoerner <user-ce4a2c883f75@xymon.invalid> wrote:
On Tue, Mar 01, 2005 at 10:31:42PM -0500, Robert Edeker wrote:I've been trying to use the `route:` statement in bb-hosts and it's either not working, or I'm not understanding it correctly.You're right - it's broken. The attached patch should fix it: Apply with cd hobbit-4.0-RC4 patch -p0 </tmp/bbnet-route.patch make make install
Confirmed. The patch worked! Thanks, Robert