Is it possibloe to use Macro in "this test depends on:

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
Robert_in_MTL
Posts: 229
Joined: Tue Jun 20, 2006 1:20 pm
Location: Montreal, Quebec

Is it possibloe to use Macro in "this test depends on:

Post by Robert_in_MTL »

Hi,
I Wonder how to use the right macros to have a test dependency for another test like this:


All of our server HM monitoring folders contain a test called: "%host%: Connection"

I want to create tests depending on that first test and be able to copy it so it will work automatically in every test folder

can I use that to build something that would ressemble that:
"%host%: Connection": %SimpleStatus% is "OK"

If my server is named example DatabaseServer1
That would translate to: this test depends on a positive result of the test named: "DatabaseServer1: Connection"

I just need a quick guidance on that.
Thanks
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Post by KS-Soft Europe »

You may use "This test depends on Expression" option, located on Test properties dialog.
Configuration steps:
1. Create folder-variable, e.g. %fvar_host% and provide appropriate host/IP of target system.
2. Create Ping test with name like: PING - %fvar_host%
3. For all test items inside folder set "This test depends on Expression" option and provide "Perform test if" expression:
'%::PING - %fvar_host%::SimpleStatus%' == 'UP'

With these settings you may copy folder an change %fvar_host% variable for that folder.
All other test items may also be configured using %fvar_host% as target host.
Robert_in_MTL
Posts: 229
Joined: Tue Jun 20, 2006 1:20 pm
Location: Montreal, Quebec

Post by Robert_in_MTL »

Thanks for the reply!


I got it working using the folder name, which will not use any variables to maintain (which defeats the purpose of looking for a simple way)

like this:

'%::%folder%: Connection::SimpleStatus%' == 'UP'

tested and it works !

Thanks
Post Reply