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

To Test a group of tests

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



Joined: 07 Jan 2004
Posts: 7

PostPosted: Thu Jun 03, 2004 2:33 pm    Post subject: To Test a group of tests Reply with quote

Hi, I'd like to setup a test to a specified folder (group of test), and report to an HTML an overview of the specific tests within that folder.
For example
Root/Web servers Test1, Test2, Test3
Root/Overview Test (test1, test2, test3) if any of them are bad or unknown this test would fail, and the report would show it in Red.

Let me know if I explain myseld right.

Regards, Pablo
Back to top
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12793
Location: USA

PostPosted: Thu Jun 03, 2004 3:14 pm    Post subject: Reply with quote

Not sure I understand you.
You want to display only "Bad" and "Unknown" tests in the report? Its easy to setup. Each report profile has list of statuses that should be displayed. Check "Report Profiles" dialog (menu Profiles->Report profiles).

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



Joined: 07 Jan 2004
Posts: 7

PostPosted: Fri Jun 04, 2004 8:29 am    Post subject: Reply with quote

Alex, sorry for my lack of english language to explain my self.

Let me put it this way.
In the example test that comes with the Hosmonitor you have 3 Folders:
USA Branch, Asia and Europe. I would like to create a report that shows me just 3 Items (USA Branch, Asia and Europe) that would change the color of this items based on the status of the tests that are inside these folders. Then I would have an overview of the overall status of the whole system without the need to show specific tests.

Thanks a lot, Pablo
Back to top
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12793
Location: USA

PostPosted: Fri Jun 04, 2004 11:43 am    Post subject: Reply with quote

Now I understand.
I think you should use "Custom HTML report". "Test items" section of the report profile can be empty, in this case HostMonitor will not display tests.
Also you should use some JScript in "Folder title" section. Script may check %FolderCurrent_BadTests% and %FolderCurrent_UnknownTests% variables and set color depending on these variables.
More information about Custom HTML reports available in the manual or you may find this information on our web site at www.ks-soft.net/hostmon.eng/mframe.htm#profiles.htm#CustomHTML

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



Joined: 07 Jan 2004
Posts: 7

PostPosted: Wed Jul 21, 2004 12:58 pm    Post subject: I've got it. Reply with quote

Now I have the master Report, the problem now is when I try to create an individual report for each folder, for some reason when I specify a report for a subfolder, that subfolder disapears from the parent folder report, is there any way to work around this ?

Thanks, Pablo
Back to top
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12793
Location: USA

PostPosted: Wed Jul 21, 2004 1:30 pm    Post subject: Reply with quote

Add "AlwaysWithSubfolders=1" line into [Reports] secion of the hostmon.ini file and restart HostMonitor.

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



Joined: 07 Jan 2004
Posts: 7

PostPosted: Wed Jul 21, 2004 1:51 pm    Post subject: Reply with quote

Thanks, It worked Great !!!

BTW, is there an option to skip a folder from being reported ?

Thanks, Pablo
Back to top
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12793
Location: USA

PostPosted: Wed Jul 21, 2004 2:06 pm    Post subject: Reply with quote

Quote:
BTW, is there an option to skip a folder from being reported ?


You will need to disable "AlwaysWithSubfolders" option.

Normally Report Manager creates reports (on the schedule) for specified folder and for subfolders that use parent folder settings.

If you use "Generate reports" action to create reports, you may choose one of the following option:
- Single folder
Include specified folder only (no subfolders)
- Folder & all subfolders
Include specified folder and all descendant subfolders
- Folder & subfolders with inherited settings
Incude specified folder and subfolder which inherit reports' settings from the parent folder

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



Joined: 07 Jan 2004
Posts: 7

PostPosted: Fri Jul 23, 2004 7:41 am    Post subject: Reply with quote

Alex, I'm almost done, I've decided to go thru the Reports generated via HMScript
However I've found that this script does not behaves the way I think it should.

SetCurrentFolder Root
IncludeSubfolders yes

CreateReport "CP" c:\temp\testhm\cust_report.htm
CreateReport "Compact" c:\temp\testhm\%Folder%.htm

This HMScript creates the CP profile report on c:\..\cust_report.htm fine.
the 2nd line creates the "Compact" profile report on c:\...\Reports.htm because "Reports" is the name of the folder where the test that launches this HMScript resides.
Is this by design ? is this a bug ?
is there any way to workaround this ?

Thanks, Pablo

BTW, Everyday I find a new use for your program, it's simply superlative.
Back to top
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12793
Location: USA

PostPosted: Fri Jul 23, 2004 6:45 pm    Post subject: Reply with quote

Quote:
This HMScript creates the CP profile report on c:\..\cust_report.htm fine.
the 2nd line creates the "Compact" profile report on c:\...\Reports.htm because "Reports" is the name of the folder where the test that launches this HMScript resides.
Is this by design ? is this a bug ?


What exactly you don't like? Name of the target file? "Reports.htm"?
This is correct behavior. %Folder% variable represents name of the folder that contains the test that triggered the action.

Or I miss something?

Regards
Alex
Back to top
View user's profile Send private message Visit poster's website
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