diff --git a/apps/vmware/connector/custom/connector.pm b/apps/vmware/connector/custom/connector.pm index c6f5cfd74..9dae9e990 100644 --- a/apps/vmware/connector/custom/connector.pm +++ b/apps/vmware/connector/custom/connector.pm @@ -57,6 +57,7 @@ sub new { "timeout:s@" => { name => 'timeout' }, "sampling-period:s@" => { name => 'sampling_period' }, "time-shift:s@" => { name => 'time_shift' }, + "case-insensitive" => { name => 'case_insensitive' }, "unknown-connector-status:s" => { name => 'unknown_connector_status' }, "warning-connector-status:s" => { name => 'warning_connector_status' }, "critical-connector-status:s" => { name => 'critical_connector_status' }, @@ -116,6 +117,7 @@ sub check_options { $self->{unknown_connector_status} = (defined($self->{option_results}->{unknown_connector_status})) ? $self->{option_results}->{unknown_connector_status} : '%{code} < 0 || (%{code} > 0 && %{code} < 200)'; $self->{warning_connector_status} = (defined($self->{option_results}->{warning_connector_status})) ? $self->{option_results}->{warning_connector_status} : ''; $self->{critical_connector_status} = (defined($self->{option_results}->{critical_connector_status})) ? $self->{option_results}->{critical_connector_status} : ''; + $self->{case_insensitive} = (defined($self->{option_results}->{case_insensitive})) ? $self->{option_results}->{case_insensitive} : undef; $self->{connector_port} = 5700 if ($self->{connector_port} eq ''); $self->{container} = 'default' if ($self->{container} eq ''); @@ -357,6 +359,10 @@ Should be not different than 300 or 20. Can shift the time. We the following option you can average X counters values (default: 0). +=item B<--case-insensitive> + +Searchs are case insensitive. + =item B<--unknown-connector-status> Set unknown threshold for connector status (Default: '%{code} < 0 || (%{code} > 0 && %{code} < 200)'). diff --git a/apps/vmware/connector/mode/cpuvm.pm b/apps/vmware/connector/mode/cpuvm.pm index 04cde98a2..c3462da50 100644 --- a/apps/vmware/connector/mode/cpuvm.pm +++ b/apps/vmware/connector/mode/cpuvm.pm @@ -157,6 +157,7 @@ sub new { "scope-host:s" => { name => 'scope_host' }, "display-description" => { name => 'display_description' }, "filter-description:s" => { name => 'filter_description' }, + "filter-os:s" => { name => 'filter_os' }, "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 => '' }, @@ -228,6 +229,10 @@ VM hostname is a regexp. Filter also virtual machines description (can be a regexp). +=item B<--filter-os> + +Filter also virtual machines OS name (can be a regexp). + =item B<--scope-datacenter> Search in following datacenter(s) (can be a regexp). diff --git a/apps/vmware/connector/mode/datastorevm.pm b/apps/vmware/connector/mode/datastorevm.pm index 17b3fb4f9..1399d1650 100644 --- a/apps/vmware/connector/mode/datastorevm.pm +++ b/apps/vmware/connector/mode/datastorevm.pm @@ -142,6 +142,7 @@ 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' }, "display-description" => { name => 'display_description' }, "datastore-name:s" => { name => 'datastore_name' }, "filter-datastore:s" => { name => 'filter_datastore' }, @@ -217,6 +218,10 @@ VM hostname is a regexp. Filter also virtual machines description (can be a regexp). +=item B<--filter-os> + +Filter also virtual machines OS name (can be a regexp). + =item B<--scope-datacenter> Search in following datacenter(s) (can be a regexp). diff --git a/apps/vmware/connector/mode/devicevm.pm b/apps/vmware/connector/mode/devicevm.pm index 45e5a369e..593834141 100644 --- a/apps/vmware/connector/mode/devicevm.pm +++ b/apps/vmware/connector/mode/devicevm.pm @@ -114,6 +114,7 @@ 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' }, "display-description" => { name => 'display_description' }, "device:s" => { name => 'device' }, "unknown-status:s" => { name => 'unknown_status', default => '%{connection_state} !~ /^connected$/i' }, @@ -183,6 +184,10 @@ VM hostname is a regexp. Filter also virtual machines description (can be a regexp). +=item B<--filter-os> + +Filter also virtual machines OS name (can be a regexp). + =item B<--scope-datacenter> Search in following datacenter(s) (can be a regexp). diff --git a/apps/vmware/connector/mode/limitvm.pm b/apps/vmware/connector/mode/limitvm.pm index af960cc31..9cd8439fd 100644 --- a/apps/vmware/connector/mode/limitvm.pm +++ b/apps/vmware/connector/mode/limitvm.pm @@ -138,6 +138,7 @@ sub new { "vm-hostname:s" => { name => 'vm_hostname' }, "filter" => { name => 'filter' }, "filter-description:s" => { name => 'filter_description' }, + "filter-os:s" => { name => 'filter_os' }, "display-description" => { name => 'display_description' }, "check-disk-limit" => { name => 'check_disk_limit' }, "warning-disk-status:s" => { name => 'warning_disk_status', default => '' }, @@ -230,6 +231,10 @@ VM hostname is a regexp. Filter also virtual machines description (can be a regexp). +=item B<--filter-os> + +Filter also virtual machines OS name (can be a regexp). + =item B<--display-description> Display virtual machine description. diff --git a/apps/vmware/connector/mode/memoryvm.pm b/apps/vmware/connector/mode/memoryvm.pm index c8119d8ce..d2a0f01ff 100644 --- a/apps/vmware/connector/mode/memoryvm.pm +++ b/apps/vmware/connector/mode/memoryvm.pm @@ -255,6 +255,7 @@ 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' }, "display-description" => { name => 'display_description' }, "units:s" => { name => 'units', default => '%' }, "free" => { name => 'free' }, @@ -327,6 +328,10 @@ VM hostname is a regexp. Filter also virtual machines description (can be a regexp). +=item B<--filter-os> + +Filter also virtual machines OS name (can be a regexp). + =item B<--scope-datacenter> Search in following datacenter(s) (can be a regexp). diff --git a/apps/vmware/connector/mode/snapshotvm.pm b/apps/vmware/connector/mode/snapshotvm.pm index 40af1c07c..776384840 100644 --- a/apps/vmware/connector/mode/snapshotvm.pm +++ b/apps/vmware/connector/mode/snapshotvm.pm @@ -39,6 +39,7 @@ 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' }, "display-description" => { name => 'display_description' }, "check-consolidation" => { name => 'check_consolidation' }, "nopoweredon-skip" => { name => 'nopoweredon_skip' }, @@ -185,6 +186,10 @@ VM hostname is a regexp. Filter also virtual machines description (can be a regexp). +=item B<--filter-os> + +Filter also virtual machines OS name (can be a regexp). + =item B<--scope-datacenter> Search in following datacenter(s) (can be a regexp). diff --git a/apps/vmware/connector/mode/statusvm.pm b/apps/vmware/connector/mode/statusvm.pm index 1c60c652b..a7811690e 100644 --- a/apps/vmware/connector/mode/statusvm.pm +++ b/apps/vmware/connector/mode/statusvm.pm @@ -106,6 +106,7 @@ 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' }, "display-description" => { name => 'display_description' }, "unknown-status:s" => { name => 'unknown_status', default => '%{connection_state} !~ /^connected$/i' }, "warning-status:s" => { name => 'warning_status', default => '' }, @@ -170,6 +171,10 @@ VM hostname is a regexp. Filter also virtual machines description (can be a regexp). +=item B<--filter-os> + +Filter also virtual machines OS name (can be a regexp). + =item B<--scope-datacenter> Search in following datacenter(s) (can be a regexp). diff --git a/apps/vmware/connector/mode/swapvm.pm b/apps/vmware/connector/mode/swapvm.pm index caa08469c..e560626fa 100644 --- a/apps/vmware/connector/mode/swapvm.pm +++ b/apps/vmware/connector/mode/swapvm.pm @@ -105,6 +105,7 @@ 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' }, "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 => '' }, @@ -168,6 +169,10 @@ VM hostname is a regexp. Filter also virtual machines description (can be a regexp). +=item B<--filter-os> + +Filter also virtual machines OS name (can be a regexp). + =item B<--scope-datacenter> Search in following datacenter(s) (can be a regexp). diff --git a/apps/vmware/connector/mode/thinprovisioningvm.pm b/apps/vmware/connector/mode/thinprovisioningvm.pm index 7a70a1e55..4e50dd9f6 100644 --- a/apps/vmware/connector/mode/thinprovisioningvm.pm +++ b/apps/vmware/connector/mode/thinprovisioningvm.pm @@ -38,6 +38,7 @@ 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' }, "disconnect-status:s" => { name => 'disconnect_status', default => 'unknown' }, "nopoweredon-skip" => { name => 'nopoweredon_skip' }, "display-description" => { name => 'display_description' }, @@ -165,6 +166,10 @@ VM hostname is a regexp. Filter also virtual machines description (can be a regexp). +=item B<--filter-os> + +Filter also virtual machines OS name (can be a regexp). + =item B<--scope-datacenter> Search in following datacenter(s) (can be a regexp). diff --git a/apps/vmware/connector/mode/toolsvm.pm b/apps/vmware/connector/mode/toolsvm.pm index 8b01f6b26..9ff4547a2 100644 --- a/apps/vmware/connector/mode/toolsvm.pm +++ b/apps/vmware/connector/mode/toolsvm.pm @@ -38,6 +38,7 @@ 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' }, "display-description" => { name => 'display_description' }, "disconnect-status:s" => { name => 'disconnect_status', default => 'unknown' }, "tools-notinstalled-status:s" => { name => 'tools_notinstalled_status', default => 'critical' }, @@ -192,6 +193,10 @@ VM hostname is a regexp. Filter also virtual machines description (can be a regexp). +=item B<--filter-os> + +Filter also virtual machines OS name (can be a regexp). + =item B<--scope-datacenter> Search in following datacenter(s) (can be a regexp).