Xymon Mailing List Archive search

Depends tag working configuration

13 messages in this thread

list Mario Andre · Mon, 28 Mar 2016 15:40:56 -0300 ·
Hi All,


I´m trying to make the "depends=" hosts.cfg tag to work on Xymon version
4.3.24.
Reading some old threads here, it became not clear to me if this
configuration tag currently works or not.
Has someone here have the depends tag working?
I know I can use the route tag, but my intention it´s to use another
network protocol and not ICMP for the dependency.


Thanks & Regards,
Mario
list Scot Kreienkamp · Mon, 28 Mar 2016 18:43:20 +0000 ·
The depends tag works, but only for tests done by the core network tester itself.  It will not work on any external tests.


Scot Kreienkamp  | Senior Systems Engineer | La-Z-Boy Corporate
One La-Z-Boy Drive | Monroe, Michigan 48162 | Office: XXX-XXX-XXXX | | Mobile: XXXXXXXXXX | Email: user-9678697f1438@xymon.invalid
quoted from Mario Andre
From: Xymon [mailto:xymon-bounces at xymon.com] On Behalf Of Mario
Sent: Monday, March 28, 2016 2:41 PM
To: xymon at xymon.com
Subject: [Xymon] Depends tag working configuration

Hi All,

I´m trying to make the "depends=" hosts.cfg tag to work on Xymon version 4.3.24.
Reading some old threads here, it became not clear to me if this configuration tag currently works or not.
Has someone here have the depends tag working?
I know I can use the route tag, but my intention it´s to use another network protocol and not ICMP for the dependency.


Thanks & Regards,
Mario


This message is intended only for the individual or entity to which it is addressed.  It may contain privileged, confidential information which is exempt from disclosure under applicable laws.  If you are not the intended recipient, you are strictly prohibited from disseminating or distributing this information (other than to the intended recipient) or copying this information.  If you have received this communication in error, please notify us immediately by e-mail or by telephone at the above number. Thank you.
list Mario Andre · Mon, 28 Mar 2016 16:03:38 -0300 ·
Hi,

Thanks, Scot.
Yes, that´s what I´m doing here.
The test configuration was done with only core network tests and that are
directly running on the core server and it´s not working.
Do you have this configuration working on your server? Could you share it?


Thanks & Regards,
Mario


On Mon, Mar 28, 2016 at 3:43 PM, Scot Kreienkamp <
quoted from Scot Kreienkamp
user-9678697f1438@xymon.invalid> wrote:
The depends tag works, but only for tests done by the core network tester
itself.  It will not work on any external tests.


*Scot Kreienkamp  | Senior Systems Engineer | La-Z-Boy Corporate*
One La-Z-Boy Drive | Monroe, Michigan 48162 | Office: XXX-XXX-XXXX | |
Mobile: XXXXXXXXXX | Email: user-9678697f1438@xymon.invalid

*From:* Xymon [mailto:xymon-bounces at xymon.com] *On Behalf Of *Mario
*Sent:* Monday, March 28, 2016 2:41 PM
*To:* xymon at xymon.com
*Subject:* [Xymon] Depends tag working configuration


Hi All,

I´m trying to make the "depends=" hosts.cfg tag to work on Xymon version
4.3.24.

Reading some old threads here, it became not clear to me if this
configuration tag currently works or not.

Has someone here have the depends tag working?

I know I can use the route tag, but my intention it´s to use another
network protocol and not ICMP for the dependency.


Thanks & Regards,

Mario


This message is intended only for the individual or entity to which it is
addressed.  It may contain privileged, confidential information which is
exempt from disclosure under applicable laws.  If you are not the intended
recipient, you are strictly prohibited from disseminating or distributing
this information (other than to the intended recipient) or copying this
information.  If you have received this communication in error, please
notify us immediately by e-mail or by telephone at the above number.
Thank you.
list Scot Kreienkamp · Mon, 28 Mar 2016 19:45:47 +0000 ·
Sure.  Here is a working config:


0.0.0.0    6030 # http:// 6030:8090/Main/ depends=(http:5030/http)
0.0.0.0  5030 # http://5030

So I’ve defined an HTTP test on 5030 and 6030, and set the HTTP test result on 6030 to depend on the HTTP test on 5030.  In my case, 5030 is the DB server and serves up a web page if the database is up.  If the database is down there’s no way the HTTP test will succeed on 6030, so I don’t really care if 6030 is alerting me in that case.

If you have any more trouble it would be helpful to see your configuration.  I saw you mention ICMP earlier… keep in mind that depends sets a test dependent on another test, so if you want ICMP you have to set it to depend on the conn test.  You can’t use ICMP in the depends.  It has to be a column name.
signature


Scot Kreienkamp  | Senior Systems Engineer | La-Z-Boy Corporate
One La-Z-Boy Drive | Monroe, Michigan 48162 | Office: XXX-XXX-XXXX | | Mobile: XXXXXXXXXX | Email: user-9678697f1438@xymon.invalid

quoted from Mario Andre
From: Xymon [mailto:xymon-bounces at xymon.com] On Behalf Of Mario
Sent: Monday, March 28, 2016 3:04 PM
To: xymon at xymon.com
Subject: Re: [Xymon] Depends tag working configuration

Hi,
Thanks, Scot.
Yes, that´s what I´m doing here.
The test configuration was done with only core network tests and that are directly running on the core server and it´s not working.
Do you have this configuration working on your server? Could you share it?

Thanks & Regards,
Mario


On Mon, Mar 28, 2016 at 3:43 PM, Scot Kreienkamp <user-9678697f1438@xymon.invalid<mailto:user-9678697f1438@xymon.invalid>> wrote:
The depends tag works, but only for tests done by the core network tester itself.  It will not work on any external tests.
From: Xymon [mailto:xymon-bounces at xymon.com<mailto:xymon-bounces at xymon.com>] On Behalf Of Mario
Sent: Monday, March 28, 2016 2:41 PM

To:xymon at xymon.com<mailto:xymon at xymon.com>
quoted from Mario Andre
Subject: [Xymon] Depends tag working configuration

Hi All,
I´m trying to make the "depends=" hosts.cfg tag to work on Xymon version 4.3.24.
Reading some old threads here, it became not clear to me if this configuration tag currently works or not.
Has someone here have the depends tag working?
I know I can use the route tag, but my intention it´s to use another network protocol and not ICMP for the dependency.


Thanks & Regards,
Mario


This message is intended only for the individual or entity to which it is addressed.  It may contain privileged, confidential information which is exempt from disclosure under applicable laws.  If you are not the intended recipient, you are strictly prohibited from disseminating or distributing this information (other than to the intended recipient) or copying this information.  If you have received this communication in error, please notify us immediately by e-mail or by telephone at the above number. Thank you.
list Mario Andre · Mon, 4 Apr 2016 16:08:31 -0300 ·
Hi Scot,

Thanks for your help.
I´ve used your example and the dependency worked using the http test.
So then, I´ve changed the depends tag configuration to use the conn test
and this didn't work.

First test (worked as expected!):
- Stopping apache on "6030" the result was a clear status on 6030/http as
5030/http was up.

0.0.0.0  6030 # http://paq depends=(http:5030/http) noconn
0.0.0.0  5030 # http://fara  noconn

Second test (connectivity configuration on depends): This test didn´t work.
- I´ve changed the IP from 6030 to a non pingable IP and let an
available/online IP on "5030" and the depends tag didn´t work.

10.0.0.139  6030 # http://paq depends=(conn:5030/conn) testip
10.0.0.137  5030 # http://fara  testip


Do you have a dependency configuration based on connectivity test working
on your system?


Thanks & Regards,
Mario


On Mon, Mar 28, 2016 at 4:45 PM, Scot Kreienkamp <
quoted from Scot Kreienkamp
user-9678697f1438@xymon.invalid> wrote:
Sure.  Here is a working config:


0.0.0.0    6030 # http:// 6030:8090/Main/ depends=(http:5030/http)

0.0.0.0  5030 # http://5030


So I’ve defined an HTTP test on 5030 and 6030, and set the HTTP test
result on 6030 to depend on the HTTP test on 5030.  In my case, 5030 is the
DB server and serves up a web page if the database is up.  If the database
is down there’s no way the HTTP test will succeed on 6030, so I don’t
really care if 6030 is alerting me in that case.


If you have any more trouble it would be helpful to see your
configuration.  I saw you mention ICMP earlier… keep in mind that depends
sets a test dependent on another test, so if you want ICMP you have to set
it to depend on the conn test.  You can’t use ICMP in the depends.  It has
to be a column name.


*Scot Kreienkamp  | Senior Systems Engineer | La-Z-Boy Corporate*
One La-Z-Boy Drive | Monroe, Michigan 48162 | Office: XXX-XXX-XXXX | |
Mobile: XXXXXXXXXX | Email: user-9678697f1438@xymon.invalid

*From:* Xymon [mailto:xymon-bounces at xymon.com] *On Behalf Of *Mario
*Sent:* Monday, March 28, 2016 3:04 PM
*To:* xymon at xymon.com
*Subject:* Re: [Xymon] Depends tag working configuration


Hi,

Thanks, Scot.

Yes, that´s what I´m doing here.
The test configuration was done with only core network tests and that are
directly running on the core server and it´s not working.

Do you have this configuration working on your server? Could you share it?

Thanks & Regards,

Mario


On Mon, Mar 28, 2016 at 3:43 PM, Scot Kreienkamp <
user-9678697f1438@xymon.invalid> wrote:

The depends tag works, but only for tests done by the core network tester
itself.  It will not work on any external tests.

*From:* Xymon [mailto:xymon-bounces at xymon.com] *On Behalf Of *Mario
*Sent:* Monday, March 28, 2016 2:41 PM
*To:*xymon at xymon.com
*Subject:* [Xymon] Depends tag working configuration


Hi All,

I´m trying to make the "depends=" hosts.cfg tag to work on Xymon version
4.3.24.

Reading some old threads here, it became not clear to me if this
configuration tag currently works or not.

Has someone here have the depends tag working?

I know I can use the route tag, but my intention it´s to use another
network protocol and not ICMP for the dependency.


Thanks & Regards,

Mario


This message is intended only for the individual or entity to which it is
addressed.  It may contain privileged, confidential information which is
exempt from disclosure under applicable laws.  If you are not the intended
recipient, you are strictly prohibited from disseminating or distributing
this information (other than to the intended recipient) or copying this
information.  If you have received this communication in error, please
notify us immediately by e-mail or by telephone at the above number. Thank
you.

list Scot Kreienkamp · Mon, 4 Apr 2016 19:15:32 +0000 ·
Mario,

If I’m understanding your email correctly, you changed the IP on 6030 to a non-pingable address, correct?  If so, then you are performing your test incorrectly.  The tag you posted means that 6030 depends on 5030, but to test it you changed the IP on 6030 only.  To test it with the tag you posted, 5030 and 6030 must BOTH be non-pingable.  In that scenario the conn test on 6030 should change to clear.

Also, if you only want a connectivity test then you may be looking at the wrong tag.  Look up the route tag that goes in hosts.cfg and see if that will give you what you want.
signature


Scot Kreienkamp  | Senior Systems Engineer | La-Z-Boy Corporate
One La-Z-Boy Drive | Monroe, Michigan 48162 | Office: XXX-XXX-XXXX | | Mobile: XXXXXXXXXX | Email: user-9678697f1438@xymon.invalid

quoted from Mario Andre
From: Mario [mailto:user-82c7780661a4@xymon.invalid]
Sent: Monday, April 04, 2016 3:09 PM
To: Scot Kreienkamp <user-9678697f1438@xymon.invalid>; xymon at xymon.com
Subject: Re: [Xymon] Depends tag working configuration

Hi Scot,
Thanks for your help.
I´ve used your example and the dependency worked using the http test.
So then, I´ve changed the depends tag configuration to use the conn test and this didn't work.
First test (worked as expected!):
- Stopping apache on "6030" the result was a clear status on 6030/http as 5030/http was up.

0.0.0.0  6030 # http://paq depends=(http:5030/http) noconn
0.0.0.0  5030 # http://fara  noconn

Second test (connectivity configuration on depends): This test didn´t work.
- I´ve changed the IP from 6030 to a non pingable IP and let an available/online IP on "5030" and the depends tag didn´t work.
10.0.0.139  6030 # http://paq depends=(conn:5030/conn) testip
10.0.0.137  5030 # http://fara  testip

Do you have a dependency configuration based on connectivity test working on your system?


Thanks & Regards,
Mario


On Mon, Mar 28, 2016 at 4:45 PM, Scot Kreienkamp <user-9678697f1438@xymon.invalid<mailto:user-9678697f1438@xymon.invalid>> wrote:
Sure.  Here is a working config:


0.0.0.0    6030 # http:// 6030:8090/Main/ depends=(http:5030/http)
0.0.0.0  5030 # http://5030

So I’ve defined an HTTP test on 5030 and 6030, and set the HTTP test result on 6030 to depend on the HTTP test on 5030.  In my case, 5030 is the DB server and serves up a web page if the database is up.  If the database is down there’s no way the HTTP test will succeed on 6030, so I don’t really care if 6030 is alerting me in that case.

If you have any more trouble it would be helpful to see your configuration.  I saw you mention ICMP earlier… keep in mind that depends sets a test dependent on another test, so if you want ICMP you have to set it to depend on the conn test.  You can’t use ICMP in the depends.  It has to be a column name.
From: Xymon [mailto:xymon-bounces at xymon.com<mailto:xymon-bounces at xymon.com>] On Behalf Of Mario
Sent: Monday, March 28, 2016 3:04 PM
To:xymon at xymon.com<mailto:xymon at xymon.com>
Subject: Re: [Xymon] Depends tag working configuration

Hi,
Thanks, Scot.
Yes, that´s what I´m doing here.
The test configuration was done with only core network tests and that are directly running on the core server and it´s not working.
Do you have this configuration working on your server? Could you share it?
Thanks & Regards,
Mario


On Mon, Mar 28, 2016 at 3:43 PM, Scot Kreienkamp <user-9678697f1438@xymon.invalid<mailto:user-9678697f1438@xymon.invalid>> wrote:
The depends tag works, but only for tests done by the core network tester itself.  It will not work on any external tests.
From: Xymon [mailto:xymon-bounces at xymon.com<mailto:xymon-bounces at xymon.com>] On Behalf Of Mario
Sent: Monday, March 28, 2016 2:41 PM
To:xymon at xymon.com<mailto:xymon at xymon.com>
Subject: [Xymon] Depends tag working configuration

Hi All,
I´m trying to make the "depends=" hosts.cfg tag to work on Xymon version 4.3.24.
Reading some old threads here, it became not clear to me if this configuration tag currently works or not.
Has someone here have the depends tag working?
I know I can use the route tag, but my intention it´s to use another network protocol and not ICMP for the dependency.


Thanks & Regards,
Mario


This message is intended only for the individual or entity to which it is addressed.  It may contain privileged, confidential information which is exempt from disclosure under applicable laws.  If you are not the intended recipient, you are strictly prohibited from disseminating or distributing this information (other than to the intended recipient) or copying this information.  If you have received this communication in error, please notify us immediately by e-mail or by telephone at the above number. Thank you.
list Mario Andre · Mon, 4 Apr 2016 16:44:52 -0300 ·
Hello Scot,

Yes, I know the route tag and I already use it here for the upstream cases.
But my necessity here is to have a dependency between some networks tests,
for example, conn/ssh, conn/smtp, conn/http.

In my example, when the conn test was failing on 6030 and as the conn test
was ok/up on 5030 then the correct status for 6030/conn should be clear and
not red, right?

10.0.0.139  6030 # http://paq depends=(conn:5030/conn) testip
10.0.0.137  5030 # http://fara  testip

I´ve made some tests and it seems that the depends tag do not works with
any conn configuration.
Does not matter the "position" on the tag, depends=(conn:5030/http),
depends=(http:5030/conn) or depends=(conn:5030/conn), any of this works.

I´ve read some old emails on the list with the same question on "depends &
conn" but without a solution.


Thanks & regards,
Mario


On Mon, Apr 4, 2016 at 4:15 PM, Scot Kreienkamp <
quoted from Scot Kreienkamp
user-9678697f1438@xymon.invalid> wrote:
Mario,


If I’m understanding your email correctly, you changed the IP on 6030 to a
non-pingable address, correct?  If so, then you are performing your test
incorrectly.  The tag you posted means that 6030 depends on 5030, but to
test it you changed the IP on 6030 only.  To test it with the tag you
posted, 5030 and 6030 must BOTH be non-pingable.  In that scenario the conn
test on 6030 should change to clear.


Also, if you only want a connectivity test then you may be looking at the
wrong tag.  Look up the route tag that goes in hosts.cfg and see if that
will give you what you want.


*Scot Kreienkamp  | Senior Systems Engineer | La-Z-Boy Corporate*
One La-Z-Boy Drive | Monroe, Michigan 48162 | Office: XXX-XXX-XXXX | |
Mobile: XXXXXXXXXX | Email: user-9678697f1438@xymon.invalid

*From:* Mario [mailto:user-82c7780661a4@xymon.invalid]
*Sent:* Monday, April 04, 2016 3:09 PM
*To:* Scot Kreienkamp <user-9678697f1438@xymon.invalid>; xymon at xymon.com
*Subject:* Re: [Xymon] Depends tag working configuration


Hi Scot,

Thanks for your help.
I´ve used your example and the dependency worked using the http test.

So then, I´ve changed the depends tag configuration to use the conn test
and this didn't work.

First test (worked as expected!):
- Stopping apache on "6030" the result was a clear status on 6030/http as
5030/http was up.

0.0.0.0  6030 # http://paq depends=(http:5030/http) noconn
0.0.0.0  5030 # http://fara  noconn


Second test (connectivity configuration on depends): This test didn´t
work.
- I´ve changed the IP from 6030 to a non pingable IP and let an
available/online IP on "5030" and the depends tag didn´t work.

10.0.0.139  6030 # http://paq depends=(conn:5030/conn) testip
10.0.0.137  5030 # http://fara  testip

Do you have a dependency configuration based on connectivity test working
on your system?


Thanks & Regards,

Mario


On Mon, Mar 28, 2016 at 4:45 PM, Scot Kreienkamp <
user-9678697f1438@xymon.invalid> wrote:

Sure.  Here is a working config:


0.0.0.0    6030 # http:// 6030:8090/Main/ depends=(http:5030/http)

0.0.0.0  5030 # http://5030


So I’ve defined an HTTP test on 5030 and 6030, and set the HTTP test
result on 6030 to depend on the HTTP test on 5030.  In my case, 5030 is the
DB server and serves up a web page if the database is up.  If the database
is down there’s no way the HTTP test will succeed on 6030, so I don’t
really care if 6030 is alerting me in that case.


If you have any more trouble it would be helpful to see your
configuration.  I saw you mention ICMP earlier… keep in mind that depends
sets a test dependent on another test, so if you want ICMP you have to set
it to depend on the conn test.  You can’t use ICMP in the depends.  It has
to be a column name.

*From:* Xymon [mailto:xymon-bounces at xymon.com] *On Behalf Of *Mario

*Sent:* Monday, March 28, 2016 3:04 PM
*To:*xymon at xymon.com
*Subject:* Re: [Xymon] Depends tag working configuration


Hi,

Thanks, Scot.

Yes, that´s what I´m doing here.
The test configuration was done with only core network tests and that are
directly running on the core server and it´s not working.

Do you have this configuration working on your server? Could you share it?

Thanks & Regards,

Mario


On Mon, Mar 28, 2016 at 3:43 PM, Scot Kreienkamp <
user-9678697f1438@xymon.invalid> wrote:

The depends tag works, but only for tests done by the core network tester
itself.  It will not work on any external tests.

*From:* Xymon [mailto:xymon-bounces at xymon.com] *On Behalf Of *Mario
*Sent:* Monday, March 28, 2016 2:41 PM
*To:*xymon at xymon.com
*Subject:* [Xymon] Depends tag working configuration


Hi All,

I´m trying to make the "depends=" hosts.cfg tag to work on Xymon version
4.3.24.

Reading some old threads here, it became not clear to me if this
configuration tag currently works or not.

Has someone here have the depends tag working?

I know I can use the route tag, but my intention it´s to use another
network protocol and not ICMP for the dependency.


Thanks & Regards,

Mario


This message is intended only for the individual or entity to which it is
addressed.  It may contain privileged, confidential information which is
exempt from disclosure under applicable laws.  If you are not the intended
recipient, you are strictly prohibited from disseminating or distributing
this information (other than to the intended recipient) or copying this
information.  If you have received this communication in error, please
notify us immediately by e-mail or by telephone at the above number. Thank
you.

list Scot Kreienkamp · Mon, 4 Apr 2016 19:49:59 +0000 ·
“In my example, when the conn test was failing on 6030 and as the conn test was ok/up on 5030 then the correct status for 6030/conn should be clear and not red, right?”

No.  If the conn test on 5030 is OK then the conn test on 6030 should be red if it is not pingable or green if it is.  The status on 6030:conn is only modified if 6030:conn AND 5030:conn is red.
signature


Scot Kreienkamp  | Senior Systems Engineer | La-Z-Boy Corporate
One La-Z-Boy Drive | Monroe, Michigan 48162 | Office: XXX-XXX-XXXX | | Mobile: XXXXXXXXXX | Email: user-9678697f1438@xymon.invalid

quoted from Mario Andre
From: Mario [mailto:user-82c7780661a4@xymon.invalid]
Sent: Monday, April 04, 2016 3:45 PM
To: Scot Kreienkamp <user-9678697f1438@xymon.invalid>
Cc: xymon at xymon.com
Subject: Re: [Xymon] Depends tag working configuration

Hello Scot,
Yes, I know the route tag and I already use it here for the upstream cases.
But my necessity here is to have a dependency between some networks tests, for example, conn/ssh, conn/smtp, conn/http.
In my example, when the conn test was failing on 6030 and as the conn test was ok/up on 5030 then the correct status for 6030/conn should be clear and not red, right?

10.0.0.139  6030 # http://paq depends=(conn:5030/conn) testip
10.0.0.137  5030 # http://fara  testip

I´ve made some tests and it seems that the depends tag do not works with any conn configuration.
Does not matter the "position" on the tag, depends=(conn:5030/http), depends=(http:5030/conn) or depends=(conn:5030/conn), any of this works.
I´ve read some old emails on the list with the same question on "depends & conn" but without a solution.


Thanks & regards,
Mario


On Mon, Apr 4, 2016 at 4:15 PM, Scot Kreienkamp <user-9678697f1438@xymon.invalid<mailto:user-9678697f1438@xymon.invalid>> wrote:
Mario,

If I’m understanding your email correctly, you changed the IP on 6030 to a non-pingable address, correct?  If so, then you are performing your test incorrectly.  The tag you posted means that 6030 depends on 5030, but to test it you changed the IP on 6030 only.  To test it with the tag you posted, 5030 and 6030 must BOTH be non-pingable.  In that scenario the conn test on 6030 should change to clear.

Also, if you only want a connectivity test then you may be looking at the wrong tag.  Look up the route tag that goes in hosts.cfg and see if that will give you what you want.
From: Mario [mailto:user-82c7780661a4@xymon.invalid<mailto:user-82c7780661a4@xymon.invalid>]
Sent: Monday, April 04, 2016 3:09 PM
To: Scot Kreienkamp <user-9678697f1438@xymon.invalid<mailto:user-9678697f1438@xymon.invalid>>; xymon at xymon.com<mailto:xymon at xymon.com>
Subject: Re: [Xymon] Depends tag working configuration

Hi Scot,
Thanks for your help.
I´ve used your example and the dependency worked using the http test.
So then, I´ve changed the depends tag configuration to use the conn test and this didn't work.
First test (worked as expected!):
- Stopping apache on "6030" the result was a clear status on 6030/http as 5030/http was up.

0.0.0.0  6030 # http://paq depends=(http:5030/http) noconn
0.0.0.0  5030 # http://fara  noconn

Second test (connectivity configuration on depends): This test didn´t work.
- I´ve changed the IP from 6030 to a non pingable IP and let an available/online IP on "5030" and the depends tag didn´t work.
10.0.0.139  6030 # http://paq depends=(conn:5030/conn) testip
10.0.0.137  5030 # http://fara  testip
Do you have a dependency configuration based on connectivity test working on your system?

Thanks & Regards,
Mario


On Mon, Mar 28, 2016 at 4:45 PM, Scot Kreienkamp <user-9678697f1438@xymon.invalid<mailto:user-9678697f1438@xymon.invalid>> wrote:
Sure.  Here is a working config:


0.0.0.0    6030 # http:// 6030:8090/Main/ depends=(http:5030/http)
0.0.0.0  5030 # http://5030

So I’ve defined an HTTP test on 5030 and 6030, and set the HTTP test result on 6030 to depend on the HTTP test on 5030.  In my case, 5030 is the DB server and serves up a web page if the database is up.  If the database is down there’s no way the HTTP test will succeed on 6030, so I don’t really care if 6030 is alerting me in that case.

If you have any more trouble it would be helpful to see your configuration.  I saw you mention ICMP earlier… keep in mind that depends sets a test dependent on another test, so if you want ICMP you have to set it to depend on the conn test.  You can’t use ICMP in the depends.  It has to be a column name.
From: Xymon [mailto:xymon-bounces at xymon.com<mailto:xymon-bounces at xymon.com>] On Behalf Of Mario

Sent: Monday, March 28, 2016 3:04 PM
To:xymon at xymon.com<mailto:xymon at xymon.com>
Subject: Re: [Xymon] Depends tag working configuration

Hi,
Thanks, Scot.
Yes, that´s what I´m doing here.
The test configuration was done with only core network tests and that are directly running on the core server and it´s not working.
Do you have this configuration working on your server? Could you share it?
Thanks & Regards,
Mario


On Mon, Mar 28, 2016 at 3:43 PM, Scot Kreienkamp <user-9678697f1438@xymon.invalid<mailto:user-9678697f1438@xymon.invalid>> wrote:
The depends tag works, but only for tests done by the core network tester itself.  It will not work on any external tests.
From: Xymon [mailto:xymon-bounces at xymon.com<mailto:xymon-bounces at xymon.com>] On Behalf Of Mario
Sent: Monday, March 28, 2016 2:41 PM
To:xymon at xymon.com<mailto:xymon at xymon.com>
Subject: [Xymon] Depends tag working configuration

Hi All,
I´m trying to make the "depends=" hosts.cfg tag to work on Xymon version 4.3.24.
Reading some old threads here, it became not clear to me if this configuration tag currently works or not.
Has someone here have the depends tag working?
I know I can use the route tag, but my intention it´s to use another network protocol and not ICMP for the dependency.


Thanks & Regards,
Mario


This message is intended only for the individual or entity to which it is addressed.  It may contain privileged, confidential information which is exempt from disclosure under applicable laws.  If you are not the intended recipient, you are strictly prohibited from disseminating or distributing this information (other than to the intended recipient) or copying this information.  If you have received this communication in error, please notify us immediately by e-mail or by telephone at the above number. Thank you.
list Mario Andre · Mon, 4 Apr 2016 17:13:11 -0300 ·
Scot,

My logic is confused now.

http test:
10.0.0.139  6030 # http://paq depends=(http:5030/http) testip
10.0.0.137  5030 # http://fara  testip

Stopping apache http://paq gives on xymon the correct clear status on
6030/http:

6030 - http

[image: clear] http://paq/ - Connection refused

This test depends on the following test(s) that failed:

5030/http


Seconds: 0.002152000


In my head, changing http to conn on depends tag and "removing" 6030
network cable should produce a 6030/conn to go clear, considering 5030/conn
as up.
If both are down, ok, both goes red.

In my tests conn test doesn´t work with depends tag.


Thanks & Regards,
Mario


On Mon, Apr 4, 2016 at 4:49 PM, Scot Kreienkamp <
quoted from Scot Kreienkamp
user-9678697f1438@xymon.invalid> wrote:
“In my example, when the conn test was failing on 6030 and as the conn
test was ok/up on 5030 then the correct status for 6030/conn should be
clear and not red, right?”


No.  If the conn test on 5030 is OK then the conn test on 6030 should be
red if it is not pingable or green if it is.  The status on 6030:conn is
only modified if 6030:conn AND 5030:conn is red.


*Scot Kreienkamp  | Senior Systems Engineer | La-Z-Boy Corporate*
One La-Z-Boy Drive | Monroe, Michigan 48162 | Office: XXX-XXX-XXXX | |
Mobile: XXXXXXXXXX | Email: user-9678697f1438@xymon.invalid

*From:* Mario [mailto:user-82c7780661a4@xymon.invalid]
*Sent:* Monday, April 04, 2016 3:45 PM
*To:* Scot Kreienkamp <user-9678697f1438@xymon.invalid>
*Cc:* xymon at xymon.com
*Subject:* Re: [Xymon] Depends tag working configuration


Hello Scot,

Yes, I know the route tag and I already use it here for the upstream cases.
But my necessity here is to have a dependency between some networks tests,
for example, conn/ssh, conn/smtp, conn/http.

In my example, when the conn test was failing on 6030 and as the conn test
was ok/up on 5030 then the correct status for 6030/conn should be clear and
not red, right?

10.0.0.139  6030 # http://paq depends=(conn:5030/conn) testip
10.0.0.137  5030 # http://fara  testip


I´ve made some tests and it seems that the depends tag do not works with
any conn configuration.
Does not matter the "position" on the tag, depends=(conn:5030/http),
depends=(http:5030/conn) or depends=(conn:5030/conn), any of this works.

I´ve read some old emails on the list with the same question on "depends &
conn" but without a solution.


Thanks & regards,

Mario


On Mon, Apr 4, 2016 at 4:15 PM, Scot Kreienkamp <
user-9678697f1438@xymon.invalid> wrote:

Mario,


If I’m understanding your email correctly, you changed the IP on 6030 to a
non-pingable address, correct?  If so, then you are performing your test
incorrectly.  The tag you posted means that 6030 depends on 5030, but to
test it you changed the IP on 6030 only.  To test it with the tag you
posted, 5030 and 6030 must BOTH be non-pingable.  In that scenario the conn
test on 6030 should change to clear.


Also, if you only want a connectivity test then you may be looking at the
wrong tag.  Look up the route tag that goes in hosts.cfg and see if that
will give you what you want.

*From:* Mario [mailto:user-82c7780661a4@xymon.invalid]
*Sent:* Monday, April 04, 2016 3:09 PM
*To:* Scot Kreienkamp <user-9678697f1438@xymon.invalid>; xymon at xymon.com
*Subject:* Re: [Xymon] Depends tag working configuration


Hi Scot,

Thanks for your help.
I´ve used your example and the dependency worked using the http test.

So then, I´ve changed the depends tag configuration to use the conn test
and this didn't work.

First test (worked as expected!):
- Stopping apache on "6030" the result was a clear status on 6030/http as
5030/http was up.

0.0.0.0  6030 # http://paq depends=(http:5030/http) noconn
0.0.0.0  5030 # http://fara  noconn


Second test (connectivity configuration on depends): This test didn´t
work.
- I´ve changed the IP from 6030 to a non pingable IP and let an
available/online IP on "5030" and the depends tag didn´t work.

10.0.0.139  6030 # http://paq depends=(conn:5030/conn) testip
10.0.0.137  5030 # http://fara  testip

Do you have a dependency configuration based on connectivity test working
on your system?


Thanks & Regards,

Mario


On Mon, Mar 28, 2016 at 4:45 PM, Scot Kreienkamp <
user-9678697f1438@xymon.invalid> wrote:

Sure.  Here is a working config:


0.0.0.0    6030 # http:// 6030:8090/Main/ depends=(http:5030/http)

0.0.0.0  5030 # http://5030


So I’ve defined an HTTP test on 5030 and 6030, and set the HTTP test
result on 6030 to depend on the HTTP test on 5030.  In my case, 5030 is the
DB server and serves up a web page if the database is up.  If the database
is down there’s no way the HTTP test will succeed on 6030, so I don’t
really care if 6030 is alerting me in that case.


If you have any more trouble it would be helpful to see your
configuration.  I saw you mention ICMP earlier… keep in mind that depends
sets a test dependent on another test, so if you want ICMP you have to set
it to depend on the conn test.  You can’t use ICMP in the depends.  It has
to be a column name.

*From:* Xymon [mailto:xymon-bounces at xymon.com] *On Behalf Of *Mario


*Sent:* Monday, March 28, 2016 3:04 PM
*To:*xymon at xymon.com
*Subject:* Re: [Xymon] Depends tag working configuration


Hi,

Thanks, Scot.

Yes, that´s what I´m doing here.
The test configuration was done with only core network tests and that are
directly running on the core server and it´s not working.

Do you have this configuration working on your server? Could you share it?

Thanks & Regards,

Mario


On Mon, Mar 28, 2016 at 3:43 PM, Scot Kreienkamp <
user-9678697f1438@xymon.invalid> wrote:

The depends tag works, but only for tests done by the core network tester
itself.  It will not work on any external tests.

*From:* Xymon [mailto:xymon-bounces at xymon.com] *On Behalf Of *Mario
*Sent:* Monday, March 28, 2016 2:41 PM
*To:*xymon at xymon.com
*Subject:* [Xymon] Depends tag working configuration


Hi All,

I´m trying to make the "depends=" hosts.cfg tag to work on Xymon version
4.3.24.

Reading some old threads here, it became not clear to me if this
configuration tag currently works or not.

Has someone here have the depends tag working?

I know I can use the route tag, but my intention it´s to use another
network protocol and not ICMP for the dependency.


Thanks & Regards,

Mario


This message is intended only for the individual or entity to which it is
addressed.  It may contain privileged, confidential information which is
exempt from disclosure under applicable laws.  If you are not the intended
recipient, you are strictly prohibited from disseminating or distributing
this information (other than to the intended recipient) or copying this
information.  If you have received this communication in error, please
notify us immediately by e-mail or by telephone at the above number. Thank
you.

list Scot Kreienkamp · Mon, 4 Apr 2016 20:51:17 +0000 ·
I have never tried the depends tag with conn test so I can’t comment on whether it would work or not.  However, as it is a network test it should to the best of my knowledge.

In this scenario if the http://fara test is returning red and the http://paq test returns red as well, then the http test on 6030 should turn clear.  This is saying the 6030:HTTP test (http://paq) depends on the success of the 5030:HTTP test (http://fara).  So if both fail then the 6030:HTTP test should turn clear because the HTTP test on 6030 and 5030 have both failed.  The depends tag does nothing if the test it depends on is green/OK status, so if the 5030:HTTP test (http://fara) is green/OK, then 6030 will show it’s true unmodified status.
signature


Scot Kreienkamp  | Senior Systems Engineer | La-Z-Boy Corporate
One La-Z-Boy Drive | Monroe, Michigan 48162 | Office: XXX-XXX-XXXX | | Mobile: XXXXXXXXXX | Email: user-9678697f1438@xymon.invalid

quoted from Mario Andre
From: Mario [mailto:user-82c7780661a4@xymon.invalid]
Sent: Monday, April 04, 2016 4:13 PM
To: Scot Kreienkamp <user-9678697f1438@xymon.invalid>
Cc: xymon at xymon.com
Subject: Re: [Xymon] Depends tag working configuration

Scot,
My logic is confused now.
http test:
10.0.0.139  6030 # http://paq depends=(http:5030/http) testip
10.0.0.137  5030 # http://fara  testip
Stopping apache http://paq gives on xymon the correct clear status on 6030/http:

6030 - http

[clear]http://paq/ - Connection refused
quoted from Mario Andre


This test depends on the following test(s) that failed:


5030/http


Seconds: 0.002152000

In my head, changing http to conn on depends tag and "removing" 6030 network cable should produce a 6030/conn to go clear, considering 5030/conn as up.
If both are down, ok, both goes red.
In my tests conn test doesn´t work with depends tag.

Thanks & Regards,
Mario


On Mon, Apr 4, 2016 at 4:49 PM, Scot Kreienkamp <user-9678697f1438@xymon.invalid<mailto:user-9678697f1438@xymon.invalid>> wrote:
“In my example, when the conn test was failing on 6030 and as the conn test was ok/up on 5030 then the correct status for 6030/conn should be clear and not red, right?”

No.  If the conn test on 5030 is OK then the conn test on 6030 should be red if it is not pingable or green if it is.  The status on 6030:conn is only modified if 6030:conn AND 5030:conn is red.
From: Mario [mailto:user-82c7780661a4@xymon.invalid<mailto:user-82c7780661a4@xymon.invalid>]
Sent: Monday, April 04, 2016 3:45 PM
To: Scot Kreienkamp <user-9678697f1438@xymon.invalid<mailto:user-9678697f1438@xymon.invalid>>

Cc:xymon at xymon.com<mailto:xymon at xymon.com>
quoted from Mario Andre
Subject: Re: [Xymon] Depends tag working configuration

Hello Scot,
Yes, I know the route tag and I already use it here for the upstream cases.
But my necessity here is to have a dependency between some networks tests, for example, conn/ssh, conn/smtp, conn/http.
In my example, when the conn test was failing on 6030 and as the conn test was ok/up on 5030 then the correct status for 6030/conn should be clear and not red, right?

10.0.0.139  6030 # http://paq depends=(conn:5030/conn) testip
10.0.0.137  5030 # http://fara  testip

I´ve made some tests and it seems that the depends tag do not works with any conn configuration.
Does not matter the "position" on the tag, depends=(conn:5030/http), depends=(http:5030/conn) or depends=(conn:5030/conn), any of this works.
I´ve read some old emails on the list with the same question on "depends & conn" but without a solution.

Thanks & regards,
Mario


On Mon, Apr 4, 2016 at 4:15 PM, Scot Kreienkamp <user-9678697f1438@xymon.invalid<mailto:user-9678697f1438@xymon.invalid>> wrote:
Mario,

If I’m understanding your email correctly, you changed the IP on 6030 to a non-pingable address, correct?  If so, then you are performing your test incorrectly.  The tag you posted means that 6030 depends on 5030, but to test it you changed the IP on 6030 only.  To test it with the tag you posted, 5030 and 6030 must BOTH be non-pingable.  In that scenario the conn test on 6030 should change to clear.

Also, if you only want a connectivity test then you may be looking at the wrong tag.  Look up the route tag that goes in hosts.cfg and see if that will give you what you want.
From: Mario [mailto:user-82c7780661a4@xymon.invalid<mailto:user-82c7780661a4@xymon.invalid>]
Sent: Monday, April 04, 2016 3:09 PM
To: Scot Kreienkamp <user-9678697f1438@xymon.invalid<mailto:user-9678697f1438@xymon.invalid>>; xymon at xymon.com<mailto:xymon at xymon.com>
Subject: Re: [Xymon] Depends tag working configuration

Hi Scot,
Thanks for your help.
I´ve used your example and the dependency worked using the http test.
So then, I´ve changed the depends tag configuration to use the conn test and this didn't work.
First test (worked as expected!):
- Stopping apache on "6030" the result was a clear status on 6030/http as 5030/http was up.

0.0.0.0  6030 # http://paq depends=(http:5030/http) noconn
0.0.0.0  5030 # http://fara  noconn

Second test (connectivity configuration on depends): This test didn´t work.
- I´ve changed the IP from 6030 to a non pingable IP and let an available/online IP on "5030" and the depends tag didn´t work.
10.0.0.139  6030 # http://paq depends=(conn:5030/conn) testip
10.0.0.137  5030 # http://fara  testip
Do you have a dependency configuration based on connectivity test working on your system?

Thanks & Regards,
Mario


On Mon, Mar 28, 2016 at 4:45 PM, Scot Kreienkamp <user-9678697f1438@xymon.invalid<mailto:user-9678697f1438@xymon.invalid>> wrote:
Sure.  Here is a working config:


0.0.0.0    6030 # http:// 6030:8090/Main/ depends=(http:5030/http)
0.0.0.0  5030 # http://5030

So I’ve defined an HTTP test on 5030 and 6030, and set the HTTP test result on 6030 to depend on the HTTP test on 5030.  In my case, 5030 is the DB server and serves up a web page if the database is up.  If the database is down there’s no way the HTTP test will succeed on 6030, so I don’t really care if 6030 is alerting me in that case.

If you have any more trouble it would be helpful to see your configuration.  I saw you mention ICMP earlier… keep in mind that depends sets a test dependent on another test, so if you want ICMP you have to set it to depend on the conn test.  You can’t use ICMP in the depends.  It has to be a column name.
From: Xymon [mailto:xymon-bounces at xymon.com<mailto:xymon-bounces at xymon.com>] On Behalf Of Mario

Sent: Monday, March 28, 2016 3:04 PM
To:xymon at xymon.com<mailto:xymon at xymon.com>
Subject: Re: [Xymon] Depends tag working configuration

Hi,
Thanks, Scot.
Yes, that´s what I´m doing here.
The test configuration was done with only core network tests and that are directly running on the core server and it´s not working.
Do you have this configuration working on your server? Could you share it?
Thanks & Regards,
Mario


On Mon, Mar 28, 2016 at 3:43 PM, Scot Kreienkamp <user-9678697f1438@xymon.invalid<mailto:user-9678697f1438@xymon.invalid>> wrote:
The depends tag works, but only for tests done by the core network tester itself.  It will not work on any external tests.
From: Xymon [mailto:xymon-bounces at xymon.com<mailto:xymon-bounces at xymon.com>] On Behalf Of Mario
Sent: Monday, March 28, 2016 2:41 PM
To:xymon at xymon.com<mailto:xymon at xymon.com>
Subject: [Xymon] Depends tag working configuration

Hi All,
I´m trying to make the "depends=" hosts.cfg tag to work on Xymon version 4.3.24.
Reading some old threads here, it became not clear to me if this configuration tag currently works or not.
Has someone here have the depends tag working?
I know I can use the route tag, but my intention it´s to use another network protocol and not ICMP for the dependency.


Thanks & Regards,
Mario


This message is intended only for the individual or entity to which it is addressed.  It may contain privileged, confidential information which is exempt from disclosure under applicable laws.  If you are not the intended recipient, you are strictly prohibited from disseminating or distributing this information (other than to the intended recipient) or copying this information.  If you have received this communication in error, please notify us immediately by e-mail or by telephone at the above number. Thank you.
list Japheth Cleaver · Mon, 4 Apr 2016 16:19:59 -0700 ·
I believe the core issue is that ping (conn) testing is reconciled in a
different manner from the standard TCP tests. The following should work
for you. It should cause http on 6030 to keep from going red when 5030 is
un-pingable:
10.0.0.139  6030 # http://paq depends=(http:5030/conn) route:5030 testip
10.0.0.137  5030 # http://fara testip
If you don't have a specific reason to handle ICMP and TCP differently,
you may find it easier to simply run 'noconn' on pure URL hits like this,
especially if these are actually pointing to a common load balancer, or
there's another interconnected dependency layer there.

If this doesn't work, it's possible that there's something being
mis-parsed, perhaps with all-numeric hostnames... :/ Would you be able to
try the same setup with a different set of hosts and see if it works?


I'll see if there's an easy way to have dependency apply in conn parsing
as well, but this may be something that's easier to handle with a general
revamp to dependency tracking as a 'host down' function centrally as
discussed earlier.


HTH,
-jc


On Mon, April 4, 2016 1:51 pm, Scot Kreienkamp wrote:
I have never tried the depends tag with conn test so I can’t comment on
quoted from Scot Kreienkamp
whether it would work or not.  However, as it is a network test it should
to the best of my knowledge.

In this scenario if the http://fara test is returning red and the
http://paq test returns red as well, then the http test on 6030 should
turn clear.  This is saying the 6030:HTTP test (http://paq) depends on the
success of the 5030:HTTP test (http://fara).  So if both fail then the
6030:HTTP test should turn clear because the HTTP test on 6030 and 5030
have both failed.  The depends tag does nothing if the test it depends on
is green/OK status, so if the 5030:HTTP test (http://fara) is green/OK,

then 6030 will show it’s true unmodified status.
quoted from Scot Kreienkamp


Scot Kreienkamp  | Senior Systems Engineer | La-Z-Boy Corporate
One La-Z-Boy Drive | Monroe, Michigan 48162 | Office: XXX-XXX-XXXX | |
Mobile: XXXXXXXXXX | Email: user-9678697f1438@xymon.invalid
From: Mario [mailto:user-82c7780661a4@xymon.invalid]
Sent: Monday, April 04, 2016 4:13 PM
To: Scot Kreienkamp <user-9678697f1438@xymon.invalid>
Cc: xymon at xymon.com
Subject: Re: [Xymon] Depends tag working configuration

Scot,
My logic is confused now.
http test:
10.0.0.139  6030 # http://paq depends=(http:5030/http) testip
10.0.0.137  5030 # http://fara  testip
Stopping apache http://paq gives on xymon the correct clear status on
6030/http:

6030 - http

[clear]http://paq/ - Connection refused


This test depends on the following test(s) that failed:


5030/http


Seconds: 0.002152000

In my head, changing http to conn on depends tag and "removing" 6030
network cable should produce a 6030/conn to go clear, considering
5030/conn as up.
If both are down, ok, both goes red.

In my tests conn test doesn´t work with depends tag.
quoted from Scot Kreienkamp

Thanks & Regards,
Mario


On Mon, Apr 4, 2016 at 4:49 PM, Scot Kreienkamp
<user-9678697f1438@xymon.invalid<mailto:user-9678697f1438@xymon.invalid>>
wrote:

“In my example, when the conn test was failing on 6030 and as the conn
test was ok/up on 5030 then the correct status for 6030/conn should be
clear and not red, right?”
quoted from Scot Kreienkamp

No.  If the conn test on 5030 is OK then the conn test on 6030 should be
red if it is not pingable or green if it is.  The status on 6030:conn is
only modified if 6030:conn AND 5030:conn is red.
From: Mario
[mailto:user-82c7780661a4@xymon.invalid<mailto:user-82c7780661a4@xymon.invalid>]
Sent: Monday, April 04, 2016 3:45 PM
To: Scot Kreienkamp
<user-9678697f1438@xymon.invalid<mailto:user-9678697f1438@xymon.invalid>>
Cc:xymon at xymon.com<mailto:xymon at xymon.com>
Subject: Re: [Xymon] Depends tag working configuration

Hello Scot,
Yes, I know the route tag and I already use it here for the upstream
cases.
But my necessity here is to have a dependency between some networks tests,
for example, conn/ssh, conn/smtp, conn/http.
In my example, when the conn test was failing on 6030 and as the conn test
was ok/up on 5030 then the correct status for 6030/conn should be clear
and not red, right?

10.0.0.139  6030 # http://paq depends=(conn:5030/conn) testip
10.0.0.137  5030 # http://fara  testip

I´ve made some tests and it seems that the depends tag do not works with
quoted from Scot Kreienkamp
any conn configuration.
Does not matter the "position" on the tag, depends=(conn:5030/http),
depends=(http:5030/conn) or depends=(conn:5030/conn), any of this works.

I´ve read some old emails on the list with the same question on "depends
quoted from Scot Kreienkamp
& conn" but without a solution.

Thanks & regards,
Mario


On Mon, Apr 4, 2016 at 4:15 PM, Scot Kreienkamp
<user-9678697f1438@xymon.invalid<mailto:user-9678697f1438@xymon.invalid>>
wrote:
Mario,

If I’m understanding your email correctly, you changed the IP on 6030 to
quoted from Scot Kreienkamp
a non-pingable address, correct?  If so, then you are performing your test
incorrectly.  The tag you posted means that 6030 depends on 5030, but to
test it you changed the IP on 6030 only.  To test it with the tag you
posted, 5030 and 6030 must BOTH be non-pingable.  In that scenario the
conn test on 6030 should change to clear.

Also, if you only want a connectivity test then you may be looking at the
wrong tag.  Look up the route tag that goes in hosts.cfg and see if that
will give you what you want.
From: Mario
[mailto:user-82c7780661a4@xymon.invalid<mailto:user-82c7780661a4@xymon.invalid>]
Sent: Monday, April 04, 2016 3:09 PM
To: Scot Kreienkamp
<user-9678697f1438@xymon.invalid<mailto:user-9678697f1438@xymon.invalid>>;
xymon at xymon.com<mailto:xymon at xymon.com>
Subject: Re: [Xymon] Depends tag working configuration

Hi Scot,
Thanks for your help.

I´ve used your example and the dependency worked using the http test.
So then, I´ve changed the depends tag configuration to use the conn test
quoted from Scot Kreienkamp
and this didn't work.
First test (worked as expected!):
- Stopping apache on "6030" the result was a clear status on 6030/http as
5030/http was up.

0.0.0.0  6030 # http://paq depends=(http:5030/http) noconn
0.0.0.0  5030 # http://fara  noconn

Second test (connectivity configuration on depends): This test didn´t
work.
- I´ve changed the IP from 6030 to a non pingable IP and let an
available/online IP on "5030" and the depends tag didn´t work.
quoted from Scot Kreienkamp
10.0.0.139  6030 # http://paq depends=(conn:5030/conn) testip
10.0.0.137  5030 # http://fara  testip
Do you have a dependency configuration based on connectivity test working
on your system?

Thanks & Regards,
Mario


On Mon, Mar 28, 2016 at 4:45 PM, Scot Kreienkamp
<user-9678697f1438@xymon.invalid<mailto:user-9678697f1438@xymon.invalid>>
wrote:
Sure.  Here is a working config:


0.0.0.0    6030 # http:// 6030:8090/Main/ depends=(http:5030/http)
0.0.0.0  5030 # http://5030

So I’ve defined an HTTP test on 5030 and 6030, and set the HTTP test
quoted from Scot Kreienkamp
result on 6030 to depend on the HTTP test on 5030.  In my case, 5030 is
the DB server and serves up a web page if the database is up.  If the

database is down there’s no way the HTTP test will succeed on 6030, so I
don’t really care if 6030 is alerting me in that case.

If you have any more trouble it would be helpful to see your
configuration.  I saw you mention ICMP earlier… keep in mind that
depends sets a test dependent on another test, so if you want ICMP you
have to set it to depend on the conn test.  You can’t use ICMP in the
quoted from Scot Kreienkamp
depends.  It has to be a column name.
From: Xymon
[mailto:xymon-bounces at xymon.com<mailto:xymon-bounces at xymon.com>] On Behalf
Of Mario

Sent: Monday, March 28, 2016 3:04 PM
To:xymon at xymon.com<mailto:xymon at xymon.com>
Subject: Re: [Xymon] Depends tag working configuration

Hi,
Thanks, Scot.

Yes, that´s what I´m doing here.
The test configuration was done with only core network tests and that are
directly running on the core server and it´s not working.
quoted from Scot Kreienkamp
Do you have this configuration working on your server? Could you share
it?
Thanks & Regards,
Mario


On Mon, Mar 28, 2016 at 3:43 PM, Scot Kreienkamp
<user-9678697f1438@xymon.invalid<mailto:user-9678697f1438@xymon.invalid>>
wrote:
The depends tag works, but only for tests done by the core network tester
itself.  It will not work on any external tests.
From: Xymon
[mailto:xymon-bounces at xymon.com<mailto:xymon-bounces at xymon.com>] On Behalf
Of Mario
Sent: Monday, March 28, 2016 2:41 PM
To:xymon at xymon.com<mailto:xymon at xymon.com>
Subject: [Xymon] Depends tag working configuration

Hi All,

I´m trying to make the "depends=" hosts.cfg tag to work on Xymon version
quoted from Scot Kreienkamp
4.3.24.
Reading some old threads here, it became not clear to me if this
configuration tag currently works or not.
Has someone here have the depends tag working?

I know I can use the route tag, but my intention it´s to use another
quoted from Scot Kreienkamp
network protocol and not ICMP for the dependency.


Thanks & Regards,
Mario


This message is intended only for the individual or entity to which it is
addressed.  It may contain privileged, confidential information which is
exempt from disclosure under applicable laws.  If you are not the intended
recipient, you are strictly prohibited from disseminating or distributing
this information (other than to the intended recipient) or copying this
information.  If you have received this communication in error, please
notify us immediately by e-mail or by telephone at the above number. Thank
you.

list Mario Andre · Tue, 5 Apr 2016 11:22:20 -0300 ·
Hi JC,

Thanks for your comments.

Using non-numerical names for hosts produced the same results.

10.0.0.139 batman # http://paq depends=(http:superman/conn) testip
route:superman
10.0.0.137 superman # http://far testip

Results on your suggestion:

1)batman/http (Down) and superman/conn (Up) --> batman/http (red) (with or
without route:superman gives the same result)

2)batman/http (Down) and batman/conn (down) and superman/conn (Up) -->
batman/http (clear) and batman/conn (red)

Another variation:

10.0.0.139 batman # http://paq depends=(conn:superman/http) testip
route:superman
10.0.0.137 superman # http://far testip

1)batman/conn (Down) and superman/conn (Up) and superman/http (Up)-->
batman/conn (red)


My current challenge is because of the implementation of a network solution
called Ipanema:

From the site to the data center we have two alternative routes: one
through the MPLS network and one through a DMVPN.
The Ipanema box decides based on rules which path the traffic takes, and
that is on host, port, time of the day, load on the link etc.
For ICMP traffic the network team have configured this in such a way that
only one of the two paths can be used.
If that is down then all ICMP traffic is blocked, even if there is an
alternative path still available.
That mean, if the path used for ICMP is down, we won’t be able to reach the
server using ICMP anymore, but UDP and TCP packages will be rerouted using
the one available link.

My challenge is to have Xymon to test the availability of a server
combining ICMP and TCP (maybe using depends).
We could discard the use of ICMP test and start to use only TCP or maybe
SNMP for availability.
But not use ICMP is something that I wouldn´t like to do.


My idea is that the conn test will alert only if we have a failure in two
tests: ICMP test + TCP test.

For example:
•    Server A is UP, icmp path is down. The result will be ICMP red AND TCP
green = conn test green.
•    Server A is DOWN, icmp path is down . The result will be ICMP red AND
TCP red = conn test red.
•    Server A is DOWN, icmp path is up. The result will be ICMP red AND TCP
red = conn test red.
•    Server A is UP, icmp path is up. The result will be ICMP green AND TCP
green = conn test green.
quoted from Japheth Cleaver


Thanks & Regards,
Mario


On Mon, Apr 4, 2016 at 8:19 PM, J.C. Cleaver <user-87556346d4af@xymon.invalid> wrote:
I believe the core issue is that ping (conn) testing is reconciled in a
different manner from the standard TCP tests. The following should work
for you. It should cause http on 6030 to keep from going red when 5030 is
un-pingable:
10.0.0.139  6030 # http://paq depends=(http:5030/conn) route:5030 testip
10.0.0.137  5030 # http://fara testip
If you don't have a specific reason to handle ICMP and TCP differently,
you may find it easier to simply run 'noconn' on pure URL hits like this,
especially if these are actually pointing to a common load balancer, or
there's another interconnected dependency layer there.

If this doesn't work, it's possible that there's something being
mis-parsed, perhaps with all-numeric hostnames... :/ Would you be able to
try the same setup with a different set of hosts and see if it works?


I'll see if there's an easy way to have dependency apply in conn parsing
as well, but this may be something that's easier to handle with a general
revamp to dependency tracking as a 'host down' function centrally as
discussed earlier.


HTH,
-jc


On Mon, April 4, 2016 1:51 pm, Scot Kreienkamp wrote:
I have never tried the depends tag with conn test so I can’t comment on
whether it would work or not.  However, as it is a network test it should
to the best of my knowledge.

In this scenario if the http://fara test is returning red and the
http://paq test returns red as well, then the http test on 6030 should
turn clear.  This is saying the 6030:HTTP test (http://paq) depends on
the
success of the 5030:HTTP test (http://fara).  So if both fail then the
6030:HTTP test should turn clear because the HTTP test on 6030 and 5030
have both failed.  The depends tag does nothing if the test it depends on
is green/OK status, so if the 5030:HTTP test (http://fara) is green/OK,
then 6030 will show it’s true unmodified status.


Scot Kreienkamp  | Senior Systems Engineer | La-Z-Boy Corporate
One La-Z-Boy Drive | Monroe, Michigan 48162 | Office: XXX-XXX-XXXX | |
Mobile: XXXXXXXXXX | Email: user-9678697f1438@xymon.invalid
From: Mario [mailto:user-82c7780661a4@xymon.invalid]
Sent: Monday, April 04, 2016 4:13 PM
To: Scot Kreienkamp <user-9678697f1438@xymon.invalid>
Cc: xymon at xymon.com
Subject: Re: [Xymon] Depends tag working configuration

Scot,
My logic is confused now.
http test:
10.0.0.139  6030 # http://paq depends=(http:5030/http) testip
10.0.0.137  5030 # http://fara  testip
Stopping apache http://paq gives on xymon the correct clear status on
6030/http:

6030 - http

[clear]http://paq/ - Connection refused


This test depends on the following test(s) that failed:


5030/http


Seconds: 0.002152000

In my head, changing http to conn on depends tag and "removing" 6030
network cable should produce a 6030/conn to go clear, considering
5030/conn as up.
If both are down, ok, both goes red.
In my tests conn test doesn´t work with depends tag.

Thanks & Regards,
Mario


On Mon, Apr 4, 2016 at 4:49 PM, Scot Kreienkamp
<user-9678697f1438@xymon.invalid<mailto:user-9678697f1438@xymon.invalid>>
wrote:
“In my example, when the conn test was failing on 6030 and as the conn
test was ok/up on 5030 then the correct status for 6030/conn should be
clear and not red, right?”

No.  If the conn test on 5030 is OK then the conn test on 6030 should be
red if it is not pingable or green if it is.  The status on 6030:conn is
only modified if 6030:conn AND 5030:conn is red.
From: Mario
[mailto:user-82c7780661a4@xymon.invalid<mailto:user-82c7780661a4@xymon.invalid>]
Sent: Monday, April 04, 2016 3:45 PM
To: Scot Kreienkamp
<user-9678697f1438@xymon.invalid<mailto:user-9678697f1438@xymon.invalid>>
Cc:xymon at xymon.com<mailto:xymon at xymon.com>
Subject: Re: [Xymon] Depends tag working configuration

Hello Scot,
Yes, I know the route tag and I already use it here for the upstream
cases.
But my necessity here is to have a dependency between some networks
tests,
for example, conn/ssh, conn/smtp, conn/http.
In my example, when the conn test was failing on 6030 and as the conn
test
was ok/up on 5030 then the correct status for 6030/conn should be clear
and not red, right?

10.0.0.139  6030 # http://paq depends=(conn:5030/conn) testip
10.0.0.137  5030 # http://fara  testip

I´ve made some tests and it seems that the depends tag do not works with
any conn configuration.
Does not matter the "position" on the tag, depends=(conn:5030/http),
depends=(http:5030/conn) or depends=(conn:5030/conn), any of this works.
I´ve read some old emails on the list with the same question on "depends
& conn" but without a solution.

Thanks & regards,
Mario


On Mon, Apr 4, 2016 at 4:15 PM, Scot Kreienkamp
<user-9678697f1438@xymon.invalid<mailto:user-9678697f1438@xymon.invalid>>
wrote:
Mario,

If I’m understanding your email correctly, you changed the IP on 6030 to
a non-pingable address, correct?  If so, then you are performing your
test
incorrectly.  The tag you posted means that 6030 depends on 5030, but to
test it you changed the IP on 6030 only.  To test it with the tag you
posted, 5030 and 6030 must BOTH be non-pingable.  In that scenario the
conn test on 6030 should change to clear.

Also, if you only want a connectivity test then you may be looking at the
wrong tag.  Look up the route tag that goes in hosts.cfg and see if that
will give you what you want.
From: Mario
[mailto:user-82c7780661a4@xymon.invalid<mailto:user-82c7780661a4@xymon.invalid>]
Sent: Monday, April 04, 2016 3:09 PM
To: Scot Kreienkamp
<user-9678697f1438@xymon.invalid<mailto:user-9678697f1438@xymon.invalid>>;
xymon at xymon.com<mailto:xymon at xymon.com>
Subject: Re: [Xymon] Depends tag working configuration

Hi Scot,
Thanks for your help.
I´ve used your example and the dependency worked using the http test.
So then, I´ve changed the depends tag configuration to use the conn test
and this didn't work.
First test (worked as expected!):
- Stopping apache on "6030" the result was a clear status on 6030/http as
5030/http was up.

0.0.0.0  6030 # http://paq depends=(http:5030/http) noconn
0.0.0.0  5030 # http://fara  noconn

Second test (connectivity configuration on depends): This test didn´t
work.
- I´ve changed the IP from 6030 to a non pingable IP and let an
available/online IP on "5030" and the depends tag didn´t work.
10.0.0.139  6030 # http://paq depends=(conn:5030/conn) testip
10.0.0.137  5030 # http://fara  testip
Do you have a dependency configuration based on connectivity test working
on your system?

Thanks & Regards,
Mario


On Mon, Mar 28, 2016 at 4:45 PM, Scot Kreienkamp
<user-9678697f1438@xymon.invalid<mailto:user-9678697f1438@xymon.invalid>>
wrote:
Sure.  Here is a working config:


0.0.0.0    6030 # http:// 6030:8090/Main/ depends=(http:5030/http)
0.0.0.0  5030 # http://5030

So I’ve defined an HTTP test on 5030 and 6030, and set the HTTP test
result on 6030 to depend on the HTTP test on 5030.  In my case, 5030 is
the DB server and serves up a web page if the database is up.  If the
database is down there’s no way the HTTP test will succeed on 6030, so I
don’t really care if 6030 is alerting me in that case.

If you have any more trouble it would be helpful to see your
configuration.  I saw you mention ICMP earlier… keep in mind that
depends sets a test dependent on another test, so if you want ICMP you
have to set it to depend on the conn test.  You can’t use ICMP in the
depends.  It has to be a column name.
From: Xymon
[mailto:xymon-bounces at xymon.com<mailto:xymon-bounces at xymon.com>] On
Behalf
Of Mario

Sent: Monday, March 28, 2016 3:04 PM
To:xymon at xymon.com<mailto:xymon at xymon.com>
Subject: Re: [Xymon] Depends tag working configuration

Hi,
Thanks, Scot.
Yes, that´s what I´m doing here.
The test configuration was done with only core network tests and that are
directly running on the core server and it´s not working.
Do you have this configuration working on your server? Could you share
it?
Thanks & Regards,
Mario


On Mon, Mar 28, 2016 at 3:43 PM, Scot Kreienkamp
<user-9678697f1438@xymon.invalid<mailto:user-9678697f1438@xymon.invalid>>
wrote:
The depends tag works, but only for tests done by the core network tester
itself.  It will not work on any external tests.
From: Xymon
[mailto:xymon-bounces at xymon.com<mailto:xymon-bounces at xymon.com>] On
Behalf
Of Mario
Sent: Monday, March 28, 2016 2:41 PM
To:xymon at xymon.com<mailto:xymon at xymon.com>
Subject: [Xymon] Depends tag working configuration

Hi All,
I´m trying to make the "depends=" hosts.cfg tag to work on Xymon version
4.3.24.
Reading some old threads here, it became not clear to me if this
configuration tag currently works or not.
Has someone here have the depends tag working?
I know I can use the route tag, but my intention it´s to use another
network protocol and not ICMP for the dependency.


Thanks & Regards,
Mario


This message is intended only for the individual or entity to which it is
addressed.  It may contain privileged, confidential information which is
exempt from disclosure under applicable laws.  If you are not the
intended
recipient, you are strictly prohibited from disseminating or distributing
this information (other than to the intended recipient) or copying this
information.  If you have received this communication in error, please
notify us immediately by e-mail or by telephone at the above number.
Thank
you.

list Adam Goryachev · Wed, 6 Apr 2016 09:41:43 +1000 ·
quoted from Mario Andre
On 06/04/16 00:22, Mario wrote:
Hi JC,

Thanks for your comments.

Using non-numerical names for hosts produced the same results.

10.0.0.139 batman # http://paq depends=(http:superman/conn) testip route:superman
10.0.0.137 superman # http://far testip

Results on your suggestion:

1)batman/http (Down) and superman/conn (Up) --> batman/http (red) (with or without route:superman gives the same result)
This is expected.... you are saying batman relies on superman, so if superman is up, then the status of batman is evaluated purely on it's own merits.
2)batman/http (Down) and batman/conn (down) and superman/conn (Up) --> batman/http (clear) and batman/conn (red)
This is expected.... you are saying batman relies on superman, so if superman is up, then the status of batman is evaluated purely on it's own merits. However, xymon assumes that if conn is down, then all other network tests are "expected" to fail. I'm not sure if xymon will actually still test them, but if it does, and they work, then they should be green, it will just prevent them from going red.
quoted from Mario Andre
Another variation:

10.0.0.139 batman # http://paq depends=(conn:superman/http) testip route:superman
10.0.0.137 superman # http://far testip

1)batman/conn (Down) and superman/conn (Up) and superman/http (Up)--> batman/conn (red)
Expected, you said batman won't work unless you can ping superman (route:superman) AND http on superman is working. You then said superman conn is up and http is up, so the same as above, batman will simply be evaluated on it's own merits.
quoted from Mario Andre
My current challenge is because of the implementation of a network solution called Ipanema:

From the site to the data center we have two alternative routes: one through the MPLS network and one through a DMVPN.
The Ipanema box decides based on rules which path the traffic takes, and that is on host, port, time of the day, load on the link etc.
For ICMP traffic the network team have configured this in such a way that only one of the two paths can be used.
If that is down then all ICMP traffic is blocked, even if there is an alternative path still available.
That mean, if the path used for ICMP is down, we won’t be able to reach the server using ICMP anymore, but UDP and TCP packages will be rerouted using the one available link.

My challenge is to have Xymon to test the availability of a server combining ICMP and TCP (maybe using depends).
We could discard the use of ICMP test and start to use only TCP or maybe SNMP for availability.
But not use ICMP is something that I wouldn´t like to do.


My idea is that the conn test will alert only if we have a failure in two tests: ICMP test + TCP test.

For example:
•    Server A is UP, icmp path is down. The result will be ICMP red AND TCP green = conn test green.
•    Server A is DOWN, icmp path is down . The result will be ICMP red AND TCP red = conn test red.
•    Server A is DOWN, icmp path is up. The result will be ICMP red AND TCP red = conn test red.
•    Server A is UP, icmp path is up. The result will be ICMP green AND TCP green = conn test green.

It sounds like you should stop messing with depends and route etc, allow any test/service to go red as some or all of the infrastructure fails. Try taking a look at combo tests, I forget the details of what it needs to work, but it should allow you to combine multiple test results into a new test result. Simply set alerting to none for all the individual tests, and setup alerting on the various combo tests.

Of course, the other option might be to test the router with a conn test, and then various other tests could rely on this (using route) but I don't think that will work out, since you actually expect TCP to work even when icmp is not working, and route and depends are both designed for the opposite of that (eg prevent things that are expected to fail from turning red when something else fails).

PS, I remember trying to use combo tests for non-network and it wasn't working (in my old version), but I'm pretty sure it works well with network tests.

I hope that helps a little.

Regards,
Adam

-- 
Adam Goryachev Website Managers www.websitemanagers.com.au