Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
[dev.icinga.com #1524] status totals are wrong when searching #630
This issue has been migrated from Redmine: https://dev.icinga.com/issues/1524
Created by Anonymous on 2011-05-16 11:36:35 +00:00
When a search is done, the totals in status.cgi are all wrong, all numbers are 0, regardless of what is searched for.
2011-12-16 21:45:50 +00:00 by ricardo 061f17a
2012-01-02 23:28:09 +00:00 by ricardo 6c8e32b
2012-03-20 21:30:20 +00:00 by ricardo 4c10618
2012-04-05 23:26:56 +00:00 by ricardo 972e7a3
2012-04-13 18:48:07 +00:00 by ricardo 7b9ec5b
Updated by mfriedrich on 2011-07-16 11:39:36 +00:00
this is introduced when using host filters (precompiled regexes) and the asterisk for searching. search is returning only the first result by default, where the counting of the host and service totals is correct.
in order to fight the error, one might rewrite the search completely, and even if using regex, doing the counts for the status totals right in place (global variable instead of extra counting!).
this relates to #844
Updated by ricardo on 2011-11-05 16:40:14 +00:00
Just wanted to know what these counters should represent. because sometimes they counted ALL hosts and services and sometimes just the ones which are displayed.
As we now have the TAC header I think it would make sense just to display the counts for the hosts and services which are displayed.
What do you think?
Updated by mfriedrich on 2011-11-15 09:42:02 +00:00
basically, those counts do the following
the counts mostly did not happen correctly due to the navbarsearch filter not being honored when counting. having rewritten that, i think they would remain "self corrected" now by fixing #844
Updated by ricardo on 2011-12-16 21:52:17 +00:00
in current rbartels/cgi
can't guarantee that all display_styles are displayed correctly, so please TEST!!!
Updated by mfriedrich on 2012-04-03 13:28:41 +00:00
from my perspective this looks find for now. but still, that anag discussion thingy should match it too.
status totals should contain
as now implemented.
Updated by ricardo on 2012-04-13 14:25:02 +00:00
Hope people understand the way it works now.
For example: If you display all hostgroups, it only shows the status for all hostgroups, not for host's which aren't in any hostgroup. The same with servicegroups.