Skip to content

Commit

Permalink
fix livestatus error on landing page (#1299)
Browse files Browse the repository at this point in the history
  • Loading branch information
sni committed Jul 25, 2023
1 parent e6a62e5 commit ebba1e6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
This file documents the revision history for the Monitoring Webinterface Thruk.

next:
- fix livestatus error on landing page (#1299)

3.08.3 Fri Jul 21 13:06:06 CEST 2023
- improve landing page performance
- fix replacing links in plugin output containing spaces
Expand Down
4 changes: 2 additions & 2 deletions lib/Thruk/Controller/main.pm
Original file line number Diff line number Diff line change
Expand Up @@ -288,12 +288,12 @@ sub index {
sub _get_top5_hostgroups {
my($c, $hostfilter) = @_;

my $auth_filter = Thruk::Utils::Auth::get_auth_filter($c, 'hosts');
my $auth_filter = [Thruk::Utils::Auth::get_auth_filter($c, 'hosts')];
if(!$auth_filter && !$hostfilter) {
return _get_top5_hostgroups_sums($c);
}
my $hosts = $c->db->get_hosts(
filter => [ $auth_filter, $hostfilter, groups => { '!=', '' } ],
filter => [ $auth_filter, $hostfilter, { groups => { '!=', '' }} ],
columns => ['name', 'groups'],
debug_hint => 'top hostgroups',
);
Expand Down

0 comments on commit ebba1e6

Please sign in to comment.