Report with the average of the last X hours

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
oryagel
Posts: 92
Joined: Wed Jul 28, 2010 10:23 am

Report with the average of the last X hours

Post by oryagel »

Hi,

I want to send a report every 4 hours.
The report should include few tests and their average value during the last 4 hours.

How can I do that?
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Report with the average of the last X hours

Post by KS-Soft Europe »

HostMonitor can generate global and folder-level reports at regular intervals.
If you want to display average statistics information for last 4 hours, you will need to reset test statistics each time report is generated.
Statistics for particular test items can be reset by HMS script.
Also, you may create report for specific View.

How to do:
1. Create HMS script to clear statistics for selected test items.
Script may look like the following:

Code: Select all

ResetTest TestItemName 1
ResetTest TestItemName 2
ResetTest TestItemName 3
2. Create Action profile with "Execute HMS script" action and select Condition to start action: "on the schedule", select prepared HMS script from step 1.

3. Create report profile using Report manager (menu Reports -> Report Manager...)
4. Create View
5. Select Report profile for that View ("Reports" page of "Dynamic view properties" dialog)
6. Activate "Generate reports every" option and set interval to 240 min
7. Activate "Execute action profile when complete" option and select action profile from step 2

Please check the manual or visit our web site for more information at:
Execute HMS script action: http://www.ks-soft.net/hostmon.eng/mfra ... #actScript
View reports: http://www.ks-soft.net/hostmon.eng/mfra ... ew_reports
oryagel
Posts: 92
Joined: Wed Jul 28, 2010 10:23 am

Post by oryagel »

Thanks!

I want to exclude results larger than X from the average calculation.

Is it possible?
How?
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Report with the average of the last X hours

Post by KS-Soft Europe »

Actually, you may exclude such test items, using View configuration.
E.g. you may additionally use "Select items by stats" section and define Alive ration > 50 %.
Also, you may use "Select items using expression" option with expression like the following:
('%AliveRatio%' > '50 %') AND ('%DeadTime%' < '00:25:00')

You may check all statistical macro-variables at:
http://www.ks-soft.net/hostmon.eng/mfra ... .htm#macro
oryagel
Posts: 92
Joined: Wed Jul 28, 2010 10:23 am

Post by oryagel »

Thanks, but it's not what I'm looking for.

I want to exclude results from the calculation of the average value of a test.
Lets say I have a test which was executed 5 times, the results are:
4
2
5
42142141
5

The 4th value is a mistake and the average should be 4, (4+2+5+5)/4.
Is it possible?
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

calculation of the average value?
Do you mean average Reply value? Its not a problem, HostMonitor offers such counter.
4
2
5
42142141
5
The 4th value is a mistake and the average should be 4
Mistake? You want to ignore some Reply values from statistics?
This is impossible.

Regards
Alex
Post Reply