diff --git a/connectors/vmware/lib/cmdnethost.pm b/connectors/vmware/lib/cmdnethost.pm index 6e28604e6..fc4343e90 100644 --- a/connectors/vmware/lib/cmdnethost.pm +++ b/connectors/vmware/lib/cmdnethost.pm @@ -144,9 +144,9 @@ sub run { if ($#nic_downs >= 0) { if ($self->{skip_errors} == 0 || $self->{filter} == 0) { $status = centreon::esxd::common::errors_mask($status, 'UNKNOWN'); - } - centreon::esxd::common::output_add(\$output_unknown, \$output_unknown_append, ", ", + centreon::esxd::common::output_add(\$output_unknown, \$output_unknown_append, ", ", "Link(s) '" . join("','", @nic_downs) . "' is(are) down"); + } } foreach (keys %pnic_def_up) { diff --git a/connectors/vmware/lib/cmdtoolsvm.pm b/connectors/vmware/lib/cmdtoolsvm.pm index 12f6c51a5..b749f46a2 100644 --- a/connectors/vmware/lib/cmdtoolsvm.pm +++ b/connectors/vmware/lib/cmdtoolsvm.pm @@ -99,9 +99,9 @@ sub run { centreon::esxd::common::output_add(\$output_critical, \$output_critical_append, ", ", "VMTools not running on VM:" . $not_running); } - if ($not_running ne '') { + if ($not_up2date ne '') { centreon::esxd::common::output_add(\$output_warning, \$output_warning_append, ", ", - "VMTools not up-to-date on VM:" . $not_running); + "VMTools not up-to-date on VM:" . $not_up2date); } if ($output_unknown ne "") {