mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-27 15:44:21 +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);
|
$status = lc($1) if ($entry->{status} =~ /(yellow|red)/i);
|
||||||
$self->{host}->{$host_name}->{global_problems}->{$status}++;
|
$self->{host}->{$host_name}->{global_problems}->{$status}++;
|
||||||
$self->{host}->{$host_name}->{global_problems}->{total}++;
|
$self->{host}->{$host_name}->{global_problems}->{total}++;
|
||||||
if ($status eq 'ok') {
|
if ($status ne 'ok') {
|
||||||
$self->{host}->{$host_name}->{global_problems}->{total_problems}++
|
$self->{host}->{$host_name}->{global_problems}->{total_problems}++;
|
||||||
} else {
|
|
||||||
$self->{host}->{$host_name}->{global_summary}->{$i} = {
|
$self->{host}->{$host_name}->{global_summary}->{$i} = {
|
||||||
type => defined($entry->{type}) ? $entry->{type} : '',
|
type => defined($entry->{type}) ? $entry->{type} : '',
|
||||||
name => $entry->{name},
|
name => $entry->{name},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user