Is there a way to make a test run to check all other tests?

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
LordJezo
Posts: 28
Joined: Mon Aug 09, 2004 9:55 am

Is there a way to make a test run to check all other tests?

Post by LordJezo »

For example, if I have 30 file availability tests and one of them fails (goes to "Bad") to have a test run and send an alert if this happens?

What I am trying to do is to be able to have an alert for a bad status but not have 30 alerts if all 30 test fail. That way I can have the one alert sent to notifiy the administrators and they would just be able to log into the system and check hostmonitor to determine which file test failed. By doing this I can save us from having 30 or more alerts sent out every night if all 30 test fail.

Is this sort of thing possible? Sort of a test on a group of tests.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Possible solution - use "advanced mode" action. But you have 30 tests, it will be huge expressions. Somethinkg like "('%::Test1::SimpleStatus%'=='DOWN') and (%::Test1::Recurrences%==1) and ('%::Test2::SimpleStatus%'=='DOWN') and (%::Test2::Recurrences%==1) and ('%::Test3::SimpleStatus%'=='DOWN') and (%::Test3::Recurrences%==1) and .... and ('%::Test30::SimpleStatus%'=='DOWN') and (%::Test30::Recurrences%==1)"

Another solution - use HM Script action to disable/enable test items...

H'm... may be we should implement some statistical macro variables... like %FolderBadTests%, %FolderBadRecurrences%... that could be used as expression for "advanced mode" action...

Regards
Alex
Flashback
Posts: 37
Joined: Sun Oct 27, 2002 6:00 pm
Contact:

Post by Flashback »

Those statistical variables for folders would be quite useful to me.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

I have added new task into "to do" list...

Regards
Alex
grahamr
Posts: 17
Joined: Thu Jun 22, 2006 10:40 am
Location: LAX

Did the stat macro vars ever get implemented?

Post by grahamr »

The post from 2002 suggests that this would be implemented. Are these variables available in version 5.92?
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

A while ago we have implemented the following variables:
%HM_RccSessions% - represents number of active RCC sessions
%HM_TestListFile% - name of the TestList file being used
%HM_TestsPerformed% - number of tests performed since startup
%HM_TotalTestItems% - total number of test items (in loaded file)
%HM_GoodItems% - number of tests with "Good" status
%HM_BadItems% - number of tests with "Bad" status
%HM_UnknownItems% - number of tests with "Unknown" status
%HM_AckBadItems% - number of "Bad" acknowledged test items
%HM_AckUnknItems% - number of "Unknown" acknowledged test items

Regards
Alex
grahamr
Posts: 17
Joined: Thu Jun 22, 2006 10:40 am
Location: LAX

Folder of good tests

Post by grahamr »

So the %FolderTestsGood% hasn't been implemented?

Basically, I would like to setup expressions that force tests to wait if a certain percentage of tests from another folder fail.

An expression like this would help me:

('%::FolderWithTests::FolderTestsGood::%'>"4") or something like that...

Is there anything like that going to be available soon?
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Ok, there is update at www.ks-soft.net/download/hm612.zip
5 new variables have been added:
%FolderCurrent_GoodTests%
%FolderCurrent_BadTests%
%FolderCurrent_UnknownTests%
%FolderCurrent_AcknowledgedBad%
%FolderCurrent_AcknowledgedUnknown%
If you create a test and configure action profile using these variables, HostMonitor will calculate counters for the folder that contains the test.

Please install version 6.10 before applying this update.

Regards
Alex
grahamr
Posts: 17
Joined: Thu Jun 22, 2006 10:40 am
Location: LAX

Post by grahamr »

Is it not possible to specify which folder?
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Post by KS-Soft Europe »

grahamr wrote:Is it not possible to specify which folder?
You may use foregoing variables as parameters of action. So, they are applied to the current folder, where located the test, that triggers this certain action.

Regards,
Max
grahamr
Posts: 17
Joined: Thu Jun 22, 2006 10:40 am
Location: LAX

Post by grahamr »

I'm not exactly clear on what that means. Can you rephrase it for me?
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Variables provide information about parent folder - folder that contains test item that triggered alert.
You may put test into any folder you need.

Regards
Alex
Post Reply