From 9329190dc43c105209dd13468828e4aae04c3dff Mon Sep 17 00:00:00 2001 From: Colin Gagnaire Date: Wed, 10 Apr 2019 11:59:49 +0200 Subject: [PATCH] add filter uuid option for vm --- connectors/vmware/src/centreon/vmware/cmdcpuvm.pm | 1 + connectors/vmware/src/centreon/vmware/cmddatastorevm.pm | 1 + connectors/vmware/src/centreon/vmware/cmddevicevm.pm | 1 + connectors/vmware/src/centreon/vmware/cmdlimitvm.pm | 1 + connectors/vmware/src/centreon/vmware/cmdmemvm.pm | 1 + connectors/vmware/src/centreon/vmware/cmdsnapshotvm.pm | 1 + connectors/vmware/src/centreon/vmware/cmdstatusvm.pm | 1 + connectors/vmware/src/centreon/vmware/cmdswapvm.pm | 1 + connectors/vmware/src/centreon/vmware/cmdthinprovisioningvm.pm | 1 + connectors/vmware/src/centreon/vmware/cmdtoolsvm.pm | 1 + 10 files changed, 10 insertions(+) diff --git a/connectors/vmware/src/centreon/vmware/cmdcpuvm.pm b/connectors/vmware/src/centreon/vmware/cmdcpuvm.pm index ac7535c3c..cb7ef2d65 100644 --- a/connectors/vmware/src/centreon/vmware/cmdcpuvm.pm +++ b/connectors/vmware/src/centreon/vmware/cmdcpuvm.pm @@ -56,6 +56,7 @@ sub run { my $filters = $self->build_filter(label => 'name', search_option => 'vm_hostname', is_regexp => 'filter'); $self->add_filter(filters => $filters, label => 'config.annotation', search_option => 'filter_description'); $self->add_filter(filters => $filters, label => 'config.guestFullName', search_option => 'filter_os'); + $self->add_filter(filters => $filters, label => 'config.uuid', search_option => 'filter_uuid'); my @properties = ('name', 'runtime.connectionState', 'runtime.powerState'); if (defined($self->{display_description})) { diff --git a/connectors/vmware/src/centreon/vmware/cmddatastorevm.pm b/connectors/vmware/src/centreon/vmware/cmddatastorevm.pm index 5c0d93938..efbf1d32f 100644 --- a/connectors/vmware/src/centreon/vmware/cmddatastorevm.pm +++ b/connectors/vmware/src/centreon/vmware/cmddatastorevm.pm @@ -62,6 +62,7 @@ sub run { my $filters = $self->build_filter(label => 'name', search_option => 'vm_hostname', is_regexp => 'filter'); $self->add_filter(filters => $filters, label => 'config.annotation', search_option => 'filter_description'); $self->add_filter(filters => $filters, label => 'config.guestFullName', search_option => 'filter_os'); + $self->add_filter(filters => $filters, label => 'config.uuid', search_option => 'filter_uuid'); my @properties = ('name', 'datastore', 'runtime.connectionState', 'runtime.powerState'); if (defined($self->{display_description})) { diff --git a/connectors/vmware/src/centreon/vmware/cmddevicevm.pm b/connectors/vmware/src/centreon/vmware/cmddevicevm.pm index c83551c12..0584601f6 100644 --- a/connectors/vmware/src/centreon/vmware/cmddevicevm.pm +++ b/connectors/vmware/src/centreon/vmware/cmddevicevm.pm @@ -55,6 +55,7 @@ sub run { my $filters = $self->build_filter(label => 'name', search_option => 'vm_hostname', is_regexp => 'filter'); $self->add_filter(filters => $filters, label => 'config.annotation', search_option => 'filter_description'); $self->add_filter(filters => $filters, label => 'config.guestFullName', search_option => 'filter_os'); + $self->add_filter(filters => $filters, label => 'config.uuid', search_option => 'filter_uuid'); my @properties = ('name', 'runtime.connectionState', 'runtime.powerState', 'config.hardware.device'); if (defined($self->{display_description})) { diff --git a/connectors/vmware/src/centreon/vmware/cmdlimitvm.pm b/connectors/vmware/src/centreon/vmware/cmdlimitvm.pm index e739df15c..eabe415eb 100644 --- a/connectors/vmware/src/centreon/vmware/cmdlimitvm.pm +++ b/connectors/vmware/src/centreon/vmware/cmdlimitvm.pm @@ -51,6 +51,7 @@ sub run { my $filters = $self->build_filter(label => 'name', search_option => 'vm_hostname', is_regexp => 'filter'); $self->add_filter(filters => $filters, label => 'config.annotation', search_option => 'filter_description'); $self->add_filter(filters => $filters, label => 'config.guestFullName', search_option => 'filter_os'); + $self->add_filter(filters => $filters, label => 'config.uuid', search_option => 'filter_uuid'); my @properties = ('name', 'runtime.connectionState', 'runtime.powerState', 'config.cpuAllocation.limit', 'config.memoryAllocation.limit'); if (defined($self->{check_disk_limit})) { diff --git a/connectors/vmware/src/centreon/vmware/cmdmemvm.pm b/connectors/vmware/src/centreon/vmware/cmdmemvm.pm index 35f5f168d..17e8aa7f5 100644 --- a/connectors/vmware/src/centreon/vmware/cmdmemvm.pm +++ b/connectors/vmware/src/centreon/vmware/cmdmemvm.pm @@ -56,6 +56,7 @@ sub run { my $filters = $self->build_filter(label => 'name', search_option => 'vm_hostname', is_regexp => 'filter'); $self->add_filter(filters => $filters, label => 'config.annotation', search_option => 'filter_description'); $self->add_filter(filters => $filters, label => 'config.guestFullName', search_option => 'filter_os'); + $self->add_filter(filters => $filters, label => 'config.uuid', search_option => 'filter_uuid'); my @properties = ('name', 'summary.config.memorySizeMB', 'runtime.connectionState', 'runtime.powerState'); if (defined($self->{display_description})) { diff --git a/connectors/vmware/src/centreon/vmware/cmdsnapshotvm.pm b/connectors/vmware/src/centreon/vmware/cmdsnapshotvm.pm index 95755e322..14666f1ac 100644 --- a/connectors/vmware/src/centreon/vmware/cmdsnapshotvm.pm +++ b/connectors/vmware/src/centreon/vmware/cmdsnapshotvm.pm @@ -51,6 +51,7 @@ sub run { my $filters = $self->build_filter(label => 'name', search_option => 'vm_hostname', is_regexp => 'filter'); $self->add_filter(filters => $filters, label => 'config.annotation', search_option => 'filter_description'); $self->add_filter(filters => $filters, label => 'config.guestFullName', search_option => 'filter_os'); + $self->add_filter(filters => $filters, label => 'config.uuid', search_option => 'filter_uuid'); my @properties = ('snapshot.rootSnapshotList', 'name', 'runtime.connectionState', 'runtime.powerState'); if (defined($self->{check_consolidation}) == 1) { diff --git a/connectors/vmware/src/centreon/vmware/cmdstatusvm.pm b/connectors/vmware/src/centreon/vmware/cmdstatusvm.pm index d46c33252..0e9ecf245 100644 --- a/connectors/vmware/src/centreon/vmware/cmdstatusvm.pm +++ b/connectors/vmware/src/centreon/vmware/cmdstatusvm.pm @@ -51,6 +51,7 @@ sub run { my $filters = $self->build_filter(label => 'name', search_option => 'vm_hostname', is_regexp => 'filter'); $self->add_filter(filters => $filters, label => 'config.annotation', search_option => 'filter_description'); $self->add_filter(filters => $filters, label => 'config.guestFullName', search_option => 'filter_os'); + $self->add_filter(filters => $filters, label => 'config.uuid', search_option => 'filter_uuid'); my @properties = ('name', 'summary.overallStatus', 'runtime.connectionState', 'runtime.powerState'); if (defined($self->{display_description})) { diff --git a/connectors/vmware/src/centreon/vmware/cmdswapvm.pm b/connectors/vmware/src/centreon/vmware/cmdswapvm.pm index 1f6f860cd..210204018 100644 --- a/connectors/vmware/src/centreon/vmware/cmdswapvm.pm +++ b/connectors/vmware/src/centreon/vmware/cmdswapvm.pm @@ -56,6 +56,7 @@ sub run { my $filters = $self->build_filter(label => 'name', search_option => 'vm_hostname', is_regexp => 'filter'); $self->add_filter(filters => $filters, label => 'config.annotation', search_option => 'filter_description'); $self->add_filter(filters => $filters, label => 'config.guestFullName', search_option => 'filter_os'); + $self->add_filter(filters => $filters, label => 'config.uuid', search_option => 'filter_uuid'); my @properties = ('name', 'runtime.connectionState', 'runtime.powerState'); if (defined($self->{display_description})) { diff --git a/connectors/vmware/src/centreon/vmware/cmdthinprovisioningvm.pm b/connectors/vmware/src/centreon/vmware/cmdthinprovisioningvm.pm index c2957a1f0..0cbba2baf 100644 --- a/connectors/vmware/src/centreon/vmware/cmdthinprovisioningvm.pm +++ b/connectors/vmware/src/centreon/vmware/cmdthinprovisioningvm.pm @@ -51,6 +51,7 @@ sub run { my $filters = $self->build_filter(label => 'name', search_option => 'vm_hostname', is_regexp => 'filter'); $self->add_filter(filters => $filters, label => 'config.annotation', search_option => 'filter_description'); $self->add_filter(filters => $filters, label => 'config.guestFullName', search_option => 'filter_os'); + $self->add_filter(filters => $filters, label => 'config.uuid', search_option => 'filter_uuid'); my @properties = ('name', 'config.hardware.device', 'runtime.connectionState', 'runtime.powerState'); if (defined($self->{display_description})) { diff --git a/connectors/vmware/src/centreon/vmware/cmdtoolsvm.pm b/connectors/vmware/src/centreon/vmware/cmdtoolsvm.pm index 928ff9ef8..467928171 100644 --- a/connectors/vmware/src/centreon/vmware/cmdtoolsvm.pm +++ b/connectors/vmware/src/centreon/vmware/cmdtoolsvm.pm @@ -64,6 +64,7 @@ sub run { my $filters = $self->build_filter(label => 'name', search_option => 'vm_hostname', is_regexp => 'filter'); $self->add_filter(filters => $filters, label => 'config.annotation', search_option => 'filter_description'); $self->add_filter(filters => $filters, label => 'config.guestFullName', search_option => 'filter_os'); + $self->add_filter(filters => $filters, label => 'config.uuid', search_option => 'filter_uuid'); my @properties = ('name', 'summary.guest.toolsStatus', 'runtime.connectionState', 'runtime.powerState'); if (defined($self->{display_description})) {