From e2d977be33de7cea149cb86a73f53c65b681fc7d Mon Sep 17 00:00:00 2001 From: garnier-quentin Date: Fri, 1 Feb 2019 16:05:35 +0100 Subject: [PATCH] WIP centreon compat vmware 3.0.0 connector --- centreon-plugins/apps/vmware/connector/mode/countvmhost.pm | 4 ++-- centreon-plugins/apps/vmware/connector/mode/cpuhost.pm | 4 ++-- centreon-plugins/apps/vmware/connector/mode/cpuvm.pm | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/centreon-plugins/apps/vmware/connector/mode/countvmhost.pm b/centreon-plugins/apps/vmware/connector/mode/countvmhost.pm index b0fb8f774..5014280d9 100644 --- a/centreon-plugins/apps/vmware/connector/mode/countvmhost.pm +++ b/centreon-plugins/apps/vmware/connector/mode/countvmhost.pm @@ -135,7 +135,7 @@ sub new { "filter" => { name => 'filter' }, "scope-datacenter:s" => { name => 'scope_datacenter' }, "scope-cluster:s" => { name => 'scope_cluster' }, - "unknown-status:s" => { name => 'unknown_status', default => '%{status} !~ /^connected$/' }, + "unknown-status:s" => { name => 'unknown_status', default => '%{status} !~ /^connected$/i' }, "warning-status:s" => { name => 'warning_status', default => '' }, "critical-status:s" => { name => 'critical_status', default => '' }, }); @@ -203,7 +203,7 @@ Search in following cluster(s) (can be a regexp). =item B<--unknown-status> -Set warning threshold for status (Default: '%{status} !~ /^connected$/'). +Set warning threshold for status (Default: '%{status} !~ /^connected$/i'). Can used special variables like: %{status} =item B<--warning-status> diff --git a/centreon-plugins/apps/vmware/connector/mode/cpuhost.pm b/centreon-plugins/apps/vmware/connector/mode/cpuhost.pm index e5fa48b41..064230390 100644 --- a/centreon-plugins/apps/vmware/connector/mode/cpuhost.pm +++ b/centreon-plugins/apps/vmware/connector/mode/cpuhost.pm @@ -134,7 +134,7 @@ sub new { "filter" => { name => 'filter' }, "scope-datacenter:s" => { name => 'scope_datacenter' }, "scope-cluster:s" => { name => 'scope_cluster' }, - "unknown-status:s" => { name => 'unknown_status', default => '%{status} !~ /^connected$/' }, + "unknown-status:s" => { name => 'unknown_status', default => '%{status} !~ /^connected$/i' }, "warning-status:s" => { name => 'warning_status', default => '' }, "critical-status:s" => { name => 'critical_status', default => '' }, }); @@ -204,7 +204,7 @@ Search in following cluster(s) (can be a regexp). =item B<--unknown-status> -Set warning threshold for status (Default: '%{status} !~ /^connected$/'). +Set warning threshold for status (Default: '%{status} !~ /^connected$/i'). Can used special variables like: %{status} =item B<--warning-status> diff --git a/centreon-plugins/apps/vmware/connector/mode/cpuvm.pm b/centreon-plugins/apps/vmware/connector/mode/cpuvm.pm index e4b938d37..9f908367b 100644 --- a/centreon-plugins/apps/vmware/connector/mode/cpuvm.pm +++ b/centreon-plugins/apps/vmware/connector/mode/cpuvm.pm @@ -158,7 +158,7 @@ sub new { "scope-host:s" => { name => 'scope_host' }, "display-description" => { name => 'display_description' }, "filter-description:s" => { name => 'filter_description' }, - "unknown-status:s" => { name => 'unknown_status', default => '%{connection_state} !~ /^connected$/ or %{power_state} !~ /^poweredOn$/i' }, + "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 => '' }, }); @@ -243,7 +243,7 @@ Search in following host(s) (can be a regexp). =item B<--unknown-status> -Set warning threshold for status (Default: '%{connection_state} !~ /^connected$/ or %{power_state} !~ /^poweredOn$/i'). +Set warning threshold for status (Default: '%{connection_state} !~ /^connected$/i or %{power_state} !~ /^poweredOn$/i'). Can used special variables like: %{status} =item B<--warning-status>