Master Tests: Ping Host 1 Or Ping Host 2

All questions related to installations, configurations and maintenance of Advanced Host Monitor (including additional tools such as RMA for Windows, RMA Manager, Web Servie, RCC).
Post Reply
BradHouser
Posts: 15
Joined: Thu Aug 28, 2014 2:34 pm

Master Tests: Ping Host 1 Or Ping Host 2

Post by BradHouser »

I have a Ping test that depends on the Ping to the router between Host Monitor and the host being good. I also have another parallel router that could be up if the first router is down. So I would like to make the master test something like this:

if (ping router1 = Up) or (ping router2 = Up) then ping host 3

The expression editor appears to be able to do this, but I can't figure out how to use the existing tests to router1 and router2 as part of the expression.

Thanks, Brad
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Post by KS-Soft Europe »

See 2 possible solutions here:
1.
use "This test depends on Expression":
('%::router1::SimpleStatus%'=='UP') or ('%::router2::SimpleStatus%'=='UP')

2.
Set Master test: router1 for your test item(s)
For router1 test enable "Use Normal Status if" option with expression:
'%::router2::SimpleStatus%'=='UP'

Where router1 and router2 are test names of your two router Ping test items.

Please check for details at:
http://www.ks-soft.net/hostmon.eng/mfra ... #specmacro
http://www.ks-soft.net/hostmon.eng/mfra ... rmalstatus
BradHouser
Posts: 15
Joined: Thu Aug 28, 2014 2:34 pm

Post by BradHouser »

Thanks Alex. It works!

Brad
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Post by KS-Soft Europe »

You are welcome!
Post Reply