View previous topic :: View next topic |
Author |
Message |
certisigner
Joined: 30 Aug 2007 Posts: 5 Location: Brazil
|
Posted: Wed Dec 19, 2007 10:50 am Post subject: Checking multiple sites |
|
|
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 |
|
Back to top |
|
|
KS-Soft Europe
Joined: 16 May 2006 Posts: 2832
|
Posted: Wed Dec 19, 2007 11:10 am Post subject: Re: Checking multiple sites |
|
|
certisigner wrote: | When 10 tests of a subfolder1 or subfolder2 became "Bad", hostmonitor will alarm.
Is that possible? | Sure. You may use advanced mode actions with "%FolderCurrent_BadTests%" variable.
Quote frmo the manual:
http://www.ks-soft.net/hostmon.eng/mframe.htm#actions.htm#foldermacro
======================================
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 |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12795 Location: USA
|
|
Back to top |
|
|
certisigner
Joined: 30 Aug 2007 Posts: 5 Location: Brazil
|
Posted: Tue Jan 08, 2008 5:51 am Post subject: |
|
|
Thanks for help, guys.
It works! |
|
Back to top |
|
|
|