Hi, guys.
I have this scenario:
Folder
------ Subfolder1
-----------Test 1 (URL Test)
-----------Test 2 (URL Test)
----------- ..
----------- ..
----------- Test 20 (URL Test)
------ Subfolder 2
-----------Test 1 (URL Test)
-----------Test 2 (URL Test)
----------- ..
----------- ..
----------- Test 20 (URL Test)
When 10 tests of a subfolder1 or subfolder2 became "Bad", hostmonitor will alarm.
Is that possible?
Thanks
Checking multiple sites
-
- Posts: 2832
- Joined: Tue May 16, 2006 4:41 am
- Contact:
Re: Checking multiple sites
Sure. You may use advanced mode actions with "%FolderCurrent_BadTests%" variable.certisigner wrote:When 10 tests of a subfolder1 or subfolder2 became "Bad", hostmonitor will alarm.
Is that possible?
Quote frmo the manual:
http://www.ks-soft.net/hostmon.eng/mfra ... oldermacro
======================================
The following variables provide information about the folder (folder that contains the test which has triggered action execution)
%Folder% - The name of the folder containing the test
%FullPath% - The full folder path name
%FolderComment% - Folder's comment (entire comment, lines separated by CRLF)
%FCommentLineNN% - Returns a line #NN of a folder`s comment statistics
%FolderCurrent_GoodTests% - Number of the test items (in the folder) those have "Good" status
%FolderCurrent_BadTests% - Number of the test items (in the folder) those have "Bad" status
%FolderCurrent_UnknownTests% - Number of the test items (in the folder) those have "Unknown" status
%FolderCurrent_WarningTests% - Number of the test items (in the folder) those have "Warning" status
%FolderCurrent_AcknowledgedBad% - Number of "Bad" acknowledged test items in the folder
%FolderCurrent_AcknowledgedUnknown% - Number of "Unknown" acknowledged test items in the folder
%FolderCurrent_AcknowledgedWarning% - Number of "Warning" acknowledged test items in the folder
Also you may retrieve summary information for specific folder using expressions like %::<fullpath>::<folder_macro>% or %::<folderID>::<folder_macro>%.
E.g. %::Root\Asia::FolderCurrent_BadTests% or %::12:: FolderCurrent_GoodTests%
======================================
Regards,
Max
You may use "advanced" mode actions and expression like (%FolderCurrent_BadTests%==10) and ('%SimpleStatus%'=='DOWN') and ('%LastSimpleStatus%'=='UP')
http://www.ks-soft.net/hostmon.eng/mfra ... ncedaction
www.ks-soft.net/hostmon.eng/mframe.htm# ... .htm#macro
Regards
Alex
http://www.ks-soft.net/hostmon.eng/mfra ... ncedaction
www.ks-soft.net/hostmon.eng/mframe.htm# ... .htm#macro
Regards
Alex
-
- Posts: 5
- Joined: Thu Aug 30, 2007 8:09 am
- Location: Brazil