If one test fails then execute another

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
xcentric
Posts: 176
Joined: Sat Oct 23, 2010 4:30 pm

If one test fails then execute another

Post by xcentric »

If one test fails then execute another.

I have an http get test that I only want executed when another test returns bad. The schedule for the http get test is set to never. I do not wan this test to be on any schedule.

The http get test iis to update a static ip through an http api.
I have not figured out a way to update the static ip through an external script due to lack of programming knowledge but a test I have configured works flawlessly.

I an struggling to understand how to use the "this test deoends on expression.

IF TestA returns BAD
THEN EXECUTE TestB (this test) ELSE do nothing

Please advise.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

You may use "Test depends on expression" or "Test depends on another tests" options. I do not see any problems here.
===============
For each test, you can define a list of other tests it depends on, or Master tests. For each Master test you can choose the condition to perform the dependent test based on the status of the Master test:
- "Alive";
- "Alive" or "Unknown";
- "Dead";
- "Dead" or "Unknown".
===============
Please check the manual or visit our web site at
http://www.ks-soft.net/hostmon.eng/mfra ... htm#Master
The schedule for the http get test is set to never. I do not wan this test to be on any schedule
Bad idea. This test never will be executed.

Regards
Alex
xcentric
Posts: 176
Joined: Sat Oct 23, 2010 4:30 pm

Post by xcentric »

I got it working. I could not see the forest through all those trees.
Thank you Alex.
Post Reply