Checking multiple sites

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
certisigner
Posts: 5
Joined: Thu Aug 30, 2007 8:09 am
Location: Brazil

Checking multiple sites

Post by certisigner »

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
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Re: Checking multiple sites

Post by KS-Soft Europe »

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/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
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

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
certisigner
Posts: 5
Joined: Thu Aug 30, 2007 8:09 am
Location: Brazil

Post by certisigner »

Thanks for help, guys.

It works!
Post Reply