how to set test c depend on test a and test b?

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
nieaicai
Posts: 73
Joined: Fri Aug 03, 2012 9:05 pm

how to set test c depend on test a and test b?

Post by nieaicai »

hello,if i setup test A test B and then setup TEST C
IF test A and test B is bad
i want to test C reply bad . how to set?
it may simple,but please still tell me how to ? tks so much
KS-Soft
Posts: 12869
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

http://www.ks-soft.net/hostmon.eng/mfra ... htm#Master

Set the following options for testC
This test depends on expression
Perform test if ('%::TestA::SimpleStatus%'=='UP') or ('%::TestB::SimpleStatus%'=='UP')
OtherwiseStatus: Bad

Regards
Alex
nieaicai
Posts: 73
Joined: Fri Aug 03, 2012 9:05 pm

Post by nieaicai »

i write expression:
('%::testA::status%'==bad ) and ('%::testB::status%'==bad )
or
('%::testA::status%'==bad and '%::testB::status%'==bad )

not work :x :x

tks
KS-Soft
Posts: 12869
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

1) you missed quotation marks ('%::testA::status%'=='Bad')...
2) you replaced 'OR' with 'AND'

Regards
Alex
nieaicai
Posts: 73
Joined: Fri Aug 03, 2012 9:05 pm

Post by nieaicai »

KS-Soft wrote:http://www.ks-soft.net/hostmon.eng/mfra ... htm#Master

Set the following options for testC
This test depends on expression
Perform test if ('%::TestA::SimpleStatus%'=='UP') or ('%::TestB::SimpleStatus%'=='UP')
OtherwiseStatus: Bad

Regards
Alex



just tried!
work fine! thank you very much!
KS-Soft
Posts: 12869
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

You are welcome

Regards
Alex
Post Reply