Changing numeration in test result

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
dburridge
Posts: 2
Joined: Mon Oct 18, 2010 9:01 am

Changing numeration in test result

Post by dburridge »

Hello,

I have tried searching for this but cant find much, thought id put up a post as im sure this is a easy one...

We have a test that looks up a UPS's output source, these are returned as a number, for example we know the value 3 is ok and a value 5 means its on battery.

How can I make my test report back this in a word format?
if 5 = battery, if 1 = ok is what im after.

Regards,
David
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Examples of such expressions listed in the manual and help file.
http://www.ks-soft.net/hostmon.eng/mfra ... m#tuneupif

You just need to mark "Tune up Reply" option (located in Test Properties dialog) and use expression like
if ('%SuggestedReply%'==1) Power Ok; if ('%SuggestedReply%'==5) On battery; else [%SuggestedReply%]


Regards
Alex
dburridge
Posts: 2
Joined: Mon Oct 18, 2010 9:01 am

Post by dburridge »

Hello, Thank you for the reply.

I already tried the guides suggestions but it didnt work, I tried a nice simple one:
If ('%SuggestedReply%'==3) Test

I get in the main test window If ('3'==3) Test

Im guessing it isnt passing the variables correctly?
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

What version of HostMonitor do you use?

Regards
Alex
Post Reply