Custom Report - Folder Summary Macros

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
Flashback
Posts: 37
Joined: Sun Oct 27, 2002 6:00 pm
Contact:

Custom Report - Folder Summary Macros

Post by Flashback »

I know I must be missing something here.
I have the following listed as the folder summary for my custom report.

%Folder% - %FolderCurrent_TotalTests% / %FolderCurrent_GoodTests% / %FolderTotal_FailedTests% </br>

When the report displays, I get a response l get something like this:
Site - 1 / 0 / 154

How could I have 1 total test, and 154 failed tests in the same folder?
Flashback
Posts: 37
Joined: Sun Oct 27, 2002 6:00 pm
Contact:

Post by Flashback »

By the way, I'm using HM 4.45 on Win2K Server SP4
User avatar
Marcus
Posts: 367
Joined: Mon Nov 18, 2002 6:00 pm

Post by Marcus »

Make a little java / vbscript, which uses these values to assign them to variables. Then you can use it to make calculations. Otherwise it will be seen as plain text.

We use it like: var ActiveTests=%GoodTests%+%UnknownTests%+%BadTests%;
Which results in: var ActiveTests=108+0+0+0;

In this case we can use the variable ActiveTests to display the calculated number. Just remember that variables taken from HostMonitor are plain text in html and java / vb
KS-Soft
Posts: 12821
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

You mixed up FolderCurrent and FolderTotal
%FolderCurrent_BadTests% - Number of the test items (in the folder) those have "Bad" status at the report generation time
%FolderTotal_FailedTests% - Total number of failed probes for all test items in the folder. It means that if you have just one test that failed 100 times, counter will be = 100.
So, use %FolderCurrent_BadTests% instead

Regards
Alex
Post Reply