Test Dependencies

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
VeeMan
Posts: 8
Joined: Thu May 27, 2010 5:06 am
Location: London, GB

Test Dependencies

Post by VeeMan »

Hello,

I am currently working on a semi-automated import process, during which the HML generating script will check a specific folder for text files (exported from AHM) and then import those tests by integrating it into the HMS file.

During this process, it would be good to be able to associate test dependencies automatically, instead of having to manually define them. Has anyone done this before? Is it possible?

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

Post by KS-Soft »

Not sure I understand the problem. Import file allows you to specify list of Master test items.
E.g.
=====================
Method = TCP
Title = telnet server
; -- Common optional parameters --
Schedule = 7 Days, 24 Hours
Interval = 120
Alerts = Message, Sound
ReverseAlert = Yes
UnknownIsBad = No
UseCommonLog = Yes
PrivateLog =
PrivlogMode = full
CommLogMode = default
DependsOn = list
MasterTest-Alive = ping router
SyncCounters = Yes
SyncAlerts = No
; -- Specific parameters required for TCP test --
Host = 10.10.5.10
Port = 23
=====================

Regards
Alex
VeeMan
Posts: 8
Joined: Thu May 27, 2010 5:06 am
Location: London, GB

Post by VeeMan »

[quote]Not sure I understand the problem. Import file allows you to specify list of Master test items. [/quote]

What I meant was since I have defined a set of template tests in a subfolder, once you copy those tests to another folder (this includes the master test being copied) for instance, the dependencies are still set to the original master test defined (in the folder from which I copy it).

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

Post by KS-Soft »

Sure, HostMonitor does not change master test from one item to another. This would not be logical.

If you need such "dynamic" master-dependant test relations, you need to use "Test depends on expression" option.
For example:
1) you may create master test and use %folder%-master pattern for name if this master test. This way HostMonitor will change name of the test when you copy or move it to another folder.
2) create dependant test item using "Test depends on expression" and expression like '%::%folder%-master::simplestatus%'=='UP'

Another solution - use user-defined folder-level variables for such expressions

Regards
Alex
Post Reply