Is there a way to make a test run to check all other tests?
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.
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.
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
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
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?
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
%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
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?
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?
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
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
-
- Posts: 2832
- Joined: Tue May 16, 2006 4:41 am
- Contact: