Icinga / icinga-reports

Icinga Reports 1.x MySQL (EOL 31.12.2018)
GNU General Public License v2.0
14 stars 13 forks source link

[dev.icinga.com #3752] morningReport - Serviceevents states are wrong #52

Closed icinga-migration closed 11 years ago

icinga-migration commented 11 years ago

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

Created by jschanz on 2013-03-05 11:16:31 +00:00

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

Icinga Version: 1.8.4
DB Type: MySQL
DB Version: 1.8.4
Jasper Version: 4.7.0

The Text Field Expression should be

$F{state}.toString().replaceFirst("0", "Ok").replaceFirst("1", "Warning").replaceFirst("2", "Critical").replaceFirst("3", "Unknown")

instead of

$F{state}.toString().replaceFirst("0", "Up").replaceFirst("1", "Down").replaceFirst("2", "Unreachable")

in table Table 4

Otherwise all reports look like the following attached images.

Bildschirmfoto-4.png Bildschirmfoto-5.png

Attachments

Changesets

2013-04-10 12:53:19 +00:00 by (unknown) 2469233518a3ef9c1d4b431f61bfdeabbf92884b

fixed state replace in morning report

replaced java String replace with corrected one from issue

fixes #3752
icinga-migration commented 11 years ago

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

icinga-migration commented 11 years ago

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

Applied in changeset 2469233518a3ef9c1d4b431f61bfdeabbf92884b.