Report manager

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
Nadir
Posts: 264
Joined: Mon Aug 29, 2005 2:01 am

Report manager

Post by Nadir »

Hello

Have you an idea for doing a simple html reports with just folder name with colors if folder contains one or more bad test (red), unknow test(yellow) ...

example :

Switch
Router
Server
Printer

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

Post by KS-Soft »

You may use Custom HTML report with Java script that checks %FolderCurrent_BadTests% and %FolderCurrent_UnknownTests% variables
http://www.ks-soft.net/hostmon.eng/mfra ... CustomHTML

Regards
Alex
Nadir
Posts: 264
Joined: Mon Aug 29, 2005 2:01 am

Post by Nadir »

Could you help me to write this script I don't know java sript very well

Thanks a lot
Nadir
Posts: 264
Joined: Mon Aug 29, 2005 2:01 am

Post by Nadir »

Have you an idea for script to display just 1 sublevels of folder like in dashboard custom html template?

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

Post by KS-Soft »

Could you help me to write this script I don't know java sript very well
1) create Custom HTMl report profile
2) remove HTML code from "Test items" section of the profile (you do not want to see test items, right?)
3) add code like

Code: Select all

<tr><td valign=top nowrap bgcolor="#000099"><b>
<SCRIPT type="text/javascript"> 
  if (%FolderCurrent_BadTests% > 0) cstr="#AA0000"; 
  else 
  if (%FolderCurrent_UnknownTests% > 0) cstr="#FFFF00"; 
  else cstr="#00BB00";
  document.write("<font color="+cstr+">");
--></script>
%Folder%</font></b></td><td> </td><td>
into "Folder title" section of the report profile

Regards
Alex
Nadir
Posts: 264
Joined: Mon Aug 29, 2005 2:01 am

Post by Nadir »

Thanks for your help Alex

But could you tell me if it's possible to modify this scripts(works well) for display just 1 sublevel of the folder?

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

Post by KS-Soft »

Displaying folders is not a problem. Colors that you want to see - is a problem. %FolderCurrent_BadTests% and %FolderCurrent_UnknownTests% variables provide information about tests within the folder. Variables do not say anything about test items located in descendant subfolders.

Regards
Alex
Nadir
Posts: 264
Joined: Mon Aug 29, 2005 2:01 am

Post by Nadir »

Hello Alex

I have a question, How AHM do for display selected subfolders levels in dashboard html menu? Isn't it possible to use this for my request?
Or you can display just 1 level of subfolders but without colors?

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

Post by KS-Soft »

I have a question, How AHM do for display selected subfolders levels in dashboard html menu? Isn't it possible to use this for my request?
"Dashboard" is built-in report, you cannot modify that code
Or you can display just 1 level of subfolders but without colors?
Exactly

Regards
Alex
Nadir
Posts: 264
Joined: Mon Aug 29, 2005 2:01 am

Post by Nadir »

Ok!!
Could tell me how can I do reports with display just one level of subfolders?

Thanks Alex
Nadir
Posts: 264
Joined: Mon Aug 29, 2005 2:01 am

Post by Nadir »

Hello Alex

Have you received my last reply?
Nadir
Posts: 264
Joined: Mon Aug 29, 2005 2:01 am

Post by Nadir »

Hello all

Could you tell me what's the difference between "bad items new" and "bad items aknwoledged" in custom HTML in test item section.

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

Post by KS-Soft »

Could tell me how can I do reports with display just one level of subfolders?
I tried to create such script but there is a problem - "\" is a special character that leads to some problem in java scripts...
Could you tell me what's the difference between "bad items new" and "bad items aknwoledged" in custom HTML in test item section.
Please read "Acknowledgement" section of the manual. Page 86-88 (if you have latest version of the manual)

Regards
Alex
Nadir
Posts: 264
Joined: Mon Aug 29, 2005 2:01 am

Post by Nadir »

Ok Alex, thank you very much
Post Reply