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

Custom Report - Folder Summary Macros

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



Joined: 27 Oct 2002
Posts: 37

PostPosted: Fri Apr 23, 2004 9:25 am    Post subject: Custom Report - Folder Summary Macros Reply with quote

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?
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Flashback



Joined: 27 Oct 2002
Posts: 37

PostPosted: Fri Apr 23, 2004 9:32 am    Post subject: Reply with quote

By the way, I'm using HM 4.45 on Win2K Server SP4
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Marcus



Joined: 18 Nov 2002
Posts: 367

PostPosted: Fri Apr 23, 2004 9:35 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 11947
Location: USA

PostPosted: Fri Apr 23, 2004 9:42 pm    Post subject: Reply with quote

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