add filter os vmware plugin and case insensitive
This commit is contained in:
parent
be1409aa0e
commit
7cfa80302b
|
@ -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)').
|
||||
|
|
|
@ -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).
|
||||
|
|
|
@ -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).
|
||||
|
|
|
@ -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).
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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).
|
||||
|
|
|
@ -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).
|
||||
|
|
|
@ -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).
|
||||
|
|
|
@ -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).
|
||||
|
|
|
@ -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).
|
||||
|
|
|
@ -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).
|
||||
|
|
Loading…
Reference in New Issue