KS-Soft. Network Management Solutions
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister    ProfileProfile    Log inLog in 

Checking multiple sites

 
Post new topic   Reply to topic    KS-Soft Forum Index -> Configuration, Maintenance, Troubleshooting
View previous topic :: View next topic  
Author Message
certisigner



Joined: 30 Aug 2007
Posts: 5
Location: Brazil

PostPosted: Wed Dec 19, 2007 10:50 am    Post subject: Checking multiple sites Reply with quote

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
View user's profile Send private message
KS-Soft Europe



Joined: 16 May 2006
Posts: 2832

PostPosted: Wed Dec 19, 2007 11:10 am    Post subject: Re: Checking multiple sites Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
KS-Soft



Joined: 03 Apr 2002
Posts: 12795
Location: USA

PostPosted: Wed Dec 19, 2007 11:11 am    Post subject: Reply with quote

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/mframe.htm#actions.htm#advancedaction
www.ks-soft.net/hostmon.eng/mframe.htm#actions.htm#macro

Regards
Alex
Back to top
View user's profile Send private message Visit poster's website
certisigner



Joined: 30 Aug 2007
Posts: 5
Location: Brazil

PostPosted: Tue Jan 08, 2008 5:51 am    Post subject: Reply with quote

Thanks for help, guys.

It works!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    KS-Soft Forum Index -> Configuration, Maintenance, Troubleshooting All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

KS-Soft Forum Index