From 80e0f58dc1d36fdca5b6c99e7d1a8241949941a3 Mon Sep 17 00:00:00 2001 From: Quentin Garnier Date: Tue, 28 Apr 2015 10:00:55 +0200 Subject: [PATCH] Test scoping in connector vmware --- .../apps/vmware/connector/mode/cpuvm.pm | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/centreon-plugins/apps/vmware/connector/mode/cpuvm.pm b/centreon-plugins/apps/vmware/connector/mode/cpuvm.pm index 13d378a21..f88a8e45b 100644 --- a/centreon-plugins/apps/vmware/connector/mode/cpuvm.pm +++ b/centreon-plugins/apps/vmware/connector/mode/cpuvm.pm @@ -50,6 +50,9 @@ sub new { { "vm-hostname:s" => { name => 'vm_hostname' }, "filter" => { name => 'filter' }, + "scope-datacenter:s" => { name => 'scope_datacenter' }, + "scope-cluster:s" => { name => 'scope_cluster' }, + "scope-host:s" => { name => 'scope_host' }, "filter-description:s" => { name => 'filter_description' }, "disconnect-status:s" => { name => 'disconnect_status', default => 'unknown' }, "nopoweredon-status:s" => { name => 'nopoweredon_status', default => 'unknown' }, @@ -119,6 +122,18 @@ VM hostname is a regexp. Filter also virtual machines description (can be a regexp). +=item B<--scope-datacenter> + +Search in following datacenter(s) (can be a regexp). + +=item B<--scope-cluster> + +Search in following cluster(s) (can be a regexp). + +=item B<--scope-host> + +Search in following host(s) (can be a regexp). + =item B<--disconnect-status> Status if VM disconnected (default: 'unknown').