View previous topic :: View next topic |
Author |
Message |
LordJezo
Joined: 09 Aug 2004 Posts: 28
|
Posted: Mon Sep 27, 2004 8:09 am Post subject: Is there a way to make a test run to check all other tests? |
|
|
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. |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12795 Location: USA
|
Posted: Mon Sep 27, 2004 1:11 pm Post subject: |
|
|
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 |
|
Back to top |
|
|
Flashback
Joined: 27 Oct 2002 Posts: 37
|
Posted: Mon Sep 27, 2004 3:08 pm Post subject: |
|
|
Those statistical variables for folders would be quite useful to me. |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12795 Location: USA
|
Posted: Mon Sep 27, 2004 6:42 pm Post subject: |
|
|
I have added new task into "to do" list...
Regards
Alex |
|
Back to top |
|
|
grahamr
Joined: 22 Jun 2006 Posts: 17 Location: LAX
|
Posted: Tue Aug 08, 2006 9:36 am Post subject: Did the stat macro vars ever get implemented? |
|
|
The post from 2002 suggests that this would be implemented. Are these variables available in version 5.92? |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12795 Location: USA
|
Posted: Tue Aug 08, 2006 9:45 am Post subject: |
|
|
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 |
|
Back to top |
|
|
grahamr
Joined: 22 Jun 2006 Posts: 17 Location: LAX
|
Posted: Tue Aug 08, 2006 11:14 am Post subject: Folder of good tests |
|
|
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? |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12795 Location: USA
|
Posted: Tue Aug 08, 2006 1:36 pm Post subject: |
|
|
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 |
|
Back to top |
|
|
grahamr
Joined: 22 Jun 2006 Posts: 17 Location: LAX
|
Posted: Tue Nov 21, 2006 7:59 pm Post subject: |
|
|
Is it not possible to specify which folder? |
|
Back to top |
|
|
KS-Soft Europe
Joined: 16 May 2006 Posts: 2832
|
Posted: Wed Nov 22, 2006 1:38 am Post subject: |
|
|
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 |
|
Back to top |
|
|
grahamr
Joined: 22 Jun 2006 Posts: 17 Location: LAX
|
Posted: Wed Nov 22, 2006 5:21 pm Post subject: |
|
|
I'm not exactly clear on what that means. Can you rephrase it for me? |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12795 Location: USA
|
Posted: Wed Nov 22, 2006 6:25 pm Post subject: |
|
|
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 |
|
Back to top |
|
|
|