To Test a group of tests

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
pfgm
Posts: 7
Joined: Wed Jan 07, 2004 6:15 pm

To Test a group of tests

Post by pfgm »

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

Post by KS-Soft »

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
pfgm
Posts: 7
Joined: Wed Jan 07, 2004 6:15 pm

Post by pfgm »

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

Post by KS-Soft »

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# ... CustomHTML

Regards
Alex
pfgm
Posts: 7
Joined: Wed Jan 07, 2004 6:15 pm

I've got it.

Post by pfgm »

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

Post by KS-Soft »

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

Regards
Alex
pfgm
Posts: 7
Joined: Wed Jan 07, 2004 6:15 pm

Post by pfgm »

Thanks, It worked Great !!!

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

Thanks, Pablo
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

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
pfgm
Posts: 7
Joined: Wed Jan 07, 2004 6:15 pm

Post by pfgm »

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

Post by KS-Soft »

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
Post Reply