From b2e4d859e4cf9be2196656d1833213efff803157 Mon Sep 17 00:00:00 2001 From: Colin Gagnaire Date: Wed, 10 Apr 2019 12:04:30 +0200 Subject: [PATCH] add filter uuid on vmware vm modes --- apps/vmware/connector/mode/cpuvm.pm | 1 + apps/vmware/connector/mode/datastorevm.pm | 1 + apps/vmware/connector/mode/devicevm.pm | 1 + apps/vmware/connector/mode/limitvm.pm | 1 + apps/vmware/connector/mode/memoryvm.pm | 1 + apps/vmware/connector/mode/snapshotvm.pm | 1 + apps/vmware/connector/mode/statusvm.pm | 1 + apps/vmware/connector/mode/swapvm.pm | 1 + apps/vmware/connector/mode/thinprovisioningvm.pm | 3 ++- apps/vmware/connector/mode/toolsvm.pm | 1 + 10 files changed, 11 insertions(+), 1 deletion(-) diff --git a/apps/vmware/connector/mode/cpuvm.pm b/apps/vmware/connector/mode/cpuvm.pm index c3462da50..d36795d56 100644 --- a/apps/vmware/connector/mode/cpuvm.pm +++ b/apps/vmware/connector/mode/cpuvm.pm @@ -158,6 +158,7 @@ sub new { "display-description" => { name => 'display_description' }, "filter-description:s" => { name => 'filter_description' }, "filter-os:s" => { name => 'filter_os' }, + "filter-uuid:s" => { name => 'filter_uuid' }, "unknown-status:s" => { name => 'unknown_status', default => '%{connection_state} !~ /^connected$/i or %{power_state} !~ /^poweredOn$/i' }, "warning-status:s" => { name => 'warning_status', default => '' }, "critical-status:s" => { name => 'critical_status', default => '' }, diff --git a/apps/vmware/connector/mode/datastorevm.pm b/apps/vmware/connector/mode/datastorevm.pm index 1399d1650..bfbdfb042 100644 --- a/apps/vmware/connector/mode/datastorevm.pm +++ b/apps/vmware/connector/mode/datastorevm.pm @@ -143,6 +143,7 @@ sub new { "scope-host:s" => { name => 'scope_host' }, "filter-description:s" => { name => 'filter_description' }, "filter-os:s" => { name => 'filter_os' }, + "filter-uuid:s" => { name => 'filter_uuid' }, "display-description" => { name => 'display_description' }, "datastore-name:s" => { name => 'datastore_name' }, "filter-datastore:s" => { name => 'filter_datastore' }, diff --git a/apps/vmware/connector/mode/devicevm.pm b/apps/vmware/connector/mode/devicevm.pm index 593834141..d8c122364 100644 --- a/apps/vmware/connector/mode/devicevm.pm +++ b/apps/vmware/connector/mode/devicevm.pm @@ -115,6 +115,7 @@ sub new { "scope-host:s" => { name => 'scope_host' }, "filter-description:s" => { name => 'filter_description' }, "filter-os:s" => { name => 'filter_os' }, + "filter-uuid:s" => { name => 'filter_uuid' }, "display-description" => { name => 'display_description' }, "device:s" => { name => 'device' }, "unknown-status:s" => { name => 'unknown_status', default => '%{connection_state} !~ /^connected$/i' }, diff --git a/apps/vmware/connector/mode/limitvm.pm b/apps/vmware/connector/mode/limitvm.pm index 9cd8439fd..708795867 100644 --- a/apps/vmware/connector/mode/limitvm.pm +++ b/apps/vmware/connector/mode/limitvm.pm @@ -139,6 +139,7 @@ sub new { "filter" => { name => 'filter' }, "filter-description:s" => { name => 'filter_description' }, "filter-os:s" => { name => 'filter_os' }, + "filter-uuid:s" => { name => 'filter_uuid' }, "display-description" => { name => 'display_description' }, "check-disk-limit" => { name => 'check_disk_limit' }, "warning-disk-status:s" => { name => 'warning_disk_status', default => '' }, diff --git a/apps/vmware/connector/mode/memoryvm.pm b/apps/vmware/connector/mode/memoryvm.pm index d2a0f01ff..15f559cb5 100644 --- a/apps/vmware/connector/mode/memoryvm.pm +++ b/apps/vmware/connector/mode/memoryvm.pm @@ -256,6 +256,7 @@ sub new { "scope-host:s" => { name => 'scope_host' }, "filter-description:s" => { name => 'filter_description' }, "filter-os:s" => { name => 'filter_os' }, + "filter-uuid:s" => { name => 'filter_uuid' }, "display-description" => { name => 'display_description' }, "units:s" => { name => 'units', default => '%' }, "free" => { name => 'free' }, diff --git a/apps/vmware/connector/mode/snapshotvm.pm b/apps/vmware/connector/mode/snapshotvm.pm index d30da6601..79ff5efb6 100644 --- a/apps/vmware/connector/mode/snapshotvm.pm +++ b/apps/vmware/connector/mode/snapshotvm.pm @@ -40,6 +40,7 @@ sub new { "scope-host:s" => { name => 'scope_host' }, "filter-description:s" => { name => 'filter_description' }, "filter-os:s" => { name => 'filter_os' }, + "filter-uuid:s" => { name => 'filter_uuid' }, "display-description" => { name => 'display_description' }, "check-consolidation" => { name => 'check_consolidation' }, "nopoweredon-skip" => { name => 'nopoweredon_skip' }, diff --git a/apps/vmware/connector/mode/statusvm.pm b/apps/vmware/connector/mode/statusvm.pm index a7811690e..bce83bdc2 100644 --- a/apps/vmware/connector/mode/statusvm.pm +++ b/apps/vmware/connector/mode/statusvm.pm @@ -107,6 +107,7 @@ sub new { "scope-host:s" => { name => 'scope_host' }, "filter-description:s" => { name => 'filter_description' }, "filter-os:s" => { name => 'filter_os' }, + "filter-uuid:s" => { name => 'filter_uuid' }, "display-description" => { name => 'display_description' }, "unknown-status:s" => { name => 'unknown_status', default => '%{connection_state} !~ /^connected$/i' }, "warning-status:s" => { name => 'warning_status', default => '' }, diff --git a/apps/vmware/connector/mode/swapvm.pm b/apps/vmware/connector/mode/swapvm.pm index 767aa62b3..ef2cac981 100644 --- a/apps/vmware/connector/mode/swapvm.pm +++ b/apps/vmware/connector/mode/swapvm.pm @@ -106,6 +106,7 @@ sub new { "scope-host:s" => { name => 'scope_host' }, "filter-description:s" => { name => 'filter_description' }, "filter-os:s" => { name => 'filter_os' }, + "filter-uuid:s" => { name => 'filter_uuid' }, "display-description" => { name => 'display_description' }, "unknown-status:s" => { name => 'unknown_status', default => '%{connection_state} !~ /^connected$/i or %{power_state} !~ /^poweredOn$/i' }, "warning-status:s" => { name => 'warning_status', default => '' }, diff --git a/apps/vmware/connector/mode/thinprovisioningvm.pm b/apps/vmware/connector/mode/thinprovisioningvm.pm index 4e50dd9f6..3013a083a 100644 --- a/apps/vmware/connector/mode/thinprovisioningvm.pm +++ b/apps/vmware/connector/mode/thinprovisioningvm.pm @@ -38,7 +38,8 @@ sub new { "scope-cluster:s" => { name => 'scope_cluster' }, "scope-host:s" => { name => 'scope_host' }, "filter-description:s" => { name => 'filter_description' }, - "filter-os:s" => { name => 'filter_os' }, + "filter-os:s" => { name => 'filter_os' }, + "filter-uuid:s" => { name => 'filter_uuid' }, "disconnect-status:s" => { name => 'disconnect_status', default => 'unknown' }, "nopoweredon-skip" => { name => 'nopoweredon_skip' }, "display-description" => { name => 'display_description' }, diff --git a/apps/vmware/connector/mode/toolsvm.pm b/apps/vmware/connector/mode/toolsvm.pm index 9ff4547a2..217d13a7e 100644 --- a/apps/vmware/connector/mode/toolsvm.pm +++ b/apps/vmware/connector/mode/toolsvm.pm @@ -39,6 +39,7 @@ sub new { "scope-host:s" => { name => 'scope_host' }, "filter-description:s" => { name => 'filter_description' }, "filter-os:s" => { name => 'filter_os' }, + "filter-uuid:s" => { name => 'filter_uuid' }, "display-description" => { name => 'display_description' }, "disconnect-status:s" => { name => 'disconnect_status', default => 'unknown' }, "tools-notinstalled-status:s" => { name => 'tools_notinstalled_status', default => 'critical' },