Skip to content

Commit

Permalink
[MON-21885] [Plugin] Bad incrementation in VMware health (#4716)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucie-dubrunfaut authored Nov 8, 2023
1 parent c902151 commit bea1844
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/apps/vmware/connector/mode/healthhost.pm
Original file line number Diff line number Diff line change
Expand Up @@ -257,9 +257,8 @@ sub manage_selection {
$status = lc($1) if ($entry->{status} =~ /(yellow|red)/i);
$self->{host}->{$host_name}->{global_problems}->{$status}++;
$self->{host}->{$host_name}->{global_problems}->{total}++;
if ($status eq 'ok') {
$self->{host}->{$host_name}->{global_problems}->{total_problems}++
} else {
if ($status ne 'ok') {
$self->{host}->{$host_name}->{global_problems}->{total_problems}++;
$self->{host}->{$host_name}->{global_summary}->{$i} = {
type => defined($entry->{type}) ? $entry->{type} : '',
name => $entry->{name},
Expand Down

0 comments on commit bea1844

Please sign in to comment.