On Thursday, 21 October 2010 17:19:08 Tony Larco wrote:
I, and several others, have not been able to make DEPENDS work. I
googled and searched the mailing list, and have found no one who has
been able to make it work as far as I know. I would love to use the
feature to reduce notifications when a firewall or ISP goes down.
I provided this example last week to another similar statement:
This works for me:
a.b.c.d dnscache1.xxxx # dns=a:www.google.com testip
depends=(dns:UPSTREAMLINK/conn)
(where UPSTREAMLINK is the name of a bb-hosts entry that has a conn check
for our next hop(s)).
If UPSTERAMLINK.conn is red, and the dns test fails, it goed clear instead
of red (well, it can be red for a brief period, so one should alert on red
with DURATION greater than the time your bbtest-net cycle actually takes -
in my case the time taken when DNS is unavailable)
If you have a case where it is not working according to the documentation,
please discuss and file a bug if necessary.
Note though that depends only works for tests run by bbtest-net, AFAIK you
can't have a network check depending on a ports (client data) check, or
have one host checked by one bbtest-net instance depend on a network test
checked by another bbtest-net instance. This is covered in the bb-hosts(5)
coverage for the 'depends' tag.
So, it if isn't working for you, please provide your configuration, and/or
file a bug.
Regards,
Buchan