diff options
Diffstat (limited to 'bin/icli')
-rwxr-xr-x | bin/icli | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -511,10 +511,18 @@ elsif ($list_type eq 'd') { } } elsif ($recheck) { + foreach my $host (@list_hosts) { - if (not @list_services) { + if (not @list_services and not @filters) { recheck_host_all($host); } + elsif (not @list_services and @filters) { + foreach my $service ( + grep { filter_service($_) } + @{$data->{'services'}->{$host}} ) { + recheck_service($host, $service->{'service_description'}); + } + } else { foreach my $service (@list_services) { recheck_service($host, $service); |