From aa839c2348143660ed23f2510ec9dda13ad8ccda Mon Sep 17 00:00:00 2001 From: garnier-quentin Date: Fri, 12 May 2017 17:06:34 +0200 Subject: [PATCH] + Fix #38 --- connectors/vmware/src/centreon/vmware/cmdtoolsvm.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/connectors/vmware/src/centreon/vmware/cmdtoolsvm.pm b/connectors/vmware/src/centreon/vmware/cmdtoolsvm.pm index 862a13ce2..fe9e7b80b 100644 --- a/connectors/vmware/src/centreon/vmware/cmdtoolsvm.pm +++ b/connectors/vmware/src/centreon/vmware/cmdtoolsvm.pm @@ -156,8 +156,8 @@ sub run { $self->display_verbose(label => 'vmtools not running:', vms => \%not_running); } if (scalar(keys %not_installed) > 0 && - !$self->{manager}->{output}->is_status(value => $self->{tools_notupd2date_status}, compare => 'ok', litteral => 1)) { - $self->{manager}->{output}->output_add(severity => $self->{tools_notupd2date_status}, + !$self->{manager}->{output}->is_status(value => $self->{tools_notinstalled_status}, compare => 'ok', litteral => 1)) { + $self->{manager}->{output}->output_add(severity => $self->{tools_notinstalled_status}, short_msg => sprintf('%d VM with VMTools not installed', scalar(keys %not_installed))); $self->display_verbose(label => 'vmtools not installed:', vms => \%not_installed); }