Skip to content
This repository has been archived by the owner on Jan 15, 2019. It is now read-only.

[dev.icinga.com #3942] Servicegroup Availability Report shows1000% uptime #54

Closed
icinga-migration opened this issue Apr 9, 2013 · 4 comments
Milestone

Comments

@icinga-migration
Copy link

This issue has been migrated from Redmine: https://dev.icinga.com/issues/3942

Created by tkoeberl on 2013-04-09 16:11:42 +00:00

Assignee: berk
Status: Resolved (closed on 2013-04-10 15:10:54 +00:00)
Target Version: 1.9
Last Update: 2013-04-10 15:10:54 +00:00 (in Redmine)

Icinga Version: 1.8.4
DB Type: MySQL
DB Version: 5.1.66-0
Jasper Version: 5.0.0

The SQL gives me back following numbers.
object_id name2 state sla
786 Search engine 0 9,999999
786 Search engine 1 0,002325

9,999999 get rounded to 10.. multiplicated by 100. That gives 1000.

Fix:
</dataset> <keyExpression><![CDATA[$F{state}.toString().replaceFirst("0", "OK").replaceFirst("1", "NOK")]]></keyExpression> <valueExpression><![CDATA[$F{sla}.setScale(5,BigDecimal.ROUND_HALF_UP).multiply(100)]]></valueExpression> <labelExpression><![CDATA[$F{sla}.setScale(5,BigDecimal.ROUND_HALF_UP).multiply(100).toString() + "%"]]></labelExpression> </pieDataset>

more info:
http://www.monitoring-portal.org/wbb/index.php?page=Thread&threadID=28243

Changesets

2013-04-10 15:09:29 +00:00 by (unknown) b7645b3

changed rounding error in availibilty report

fixed Java round up from 3 to four decimals

fixes #3942
@icinga-migration
Copy link
Author

Updated by berk on 2013-04-10 08:34:46 +00:00

  • Assigned to set to berk

@icinga-migration
Copy link
Author

Updated by berk on 2013-04-10 08:34:53 +00:00

  • Category set to Templates

@icinga-migration
Copy link
Author

Updated by berk on 2013-04-10 08:35:09 +00:00

  • Target Version set to 1.9

@icinga-migration
Copy link
Author

Updated by Anonymous on 2013-04-10 15:10:54 +00:00

  • Status changed from New to Resolved
  • Done % changed from 0 to 100

Applied in changeset b7645b3.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant