From 933c8d5429d51e000535952d4a7720b275a56c6b Mon Sep 17 00:00:00 2001 From: Quentin Garnier Date: Fri, 11 Oct 2013 11:26:08 +0000 Subject: [PATCH] Fix some minor bugs git-svn-id: http://svn.merethis.net/centreon-esxd/trunk@88 a5eaa968-4c79-4d68-970d-af6011b5b055 --- connectors/vmware/lib/cmdnethost.pm | 4 ++-- connectors/vmware/lib/cmdtoolsvm.pm | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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 "") {