Can I test the value from another test in the same folder

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
PaulNZ
Posts: 9
Joined: Tue Apr 04, 2017 7:31 pm

Can I test the value from another test in the same folder

Post by PaulNZ »

Hi Alex

I want to only test against the virtual memory if the physical memory in another test in the same folder is below a certain percentage.

Is this possible? I couldn't work out how to do this.

Thanks in advance
Paul
KS-Soft
Posts: 12869
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Perform testB when testA has Bad status?
Just mark "this test depends on another test" option for testB and select testA
http://www.ks-soft.net/hostmon.eng/mfra ... htm#Master

Regards
Alex
PaulNZ
Posts: 9
Joined: Tue Apr 04, 2017 7:31 pm

Post by PaulNZ »

Thanks Alex, but that doesn't work for me.

The scenario is that I don't care about low virtual memory if the physical memory isn't low too. So, Physical memory threshold is 5%, and Virtual memory threshold is 10%

So, if physical is at 20% and virtual falls to 2% for a period of time, I don't want to be alerted for low virtual memory.
But if physical drops to 3% while virtual is below 10%, then I definitely want to know.

NB All tests are already dependent on the Ping being alive for the server.

Hope that makes sense.
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Post by KS-Soft Europe »

You may access another test item values using variables with the following syntax:
%::TESTNAME::Reply%
%::TESTNAME::Status%
etc.

You may add the following "use Warning Status if" expression into virtual memory test:
'%::myVirtualMemoryTest::Reply_Integer%' < '10'
"Treat Warning status as Bad" option should be enabled.

Another option - use separate test item (e.g. Ping 127.0.0.1)
and the following expressions:
"Tune Up Reply value" expression (optional):
Virtual mem: %::myVirtualMemoryTest::Reply% Phys mem: Virtual mem: %::myPhysicalMemoryTest::Reply%
"use Warning Status if" expression:
'%::myVirtualMemoryTest::Reply_Integer%' < '10' AND '%::myPhysicalMemoryTest::Reply_Integer%' < '4'
("Treat Warning status as Bad" option should be enabled.)
PaulNZ
Posts: 9
Joined: Tue Apr 04, 2017 7:31 pm

Post by PaulNZ »

Thanks Alex, the first option is perfect - just what I need!
Post Reply