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).
Nadir
Posts: 264 Joined: Mon Aug 29, 2005 2:01 am
Post
by Nadir » Wed Mar 01, 2006 8:29 am
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
Nadir
Posts: 264 Joined: Mon Aug 29, 2005 2:01 am
Post
by Nadir » Thu Mar 02, 2006 2:57 am
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 » Thu Mar 02, 2006 9:56 am
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 » Thu Mar 02, 2006 6:04 pm
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 » Fri Mar 03, 2006 3:25 am
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 » Fri Mar 03, 2006 3:05 pm
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 » Fri Mar 03, 2006 4:10 pm
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 » Fri Mar 03, 2006 4:47 pm
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 » Mon Mar 06, 2006 3:30 am
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 » Wed Mar 08, 2006 2:41 am
Hello Alex
Have you received my last reply?
Nadir
Posts: 264 Joined: Mon Aug 29, 2005 2:01 am
Post
by Nadir » Wed Mar 08, 2006 8:53 am
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 » Wed Mar 08, 2006 1:47 pm
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 » Thu Mar 09, 2006 4:41 am
Ok Alex, thank you very much