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
Master Tests: Ping Host 1 Or Ping Host 2
-
- Posts: 2832
- Joined: Tue May 16, 2006 4:41 am
- Contact:
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
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
-
- Posts: 2832
- Joined: Tue May 16, 2006 4:41 am
- Contact: