mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-26 23:24:27 +02:00
[MON-21885] [Plugin] Bad incrementation in VMware health (#4716)
This commit is contained in:
parent
c9021513d1
commit
bea1844582
@ -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},
|
||||
|
Loading…
x
Reference in New Issue
Block a user