Hi All,
I have got something like reported in HHQ-3803 bug:
Environment
- HQ 4.2
- Custom SNMP plugin that tests a "type=availability" metric.
- The platform is always "UP".
In the summary charts the average metric value is 1.1.
Looking at the code, I found this:
- Class: DataManagerEjbImpl.java
- Method: private final double[] getAggData(final List historicalData)
- line: 1245
code: total = 1;
-line: 1258
code: total = (double)((mv.getValue() * c) + total );
I see that the total used to calculate average always starts with value 1.
So if we have 7 hits at 1, the average count will be: 8 / 7 -> about 1.1
Is there any known issue that forces "1" as the start value for total counting?
If, as I suppose, the issue is the same posted as HHQ-3803 is there any patch for 4.2 to avoid this?
Thanks in advance for the help.
Roberto
I have got something like reported in HHQ-3803 bug:
Environment
- HQ 4.2
- Custom SNMP plugin that tests a "type=availability" metric.
- The platform is always "UP".
In the summary charts the average metric value is 1.1.
Looking at the code, I found this:
- Class: DataManagerEjbImpl.java
- Method: private final double[] getAggData(final List historicalData)
- line: 1245
code: total = 1;
-line: 1258
code: total = (double)((mv.getValue() * c) + total );
I see that the total used to calculate average always starts with value 1.
So if we have 7 hits at 1, the average count will be: 8 / 7 -> about 1.1
Is there any known issue that forces "1" as the start value for total counting?
If, as I suppose, the issue is the same posted as HHQ-3803 is there any patch for 4.2 to avoid this?
Thanks in advance for the help.
Roberto