Icinga / icinga-core

Icinga 1.x, the old core (EOL 31.12.2018)
GNU General Public License v2.0
45 stars 27 forks source link

No host alerts included in alert summary report of type "Most Recent Alert" #1599

Closed haxtibal closed 6 years ago

haxtibal commented 6 years ago

When using Reporting->Alert Summary to create a report where Report Type = "Most Recent Alert" and Alert Types = "Host and Service Alerts", the generated report only includes service alerts but no host alerts. As a side effect, the counter in "Displaying all matching alerts" may be greater then the number of alerts actually listed by the report.

summary.cgi would be prepared to display host alerts by showing "N/A" in the service column. However, that code path is not longer reached. Seems to be a regression introduced with commit a4f01c32a4cfc04430476741e0cbaa30a80310ee.

I'll send a PR with a proposal for a simple fix.