mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-27 15:44:21 +02:00
add filter os vmware plugin and case insensitive
This commit is contained in:
parent
e672918088
commit
25f41459b6
@ -57,6 +57,7 @@ sub new {
|
|||||||
"timeout:s@" => { name => 'timeout' },
|
"timeout:s@" => { name => 'timeout' },
|
||||||
"sampling-period:s@" => { name => 'sampling_period' },
|
"sampling-period:s@" => { name => 'sampling_period' },
|
||||||
"time-shift:s@" => { name => 'time_shift' },
|
"time-shift:s@" => { name => 'time_shift' },
|
||||||
|
"case-insensitive" => { name => 'case_insensitive' },
|
||||||
"unknown-connector-status:s" => { name => 'unknown_connector_status' },
|
"unknown-connector-status:s" => { name => 'unknown_connector_status' },
|
||||||
"warning-connector-status:s" => { name => 'warning_connector_status' },
|
"warning-connector-status:s" => { name => 'warning_connector_status' },
|
||||||
"critical-connector-status:s" => { name => 'critical_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->{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->{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->{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->{connector_port} = 5700 if ($self->{connector_port} eq '');
|
||||||
$self->{container} = 'default' if ($self->{container} 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).
|
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>
|
=item B<--unknown-connector-status>
|
||||||
|
|
||||||
Set unknown threshold for connector status (Default: '%{code} < 0 || (%{code} > 0 && %{code} < 200)').
|
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' },
|
"scope-host:s" => { name => 'scope_host' },
|
||||||
"display-description" => { name => 'display_description' },
|
"display-description" => { name => 'display_description' },
|
||||||
"filter-description:s" => { name => 'filter_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' },
|
"unknown-status:s" => { name => 'unknown_status', default => '%{connection_state} !~ /^connected$/i or %{power_state} !~ /^poweredOn$/i' },
|
||||||
"warning-status:s" => { name => 'warning_status', default => '' },
|
"warning-status:s" => { name => 'warning_status', default => '' },
|
||||||
"critical-status:s" => { name => 'critical_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).
|
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>
|
=item B<--scope-datacenter>
|
||||||
|
|
||||||
Search in following datacenter(s) (can be a regexp).
|
Search in following datacenter(s) (can be a regexp).
|
||||||
|
@ -142,6 +142,7 @@ sub new {
|
|||||||
"scope-cluster:s" => { name => 'scope_cluster' },
|
"scope-cluster:s" => { name => 'scope_cluster' },
|
||||||
"scope-host:s" => { name => 'scope_host' },
|
"scope-host:s" => { name => 'scope_host' },
|
||||||
"filter-description:s" => { name => 'filter_description' },
|
"filter-description:s" => { name => 'filter_description' },
|
||||||
|
"filter-os:s" => { name => 'filter_os' },
|
||||||
"display-description" => { name => 'display_description' },
|
"display-description" => { name => 'display_description' },
|
||||||
"datastore-name:s" => { name => 'datastore_name' },
|
"datastore-name:s" => { name => 'datastore_name' },
|
||||||
"filter-datastore:s" => { name => 'filter_datastore' },
|
"filter-datastore:s" => { name => 'filter_datastore' },
|
||||||
@ -217,6 +218,10 @@ VM hostname is a regexp.
|
|||||||
|
|
||||||
Filter also virtual machines description (can be 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>
|
=item B<--scope-datacenter>
|
||||||
|
|
||||||
Search in following datacenter(s) (can be a regexp).
|
Search in following datacenter(s) (can be a regexp).
|
||||||
|
@ -114,6 +114,7 @@ sub new {
|
|||||||
"scope-cluster:s" => { name => 'scope_cluster' },
|
"scope-cluster:s" => { name => 'scope_cluster' },
|
||||||
"scope-host:s" => { name => 'scope_host' },
|
"scope-host:s" => { name => 'scope_host' },
|
||||||
"filter-description:s" => { name => 'filter_description' },
|
"filter-description:s" => { name => 'filter_description' },
|
||||||
|
"filter-os:s" => { name => 'filter_os' },
|
||||||
"display-description" => { name => 'display_description' },
|
"display-description" => { name => 'display_description' },
|
||||||
"device:s" => { name => 'device' },
|
"device:s" => { name => 'device' },
|
||||||
"unknown-status:s" => { name => 'unknown_status', default => '%{connection_state} !~ /^connected$/i' },
|
"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).
|
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>
|
=item B<--scope-datacenter>
|
||||||
|
|
||||||
Search in following datacenter(s) (can be a regexp).
|
Search in following datacenter(s) (can be a regexp).
|
||||||
|
@ -138,6 +138,7 @@ sub new {
|
|||||||
"vm-hostname:s" => { name => 'vm_hostname' },
|
"vm-hostname:s" => { name => 'vm_hostname' },
|
||||||
"filter" => { name => 'filter' },
|
"filter" => { name => 'filter' },
|
||||||
"filter-description:s" => { name => 'filter_description' },
|
"filter-description:s" => { name => 'filter_description' },
|
||||||
|
"filter-os:s" => { name => 'filter_os' },
|
||||||
"display-description" => { name => 'display_description' },
|
"display-description" => { name => 'display_description' },
|
||||||
"check-disk-limit" => { name => 'check_disk_limit' },
|
"check-disk-limit" => { name => 'check_disk_limit' },
|
||||||
"warning-disk-status:s" => { name => 'warning_disk_status', default => '' },
|
"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).
|
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>
|
=item B<--display-description>
|
||||||
|
|
||||||
Display virtual machine description.
|
Display virtual machine description.
|
||||||
|
@ -255,6 +255,7 @@ sub new {
|
|||||||
"scope-cluster:s" => { name => 'scope_cluster' },
|
"scope-cluster:s" => { name => 'scope_cluster' },
|
||||||
"scope-host:s" => { name => 'scope_host' },
|
"scope-host:s" => { name => 'scope_host' },
|
||||||
"filter-description:s" => { name => 'filter_description' },
|
"filter-description:s" => { name => 'filter_description' },
|
||||||
|
"filter-os:s" => { name => 'filter_os' },
|
||||||
"display-description" => { name => 'display_description' },
|
"display-description" => { name => 'display_description' },
|
||||||
"units:s" => { name => 'units', default => '%' },
|
"units:s" => { name => 'units', default => '%' },
|
||||||
"free" => { name => 'free' },
|
"free" => { name => 'free' },
|
||||||
@ -327,6 +328,10 @@ VM hostname is a regexp.
|
|||||||
|
|
||||||
Filter also virtual machines description (can be 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>
|
=item B<--scope-datacenter>
|
||||||
|
|
||||||
Search in following datacenter(s) (can be a regexp).
|
Search in following datacenter(s) (can be a regexp).
|
||||||
|
@ -39,6 +39,7 @@ sub new {
|
|||||||
"scope-cluster:s" => { name => 'scope_cluster' },
|
"scope-cluster:s" => { name => 'scope_cluster' },
|
||||||
"scope-host:s" => { name => 'scope_host' },
|
"scope-host:s" => { name => 'scope_host' },
|
||||||
"filter-description:s" => { name => 'filter_description' },
|
"filter-description:s" => { name => 'filter_description' },
|
||||||
|
"filter-os:s" => { name => 'filter_os' },
|
||||||
"display-description" => { name => 'display_description' },
|
"display-description" => { name => 'display_description' },
|
||||||
"check-consolidation" => { name => 'check_consolidation' },
|
"check-consolidation" => { name => 'check_consolidation' },
|
||||||
"nopoweredon-skip" => { name => 'nopoweredon_skip' },
|
"nopoweredon-skip" => { name => 'nopoweredon_skip' },
|
||||||
@ -185,6 +186,10 @@ VM hostname is a regexp.
|
|||||||
|
|
||||||
Filter also virtual machines description (can be 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>
|
=item B<--scope-datacenter>
|
||||||
|
|
||||||
Search in following datacenter(s) (can be a regexp).
|
Search in following datacenter(s) (can be a regexp).
|
||||||
|
@ -106,6 +106,7 @@ sub new {
|
|||||||
"scope-cluster:s" => { name => 'scope_cluster' },
|
"scope-cluster:s" => { name => 'scope_cluster' },
|
||||||
"scope-host:s" => { name => 'scope_host' },
|
"scope-host:s" => { name => 'scope_host' },
|
||||||
"filter-description:s" => { name => 'filter_description' },
|
"filter-description:s" => { name => 'filter_description' },
|
||||||
|
"filter-os:s" => { name => 'filter_os' },
|
||||||
"display-description" => { name => 'display_description' },
|
"display-description" => { name => 'display_description' },
|
||||||
"unknown-status:s" => { name => 'unknown_status', default => '%{connection_state} !~ /^connected$/i' },
|
"unknown-status:s" => { name => 'unknown_status', default => '%{connection_state} !~ /^connected$/i' },
|
||||||
"warning-status:s" => { name => 'warning_status', default => '' },
|
"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).
|
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>
|
=item B<--scope-datacenter>
|
||||||
|
|
||||||
Search in following datacenter(s) (can be a regexp).
|
Search in following datacenter(s) (can be a regexp).
|
||||||
|
@ -105,6 +105,7 @@ sub new {
|
|||||||
"scope-cluster:s" => { name => 'scope_cluster' },
|
"scope-cluster:s" => { name => 'scope_cluster' },
|
||||||
"scope-host:s" => { name => 'scope_host' },
|
"scope-host:s" => { name => 'scope_host' },
|
||||||
"filter-description:s" => { name => 'filter_description' },
|
"filter-description:s" => { name => 'filter_description' },
|
||||||
|
"filter-os:s" => { name => 'filter_os' },
|
||||||
"display-description" => { name => 'display_description' },
|
"display-description" => { name => 'display_description' },
|
||||||
"unknown-status:s" => { name => 'unknown_status', default => '%{connection_state} !~ /^connected$/i 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 => '' },
|
"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).
|
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>
|
=item B<--scope-datacenter>
|
||||||
|
|
||||||
Search in following datacenter(s) (can be a regexp).
|
Search in following datacenter(s) (can be a regexp).
|
||||||
|
@ -38,6 +38,7 @@ sub new {
|
|||||||
"scope-cluster:s" => { name => 'scope_cluster' },
|
"scope-cluster:s" => { name => 'scope_cluster' },
|
||||||
"scope-host:s" => { name => 'scope_host' },
|
"scope-host:s" => { name => 'scope_host' },
|
||||||
"filter-description:s" => { name => 'filter_description' },
|
"filter-description:s" => { name => 'filter_description' },
|
||||||
|
"filter-os:s" => { name => 'filter_os' },
|
||||||
"disconnect-status:s" => { name => 'disconnect_status', default => 'unknown' },
|
"disconnect-status:s" => { name => 'disconnect_status', default => 'unknown' },
|
||||||
"nopoweredon-skip" => { name => 'nopoweredon_skip' },
|
"nopoweredon-skip" => { name => 'nopoweredon_skip' },
|
||||||
"display-description" => { name => 'display_description' },
|
"display-description" => { name => 'display_description' },
|
||||||
@ -165,6 +166,10 @@ VM hostname is a regexp.
|
|||||||
|
|
||||||
Filter also virtual machines description (can be 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>
|
=item B<--scope-datacenter>
|
||||||
|
|
||||||
Search in following datacenter(s) (can be a regexp).
|
Search in following datacenter(s) (can be a regexp).
|
||||||
|
@ -38,6 +38,7 @@ sub new {
|
|||||||
"scope-cluster:s" => { name => 'scope_cluster' },
|
"scope-cluster:s" => { name => 'scope_cluster' },
|
||||||
"scope-host:s" => { name => 'scope_host' },
|
"scope-host:s" => { name => 'scope_host' },
|
||||||
"filter-description:s" => { name => 'filter_description' },
|
"filter-description:s" => { name => 'filter_description' },
|
||||||
|
"filter-os:s" => { name => 'filter_os' },
|
||||||
"display-description" => { name => 'display_description' },
|
"display-description" => { name => 'display_description' },
|
||||||
"disconnect-status:s" => { name => 'disconnect_status', default => 'unknown' },
|
"disconnect-status:s" => { name => 'disconnect_status', default => 'unknown' },
|
||||||
"tools-notinstalled-status:s" => { name => 'tools_notinstalled_status', default => 'critical' },
|
"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).
|
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>
|
=item B<--scope-datacenter>
|
||||||
|
|
||||||
Search in following datacenter(s) (can be a regexp).
|
Search in following datacenter(s) (can be a regexp).
|
||||||
|
Loading…
x
Reference in New Issue
Block a user