Xymon Mailing List Archive search

how to test depends tag

6 messages in this thread

list Asif Iqbal · Tue, 14 Nov 2006 15:11:44 -0500 ·
Is there a way to quick test the depends tag besides changing the
host's ip to a fake one that the service depends on?

In other words if depends=(testA:host1/test1) I can change the host1's
ip in bb-hosts to test if depends working. Is there any other less
crude way to test it?

Thanks

-- 
Asif Iqbal
PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
list Asif Iqbal · Tue, 14 Nov 2006 15:55:43 -0500 ·
quoted from Asif Iqbal
On 11/14/06, Asif Iqbal <user-6f4b51ac2a40@xymon.invalid> wrote:
Is there a way to quick test the depends tag besides changing the
host's ip to a fake one that the service depends on?

In other words if depends=(testA:host1/test1) I can change the host1's
ip in bb-hosts to test if depends working. Is there any other less
crude way to test it?
Hmm I changed the ip of host1 but still see hostA conn green

1.2.3.4 hostA.domain.net # conn depends=(conn:host1.domain.net/conn)
2.3.4.5 host1.domain.net # testip

I chaged the ip 2.3.4.5 to a non exist 1.1.1.1 ip and host1 conn went
red. But hostA still showing green

(all ips are masked here)
quoted from Asif Iqbal

Thanks

--
Asif Iqbal
PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
-- 
Asif Iqbal
PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
list Asif Iqbal · Tue, 14 Nov 2006 16:14:15 -0500 ·
quoted from Asif Iqbal
On 11/14/06, Asif Iqbal <user-6f4b51ac2a40@xymon.invalid> wrote:
On 11/14/06, Asif Iqbal <user-6f4b51ac2a40@xymon.invalid> wrote:
Is there a way to quick test the depends tag besides changing the
host's ip to a fake one that the service depends on?

In other words if depends=(testA:host1/test1) I can change the host1's
ip in bb-hosts to test if depends working. Is there any other less
crude way to test it?
Hmm I changed the ip of host1 but still see hostA conn green

1.2.3.4 hostA.domain.net # conn depends=(conn:host1.domain.net/conn)
2.3.4.5 host1.domain.net # testip

I chaged the ip 2.3.4.5 to a non exist 1.1.1.1 ip and host1 conn went
red. But hostA still showing green
I missed this part in the man bb-hosts

"Since all tests are actually run before  the  dependencies  are  evaluated,.."

So I change the ip of hostA to a non exist ip 2.2.2.2 and added testip
and I see hostA conn turned into red instead of clear now.

2.2.2.2 hostA.domain.net # conn depends=(conn:host1.domain.net/conn)
1.1.1.1 host1.domain.net # testip

both 2.2.2.2 and 1.1.1.1 are non exist and based on the depends tag
host1.conn goes red and hostA.conn should go clear but it actuallity
it tunr into red.

Please advise

Thanks
quoted from Asif Iqbal
(all ips are masked here)

Thanks

--
Asif Iqbal
PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
--
Asif Iqbal
PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
-- 
Asif Iqbal
PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
list Rich Smrcina · Tue, 14 Nov 2006 15:17:44 -0600 ·
Perhaps depends is broken (or we're all using it incorrectly, Henrik can 
decide).  There was a thread here last week about using the route keyword.
quoted from Asif Iqbal

Asif Iqbal wrote:
On 11/14/06, Asif Iqbal <user-6f4b51ac2a40@xymon.invalid> wrote:
On 11/14/06, Asif Iqbal <user-6f4b51ac2a40@xymon.invalid> wrote:
Is there a way to quick test the depends tag besides changing the
host's ip to a fake one that the service depends on?

In other words if depends=(testA:host1/test1) I can change the host1's
ip in bb-hosts to test if depends working. Is there any other less
crude way to test it?
Hmm I changed the ip of host1 but still see hostA conn green

1.2.3.4 hostA.domain.net # conn depends=(conn:host1.domain.net/conn)
2.3.4.5 host1.domain.net # testip

I chaged the ip 2.3.4.5 to a non exist 1.1.1.1 ip and host1 conn went
red. But hostA still showing green
I missed this part in the man bb-hosts

"Since all tests are actually run before  the  dependencies  are  
evaluated,.."

So I change the ip of hostA to a non exist ip 2.2.2.2 and added testip
and I see hostA conn turned into red instead of clear now.

2.2.2.2 hostA.domain.net # conn depends=(conn:host1.domain.net/conn)
1.1.1.1 host1.domain.net # testip

both 2.2.2.2 and 1.1.1.1 are non exist and based on the depends tag
host1.conn goes red and hostA.conn should go clear but it actuallity
it tunr into red.

Please advise

Thanks
(all ips are masked here)

Thanks

--
Asif Iqbal
PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
-- 
Asif Iqbal
PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
-- 

Rich Smrcina
VM Assist, Inc.
Phone: XXX-XXX-XXXX
Ans Service:  XXX-XXX-XXXX
user-61add9955ef9@xymon.invalid

Catch the WAVV!  http://www.wavv.org
WAVV 2007 - Green Bay, WI - May 18-22, 2007
list Asif Iqbal · Tue, 14 Nov 2006 17:49:08 -0500 ·
quoted from Rich Smrcina
On 11/14/06, Rich Smrcina <user-cf452ff334e0@xymon.invalid> wrote:
Perhaps depends is broken (or we're all using it incorrectly, Henrik can
decide).  There was a thread here last week about using the route keyword.
I found it. Also according to the bb-hosts man page

"route:router1,router2,....
          This tag is taken from the "fping.sh"  script,  and  is
          used by bbtest-net when run with the "--ping" option to
          enable ping testing."

I will give this a try

Thanks
quoted from Asif Iqbal

Asif Iqbal wrote:
On 11/14/06, Asif Iqbal <user-6f4b51ac2a40@xymon.invalid> wrote:
On 11/14/06, Asif Iqbal <user-6f4b51ac2a40@xymon.invalid> wrote:
Is there a way to quick test the depends tag besides changing the
host's ip to a fake one that the service depends on?

In other words if depends=(testA:host1/test1) I can change the host1's
ip in bb-hosts to test if depends working. Is there any other less
crude way to test it?
Hmm I changed the ip of host1 but still see hostA conn green

1.2.3.4 hostA.domain.net # conn depends=(conn:host1.domain.net/conn)
2.3.4.5 host1.domain.net # testip

I chaged the ip 2.3.4.5 to a non exist 1.1.1.1 ip and host1 conn went
red. But hostA still showing green
I missed this part in the man bb-hosts

"Since all tests are actually run before  the  dependencies  are
evaluated,.."

So I change the ip of hostA to a non exist ip 2.2.2.2 and added testip
and I see hostA conn turned into red instead of clear now.

2.2.2.2 hostA.domain.net # conn depends=(conn:host1.domain.net/conn)
1.1.1.1 host1.domain.net # testip

both 2.2.2.2 and 1.1.1.1 are non exist and based on the depends tag
host1.conn goes red and hostA.conn should go clear but it actuallity
it tunr into red.

Please advise

Thanks
(all ips are masked here)

Thanks

--
Asif Iqbal
PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
--
Asif Iqbal
PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
--
Rich Smrcina
VM Assist, Inc.
Phone: XXX-XXX-XXXX
Ans Service:  XXX-XXX-XXXX
user-61add9955ef9@xymon.invalid

Catch the WAVV!  http://www.wavv.org
WAVV 2007 - Green Bay, WI - May 18-22, 2007

-- 
Asif Iqbal
PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
list Charles Jones · Wed, 15 Nov 2006 10:52:03 -0700 ·
quoted from Asif Iqbal
Asif Iqbal wrote:
On 11/14/06, Rich Smrcina <user-cf452ff334e0@xymon.invalid> wrote:
Perhaps depends is broken (or we're all using it incorrectly, Henrik can
decide).  There was a thread here last week about using the route keyword.
I found it. Also according to the bb-hosts man page

"route:router1,router2,....
         This tag is taken from the "fping.sh"  script,  and  is
         used by bbtest-net when run with the "--ping" option to
         enable ping testing."
The route option seems like it would work well when a service on hostB depends on hostA being "up", but it does no good in the case of a service on hostB depending on a service on hostA (for example, you may have an http on hostB that depends on a proxy http on another host)., which is what the "depends" tag is supposed to be for.