From 002ffb42e432c7c704a2ce270a1e5cfa1b996797 Mon Sep 17 00:00:00 2001 From: sdepassio <114986849+sdepassio@users.noreply.github.com> Date: Thu, 8 Jun 2023 17:57:30 +0200 Subject: [PATCH 01/39] Adding CODEOWNERS file (#4460) --- .github/CODEOWNERS | 1 + 1 file changed, 1 insertion(+) create mode 100644 .github/CODEOWNERS diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 000000000..1adc1f378 --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1 @@ +* @centreon/perl-reviewers \ No newline at end of file From c2e41b0923432389897109b0bc9fd02a288aeae7 Mon Sep 17 00:00:00 2001 From: qgarnier Date: Fri, 9 Jun 2023 14:31:17 +0200 Subject: [PATCH 02/39] (plugin) apps::jenkins - mode jobs fix --filter-job-name option (#4459) --- src/apps/jenkins/mode/jobs.pm | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/apps/jenkins/mode/jobs.pm b/src/apps/jenkins/mode/jobs.pm index 86a6d126c..eaa6896ed 100644 --- a/src/apps/jenkins/mode/jobs.pm +++ b/src/apps/jenkins/mode/jobs.pm @@ -83,13 +83,13 @@ sub manage_selection { $self->{jobs} = {}; foreach my $job (@{$jobs->{jobs}}) { my $name = $job->{name}; - next if (defined($self->{option_results}->{filter_job_name}) && $self->{option_results}->{filter_job_name} ne '' && - $name !~ /$self->{option_results}->{filter_job_name}/); - - if (defined($job->{healthReport}->[0]->{score})) { - $self->{jobs}->{$name} = { score => $job->{healthReport}->[0]->{score}, violations => 0 }; - if ($job->{healthReport}->[0]->{description} =~ /^.+?([0-9]+)/ ) { - $self->{jobs}->{$name}->{violations} = $1; + if (!defined($self->{option_results}->{filter_job_name}) || $self->{option_results}->{filter_job_name} eq '' || + $name =~ /$self->{option_results}->{filter_job_name}/) { + if (defined($job->{healthReport}->[0]->{score})) { + $self->{jobs}->{$name} = { score => $job->{healthReport}->[0]->{score}, violations => 0 }; + if ($job->{healthReport}->[0]->{description} =~ /^.+?([0-9]+)/ ) { + $self->{jobs}->{$name}->{violations} = $1; + } } } From a3d05d0ad12f14cdf0077c3416d397fce87d66e2 Mon Sep 17 00:00:00 2001 From: qgarnier Date: Fri, 9 Jun 2023 14:42:38 +0200 Subject: [PATCH 03/39] (plugin) network/cisco/standard/snmp - mode interfaces add --add-qos-limit option (#4463) --- .../cisco/standard/snmp/mode/interfaces.pm | 139 +++++++++++++++++- 1 file changed, 136 insertions(+), 3 deletions(-) diff --git a/src/centreon/common/cisco/standard/snmp/mode/interfaces.pm b/src/centreon/common/cisco/standard/snmp/mode/interfaces.pm index a834d4b50..e7bde597e 100644 --- a/src/centreon/common/cisco/standard/snmp/mode/interfaces.pm +++ b/src/centreon/common/cisco/standard/snmp/mode/interfaces.pm @@ -99,7 +99,27 @@ sub set_counters_errors { $self->SUPER::set_counters_errors(%options); - push @{$self->{maps_counters}->{int}}, + push @{$self->{maps_counters}->{int}}, + { label => 'in-traffic-limit', filter => 'add_qos_limit', nlabel => 'interface.traffic.in.limit.bitspersecond', set => { + key_values => [ { name => 'traffic_in_limit' }, { name => 'display' } ], + output_template => 'Traffic In Limit : %s %s/s', + output_change_bytes => 2, + perfdatas => [ + { label => 'traffic_in_limit', template => '%s', + unit => 'b/s', label_extra_instance => 1, instance_use => 'display' } + ] + } + }, + { label => 'out-traffic-limit', filter => 'add_qos_limit', nlabel => 'interface.traffic.out.limit.bitspersecond', set => { + key_values => [ { name => 'traffic_out_limit' }, { name => 'display' } ], + output_template => 'Traffic Out Limit : %s %s/s', + output_change_bytes => 2, + perfdatas => [ + { label => 'traffic_out_limit', template => '%s', + unit => 'b/s', label_extra_instance => 1, instance_use => 'display' } + ] + } + }, { label => 'in-crc', filter => 'add_errors', nlabel => 'interface.packets.in.crc.count', set => { key_values => [ { name => 'incrc', diff => 1 }, { name => 'total_in_packets', diff => 1 }, { name => 'display' }, { name => 'mode_cast' } ], closure_custom_calc => $self->can('custom_errors_calc'), closure_custom_calc_extra_options => { label_ref1 => 'in', label_ref2 => 'crc' }, @@ -126,12 +146,90 @@ sub new { bless $self, $class; $options{options}->add_options(arguments => { - 'add-err-disable' => { name => 'add_err_disable' } + 'add-qos-limit' => { name => 'add_qos_limit' }, + 'add-err-disable' => { name => 'add_err_disable' } }); return $self; } +sub check_options { + my ($self, %options) = @_; + $self->SUPER::check_options(%options); + + $self->{checking} = ''; + foreach (('add_global', 'add_status', 'add_errors', 'add_traffic', 'add_cast', 'add_speed', 'add_volume', 'add_qos_limit')) { + if (defined($self->{option_results}->{$_})) { + $self->{checking} .= $_; + } + } +} + +sub reload_cache_custom { + my ($self, %options) = @_; + + return if (!defined($self->{option_results}->{add_qos_limit})); + + my $map_direction = { 1 => 'input', 2 => 'output' }; + + my $mapping = { + policyDirection => { oid => '.1.3.6.1.4.1.9.9.166.1.1.1.1.3', map => $map_direction }, # cbQosPolicyDirection + ifIndex => { oid => '.1.3.6.1.4.1.9.9.166.1.1.1.1.4' } # cbQosIfIndex + }; + my $mapping2 = { + configIndex => { oid => '.1.3.6.1.4.1.9.9.166.1.5.1.1.2' }, # cbQosConfigIndex + objectsType => { oid => '.1.3.6.1.4.1.9.9.166.1.5.1.1.3' } # cbQosObjectsType + }; + + my $oid_cbQosServicePolicyEntry = '.1.3.6.1.4.1.9.9.166.1.1.1.1'; + my $oid_cbQosObjectsEntry = '.1.3.6.1.4.1.9.9.166.1.5.1.1'; + my $snmp_result = $self->{snmp}->get_multiple_table( + oids => [ + { oid => $oid_cbQosServicePolicyEntry, start => $mapping->{policyDirection}->{oid}, end => $mapping->{ifIndex}->{oid} }, + { oid => $oid_cbQosObjectsEntry, start => $mapping2->{configIndex}->{oid}, end => $mapping2->{objectsType}->{oid} }, + ] + ); + + $options{datas}->{qos} = {}; + foreach (keys %{$snmp_result->{$oid_cbQosServicePolicyEntry}}) { + next if ($_ !~ /^$mapping->{ifIndex}->{oid}\.(.*)$/); + my $policyIndex = $1; + my $result = $self->{snmp}->map_instance(mapping => $mapping, results => $snmp_result->{$oid_cbQosServicePolicyEntry}, instance => $policyIndex); + + foreach (keys %{$snmp_result->{$oid_cbQosObjectsEntry}}) { + # 7 = police + next if ($_ !~ /^$mapping2->{objectsType}->{oid}\.$policyIndex\.(.*)$/ || $snmp_result->{$oid_cbQosObjectsEntry}->{$_} != 7); + my $result2 = $self->{snmp}->map_instance(mapping => $mapping2, results => $snmp_result->{$oid_cbQosObjectsEntry}, instance => $policyIndex . '.' . $1); + + $options{datas}->{qos}->{ $result->{ifIndex} } = {} if (!defined($options{datas}->{qos}->{ $result->{ifIndex} })); + $options{datas}->{qos}->{ $result->{ifIndex} }->{ $result->{policyDirection} } = $result2->{configIndex}; + } + } +} + +sub custom_load { + my ($self, %options) = @_; + + return if (!defined($self->{option_results}->{add_qos_limit})); + + my $oid_cbQosPoliceCfgRate64 = '.1.3.6.1.4.1.9.9.166.1.12.1.1.11'; + + my $qos = $self->{statefile_cache}->get(name => 'qos'); + my $instances = []; + foreach (keys %$qos) { + push @$instances, $qos->{$_}->{input} if (defined($qos->{$_}->{input})); + push @$instances, $qos->{$_}->{output} if (defined($qos->{$_}->{output})); + } + + return if (scalar(@$instances) <= 0); + + $self->{snmp}->load( + oids => [ $oid_cbQosPoliceCfgRate64 ], + instances => $instances, + instance_regexp => '^(.*)$' + ); +} + sub load_errors { my ($self, %options) = @_; @@ -191,6 +289,36 @@ sub add_result_status { if ($self->{int}->{$options{instance}}->{errdisable} eq ''); } +sub custom_add_result { + my ($self, %options) = @_; + + return if (!defined($self->{option_results}->{add_qos_limit})); + + my $qos = $self->{statefile_cache}->get(name => 'qos'); + + return if (!defined($qos->{ $options{instance} })); + + my $oid_cbQosPoliceCfgRate64 = '.1.3.6.1.4.1.9.9.166.1.12.1.1.11'; + + if (defined($qos->{ $options{instance} }->{input}) && + defined($self->{results}->{$oid_cbQosPoliceCfgRate64 . '.' . $qos->{ $options{instance} }->{input}}) && + $self->{results}->{$oid_cbQosPoliceCfgRate64 . '.' . $qos->{ $options{instance} }->{input}} =~ /(\d+)/) { + $self->{int}->{ $options{instance} }->{traffic_in_limit} = $self->{results}->{$oid_cbQosPoliceCfgRate64 . '.' . $qos->{ $options{instance} }->{input}}; + + $self->{int}->{ $options{instance} }->{speed_in} = $self->{results}->{$oid_cbQosPoliceCfgRate64 . '.' . $qos->{ $options{instance} }->{input}} + if (!defined($self->{option_results}->{speed_in}) || $self->{option_results}->{speed_in} eq ''); + } + + if (defined($qos->{ $options{instance} }->{output}) && + defined($self->{results}->{$oid_cbQosPoliceCfgRate64 . '.' . $qos->{ $options{instance} }->{output}}) && + $self->{results}->{$oid_cbQosPoliceCfgRate64 . '.' . $qos->{ $options{instance} }->{output}} =~ /(\d+)/) { + $self->{int}->{ $options{instance} }->{traffic_out_limit} = $self->{results}->{$oid_cbQosPoliceCfgRate64 . '.' . $qos->{ $options{instance} }->{output}}; + + $self->{int}->{ $options{instance} }->{speed_out} = $self->{results}->{$oid_cbQosPoliceCfgRate64 . '.' . $qos->{ $options{instance} }->{output}} + if (!defined($self->{option_results}->{speed_out}) || $self->{option_results}->{speed_out} eq ''); + } +} + 1; __END__ @@ -237,6 +365,10 @@ Check interface speed. Check interface data volume between two checks (not supposed to be graphed, useful for BI reporting). +=item B<--add-qos-limit> + +Check QoS traffic limit rate. + =item B<--check-metrics> If the expression is true, metrics are checked (Default: '%{opstatus} eq "up"'). @@ -255,7 +387,8 @@ You can use the following variables: %{admstatus}, %{opstatus}, %{duplexstatus}, Thresholds. Can be: 'total-port', 'total-admin-up', 'total-admin-down', 'total-oper-up', 'total-oper-down', -'in-traffic', 'out-traffic', 'in-crc', 'in-fcserror', 'in-error', 'in-discard', 'out-error', 'out-discard', +'in-traffic', 'out-traffic', 'in-traffic-limit', 'out-traffic-limit', +'in-crc', 'in-fcserror', 'in-error', 'in-discard', 'out-error', 'out-discard', 'in-ucast', 'in-bcast', 'in-mcast', 'out-ucast', 'out-bcast', 'out-mcast', 'speed' (b/s). From b35b0f9728d18d64e404b9975c588bc080dde4eb Mon Sep 17 00:00:00 2001 From: qgarnier Date: Fri, 9 Jun 2023 14:44:59 +0200 Subject: [PATCH 04/39] (plugin) apps::backup::veeam::vbem::restapi - new (#4456) --- .../deb.json | 5 + .../pkg.json | 9 + .../rpm.json | 5 + .../backup/veeam/vbem/restapi/custom/api.pm | 347 ++++++++++++++++++ .../backup/veeam/vbem/restapi/mode/cache.pm | 77 ++++ .../backup/veeam/vbem/restapi/mode/jobs.pm | 341 +++++++++++++++++ .../veeam/vbem/restapi/mode/listjobs.pm | 124 +++++++ .../vbem/restapi/mode/listrepositories.pm | 106 ++++++ .../veeam/vbem/restapi/mode/repositories.pm | 140 +++++++ src/apps/backup/veeam/vbem/restapi/plugin.pm | 52 +++ 10 files changed, 1206 insertions(+) create mode 100644 packaging/centreon-plugin-Applications-Veeam-Vbem-Restapi/deb.json create mode 100644 packaging/centreon-plugin-Applications-Veeam-Vbem-Restapi/pkg.json create mode 100644 packaging/centreon-plugin-Applications-Veeam-Vbem-Restapi/rpm.json create mode 100644 src/apps/backup/veeam/vbem/restapi/custom/api.pm create mode 100644 src/apps/backup/veeam/vbem/restapi/mode/cache.pm create mode 100644 src/apps/backup/veeam/vbem/restapi/mode/jobs.pm create mode 100644 src/apps/backup/veeam/vbem/restapi/mode/listjobs.pm create mode 100644 src/apps/backup/veeam/vbem/restapi/mode/listrepositories.pm create mode 100644 src/apps/backup/veeam/vbem/restapi/mode/repositories.pm create mode 100644 src/apps/backup/veeam/vbem/restapi/plugin.pm diff --git a/packaging/centreon-plugin-Applications-Veeam-Vbem-Restapi/deb.json b/packaging/centreon-plugin-Applications-Veeam-Vbem-Restapi/deb.json new file mode 100644 index 000000000..8133a85e5 --- /dev/null +++ b/packaging/centreon-plugin-Applications-Veeam-Vbem-Restapi/deb.json @@ -0,0 +1,5 @@ +{ + "dependencies": [ + "libdatetime-perl" + ] +} diff --git a/packaging/centreon-plugin-Applications-Veeam-Vbem-Restapi/pkg.json b/packaging/centreon-plugin-Applications-Veeam-Vbem-Restapi/pkg.json new file mode 100644 index 000000000..3ec7b2d23 --- /dev/null +++ b/packaging/centreon-plugin-Applications-Veeam-Vbem-Restapi/pkg.json @@ -0,0 +1,9 @@ +{ + "pkg_name": "centreon-plugin-Applications-Veeam-Vbem-Restapi", + "pkg_summary": "Centreon Plugin", + "plugin_name": "centreon_veeam_vbem_restapi.pl", + "files": [ + "centreon/plugins/script_custom.pm", + "apps/backup/veeam/vbem/restapi/" + ] +} diff --git a/packaging/centreon-plugin-Applications-Veeam-Vbem-Restapi/rpm.json b/packaging/centreon-plugin-Applications-Veeam-Vbem-Restapi/rpm.json new file mode 100644 index 000000000..e9dff7552 --- /dev/null +++ b/packaging/centreon-plugin-Applications-Veeam-Vbem-Restapi/rpm.json @@ -0,0 +1,5 @@ +{ + "dependencies": [ + "perl(DateTime)" + ] +} diff --git a/src/apps/backup/veeam/vbem/restapi/custom/api.pm b/src/apps/backup/veeam/vbem/restapi/custom/api.pm new file mode 100644 index 000000000..2a12617c4 --- /dev/null +++ b/src/apps/backup/veeam/vbem/restapi/custom/api.pm @@ -0,0 +1,347 @@ +# +# Copyright 2023 Centreon (http://www.centreon.com/) +# +# Centreon is a full-fledged industry-strength solution that meets +# the needs in IT infrastructure and application monitoring for +# service performance. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +package apps::backup::veeam::vbem::restapi::custom::api; + +use strict; +use warnings; +use centreon::plugins::http; +use centreon::plugins::statefile; +use JSON::XS; +use DateTime; +use Digest::MD5 qw(md5_hex); + +sub new { + my ($class, %options) = @_; + my $self = {}; + bless $self, $class; + + if (!defined($options{output})) { + print "Class Custom: Need to specify 'output' argument.\n"; + exit 3; + } + if (!defined($options{options})) { + $options{output}->add_option_msg(short_msg => "Class Custom: Need to specify 'options' argument."); + $options{output}->option_exit(); + } + + if (!defined($options{noptions})) { + $options{options}->add_options(arguments => { + 'api-username:s' => { name => 'api_username' }, + 'api-password:s' => { name => 'api_password' }, + 'hostname:s' => { name => 'hostname' }, + 'port:s' => { name => 'port' }, + 'proto:s' => { name => 'proto' }, + 'timeout:s' => { name => 'timeout' }, + 'unknown-http-status:s' => { name => 'unknown_http_status' }, + 'warning-http-status:s' => { name => 'warning_http_status' }, + 'critical-http-status:s' => { name => 'critical_http_status' }, + 'cache-use' => { name => 'cache_use' } + }); + } + $options{options}->add_help(package => __PACKAGE__, sections => 'REST API OPTIONS', once => 1); + + $self->{output} = $options{output}; + $self->{http} = centreon::plugins::http->new(%options, default_backend => 'curl'); + $self->{cache_connect} = centreon::plugins::statefile->new(%options); + $self->{cache} = centreon::plugins::statefile->new(%options); + + return $self; +} + +sub set_options { + my ($self, %options) = @_; + + $self->{option_results} = $options{option_results}; +} + +sub set_defaults {} + +sub check_options { + my ($self, %options) = @_; + + $self->{option_results}->{hostname} = (defined($self->{option_results}->{hostname})) ? $self->{option_results}->{hostname} : ''; + $self->{option_results}->{port} = (defined($self->{option_results}->{port})) ? $self->{option_results}->{port} : 9398; + $self->{option_results}->{proto} = (defined($self->{option_results}->{proto})) ? $self->{option_results}->{proto} : 'https'; + $self->{option_results}->{timeout} = (defined($self->{option_results}->{timeout})) ? $self->{option_results}->{timeout} : 50; + $self->{unknown_http_status} = (defined($self->{option_results}->{unknown_http_status})) ? $self->{option_results}->{unknown_http_status} : '%{http_code} < 200 or %{http_code} >= 300'; + $self->{warning_http_status} = (defined($self->{option_results}->{warning_http_status})) ? $self->{option_results}->{warning_http_status} : ''; + $self->{critical_http_status} = (defined($self->{option_results}->{critical_http_status})) ? $self->{option_results}->{critical_http_status} : ''; + $self->{api_username} = (defined($self->{option_results}->{api_username})) ? $self->{option_results}->{api_username} : ''; + $self->{api_password} = (defined($self->{option_results}->{api_password})) ? $self->{option_results}->{api_password} : ''; + + if ($self->{option_results}->{hostname} eq '') { + $self->{output}->add_option_msg(short_msg => "Need to specify --hostname option."); + $self->{output}->option_exit(); + } + if ($self->{api_username} eq '') { + $self->{output}->add_option_msg(short_msg => "Need to specify --api-username option."); + $self->{output}->option_exit(); + } + if ($self->{api_password} eq '') { + $self->{output}->add_option_msg(short_msg => "Need to specify --api-password option."); + $self->{output}->option_exit(); + } + + $self->{cache_connect}->check_options(option_results => $self->{option_results}); + $self->{cache}->check_options(option_results => $self->{option_results}); + + return 0; +} + +sub get_connection_info { + my ($self, %options) = @_; + + return $self->{option_results}->{hostname} . ':' . $self->{option_results}->{port}; +} + +sub settings { + my ($self, %options) = @_; + + return if (defined($self->{settings_done})); + $self->{http}->set_options(%{$self->{option_results}}); + $self->{http}->add_header(key => 'Accept', value => 'application/json'); + $self->{http}->add_header(key => 'Content-Type', value => 'application/json'); + $self->{settings_done} = 1; +} + +sub clean_session_id { + my ($self, %options) = @_; + + my $datas = { updated => time() }; + $self->{cache_connect}->write(data => $datas); +} + +sub get_session_id { + my ($self, %options) = @_; + + my $has_cache_file = $self->{cache_connect}->read(statefile => 'vbem_' . md5_hex($self->get_connection_info() . '_' . $self->{api_username})); + my $session_id = $self->{cache_connect}->get(name => 'session_id'); + my $md5_secret_cache = $self->{cache_connect}->get(name => 'md5_secret'); + my $md5_secret = md5_hex($self->{api_username} . $self->{api_password}); + + if ($has_cache_file == 0 || + !defined($session_id) || + (defined($md5_secret_cache) && $md5_secret_cache ne $md5_secret) + ) { + my $content = $self->{http}->request( + method => 'POST', + url_path => '/api/sessionMngr/', + query_form_post => '', + credentials => 1, + basic => 1, + username => $self->{api_username}, + password => $self->{api_password}, + unknown_status => $self->{unknown_http_status}, + warning_status => $self->{warning_http_status}, + critical_status => $self->{critical_http_status} + ); + + $session_id = $self->{http}->get_header(name => 'x-restsvcsessionid'); + + if (!defined($session_id)) { + $self->{output}->add_option_msg(short_msg => "Cannot find session id"); + $self->{output}->option_exit(); + } + + my $datas = { + updated => time(), + session_id => $session_id, + md5_secret => $md5_secret + }; + $self->{cache_connect}->write(data => $datas); + } + + return $session_id; +} + +sub request_api { + my ($self, %options) = @_; + + $self->settings(); + my $session_id = $self->get_session_id(); + my ($content) = $self->{http}->request( + url_path => $options{endpoint}, + get_param => $options{get_param}, + header => ['x-restsvcsessionid: ' . $session_id], + unknown_status => '', + warning_status => '', + critical_status => '' + ); + + # Maybe token is invalid. so we retry + if ($self->{http}->get_code() < 200 || $self->{http}->get_code() >= 300) { + $self->clean_session_id(); + $session_id = $self->get_session_id(); + $content = $self->{http}->request( + url_path => $options{endpoint}, + get_param => $options{get_param}, + header => ['x-restsvcsessionid: ' . $session_id], + unknown_status => $self->{unknown_http_status}, + warning_status => $self->{warning_http_status}, + critical_status => $self->{critical_http_status} + ); + } + + if (!defined($content) || $content eq '') { + $self->{output}->add_option_msg(short_msg => "API returns empty content [code: '" . $self->{http}->get_code() . "'] [message: '" . $self->{http}->get_message() . "']"); + $self->{output}->option_exit(); + } + + my $decoded; + eval { + $decoded = JSON::XS->new->decode($content); + }; + if ($@) { + $self->{output}->add_option_msg(short_msg => "Cannot decode response (add --debug option to display returned content)"); + $self->{output}->option_exit(); + } + + return $decoded; +} + +sub write_cache_file { + my ($self, %options) = @_; + + $self->{cache}->read(statefile => 'cache_vbem_' . $options{statefile} . '_' . md5_hex($self->get_connection_info() . '_' . $self->{api_username})); + $self->{cache}->write(data => { + update_time => time(), + response => $options{response} + }); +} + +sub get_cache_file_response { + my ($self, %options) = @_; + + $self->{cache}->read(statefile => 'cache_vbem_' . $options{statefile} . '_' . md5_hex($self->get_connection_info() . '_' . $self->{api_username})); + my $response = $self->{cache}->get(name => 'response'); + if (!defined($response)) { + $self->{output}->add_option_msg(short_msg => 'Cache file missing'); + $self->{output}->option_exit(); + } + return $response; +} + +sub cache_backup_job_session { + my ($self, %options) = @_; + + my $datas = $self->get_backup_job_session(disable_cache => 1, timeframe => $options{timeframe}); + $self->write_cache_file( + statefile => 'backup_job_session', + response => $datas + ); + + return $datas; +} + +sub cache_repository { + my ($self, %options) = @_; + + my $datas = $self->get_repository(disable_cache => 1); + $self->write_cache_file( + statefile => 'repository', + response => $datas + ); + + return $datas; +} + +sub get_backup_job_session { + my ($self, %options) = @_; + + return $self->get_cache_file_response(statefile => 'backup_job_session') + if (defined($self->{option_results}->{cache_use}) && !defined($options{disable_cache})); + + my $creation_time = DateTime->now->subtract(seconds => $options{timeframe})->iso8601(); + + return $self->request_api( + endpoint => '/api/query', + get_param => [ + 'type=BackupJobSession', + 'format=Entities', + 'filter=CreationTime>=' . $creation_time + ] + ); +} + +sub get_repository { + my ($self, %options) = @_; + + return $self->get_cache_file_response(statefile => 'repository') + if (defined($self->{option_results}->{cache_use}) && !defined($options{disable_cache})); + + return $self->request_api( + endpoint => '/api/query', + get_param => [ + 'type=Repository', + 'format=Entities' + ] + ); +} + +1; + +__END__ + +=head1 NAME + +Veeam Backup Enterprise Manager Rest API + +=head1 REST API OPTIONS + +Veeam Backup Enterprise Manager Rest API + +=over 8 + +=item B<--hostname> + +Set hostname. + +=item B<--port> + +Port used (Default: 9398) + +=item B<--proto> + +Specify https if needed (Default: 'https') + +=item B<--api-username> + +Set username. + +=item B<--api-password> + +Set password. + +=item B<--timeout> + +Set timeout in seconds (Default: 50). + +=item B<--cache-use> + +Use the cache file (created with cache mode). + +=back + +=head1 DESCRIPTION + +B. + +=cut diff --git a/src/apps/backup/veeam/vbem/restapi/mode/cache.pm b/src/apps/backup/veeam/vbem/restapi/mode/cache.pm new file mode 100644 index 000000000..00c73a305 --- /dev/null +++ b/src/apps/backup/veeam/vbem/restapi/mode/cache.pm @@ -0,0 +1,77 @@ +# +# Copyright 2023 Centreon (http://www.centreon.com/) +# +# Centreon is a full-fledged industry-strength solution that meets +# the needs in IT infrastructure and application monitoring for +# service performance. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +package apps::backup::veeam::vbem::restapi::mode::cache; + +use base qw(centreon::plugins::templates::counter); + +use strict; +use warnings; + +sub new { + my ($class, %options) = @_; + my $self = $class->SUPER::new(package => __PACKAGE__, %options); + bless $self, $class; + + $options{options}->add_options(arguments => { + 'timeframe:s' => { name => 'timeframe' } + }); + + return $self; +} + +sub check_options { + my ($self, %options) = @_; + $self->SUPER::check_options(%options); + + if (!defined($self->{option_results}->{timeframe}) || $self->{option_results}->{timeframe} eq '') { + $self->{option_results}->{timeframe} = 86400; + } +} + +sub manage_selection { + my ($self, %options) = @_; + + $options{custom}->cache_repository(); + $options{custom}->cache_backup_job_session(timeframe => $self->{option_results}->{timeframe}); + + $self->{output}->output_add( + severity => 'OK', + short_msg => 'Cache files created successfully' + ); +} + +1; + +__END__ + +=head1 MODE + +Create cache files (other modes could use it with --cache-use option). + +=over 8 + +=item B<--timeframe> + +Timeframe to get BackupJobSession (in seconds. Default: 86400). + +=back + +=cut diff --git a/src/apps/backup/veeam/vbem/restapi/mode/jobs.pm b/src/apps/backup/veeam/vbem/restapi/mode/jobs.pm new file mode 100644 index 000000000..1b2036708 --- /dev/null +++ b/src/apps/backup/veeam/vbem/restapi/mode/jobs.pm @@ -0,0 +1,341 @@ +# +# Copyright 2023 Centreon (http://www.centreon.com/) +# +# Centreon is a full-fledged industry-strength solution that meets +# the needs in IT infrastructure and application monitoring for +# service performance. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +package apps::backup::veeam::vbem::restapi::mode::jobs; + +use base qw(centreon::plugins::templates::counter); + +use strict; +use warnings; +use Digest::MD5; +use DateTime; +use POSIX; +use centreon::plugins::templates::catalog_functions qw(catalog_status_threshold_ng); +use centreon::plugins::misc; + +my $unitdiv = { s => 1, w => 604800, d => 86400, h => 3600, m => 60 }; +my $unitdiv_long = { s => 'seconds', w => 'weeks', d => 'days', h => 'hours', m => 'minutes' }; + +sub custom_last_exec_perfdata { + my ($self, %options) = @_; + + $self->{output}->perfdata_add( + nlabel => $self->{nlabel} . '.' . $unitdiv_long->{ $self->{instance_mode}->{option_results}->{unit} }, + instances => $self->{result_values}->{name}, + unit => $self->{instance_mode}->{option_results}->{unit}, + value => $self->{result_values}->{lastExecSeconds} >= 0 ? floor($self->{result_values}->{lastExecSeconds} / $unitdiv->{ $self->{instance_mode}->{option_results}->{unit} }) : $self->{result_values}->{lastExecSeconds}, + warning => $self->{perfdata}->get_perfdata_for_output(label => 'warning-' . $self->{thlabel}), + critical => $self->{perfdata}->get_perfdata_for_output(label => 'critical-' . $self->{thlabel}), + min => 0 + ); +} + +sub custom_last_exec_threshold { + my ($self, %options) = @_; + + return $self->{perfdata}->threshold_check( + value => $self->{result_values}->{lastExecSeconds} >= 0 ? floor($self->{result_values}->{lastExecSeconds} / $unitdiv->{ $self->{instance_mode}->{option_results}->{unit} }) : $self->{result_values}->{lastExecSeconds}, + threshold => [ + { label => 'critical-' . $self->{thlabel}, exit_litteral => 'critical' }, + { label => 'warning-'. $self->{thlabel}, exit_litteral => 'warning' }, + { label => 'unknown-'. $self->{thlabel}, exit_litteral => 'unknown' } + ] + ); +} + +sub custom_duration_perfdata { + my ($self, %options) = @_; + + $self->{output}->perfdata_add( + nlabel => $self->{nlabel} . '.' . $unitdiv_long->{ $self->{instance_mode}->{option_results}->{unit} }, + instances => $self->{result_values}->{name}, + unit => $self->{instance_mode}->{option_results}->{unit}, + value => floor($self->{result_values}->{durationSeconds} / $unitdiv->{ $self->{instance_mode}->{option_results}->{unit} }), + warning => $self->{perfdata}->get_perfdata_for_output(label => 'warning-' . $self->{thlabel}), + critical => $self->{perfdata}->get_perfdata_for_output(label => 'critical-' . $self->{thlabel}), + min => 0 + ); +} + +sub custom_duration_threshold { + my ($self, %options) = @_; + + return $self->{perfdata}->threshold_check( + value => floor($self->{result_values}->{durationSeconds} / $unitdiv->{ $self->{instance_mode}->{option_results}->{unit} }), + threshold => [ + { label => 'critical-' . $self->{thlabel}, exit_litteral => 'critical' }, + { label => 'warning-'. $self->{thlabel}, exit_litteral => 'warning' }, + { label => 'unknown-'. $self->{thlabel}, exit_litteral => 'unknown' } + ] + ); +} + +sub job_long_output { + my ($self, %options) = @_; + + return sprintf( + "checking job '%s' [ŧype: %s]", + $options{instance_value}->{name}, + $options{instance_value}->{type} + ); +} + +sub prefix_job_output { + my ($self, %options) = @_; + + return sprintf( + "job '%s' [type: %s] ", + $options{instance_value}->{name}, + $options{instance_value}->{type} + ); +} + +sub prefix_global_output { + my ($self, %options) = @_; + + return 'Number of jobs '; +} + +sub prefix_execution_output { + my ($self, %options) = @_; + + return sprintf( + "execution started: %s ", + $options{instance_value}->{started} + ); +} + +sub set_counters { + my ($self, %options) = @_; + + $self->{maps_counters_type} = [ + { name => 'global', type => 0, cb_prefix_output => 'prefix_global_output' }, + { + name => 'jobs', type => 3, cb_prefix_output => 'prefix_job_output', cb_long_output => 'job_long_output', indent_long_output => ' ', message_multiple => 'All jobs are ok', + group => [ + { name => 'failed', type => 0 }, + { name => 'timers', type => 0, skipped_code => { -10 => 1 } }, + { name => 'executions', type => 1, cb_prefix_output => 'prefix_execution_output', message_multiple => 'executions are ok', display_long => 1, skipped_code => { -10 => 1 } }, + ] + } + ]; + + $self->{maps_counters}->{global} = [ + { label => 'jobs-executions-detected', display_ok => 0, nlabel => 'jobs.executions.detected.count', set => { + key_values => [ { name => 'detected' } ], + output_template => 'executions detected: %s', + perfdatas => [ + { template => '%s', min => 0 } + ] + } + } + ]; + + $self->{maps_counters}->{failed} = [ + { label => 'job-executions-failed-prct', nlabel => 'job.executions.failed.percentage', set => { + key_values => [ { name => 'failedPrct' }, { name => 'name' } ], + output_template => 'number of failed executions: %.2f %%', + perfdatas => [ + { template => '%.2f', unit => '%', min => 0, max => 100, label_extra_instance => 1, instance_use => 'name' } + ] + } + } + ]; + + $self->{maps_counters}->{timers} = [ + { label => 'job-execution-last', nlabel => 'job.execution.last', set => { + key_values => [ { name => 'lastExecSeconds' }, { name => 'lastExecHuman' }, { name => 'name' } ], + output_template => 'last execution %s', + output_use => 'lastExecHuman', + closure_custom_perfdata => $self->can('custom_last_exec_perfdata'), + closure_custom_threshold_check => $self->can('custom_last_exec_threshold') + } + }, + { label => 'job-running-duration', nlabel => 'job.running.duration', set => { + key_values => [ { name => 'durationSeconds' }, { name => 'durationHuman' }, { name => 'name' } ], + output_template => 'running duration %s', + output_use => 'durationHuman', + closure_custom_perfdata => $self->can('custom_duration_perfdata'), + closure_custom_threshold_check => $self->can('custom_duration_threshold') + } + } + ]; + + $self->{maps_counters}->{executions} = [ + { + label => 'execution-status', + type => 2, + warning_default => '%{status} =~ /warning/i', + critical_default => '%{status} =~ /failed/i', + set => { + key_values => [ + { name => 'status' }, { name => 'jobName' } + ], + output_template => 'status: %s', + closure_custom_perfdata => sub { return 0; }, + closure_custom_threshold_check => \&catalog_status_threshold_ng + } + } + ]; +} + +sub new { + my ($class, %options) = @_; + my $self = $class->SUPER::new(package => __PACKAGE__, %options, force_new_perfdata => 1); + bless $self, $class; + + $options{options}->add_options(arguments => { + 'filter-uid:s' => { name => 'filter_uid' }, + 'filter-name:s' => { name => 'filter_name' }, + 'filter-type:s' => { name => 'filter_type' }, + 'timeframe:s' => { name => 'timeframe' }, + 'unit:s' => { name => 'unit', default => 's' } + }); + + return $self; +} + +sub check_options { + my ($self, %options) = @_; + $self->SUPER::check_options(%options); + + if ($self->{option_results}->{unit} eq '' || !defined($unitdiv->{$self->{option_results}->{unit}})) { + $self->{option_results}->{unit} = 's'; + } + + if (!defined($self->{option_results}->{timeframe}) || $self->{option_results}->{timeframe} eq '') { + $self->{option_results}->{timeframe} = 86400; + } +} + +sub manage_selection { + my ($self, %options) = @_; + + my $jobs_exec = $options{custom}->get_backup_job_session(timeframe => $self->{option_results}->{timeframe}); + + my $ctime = time(); + + $self->{global} = { detected => 0 }; + $self->{jobs} = {}; + foreach my $job (@{$jobs_exec->{Entities}->{BackupJobSessions}->{BackupJobSessions}}) { + next if (defined($self->{option_results}->{filter_uid}) && $self->{option_results}->{filter_uid} ne '' && $job->{JobUid} !~ /$self->{option_results}->{filter_uid}/); + next if (defined($self->{option_results}->{filter_name}) && $self->{option_results}->{filter_name} ne '' && $job->{JobName} !~ /$self->{option_results}->{filter_name}/); + next if (defined($self->{option_results}->{filter_type}) && $self->{option_results}->{filter_type} ne '' && $job->{JobType} !~ /$self->{option_results}->{filter_type}/); + + if (!defined($self->{jobs}->{ $job->{JobUid} })) { + $self->{jobs}->{ $job->{JobUid} } = { + name => $job->{JobName}, + type => $job->{JobType}, + failed => { name => $job->{JobName}, total => 0, failed => 0 } + }; + $self->{global}->{detected}++; + } + + $job->{CreationTimeUTC} =~ /^(\d+)-(\d+)-(\d+)T(\d+):(\d+):(\d+)/; + my $dt = DateTime->new(year => $1, month => $2, day => $3, hour => $4, minute => $5, second => $6); + my $epoch = $dt->epoch(); + + if (!defined($self->{jobs}->{ $job->{JobUid} }->{executions}) || $epoch > $self->{jobs}->{ $job->{JobUid} }->{executions}->{last}->{epoch}) { + $self->{jobs}->{ $job->{JobUid} }->{executions}->{last} = { + jobName => $job->{JobName}, + started => $job->{CreationTimeUTC}, + status => $job->{Result}, + epoch => $epoch + }; + + $self->{jobs}->{ $job->{JobUid} }->{timers} = { + name => $job->{JobName}, + lastExecSeconds => $ctime - $epoch, + lastExecHuman => centreon::plugins::misc::change_seconds(value => $ctime - $epoch) + }; + + if ($job->{State} =~ /Starting|Working|Resuming/i) { + my $duration = $ctime - $epoch; + $self->{jobs}->{ $job->{JobUid} }->{timers}->{durationSeconds} = $duration; + $self->{jobs}->{ $job->{JobUid} }->{timers}->{durationHuman} = centreon::plugins::misc::change_seconds(value => $duration); + } + } + + $self->{jobs}->{ $job->{JobUid} }->{failed}->{total}++; + if (defined($job->{Result}) && $job->{Result} =~ /Failed/i) { + $self->{jobs}->{ $job->{JobUid} }->{failed}->{failed}++; + } + } + + foreach my $uid (keys %{$self->{jobs}}) { + $self->{jobs}->{$uid}->{failed}->{failedPrct} = $self->{jobs}->{$uid}->{failed}->{total} > 0 ? $self->{jobs}->{$uid}->{failed}->{failed} * 100 / $self->{jobs}->{$uid}->{failed}->{total} : 0; + } +} + +1; + +__END__ + +=head1 MODE + +Check jobs. + +=over 8 + +=item B<--filter-uid> + +Filter jobs by UID. + +=item B<--filter-name> + +Filter jobs by name. + +=item B<--filter-type> + +Filter jobs by type. + +=item B<--timeframe> + +Timeframe to get BackupJobSession (in seconds. Default: 86400). + +=item B<--unit> + +Select the unit for last execution time threshold. May be 's' for seconds, 'm' for minutes, +'h' for hours, 'd' for days, 'w' for weeks. Default is seconds. + +=item B<--unknown-execution-status> + +Set unknown threshold for last job execution status. +You can use the following variables: %{status}, %{jobName} + +=item B<--warning-execution-status> + +Set warning threshold for last job execution status (Default: %{status} =~ /warning/i). +You can use the following variables like: %{status}, %{jobName} + +=item B<--critical-execution-status> + +Set critical threshold for last job execution status (Default: %{status} =~ /failed/i). +You can use the following variables: %{status}, %{jobName} + +=item B<--warning-*> B<--critical-*> + +Thresholds. +Can be: 'jobs-executions-detected', 'job-executions-failed-prct', +'job-execution-last', 'job-running-duration'. + +=back + +=cut diff --git a/src/apps/backup/veeam/vbem/restapi/mode/listjobs.pm b/src/apps/backup/veeam/vbem/restapi/mode/listjobs.pm new file mode 100644 index 000000000..cc08f39af --- /dev/null +++ b/src/apps/backup/veeam/vbem/restapi/mode/listjobs.pm @@ -0,0 +1,124 @@ +# +# Copyright 2023 Centreon (http://www.centreon.com/) +# +# Centreon is a full-fledged industry-strength solution that meets +# the needs in IT infrastructure and application monitoring for +# service performance. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +package apps::backup::veeam::vbem::restapi::mode::listjobs; + +use base qw(centreon::plugins::mode); + +use strict; +use warnings; + +sub new { + my ($class, %options) = @_; + my $self = $class->SUPER::new(package => __PACKAGE__, %options); + bless $self, $class; + + $options{options}->add_options(arguments => { + 'timeframe:s' => { name => 'timeframe' } + }); + + return $self; +} + +sub check_options { + my ($self, %options) = @_; + $self->SUPER::init(%options); + + if (!defined($self->{option_results}->{timeframe}) || $self->{option_results}->{timeframe} eq '') { + $self->{option_results}->{timeframe} = 86400; + } +} + +sub manage_selection { + my ($self, %options) = @_; + + my $results = {}; + my $jobs_exec = $options{custom}->cache_backup_job_session(timeframe => $self->{option_results}->{timeframe}); + foreach my $job (@{$jobs_exec->{Entities}->{BackupJobSessions}->{BackupJobSessions}}) { + next if (defined($results->{ $job->{JobUid} })); + + $results->{ $job->{JobUid} } = { + jobName => $job->{JobName}, + jobType => $job->{JobType} + } + } + + return $results; +} + +sub run { + my ($self, %options) = @_; + + my $results = $self->manage_selection(%options); + foreach my $uid (keys %$results) { + $self->{output}->output_add( + long_msg => sprintf( + '[uid: %s][jobName: %s][jobType: %s]', + $uid, + $results->{$uid}->{jobName}, + $results->{$uid}->{jobType} + ) + ); + } + $self->{output}->output_add( + severity => 'OK', + short_msg => 'List jobs:' + ); + + $self->{output}->display(nolabel => 1, force_ignore_perfdata => 1, force_long_output => 1); + $self->{output}->exit(); +} + +sub disco_format { + my ($self, %options) = @_; + + $self->{output}->add_disco_format(elements => ['uid', 'jobName', 'jobType']); +} + +sub disco_show { + my ($self, %options) = @_; + + my $results = $self->manage_selection(%options); + foreach my $uid (keys %$results) { + $self->{output}->add_disco_entry( + uid => $uid, + jobName => $results->{$uid}->{jobName}, + jobType => $results->{$uid}->{jobType} + ); + } +} + +1; + +__END__ + +=head1 MODE + +List jobs. + +=over 8 + +=item B<--timeframe> + +Timeframe to get BackupJobSession (in seconds. Default: 86400). + +=back + +=cut diff --git a/src/apps/backup/veeam/vbem/restapi/mode/listrepositories.pm b/src/apps/backup/veeam/vbem/restapi/mode/listrepositories.pm new file mode 100644 index 000000000..d14f5f131 --- /dev/null +++ b/src/apps/backup/veeam/vbem/restapi/mode/listrepositories.pm @@ -0,0 +1,106 @@ +# +# Copyright 2023 Centreon (http://www.centreon.com/) +# +# Centreon is a full-fledged industry-strength solution that meets +# the needs in IT infrastructure and application monitoring for +# service performance. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +package apps::backup::veeam::vbem::restapi::mode::listrepositories; + +use base qw(centreon::plugins::mode); + +use strict; +use warnings; + +sub new { + my ($class, %options) = @_; + my $self = $class->SUPER::new(package => __PACKAGE__, %options); + bless $self, $class; + + $options{options}->add_options(arguments => { + }); + + return $self; +} + +sub check_options { + my ($self, %options) = @_; + $self->SUPER::init(%options); +} + +sub manage_selection { + my ($self, %options) = @_; + + my $repositories = $options{custom}->get_repository(disable_cache => 1); + + my $results = []; + foreach my $repo (@{$repositories->{Entities}->{Repositories}->{Repositories}}) { + push @$results, { uid => $repo->{UID}, name => $repo->{Name} }; + } + + return $results; +} + +sub run { + my ($self, %options) = @_; + + my $repos = $self->manage_selection(%options); + foreach (@$repos) { + $self->{output}->output_add( + long_msg => sprintf( + '[uid: %s][name: %s]', + $_->{uid}, + $_->{name} + ) + ); + } + + $self->{output}->output_add( + severity => 'OK', + short_msg => 'List repositories:' + ); + $self->{output}->display(nolabel => 1, force_ignore_perfdata => 1, force_long_output => 1); + $self->{output}->exit(); +} + +sub disco_format { + my ($self, %options) = @_; + + $self->{output}->add_disco_format(elements => ['uid', 'name']); +} + +sub disco_show { + my ($self, %options) = @_; + + my $repos = $self->manage_selection(%options); + foreach (@$repos) { + $self->{output}->add_disco_entry(%$_); + } +} + +1; + +__END__ + +=head1 MODE + +List repositories. + +=over 8 + +=back + +=cut diff --git a/src/apps/backup/veeam/vbem/restapi/mode/repositories.pm b/src/apps/backup/veeam/vbem/restapi/mode/repositories.pm new file mode 100644 index 000000000..bae7250e2 --- /dev/null +++ b/src/apps/backup/veeam/vbem/restapi/mode/repositories.pm @@ -0,0 +1,140 @@ +# +# Copyright 2023 Centreon (http://www.centreon.com/) +# +# Centreon is a full-fledged industry-strength solution that meets +# the needs in IT infrastructure and application monitoring for +# service performance. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +package apps::backup::veeam::vbem::restapi::mode::repositories; + +use base qw(centreon::plugins::templates::counter); + +use strict; +use warnings; + +sub custom_space_usage_output { + my ($self, %options) = @_; + + my ($total_size_value, $total_size_unit) = $self->{perfdata}->change_bytes(value => $self->{result_values}->{total}); + my ($total_used_value, $total_used_unit) = $self->{perfdata}->change_bytes(value => $self->{result_values}->{used}); + my ($total_free_value, $total_free_unit) = $self->{perfdata}->change_bytes(value => $self->{result_values}->{free}); + return sprintf( + "space usage total: %s used: %s (%.2f%%) free: %s (%.2f%%)", + $total_size_value . " " . $total_size_unit, + $total_used_value . " " . $total_used_unit, $self->{result_values}->{prct_used}, + $total_free_value . " " . $total_free_unit, $self->{result_values}->{prct_free} + ); +} + +sub prefix_repository_output { + my ($self, %options) = @_; + + return sprintf( + "repository '%s' ", + $options{instance_value}->{name} + ); +} + +sub set_counters { + my ($self, %options) = @_; + + $self->{maps_counters_type} = [ + { name => 'repositories', type => 1, cb_prefix_output => 'prefix_repository_output', message_multiple => 'All repositories are ok' } + ]; + + $self->{maps_counters}->{repositories} = [ + { label => 'space-usage', nlabel => 'repository.space.usage.bytes', set => { + key_values => [ { name => 'used' }, { name => 'free' }, { name => 'prct_used' }, { name => 'prct_free' }, { name => 'total' }, { name => 'name' } ], + closure_custom_output => $self->can('custom_space_usage_output'), + perfdatas => [ + { template => '%d', min => 0, max => 'total', unit => 'B', cast_int => 1, label_extra_instance => 1, instance_use => 'name' } + ] + } + }, + { label => 'space-usage-free', display_ok => 0, nlabel => 'repository.space.free.bytes', set => { + key_values => [ { name => 'free' }, { name => 'used' }, { name => 'prct_used' }, { name => 'prct_free' }, { name => 'total' }, { name => 'name' } ], + closure_custom_output => $self->can('custom_space_usage_output'), + perfdatas => [ + { template => '%d', min => 0, max => 'total', unit => 'B', cast_int => 1, label_extra_instance => 1, instance_use => 'name' } + ] + } + }, + { label => 'space-usage-prct', display_ok => 0, nlabel => 'repository.space.usage.percentage', set => { + key_values => [ { name => 'prct_used' }, { name => 'used' }, { name => 'free' }, { name => 'prct_free' }, { name => 'total' }, { name => 'name' } ], + closure_custom_output => $self->can('custom_space_usage_output'), + perfdatas => [ + { template => '%.2f', min => 0, max => 100, unit => '%', label_extra_instance => 1, instance_use => 'name' } + ] + } + } + ]; +} + +sub new { + my ($class, %options) = @_; + my $self = $class->SUPER::new(package => __PACKAGE__, %options, force_new_perfdata => 1); + bless $self, $class; + + $options{options}->add_options(arguments => { + 'filter-name:s' => { name => 'filter_name' } + }); + + return $self; +} + +sub manage_selection { + my ($self, %options) = @_; + + my $repositories = $options{custom}->get_repository(); + + $self->{repositories} = {}; + foreach my $repo (@{$repositories->{Entities}->{Repositories}->{Repositories}}) { + next if (defined($self->{option_results}->{filter_name}) && $self->{option_results}->{filter_name} ne '' && + $repo->{Name} !~ /$self->{option_results}->{filter_name}/); + + $self->{repositories}->{ $repo->{Name} } = { + name => $repo->{Name}, + total => $repo->{Capacity}, + free => $repo->{FreeSpace}, + used => $repo->{Capacity} - $repo->{FreeSpace}, + prct_used => 100 - ($repo->{FreeSpace} * 100 / $repo->{Capacity}), + prct_free => $repo->{FreeSpace} * 100 / $repo->{Capacity} + }; + } +} + +1; + +__END__ + +=head1 MODE + +Check repositories. + +=over 8 + +=item B<--filter-name> + +Filter repositories by name (can be a regexp). + +=item B<--warning-*> B<--critical-*> + +Thresholds. +Can be: 'space-usage', 'space-usage-free', 'space-usage-prct'. + +=back + +=cut diff --git a/src/apps/backup/veeam/vbem/restapi/plugin.pm b/src/apps/backup/veeam/vbem/restapi/plugin.pm new file mode 100644 index 000000000..eb3631e6a --- /dev/null +++ b/src/apps/backup/veeam/vbem/restapi/plugin.pm @@ -0,0 +1,52 @@ +# +# Copyright 2023 Centreon (http://www.centreon.com/) +# +# Centreon is a full-fledged industry-strength solution that meets +# the needs in IT infrastructure and application monitoring for +# service performance. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +package apps::backup::veeam::vbem::restapi::plugin; + +use strict; +use warnings; +use base qw(centreon::plugins::script_custom); + +sub new { + my ( $class, %options ) = @_; + my $self = $class->SUPER::new(package => __PACKAGE__, %options); + bless $self, $class; + + $self->{modes} = { + 'cache' => 'apps::backup::veeam::vbem::restapi::mode::cache', + 'jobs' => 'apps::backup::veeam::vbem::restapi::mode::jobs', + 'list-jobs' => 'apps::backup::veeam::vbem::restapi::mode::listjobs', + 'list-repositories' => 'apps::backup::veeam::vbem::restapi::mode::listrepositories', + 'repositories' => 'apps::backup::veeam::vbem::restapi::mode::repositories' + }; + + $self->{custom_modes}->{api} = 'apps::backup::veeam::vbem::restapi::custom::api'; + return $self; +} + +1; + +__END__ + +=head1 PLUGIN DESCRIPTION + +Check Veeam Backup Enterprise Manager using Rest API. + +=cut From 8e92c2a8acec9402750b5de2464dd8b88577a43a Mon Sep 17 00:00:00 2001 From: qgarnier Date: Fri, 9 Jun 2023 16:39:58 +0200 Subject: [PATCH 05/39] (plugin) database::mysql - force new perfdata (#4454) --- .../protocols/sql/mode/connectiontime.pm | 16 ++--- src/database/mysql/mode/databasessize.pm | 45 ++++++------- .../mysql/mode/innodbbufferpoolhitrate.pm | 60 +++++++++-------- src/database/mysql/mode/longqueries.pm | 7 +- .../mysql/mode/myisamkeycachehitrate.pm | 60 +++++++++-------- src/database/mysql/mode/openfiles.pm | 7 +- src/database/mysql/mode/opentables.pm | 37 ++++++----- src/database/mysql/mode/passwordexpiration.pm | 2 +- src/database/mysql/mode/qcachehitrate.pm | 65 +++++++++++-------- src/database/mysql/mode/queries.pm | 24 +++---- src/database/mysql/mode/slowqueries.pm | 23 ++++--- src/database/mysql/mode/threadsconnected.pm | 3 +- src/database/mysql/mode/uptime.pm | 43 ++++++------ src/database/mysql/plugin.pm | 1 + 14 files changed, 211 insertions(+), 182 deletions(-) diff --git a/src/centreon/common/protocols/sql/mode/connectiontime.pm b/src/centreon/common/protocols/sql/mode/connectiontime.pm index 889952abb..1287d7031 100644 --- a/src/centreon/common/protocols/sql/mode/connectiontime.pm +++ b/src/centreon/common/protocols/sql/mode/connectiontime.pm @@ -29,12 +29,12 @@ use POSIX; sub new { my ($class, %options) = @_; - my $self = $class->SUPER::new(package => __PACKAGE__, %options); + my $self = $class->SUPER::new(package => __PACKAGE__, %options, force_new_perfdata => 1); bless $self, $class; $options{options}->add_options(arguments => { - "warning:s" => { name => 'warning', }, - "critical:s" => { name => 'critical', }, + 'warning:s' => { name => 'warning', }, + 'critical:s' => { name => 'critical' } }); return $self; @@ -45,12 +45,12 @@ sub check_options { $self->SUPER::init(%options); if (($self->{perfdata}->threshold_validate(label => 'warning', value => $self->{option_results}->{warning})) == 0) { - $self->{output}->add_option_msg(short_msg => "Wrong warning threshold '" . $self->{option_results}->{warning} . "'."); - $self->{output}->option_exit(); + $self->{output}->add_option_msg(short_msg => "Wrong warning threshold '" . $self->{option_results}->{warning} . "'."); + $self->{output}->option_exit(); } if (($self->{perfdata}->threshold_validate(label => 'critical', value => $self->{option_results}->{critical})) == 0) { - $self->{output}->add_option_msg(short_msg => "Wrong critical threshold '" . $self->{option_results}->{critical} . "'."); - $self->{output}->option_exit(); + $self->{output}->add_option_msg(short_msg => "Wrong critical threshold '" . $self->{option_results}->{critical} . "'."); + $self->{output}->option_exit(); } } @@ -87,7 +87,7 @@ sub run { min => 0 ); } - + $self->{output}->display(); $self->{output}->exit(); } diff --git a/src/database/mysql/mode/databasessize.pm b/src/database/mysql/mode/databasessize.pm index ca7974d75..05e5c22b6 100644 --- a/src/database/mysql/mode/databasessize.pm +++ b/src/database/mysql/mode/databasessize.pm @@ -36,7 +36,7 @@ sub set_counters { group => [ { name => 'global_db', type => 0, skipped_code => { -10 => 1 } }, { name => 'table', display_long => 0, cb_prefix_output => 'prefix_table_output', - message_multiple => 'All tables are ok', type => 1, skipped_code => { -10 => 1 } }, + message_multiple => 'All tables are ok', type => 1, skipped_code => { -10 => 1 } } ] } ]; @@ -47,9 +47,8 @@ sub set_counters { output_template => 'Used Space: %s %s', output_change_bytes => 1, perfdatas => [ - { value => 'used', template => '%s', unit => 'B', - min => 0 }, - ], + { template => '%s', unit => 'B', min => 0 } + ] } }, { label => 'total-free', nlabel => 'databases.space.free.bytes', set => { @@ -57,11 +56,10 @@ sub set_counters { output_template => 'Free Space: %s %s', output_change_bytes => 1, perfdatas => [ - { value => 'free', template => '%s', unit => 'B', - min => 0 }, - ], + { template => '%s', unit => 'B', min => 0 } + ] } - }, + } ]; $self->{maps_counters}->{global_db} = [ @@ -70,9 +68,8 @@ sub set_counters { output_template => 'Used: %s %s', output_change_bytes => 1, perfdatas => [ - { value => 'used', template => '%s', unit => 'B', - min => 0, label_extra_instance => 1 }, - ], + { template => '%s', unit => 'B', min => 0, label_extra_instance => 1 } + ] } }, { label => 'db-free', nlabel => 'database.space.free.bytes', set => { @@ -80,11 +77,10 @@ sub set_counters { output_template => 'Free: %s %s', output_change_bytes => 1, perfdatas => [ - { value => 'free', template => '%s', unit => 'B', - min => 0, label_extra_instance => 1 }, - ], + { template => '%s', unit => 'B', min => 0, label_extra_instance => 1 } + ] } - }, + } ]; $self->{maps_counters}->{table} = [ @@ -93,9 +89,8 @@ sub set_counters { output_template => 'Used: %s %s', output_change_bytes => 1, perfdatas => [ - { value => 'used', template => '%s', unit => 'B', - min => 0, label_extra_instance => 1 }, - ], + { template => '%s', unit => 'B', min => 0, label_extra_instance => 1 } + ] } }, { label => 'table-free', nlabel => 'table.space.free.bytes', set => { @@ -103,20 +98,18 @@ sub set_counters { output_template => 'Free: %s %s', output_change_bytes => 1, perfdatas => [ - { value => 'free', template => '%s', unit => 'B', - min => 0, label_extra_instance => 1 }, - ], + { template => '%s', unit => 'B', min => 0, label_extra_instance => 1 } + ] } }, { label => 'table-frag', nlabel => 'table.fragmentation.percentage', set => { key_values => [ { name => 'frag' }, { name => 'display' } ], output_template => 'Fragmentation: %.2f %%', perfdatas => [ - { value => 'frag', template => '%.2f', unit => '%', - min => 0, max => 100, label_extra_instance => 1 }, - ], + { template => '%.2f', unit => '%', min => 0, max => 100, label_extra_instance => 1 } + ] } - }, + } ]; } @@ -157,7 +150,7 @@ sub new { $options{options}->add_options(arguments => { 'filter-database:s' => { name => 'filter_database' }, - 'filter-table:s' => { name => 'filter_table' }, + 'filter-table:s' => { name => 'filter_table' } }); return $self; diff --git a/src/database/mysql/mode/innodbbufferpoolhitrate.pm b/src/database/mysql/mode/innodbbufferpoolhitrate.pm index bd20cbcb3..f1839b850 100644 --- a/src/database/mysql/mode/innodbbufferpoolhitrate.pm +++ b/src/database/mysql/mode/innodbbufferpoolhitrate.pm @@ -28,15 +28,15 @@ use centreon::plugins::statefile; sub new { my ($class, %options) = @_; - my $self = $class->SUPER::new(package => __PACKAGE__, %options); + my $self = $class->SUPER::new(package => __PACKAGE__, %options, force_new_perfdata => 1); bless $self, $class; - $options{options}->add_options(arguments => - { - "warning:s" => { name => 'warning', }, - "critical:s" => { name => 'critical', }, - "lookback" => { name => 'lookback', }, - }); + $options{options}->add_options(arguments => { + 'warning:s' => { name => 'warning' }, + 'critical:s' => { name => 'critical' }, + 'lookback' => { name => 'lookback' } + }); + $self->{statefile_cache} = centreon::plugins::statefile->new(%options); return $self; @@ -100,29 +100,37 @@ sub run { $prcts{bufferpool_hitrate} = ($new_datas->{Innodb_buffer_pool_read_requests} == 0) ? 100 : ($new_datas->{Innodb_buffer_pool_read_requests} - $new_datas->{Innodb_buffer_pool_reads}) * 100 / $new_datas->{Innodb_buffer_pool_read_requests}; my $exit_code = $self->{perfdata}->threshold_check(value => $prcts{'bufferpool_hitrate' . ((defined($self->{option_results}->{lookback})) ? '' : '_now' )}, threshold => [ { label => 'critical', exit_litteral => 'critical' }, { label => 'warning', exit_litteral => 'warning' } ]); - $self->{output}->output_add(severity => $exit_code, - short_msg => sprintf("innodb buffer pool hitrate at %.2f%%", $prcts{'bufferpool_hitrate' . ((defined($self->{option_results}->{lookback})) ? '' : '_now')}) - ); - $self->{output}->perfdata_add(label => 'bufferpool_hitrate' . ((defined($self->{option_results}->{lookback})) ? '' : '_now'), - nlabel => 'database.bufferpool.hitrate' . ((defined($self->{option_results}->{lookback})) ? '.average' : '.delta') . '.percentage', - unit => '%', - value => sprintf("%.2f", $prcts{'bufferpool_hitrate' . ((defined($self->{option_results}->{lookback})) ? '' : '_now')}), - warning => $self->{perfdata}->get_perfdata_for_output(label => 'warning'), - critical => $self->{perfdata}->get_perfdata_for_output(label => 'critical'), - min => 0); - $self->{output}->perfdata_add(label => 'bufferpool_hitrate' . ((defined($self->{option_results}->{lookback})) ? '_now' : ''), - nlabel => 'database.bufferpool.hitrate' . ((defined($self->{option_results}->{lookback})) ? '.delta' : '.average') . '.percentage', - unit => '%', - value => sprintf("%.2f", $prcts{'bufferpool_hitrate' . ((defined($self->{option_results}->{lookback})) ? '_now' : '')}), - min => 0); + $self->{output}->output_add( + severity => $exit_code, + short_msg => sprintf("innodb buffer pool hitrate at %.2f%%", $prcts{'bufferpool_hitrate' . ((defined($self->{option_results}->{lookback})) ? '' : '_now')}) + ); + + $self->{output}->perfdata_add( + label => 'bufferpool_hitrate' . ((defined($self->{option_results}->{lookback})) ? '' : '_now'), + nlabel => 'database.bufferpool.hitrate' . ((defined($self->{option_results}->{lookback})) ? '.average' : '.delta') . '.percentage', + unit => '%', + value => sprintf("%.2f", $prcts{'bufferpool_hitrate' . ((defined($self->{option_results}->{lookback})) ? '' : '_now')}), + warning => $self->{perfdata}->get_perfdata_for_output(label => 'warning'), + critical => $self->{perfdata}->get_perfdata_for_output(label => 'critical'), + min => 0 + ); + $self->{output}->perfdata_add( + label => 'bufferpool_hitrate' . ((defined($self->{option_results}->{lookback})) ? '_now' : ''), + nlabel => 'database.bufferpool.hitrate' . ((defined($self->{option_results}->{lookback})) ? '.delta' : '.average') . '.percentage', + unit => '%', + value => sprintf("%.2f", $prcts{'bufferpool_hitrate' . ((defined($self->{option_results}->{lookback})) ? '_now' : '')}), + min => 0 + ); } - + $self->{statefile_cache}->write(data => $new_datas); if (!defined($old_timestamp)) { - $self->{output}->output_add(severity => 'OK', - short_msg => "Buffer creation..."); + $self->{output}->output_add( + severity => 'OK', + short_msg => "Buffer creation..." + ); } - + $self->{output}->display(); $self->{output}->exit(); } diff --git a/src/database/mysql/mode/longqueries.pm b/src/database/mysql/mode/longqueries.pm index 61cdc9dbb..10db8dbfe 100644 --- a/src/database/mysql/mode/longqueries.pm +++ b/src/database/mysql/mode/longqueries.pm @@ -27,7 +27,7 @@ use warnings; sub new { my ($class, %options) = @_; - my $self = $class->SUPER::new(package => __PACKAGE__, %options); + my $self = $class->SUPER::new(package => __PACKAGE__, %options, force_new_perfdata => 1); bless $self, $class; $options{options}->add_options(arguments => { @@ -35,7 +35,7 @@ sub new { 'critical:s' => { name => 'critical', }, 'seconds:s' => { name => 'seconds', default => 60 }, 'filter-user:s' => { name => 'filter_user' }, - 'filter-command:s' => { name => 'filter_command', default => '^(?!(sleep)$)' }, + 'filter-command:s' => { name => 'filter_command', default => '^(?!(sleep)$)' } }); return $self; @@ -61,7 +61,6 @@ sub check_options { sub run { my ($self, %options) = @_; - # $options{sql} = sqlmode object $self->{sql} = $options{sql}; $self->{sql}->connect(); @@ -98,7 +97,7 @@ sub run { critical => $self->{perfdata}->get_perfdata_for_output(label => 'critical'), min => 0 ); - + for (my $i = 0; $i < 10 && $i < scalar(@queries); $i++) { $queries[$i]->{query} =~ s/\|/-/mg if (defined($queries[$i]->{query})); $self->{output}->output_add(long_msg => diff --git a/src/database/mysql/mode/myisamkeycachehitrate.pm b/src/database/mysql/mode/myisamkeycachehitrate.pm index 1edaa22ff..74bfba15b 100644 --- a/src/database/mysql/mode/myisamkeycachehitrate.pm +++ b/src/database/mysql/mode/myisamkeycachehitrate.pm @@ -28,15 +28,15 @@ use centreon::plugins::statefile; sub new { my ($class, %options) = @_; - my $self = $class->SUPER::new(package => __PACKAGE__, %options); + my $self = $class->SUPER::new(package => __PACKAGE__, %options, force_new_perfdata => 1); bless $self, $class; - $options{options}->add_options(arguments => - { - "warning:s" => { name => 'warning', }, - "critical:s" => { name => 'critical', }, - "lookback" => { name => 'lookback', }, - }); + $options{options}->add_options(arguments => { + 'warning:s' => { name => 'warning', }, + 'critical:s' => { name => 'critical', }, + 'lookback' => { name => 'lookback' } + }); + $self->{statefile_cache} = centreon::plugins::statefile->new(%options); return $self; @@ -101,29 +101,37 @@ sub run { $prcts{keycache_hitrate} = ($new_datas->{Key_read_requests} == 0) ? 100 : ($new_datas->{Key_read_requests} - $new_datas->{Key_reads}) * 100 / $new_datas->{Key_read_requests}; my $exit_code = $self->{perfdata}->threshold_check(value => $prcts{'keycache_hitrate' . ((defined($self->{option_results}->{lookback})) ? '' : '_now' )}, threshold => [ { label => 'critical', exit_litteral => 'critical' }, { label => 'warning', exit_litteral => 'warning' } ]); - $self->{output}->output_add(severity => $exit_code, - short_msg => sprintf("myisam keycache hitrate at %.2f%%", $prcts{'keycache_hitrate' . ((defined($self->{option_results}->{lookback})) ? '' : '_now')}) - ); - $self->{output}->perfdata_add(label => 'keycache_hitrate' . ((defined($self->{option_results}->{lookback})) ? '' : '_now'), - nlabel => 'database.keycache.hitrate' . ((defined($self->{option_results}->{lookback})) ? '.average' : '.delta') . '.percentage', - unit => '%', - value => sprintf("%.2f", $prcts{'keycache_hitrate' . ((defined($self->{option_results}->{lookback})) ? '' : '_now')}), - warning => $self->{perfdata}->get_perfdata_for_output(label => 'warning'), - critical => $self->{perfdata}->get_perfdata_for_output(label => 'critical'), - min => 0); - $self->{output}->perfdata_add(label => 'keycache_hitrate' . ((defined($self->{option_results}->{lookback})) ? '_now' : ''), - nlabel => 'database.keycache.hitrate' . ((defined($self->{option_results}->{lookback})) ? '.delta' : '.average') . '.percentage', - unit => '%', - value => sprintf("%.2f", $prcts{'keycache_hitrate' . ((defined($self->{option_results}->{lookback})) ? '_now' : '')}), - min => 0); + $self->{output}->output_add( + severity => $exit_code, + short_msg => sprintf("myisam keycache hitrate at %.2f%%", $prcts{'keycache_hitrate' . ((defined($self->{option_results}->{lookback})) ? '' : '_now')}) + ); + + $self->{output}->perfdata_add( + label => 'keycache_hitrate' . ((defined($self->{option_results}->{lookback})) ? '' : '_now'), + nlabel => 'database.keycache.hitrate' . ((defined($self->{option_results}->{lookback})) ? '.average' : '.delta') . '.percentage', + unit => '%', + value => sprintf("%.2f", $prcts{'keycache_hitrate' . ((defined($self->{option_results}->{lookback})) ? '' : '_now')}), + warning => $self->{perfdata}->get_perfdata_for_output(label => 'warning'), + critical => $self->{perfdata}->get_perfdata_for_output(label => 'critical'), + min => 0 + ); + $self->{output}->perfdata_add( + label => 'keycache_hitrate' . ((defined($self->{option_results}->{lookback})) ? '_now' : ''), + nlabel => 'database.keycache.hitrate' . ((defined($self->{option_results}->{lookback})) ? '.delta' : '.average') . '.percentage', + unit => '%', + value => sprintf("%.2f", $prcts{'keycache_hitrate' . ((defined($self->{option_results}->{lookback})) ? '_now' : '')}), + min => 0 + ); } - + $self->{statefile_cache}->write(data => $new_datas); if (!defined($old_timestamp)) { - $self->{output}->output_add(severity => 'OK', - short_msg => "Buffer creation..."); + $self->{output}->output_add( + severity => 'OK', + short_msg => "Buffer creation..." + ); } - + $self->{output}->display(); $self->{output}->exit(); } diff --git a/src/database/mysql/mode/openfiles.pm b/src/database/mysql/mode/openfiles.pm index de07b8331..d6d3bfa11 100644 --- a/src/database/mysql/mode/openfiles.pm +++ b/src/database/mysql/mode/openfiles.pm @@ -27,12 +27,12 @@ use warnings; sub new { my ($class, %options) = @_; - my $self = $class->SUPER::new(package => __PACKAGE__, %options); + my $self = $class->SUPER::new(package => __PACKAGE__, %options, force_new_perfdata => 1); bless $self, $class; $options{options}->add_options(arguments => { - 'warning:s' => { name => 'warning', }, - 'critical:s' => { name => 'critical', }, + 'warning:s' => { name => 'warning' }, + 'critical:s' => { name => 'critical' } }); return $self; @@ -84,6 +84,7 @@ sub run { $prct_open, $open_files, $open_files_limit ) ); + $self->{output}->perfdata_add( label => 'open_files', nlabel => 'database.open.files.count', diff --git a/src/database/mysql/mode/opentables.pm b/src/database/mysql/mode/opentables.pm index 3efa584f6..af8ce21f2 100644 --- a/src/database/mysql/mode/opentables.pm +++ b/src/database/mysql/mode/opentables.pm @@ -27,14 +27,13 @@ use warnings; sub new { my ($class, %options) = @_; - my $self = $class->SUPER::new(package => __PACKAGE__, %options); + my $self = $class->SUPER::new(package => __PACKAGE__, %options, force_new_perfdata => 1); bless $self, $class; - - $options{options}->add_options(arguments => - { - "warning:s" => { name => 'warning', }, - "critical:s" => { name => 'critical', }, - }); + + $options{options}->add_options(arguments => { + 'warning:s' => { name => 'warning' }, + 'critical:s' => { name => 'critical' } + }); return $self; } @@ -81,15 +80,21 @@ sub run { my $prct_open = int(100 * $open_tables / $open_tables_limit); my $exit_code = $self->{perfdata}->threshold_check(value => $prct_open, threshold => [ { label => 'critical', exit_litteral => 'critical' }, { label => 'warning', exit_litteral => 'warning' } ]); - $self->{output}->output_add(severity => $exit_code, - short_msg => sprintf("%.2f%% of the open files limit reached (%d of max. %d)", - $prct_open, $open_tables, $open_tables_limit)); - $self->{output}->perfdata_add(label => 'open_tables', - nlabel => 'database.open.tables.count', - value => $open_tables, - warning => $self->{perfdata}->get_perfdata_for_output(label => 'warning', total => $open_tables_limit, cast_int => 1), - critical => $self->{perfdata}->get_perfdata_for_output(label => 'critical', total => $open_tables_limit, cast_int => 1), - min => 0); + $self->{output}->output_add( + severity => $exit_code, + short_msg => sprintf( + "%.2f%% of the open files limit reached (%d of max. %d)", + $prct_open, $open_tables, $open_tables_limit + ) + ); + $self->{output}->perfdata_add( + label => 'open_tables', + nlabel => 'database.open.tables.count', + value => $open_tables, + warning => $self->{perfdata}->get_perfdata_for_output(label => 'warning', total => $open_tables_limit, cast_int => 1), + critical => $self->{perfdata}->get_perfdata_for_output(label => 'critical', total => $open_tables_limit, cast_int => 1), + min => 0 + ); $self->{output}->display(); $self->{output}->exit(); diff --git a/src/database/mysql/mode/passwordexpiration.pm b/src/database/mysql/mode/passwordexpiration.pm index 64a896ce1..c3c293019 100644 --- a/src/database/mysql/mode/passwordexpiration.pm +++ b/src/database/mysql/mode/passwordexpiration.pm @@ -66,7 +66,7 @@ sub set_counters { sub new { my ($class, %options) = @_; - my $self = $class->SUPER::new(package => __PACKAGE__, %options); + my $self = $class->SUPER::new(package => __PACKAGE__, %options, force_new_perfdata => 1); bless $self, $class; $options{options}->add_options(arguments => { diff --git a/src/database/mysql/mode/qcachehitrate.pm b/src/database/mysql/mode/qcachehitrate.pm index 13f102a53..a9b903e6d 100644 --- a/src/database/mysql/mode/qcachehitrate.pm +++ b/src/database/mysql/mode/qcachehitrate.pm @@ -28,15 +28,15 @@ use centreon::plugins::statefile; sub new { my ($class, %options) = @_; - my $self = $class->SUPER::new(package => __PACKAGE__, %options); + my $self = $class->SUPER::new(package => __PACKAGE__, %options, force_new_perfdata => 1); bless $self, $class; - $options{options}->add_options(arguments => - { - "warning:s" => { name => 'warning', }, - "critical:s" => { name => 'critical', }, - "lookback" => { name => 'lookback', }, - }); + $options{options}->add_options(arguments => { + 'warning:s' => { name => 'warning' }, + 'critical:s' => { name => 'critical' }, + 'lookback' => { name => 'lookback' } + }); + $self->{statefile_cache} = centreon::plugins::statefile->new(%options); return $self; @@ -64,7 +64,7 @@ sub run { $self->{sql} = $options{sql}; $self->{sql}->connect(); - + if (!($self->{sql}->is_version_minimum(version => '5'))) { $self->{output}->add_option_msg(short_msg => "MySQL version '" . $self->{sql}->{version} . "' is not supported (need version >= '5.x')."); $self->{output}->option_exit(); @@ -94,8 +94,10 @@ sub run { $self->{output}->option_exit(); } if ($have_query_cache !~ /^yes$/i || $query_cache_size == 0) { - $self->{output}->output_add(severity => 'OK', - short_msg => "Query cache is turned off."); + $self->{output}->output_add( + severity => 'OK', + short_msg => "Query cache is turned off." + ); $self->{output}->display(); $self->{output}->exit(); } @@ -117,29 +119,36 @@ sub run { $prcts{qcache_hitrate} = (($new_datas->{Qcache_hits} + $new_datas->{Com_select}) == 0) ? 100 : ($new_datas->{Qcache_hits}) * 100 / ($new_datas->{Qcache_hits} + $new_datas->{Com_select}); my $exit_code = $self->{perfdata}->threshold_check(value => $prcts{'qcache_hitrate' . ((defined($self->{option_results}->{lookback})) ? '' : '_now' )}, threshold => [ { label => 'critical', exit_litteral => 'critical' }, { label => 'warning', exit_litteral => 'warning' } ]); - $self->{output}->output_add(severity => $exit_code, - short_msg => sprintf("query cache hitrate at %.2f%%", $prcts{'qcache_hitrate' . ((defined($self->{option_results}->{lookback})) ? '' : '_now')}) - ); - $self->{output}->perfdata_add(label => 'qcache_hitrate' . ((defined($self->{option_results}->{lookback})) ? '' : '_now'), - nlabel => 'database.qcache.hitrate' . ((defined($self->{option_results}->{lookback})) ? '.average' : '.delta') . '.percentage', - unit => '%', - value => sprintf("%.2f", $prcts{'qcache_hitrate' . ((defined($self->{option_results}->{lookback})) ? '' : '_now')}), - warning => $self->{perfdata}->get_perfdata_for_output(label => 'warning'), - critical => $self->{perfdata}->get_perfdata_for_output(label => 'critical'), - min => 0); - $self->{output}->perfdata_add(label => 'qcache_hitrate' . ((defined($self->{option_results}->{lookback})) ? '_now' : ''), - nlabel => 'database.qcache.hitrate' . ((defined($self->{option_results}->{lookback})) ? '.delta' : '.average') . '.percentage', - unit => '%', - value => sprintf("%.2f", $prcts{'qcache_hitrate' . ((defined($self->{option_results}->{lookback})) ? '_now' : '')}), - min => 0); + $self->{output}->output_add( + severity => $exit_code, + short_msg => sprintf("query cache hitrate at %.2f%%", $prcts{'qcache_hitrate' . ((defined($self->{option_results}->{lookback})) ? '' : '_now')}) + ); + $self->{output}->perfdata_add( + label => 'qcache_hitrate' . ((defined($self->{option_results}->{lookback})) ? '' : '_now'), + nlabel => 'database.qcache.hitrate' . ((defined($self->{option_results}->{lookback})) ? '.average' : '.delta') . '.percentage', + unit => '%', + value => sprintf("%.2f", $prcts{'qcache_hitrate' . ((defined($self->{option_results}->{lookback})) ? '' : '_now')}), + warning => $self->{perfdata}->get_perfdata_for_output(label => 'warning'), + critical => $self->{perfdata}->get_perfdata_for_output(label => 'critical'), + min => 0 + ); + $self->{output}->perfdata_add( + label => 'qcache_hitrate' . ((defined($self->{option_results}->{lookback})) ? '_now' : ''), + nlabel => 'database.qcache.hitrate' . ((defined($self->{option_results}->{lookback})) ? '.delta' : '.average') . '.percentage', + unit => '%', + value => sprintf("%.2f", $prcts{'qcache_hitrate' . ((defined($self->{option_results}->{lookback})) ? '_now' : '')}), + min => 0 + ); } $self->{statefile_cache}->write(data => $new_datas); if (!defined($old_timestamp)) { - $self->{output}->output_add(severity => 'OK', - short_msg => "Buffer creation..."); + $self->{output}->output_add( + severity => 'OK', + short_msg => "Buffer creation..." + ); } - + $self->{output}->display(); $self->{output}->exit(); } diff --git a/src/database/mysql/mode/queries.pm b/src/database/mysql/mode/queries.pm index 5fee8fcc7..905df68d4 100644 --- a/src/database/mysql/mode/queries.pm +++ b/src/database/mysql/mode/queries.pm @@ -26,11 +26,17 @@ use strict; use warnings; use Digest::MD5 qw(md5_hex); +sub prefix_output { + my ($self, %options) = @_; + + return "Requests "; +} + sub set_counters { my ($self, %options) = @_; $self->{maps_counters_type} = [ - { name => 'global', type => 0, cb_prefix_output => 'prefix_output' }, + { name => 'global', type => 0, cb_prefix_output => 'prefix_output' } ]; $self->{maps_counters}->{global} = [ @@ -38,10 +44,10 @@ sub set_counters { key_values => [ { name => 'Queries', per_second => 1 } ], output_template => 'Total : %d', perfdatas => [ - { label => 'total_requests', template => '%d', unit => '/s', min => 0 }, - ], + { label => 'total_requests', template => '%d', unit => '/s', min => 0 } + ] } - }, + } ]; foreach ('update', 'delete', 'insert', 'truncate', 'select', 'commit', 'begin') { @@ -66,15 +72,9 @@ sub set_counters { } } -sub prefix_output { - my ($self, %options) = @_; - - return "Requests "; -} - sub new { my ($class, %options) = @_; - my $self = $class->SUPER::new(package => __PACKAGE__, %options, statefile => 1); + my $self = $class->SUPER::new(package => __PACKAGE__, %options, statefile => 1, force_new_perfdata => 1); bless $self, $class; $options{options}->add_options(arguments => { @@ -91,7 +91,7 @@ sub manage_selection { $self->{output}->add_option_msg(short_msg => "MySQL version '" . $self->{sql}->{version} . "' is not supported (need version >= '5.0.76')."); $self->{output}->option_exit(); } - + $options{sql}->query(query => q{ SHOW /*!50000 global */ STATUS WHERE Variable_name IN ('Queries', 'Com_update', 'Com_delete', 'Com_insert', 'Com_truncate', 'Com_select', 'Com_commit', 'Com_begin') }); diff --git a/src/database/mysql/mode/slowqueries.pm b/src/database/mysql/mode/slowqueries.pm index bdec836d7..4f982a66e 100644 --- a/src/database/mysql/mode/slowqueries.pm +++ b/src/database/mysql/mode/slowqueries.pm @@ -31,11 +31,11 @@ sub new { my $self = $class->SUPER::new(package => __PACKAGE__, %options, force_new_perfdata => 1); bless $self, $class; - $options{options}->add_options(arguments => - { - "warning:s" => { name => 'warning', }, - "critical:s" => { name => 'critical', }, - }); + $options{options}->add_options(arguments => { + 'warning:s' => { name => 'warning' }, + 'critical:s' => { name => 'critical' } + }); + $self->{statefile_cache} = centreon::plugins::statefile->new(%options); return $self; @@ -53,7 +53,7 @@ sub check_options { $self->{output}->add_option_msg(short_msg => "Wrong critical threshold '" . $self->{option_results}->{critical} . "'."); $self->{output}->option_exit(); } - + $self->{statefile_cache}->check_options(%options); } @@ -68,7 +68,7 @@ sub run { $self->{output}->add_option_msg(short_msg => "MySQL version '" . $self->{sql}->{version} . "' is not supported (need version >= '5.x')."); $self->{output}->option_exit(); } - + $self->{sql}->query(query => q{SHOW /*!50000 global */ STATUS LIKE 'Slow_queries'}); my ($name, $result) = $self->{sql}->fetchrow_array(); if (!defined($result)) { @@ -97,9 +97,10 @@ sub run { severity => $exit_code, short_msg => sprintf("%d slow queries since last check.", $value) ); + $self->{output}->perfdata_add( label => 'slow_queries_delta', - nlabel => 'database.slowqueries.delta', + nlabel => 'database.slowqueries.delta.count', value => $value, warning => $self->{perfdata}->get_perfdata_for_output(label => 'warning'), critical => $self->{perfdata}->get_perfdata_for_output(label => 'critical'), @@ -109,8 +110,10 @@ sub run { $self->{statefile_cache}->write(data => $new_datas); if (!defined($old_timestamp)) { - $self->{output}->output_add(severity => 'OK', - short_msg => "Buffer creation..."); + $self->{output}->output_add( + severity => 'OK', + short_msg => "Buffer creation..." + ); } $self->{output}->display(); diff --git a/src/database/mysql/mode/threadsconnected.pm b/src/database/mysql/mode/threadsconnected.pm index 5974a96e6..9b89837f6 100644 --- a/src/database/mysql/mode/threadsconnected.pm +++ b/src/database/mysql/mode/threadsconnected.pm @@ -27,7 +27,7 @@ use warnings; sub custom_usage_output { my ($self, %options) = @_; - + return sprintf( 'Client connected threads total: %s used: %s (%.2f%%) free: %s (%.2f%%)', $self->{result_values}->{total}, @@ -44,7 +44,6 @@ sub prefix_databse_output { return "Database '" . $options{instance_value}->{name} . "' "; } - sub set_counters { my ($self, %options) = @_; diff --git a/src/database/mysql/mode/uptime.pm b/src/database/mysql/mode/uptime.pm index 232c3cb49..c295baeec 100644 --- a/src/database/mysql/mode/uptime.pm +++ b/src/database/mysql/mode/uptime.pm @@ -28,15 +28,14 @@ use POSIX; sub new { my ($class, %options) = @_; - my $self = $class->SUPER::new(package => __PACKAGE__, %options); + my $self = $class->SUPER::new(package => __PACKAGE__, %options, force_new_perfdata => 1); bless $self, $class; - - $options{options}->add_options(arguments => - { - "warning:s" => { name => 'warning', }, - "critical:s" => { name => 'critical', }, - "seconds" => { name => 'seconds', }, - }); + + $options{options}->add_options(arguments => { + "warning:s" => { name => 'warning' }, + "critical:s" => { name => 'critical' }, + "seconds" => { name => 'seconds' } + }); return $self; } @@ -63,29 +62,33 @@ sub run { $self->{output}->add_option_msg(short_msg => "MySQL version '" . $self->{sql}->{version} . "' is not supported (need version >= '5.x')."); $self->{output}->option_exit(); } - + $options{sql}->query(query => q{SHOW /*!50000 global */ STATUS LIKE 'Uptime'}); my ($name, $value) = $options{sql}->fetchrow_array(); if (!defined($value)) { $self->{output}->add_option_msg(short_msg => "Cannot get uptime."); $self->{output}->option_exit(); } - + my $exit_code = $self->{perfdata}->threshold_check(value => $value, threshold => [ { label => 'critical', exit_litteral => 'critical' }, { label => 'warning', exit_litteral => 'warning' } ]); my $msg = sprintf("database is up since %d days", floor($value / 86400)); if (defined($self->{option_results}->{seconds})) { $msg = sprintf("database is up since %d seconds", $value); } - - $self->{output}->output_add(severity => $exit_code, - short_msg => $msg); - $self->{output}->perfdata_add(label => 'uptime', - nlabel => 'database.uptime.seconds', - unit => 's', - value => $value, - warning => $self->{perfdata}->get_perfdata_for_output(label => 'warning'), - critical => $self->{perfdata}->get_perfdata_for_output(label => 'critical'), - min => 0); + + $self->{output}->output_add( + severity => $exit_code, + short_msg => $msg + ); + $self->{output}->perfdata_add( + label => 'uptime', + nlabel => 'database.uptime.seconds', + unit => 's', + value => $value, + warning => $self->{perfdata}->get_perfdata_for_output(label => 'warning'), + critical => $self->{perfdata}->get_perfdata_for_output(label => 'critical'), + min => 0 + ); $self->{output}->display(); $self->{output}->exit(); diff --git a/src/database/mysql/plugin.pm b/src/database/mysql/plugin.pm index 46a7f8e21..14258eda4 100644 --- a/src/database/mysql/plugin.pm +++ b/src/database/mysql/plugin.pm @@ -39,6 +39,7 @@ sub new { 'long-queries' => 'database::mysql::mode::longqueries', 'myisam-keycache-hitrate' => 'database::mysql::mode::myisamkeycachehitrate', 'open-files' => 'database::mysql::mode::openfiles', + 'open-tables' => 'database::mysql::mode::opentables', 'password-expiration' => 'database::mysql::mode::passwordexpiration', 'qcache-hitrate' => 'database::mysql::mode::qcachehitrate', 'queries' => 'database::mysql::mode::queries', From e5da44cf408834c1839c7479e804e72d63fa91f2 Mon Sep 17 00:00:00 2001 From: sdepassio <114986849+sdepassio@users.noreply.github.com> Date: Mon, 12 Jun 2023 16:20:17 +0200 Subject: [PATCH 06/39] Update GitHub action (#4474) --- .github/CODEOWNERS | 3 ++- .github/workflows/tests-functional.yml | 19 +++++++++++-------- .../cloud/aws/cloudtrail/countevents.sh | 2 +- 3 files changed, 14 insertions(+), 10 deletions(-) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 1adc1f378..e4128f6ae 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -1 +1,2 @@ -* @centreon/perl-reviewers \ No newline at end of file +* @centreon/perl-reviewers +.github/ @centreon/perl-reviewers @centreon/automation-reviewers diff --git a/.github/workflows/tests-functional.yml b/.github/workflows/tests-functional.yml index 31f20ccf5..406def0b0 100644 --- a/.github/workflows/tests-functional.yml +++ b/.github/workflows/tests-functional.yml @@ -1,12 +1,13 @@ -name: Run mock API server +name: Functional tests on: workflow_dispatch: - push: - branches: - - MON-** + pull_request: + paths: + - 'src/**' + - 'tests/functional/**' jobs: - test: + AWS_tests: runs-on: ubuntu-latest steps: @@ -14,13 +15,15 @@ jobs: - name: Use Node.js uses: actions/setup-node@v2 with: - node-version: "14.x" + node-version: "16.x" - name: Install Mockoon CLI run: npm install -D @mockoon/cli - name: Install perl dependencies - uses: perl-actions/install-with-cpm@stable + uses: shogo82148/actions-setup-perl@v1 with: - install: | + perl-version: '5.34' + install-modules-with: cpm + install-modules: | DateTime Digest::MD5 Encode diff --git a/tests/functional/cloud/aws/cloudtrail/countevents.sh b/tests/functional/cloud/aws/cloudtrail/countevents.sh index 7656ba872..836327e08 100644 --- a/tests/functional/cloud/aws/cloudtrail/countevents.sh +++ b/tests/functional/cloud/aws/cloudtrail/countevents.sh @@ -24,7 +24,7 @@ if [[ $test_oknexttoken = "OK: Number of events: 20.00 | 'events_count'=20.00;;; then ((nb_tests_ok++)) else - echo "$test_oknexttoken ko" + echo "test_oknexttoken ko" echo $test_oknexttoken fi From e0922ef7f152538d618e6b34d96ae041f65a99b5 Mon Sep 17 00:00:00 2001 From: omercier <32134301+omercier@users.noreply.github.com> Date: Thu, 15 Jun 2023 17:06:36 +0200 Subject: [PATCH 07/39] Mon 16172 improve most used helps (#4477) * enh(help): first draft * enh(help): second batch * enh(help): last batch? --- src/centreon/plugins/ssh.pm | 10 ++++++---- src/centreon/plugins/statefile.pm | 15 ++++++++------- src/centreon/plugins/wsman.pm | 26 +++++++++++++------------- 3 files changed, 27 insertions(+), 24 deletions(-) diff --git a/src/centreon/plugins/ssh.pm b/src/centreon/plugins/ssh.pm index 6e56f43ae..3ff10cd0f 100644 --- a/src/centreon/plugins/ssh.pm +++ b/src/centreon/plugins/ssh.pm @@ -113,19 +113,21 @@ It can be: sshcli (default), plink and libssh. =item B<--ssh-username> -Connect with specified username. +Define the user name to log in to the host. =item B<--ssh-password> -Login with specified password. Cannot be used with sshcli backend. +Define the password associated with the user name. +Cannot be used with the sshcli backend. +Warning: using a password is not recommended. Use --ssh-priv-key instead. =item B<--ssh-port> -Connect to specified port. +Define the TCP port on which SSH is listening. =item B<--ssh-priv-key> -Private key file for user authentication. +Define the private key file to use for user authentication. =back diff --git a/src/centreon/plugins/statefile.pm b/src/centreon/plugins/statefile.pm index a6b8ba2bc..eb34f95c3 100644 --- a/src/centreon/plugins/statefile.pm +++ b/src/centreon/plugins/statefile.pm @@ -479,28 +479,29 @@ Time to keep data in seconds (Default: 86400). =item B<--statefile-dir> -Directory for statefile (Default: '/var/lib/centreon/centplugins'). +Define the cache directory (default: '/var/lib/centreon/centplugins'). =item B<--statefile-suffix> -Add a suffix for the statefile name (Default: ''). +Define a suffix to customize the statefile name (Default: ''). =item B<--statefile-concat-cwd> -Concat current working directory with option '--statefile-dir'. -Useful on Windows when plugin is compiled. +If used with the '--statefile-dir' option, the latter's value will be used as +a sub-directory of the current working directory. +Useful on Windows when the plugin is compiled, as the file system and permissions are different from Linux. =item B<--statefile-format> -Format used to store cache (can be: 'dumper', 'storable', 'json'). +Define the format used to store the cache. Available formats: 'dumper', 'storable', 'json' (default). =item B<--statefile-key> -Key to encrypt/decrypt cache. +Define the key to encrypt/decrypt the cache. =item B<--statefile-cipher> -Cipher to encrypt cache (Default: 'AES'). +Define the cipher algorithm to encrypt the cache (Default: 'AES'). =back diff --git a/src/centreon/plugins/wsman.pm b/src/centreon/plugins/wsman.pm index de9fc8314..4e79de958 100644 --- a/src/centreon/plugins/wsman.pm +++ b/src/centreon/plugins/wsman.pm @@ -565,55 +565,55 @@ Need at least openwsman-perl version >= 2.4.0 =item B<--hostname> -Hostname to query (required). +Define the hostname to query (mandatory). =item B<--wsman-port> -Port (default: 5985). +Define the port to connect to (default: 5985). =item B<--wsman-path> -Set path of URL (default: '/wsman'). +Define the path of the WSMAN URL if it has been customized (default: '/wsman'). =item B<--wsman-scheme> -Set transport scheme (default: 'http'). +Define the transport scheme (default: 'http'). =item B<--wsman-username> -Set username for authentification. +Define the username for authentication. =item B<--wsman-password> -Set username password for authentification. +Define the password associated with the user name. =item B<--wsman-timeout> -Set HTTP Transport Timeout in seconds (default: 30). +Define the HTTP transport timeout in seconds (default: 30). =item B<--wsman-auth-method> -Set the authentification method (default: 'basic'). +Define the authentication method. Available methods: noauth, basic (default), pass, digest, ntlm, gssnegotiate. =item B<--wsman-proxy-url> -Set HTTP proxy URL. +Define the URL of the HTTP proxy to use. =item B<--wsman-proxy-username> -Set the proxy username. +Define the user name to authenticate to the proxy server. =item B<--wsman-proxy-password> -Set the proxy password. +Define the password to authenticate to the proxy server. =item B<--wsman-debug> -Set openwsman debug on (Default: --wsman-debug=info). +Define the openwsman log level. Available levels: error, critical, warning, message, info (default), debug. =item B<--wsman-errors-exit> -Exit code for wsman Errors (default: unknown) +Define the expected exit code when wsman errors occur (default: unknown). =back From 0ad0ff3568bd3fe6216f285f9c82ed493a6f4bc8 Mon Sep 17 00:00:00 2001 From: qgarnier Date: Fri, 16 Jun 2023 16:50:15 +0200 Subject: [PATCH 08/39] =?UTF-8?q?(plugin)=20network::cisco::meraki::cloudc?= =?UTF-8?q?ontroller::restapi=20-=20add=20device.li=E2=80=A6=20(#4486)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cloudcontroller/restapi/custom/api.pm | 3 +++ .../cloudcontroller/restapi/mode/devices.pm | 24 +++++++++++++++---- .../restapi/mode/listdevices.pm | 16 +++++++++---- 3 files changed, 34 insertions(+), 9 deletions(-) diff --git a/src/network/cisco/meraki/cloudcontroller/restapi/custom/api.pm b/src/network/cisco/meraki/cloudcontroller/restapi/custom/api.pm index ebf8153ea..2173801d9 100644 --- a/src/network/cisco/meraki/cloudcontroller/restapi/custom/api.pm +++ b/src/network/cisco/meraki/cloudcontroller/restapi/custom/api.pm @@ -443,6 +443,9 @@ sub get_organization_uplink_loss_and_latency { if (defined($datas)) { foreach (@$datas) { + # sometimes uplink is undef. so we skip + next if (!defined($_->{uplink})); + $self->{datas}->{uplinks_loss_latency}->{ $options{orgId} }->{ $_->{serial} } = {} if (!defined($self->{datas}->{uplinks_loss_latency}->{ $options{orgId} }->{ $_->{serial} })); $self->{datas}->{uplinks_loss_latency}->{ $options{orgId} }->{ $_->{serial} }->{ $_->{uplink} } = $_; diff --git a/src/network/cisco/meraki/cloudcontroller/restapi/mode/devices.pm b/src/network/cisco/meraki/cloudcontroller/restapi/mode/devices.pm index 03402da5a..95e81eda2 100644 --- a/src/network/cisco/meraki/cloudcontroller/restapi/mode/devices.pm +++ b/src/network/cisco/meraki/cloudcontroller/restapi/mode/devices.pm @@ -98,6 +98,7 @@ sub set_counters { { name => 'device_performance', type => 0, skipped_code => { -10 => 1 } }, { name => 'device_connections', type => 0, cb_prefix_output => 'prefix_connection_output', skipped_code => { -10 => 1 } }, { name => 'device_traffic', type => 0, cb_prefix_output => 'prefix_traffic_output', skipped_code => { -10 => 1, -11 => 1 } }, + { name => 'device_links_counters', type => 0, skipped_code => { -10 => 1, -11 => 1 } }, { name => 'device_links', display_long => 1, cb_prefix_output => 'prefix_link_output', message_multiple => 'All links are ok', type => 1, skipped_code => { -10 => 1 } }, { name => 'device_ports', display_long => 1, cb_prefix_output => 'prefix_port_output', message_multiple => 'All ports are ok', type => 1, skipped_code => { -10 => 1 } } ] @@ -144,7 +145,7 @@ sub set_counters { { template => '%s', min => 0, max => 'total' } ] } - }, + } ]; $self->{maps_counters}->{device_status} = [ @@ -217,7 +218,7 @@ sub set_counters { output_template => 'in: %s %s/s', output_change_bytes => 2, perfdatas => [ - { template => '%s', min => 0, unit => 'b/s', label_extra_instance => 1, instance_use => 'display' } + { template => '%s', min => 0, unit => 'b/s', label_extra_instance => 1 } ] } }, @@ -226,7 +227,18 @@ sub set_counters { output_template => 'out: %s %s/s', output_change_bytes => 2, perfdatas => [ - { template => '%s', min => 0, unit => 'b/s', label_extra_instance => 1, instance_use => 'display' } + { template => '%s', min => 0, unit => 'b/s', label_extra_instance => 1 } + ] + } + } + ]; + + $self->{maps_counters}->{device_links_counters} = [ + { label => 'links-ineffective', nlabel => 'device.links.ineffective.count', display_ok => 0, set => { + key_values => [ { name => 'ineffective' } ], + output_template => 'links ineffective: %s', + perfdatas => [ + { template => '%s', min => 0, label_extra_instance => 1 } ] } } @@ -356,6 +368,8 @@ sub add_uplink { ); if (defined($links)) { + $self->{devices}->{ $options{serial} }->{device_links_counters} = { ineffective => 0 }; + foreach (@$links) { my $interface = lc($_->{interface}); $interface =~ s/\s+//g; @@ -363,6 +377,8 @@ sub add_uplink { display => $interface, link_status => lc($_->{status}) }; + $self->{devices}->{ $options{serial} }->{device_links_counters}->{ineffective}++ + if ($_->{status} =~ /failed|Not Connected/i); } } } @@ -656,7 +672,7 @@ Thresholds. Can be: 'total-online', 'total-online-prct', 'total-offline', 'total-offline-prct', 'total-alerting', 'traffic-in', 'traffic-out', 'connections-success', 'connections-auth', 'connections-assoc', 'connections-dhcp', 'connections-dns', -'load', 'link-latency' (ms), ''link-loss' (%), +'load', 'links-ineffective', 'link-latency' (ms), ''link-loss' (%), 'port-traffic-in', 'port-traffic-out'. =back diff --git a/src/network/cisco/meraki/cloudcontroller/restapi/mode/listdevices.pm b/src/network/cisco/meraki/cloudcontroller/restapi/mode/listdevices.pm index a799a8982..88938c356 100644 --- a/src/network/cisco/meraki/cloudcontroller/restapi/mode/listdevices.pm +++ b/src/network/cisco/meraki/cloudcontroller/restapi/mode/listdevices.pm @@ -84,7 +84,9 @@ sub manage_selection { status => $devices_statuses->{ $devices->{$_}->{serial} }->{status}, public_ip => $devices_statuses->{ $devices->{$_}->{serial} }->{publicIp}, network_name => $networks->{ $devices->{$_}->{networkId} }->{name}, - organization_name => $organization_name + organization_name => $organization_name, + model => $devices->{$_}->{model}, + serial => $_ }; } @@ -97,11 +99,13 @@ sub run { my $devices = $self->manage_selection(%options); foreach (values %$devices) { $self->{output}->output_add(long_msg => sprintf( - '[name: %s][status: %s][network name: %s][organization name: %s]', + '[name: %s][status: %s][network name: %s][organization name: %s][model: %s][serial: %s]', $_->{name}, $_->{status}, $_->{network_name}, - $_->{organization_name} + $_->{organization_name}, + $_->{model}, + $_->{serial} ) ); } @@ -118,7 +122,7 @@ sub disco_format { my ($self, %options) = @_; $self->{output}->add_disco_format(elements => [ - 'name', 'status', 'tags', 'organization_name', 'network_id', 'network_name' + 'name', 'status', 'tags', 'organization_name', 'network_id', 'network_name', 'model', 'serial' ]); } @@ -133,7 +137,9 @@ sub disco_show { network_name => $_->{network_name}, network_id => $_->{networkId}, organization_name => $_->{organization_name}, - tags => defined($_->{tags}) ? join(',', @{$_->{tags}}) : '' + tags => defined($_->{tags}) ? join(',', @{$_->{tags}}) : '', + model => $_->{model}, + serial => $_->{serial} ); } } From dd314fa1eb4df92ccdd3ca45aedf25a27de66d53 Mon Sep 17 00:00:00 2001 From: qgarnier Date: Fri, 16 Jun 2023 16:50:40 +0200 Subject: [PATCH 09/39] (packaging) network::atrica::snmp - missing pm files (#4479) --- .../centreon-plugin-Network-Routers-Atrica-Snmp/pkg.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packaging/centreon-plugin-Network-Routers-Atrica-Snmp/pkg.json b/packaging/centreon-plugin-Network-Routers-Atrica-Snmp/pkg.json index 260b588da..3408d41d1 100644 --- a/packaging/centreon-plugin-Network-Routers-Atrica-Snmp/pkg.json +++ b/packaging/centreon-plugin-Network-Routers-Atrica-Snmp/pkg.json @@ -5,6 +5,9 @@ "files": [ "centreon/plugins/script_snmp.pm", "centreon/plugins/snmp.pm", + "snmp_standard/mode/interfaces.pm", + "snmp_standard/mode/listinterfaces.pm", + "snmp_standard/mode/resources/", "network/atrica/snmp/" ] -} \ No newline at end of file +} From cde60ceeb1903fa26a15b83660e8ff70fa685003 Mon Sep 17 00:00:00 2001 From: qgarnier Date: Fri, 16 Jun 2023 16:50:54 +0200 Subject: [PATCH 10/39] (plugin) storage::dell::powerstore::restapi - fix memory mode (#4480) --- src/storage/dell/powerstore/restapi/mode/memory.pm | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/storage/dell/powerstore/restapi/mode/memory.pm b/src/storage/dell/powerstore/restapi/mode/memory.pm index 9d0de78a3..b0208e4c3 100644 --- a/src/storage/dell/powerstore/restapi/mode/memory.pm +++ b/src/storage/dell/powerstore/restapi/mode/memory.pm @@ -101,13 +101,15 @@ sub manage_selection { next if (defined($self->{option_results}->{filter_appliance_id}) && $self->{option_results}->{filter_appliance_id} ne '' && $appliance_id !~ /$self->{option_results}->{filter_appliance_id}/); - my $free = $appliances->{$appliance_id}->{last_physical_total} - $appliances->{$appliance_id}->{last_physical_used}; + my $total = defined($appliances->{$appliance_id}->[-1]->{last_physical_total}) ? $appliances->{$appliance_id}->[-1]->{last_physical_total} : $appliances->{$appliance_id}->[-1]->{physical_total}; + my $used = defined($appliances->{$appliance_id}->[-1]->{last_physical_used}) ? $appliances->{$appliance_id}->[-1]->{last_physical_used} : $appliances->{$appliance_id}->[-1]->{physical_used}; + my $free = $total - $used; $self->{memory}->{ $appliance_id } = { - total => $appliances->{$appliance_id}->{last_physical_total}, - used => $appliances->{$appliance_id}->{last_physical_used}, + total => $total, + used => $used, free => $free, - prct_used => $appliances->{$appliance_id}->{last_physical_used} * 100 / $appliances->{$appliance_id}->{last_physical_total}, - prct_free => $free * 100 / $appliances->{$appliance_id}->{last_physical_total} + prct_used => $used * 100 / $total, + prct_free => $free * 100 / $total }; } } From 17979bb7c00fb980086b2b1b9ac0ab2dfbba2ef5 Mon Sep 17 00:00:00 2001 From: qgarnier Date: Fri, 16 Jun 2023 16:53:29 +0200 Subject: [PATCH 11/39] (plugin) cloud::vmware::velocloud::restapi - fix empty return (#4476) --- .../restapi/mode/applicationusage.pm | 48 +++++++++-------- .../velocloud/restapi/mode/categoryusage.pm | 50 +++++++++-------- .../vmware/velocloud/restapi/mode/edgeqoe.pm | 54 ++++++++++--------- .../velocloud/restapi/mode/edgestatus.pm | 2 +- .../velocloud/restapi/mode/linkstatus.pm | 12 +++-- .../velocloud/restapi/mode/linkusage.pm | 18 +++---- 6 files changed, 100 insertions(+), 84 deletions(-) diff --git a/src/cloud/vmware/velocloud/restapi/mode/applicationusage.pm b/src/cloud/vmware/velocloud/restapi/mode/applicationusage.pm index 84cf574d4..c941db5a7 100644 --- a/src/cloud/vmware/velocloud/restapi/mode/applicationusage.pm +++ b/src/cloud/vmware/velocloud/restapi/mode/applicationusage.pm @@ -25,6 +25,24 @@ use base qw(centreon::plugins::templates::counter); use strict; use warnings; +sub prefix_edge_output { + my ($self, %options) = @_; + + return "Edge '" . $options{instance_value}->{display} . "' "; +} + +sub prefix_app_output { + my ($self, %options) = @_; + + return "Application '" . $options{instance_value}->{display} . "' [Id: " . $options{instance_value}->{id} . "] "; +} + +sub long_output { + my ($self, %options) = @_; + + return "Checking edge '" . $options{instance_value}->{display} . "' [Id: " . $options{instance_value}->{id} . "] "; +} + sub set_counters { my ($self, %options) = @_; @@ -86,24 +104,6 @@ sub set_counters { ]; } -sub prefix_edge_output { - my ($self, %options) = @_; - - return "Edge '" . $options{instance_value}->{display} . "' "; -} - -sub prefix_app_output { - my ($self, %options) = @_; - - return "Application '" . $options{instance_value}->{display} . "' [Id: " . $options{instance_value}->{id} . "] "; -} - -sub long_output { - my ($self, %options) = @_; - - return "Checking edge '" . $options{instance_value}->{display} . "' [Id: " . $options{instance_value}->{id} . "] "; -} - sub new { my ($class, %options) = @_; my $self = $class->SUPER::new(package => __PACKAGE__, %options, force_new_perfdata => 1); @@ -137,8 +137,12 @@ sub manage_selection { next; } - $self->{edges}->{ $edge->{name} }->{id} = $edge->{id}; - $self->{edges}->{ $edge->{name} }->{display} = $edge->{name}; + $self->{edges}->{ $edge->{name} } = { + id => $edge->{id}, + display => $edge->{name}, + global => { app_count => 0 }, + apps => {} + }; my $apps = $options{custom}->get_apps_metrics( edge_id => $edge->{id}, @@ -158,8 +162,8 @@ sub manage_selection { next; } - $self->{edges}->{$edge->{name}}->{global}->{app_count}++; - $self->{edges}->{$edge->{name}}->{apps}->{ $app_name } = { + $self->{edges}->{ $edge->{name} }->{global}->{app_count}++; + $self->{edges}->{ $edge->{name} }->{apps}->{ $app_name } = { id => $app->{application}, display => $app_name, traffic_out => int($app->{bytesTx} * 8 / $self->{timeframe}), diff --git a/src/cloud/vmware/velocloud/restapi/mode/categoryusage.pm b/src/cloud/vmware/velocloud/restapi/mode/categoryusage.pm index 74d42a96b..1b45d6cbf 100644 --- a/src/cloud/vmware/velocloud/restapi/mode/categoryusage.pm +++ b/src/cloud/vmware/velocloud/restapi/mode/categoryusage.pm @@ -25,6 +25,24 @@ use base qw(centreon::plugins::templates::counter); use strict; use warnings; +sub prefix_edge_output { + my ($self, %options) = @_; + + return "Edge '" . $options{instance_value}->{display} . "' "; +} + +sub prefix_category_output { + my ($self, %options) = @_; + + return "Category '" . $options{instance_value}->{display} . "' [Id: " . $options{instance_value}->{id} . "] "; +} + +sub long_output { + my ($self, %options) = @_; + + return "Checking edge '" . $options{instance_value}->{display} . "' [Id: " . $options{instance_value}->{id} . "] "; +} + sub set_counters { my ($self, %options) = @_; @@ -86,24 +104,6 @@ sub set_counters { ]; } -sub prefix_edge_output { - my ($self, %options) = @_; - - return "Edge '" . $options{instance_value}->{display} . "' "; -} - -sub prefix_category_output { - my ($self, %options) = @_; - - return "Category '" . $options{instance_value}->{display} . "' [Id: " . $options{instance_value}->{id} . "] "; -} - -sub long_output { - my ($self, %options) = @_; - - return "Checking edge '" . $options{instance_value}->{display} . "' [Id: " . $options{instance_value}->{id} . "] "; -} - sub new { my ($class, %options) = @_; my $self = $class->SUPER::new(package => __PACKAGE__, %options, force_new_perfdata => 1); @@ -137,8 +137,12 @@ sub manage_selection { next; } - $self->{edges}->{$edge->{name}}->{id} = $edge->{id}; - $self->{edges}->{$edge->{name}}->{display} = $edge->{name}; + $self->{edges}->{ $edge->{name} } = { + id => $edge->{id}, + display => $edge->{name}, + global => { category_count => 0 }, + categories => {} + }; my $categories = $options{custom}->get_categories_metrics( edge_id => $edge->{id}, @@ -153,14 +157,14 @@ sub manage_selection { next; } - $self->{edges}->{$edge->{name}}->{global}->{category_count}++; - $self->{edges}->{$edge->{name}}->{categories}->{$category->{name}} = { + $self->{edges}->{ $edge->{name} }->{global}->{category_count}++; + $self->{edges}->{ $edge->{name} }->{categories}->{$category->{name}} = { id => $category->{category}, display => $category->{name}, traffic_out => int($category->{bytesTx} * 8 / $self->{timeframe}), traffic_in => int($category->{bytesRx} * 8 / $self->{timeframe}), packets_out => $category->{packetsTx} / $self->{timeframe}, - packets_in => $category->{packetsRx} / $self->{timeframe}, + packets_in => $category->{packetsRx} / $self->{timeframe} }; } } diff --git a/src/cloud/vmware/velocloud/restapi/mode/edgeqoe.pm b/src/cloud/vmware/velocloud/restapi/mode/edgeqoe.pm index 4c7743c1d..1357714dd 100644 --- a/src/cloud/vmware/velocloud/restapi/mode/edgeqoe.pm +++ b/src/cloud/vmware/velocloud/restapi/mode/edgeqoe.pm @@ -25,6 +25,24 @@ use base qw(centreon::plugins::templates::counter); use strict; use warnings; +sub prefix_edge_output { + my ($self, %options) = @_; + + return "Edge '" . $options{instance_value}->{display} . "' "; +} + +sub prefix_link_output { + my ($self, %options) = @_; + + return "Link '" . $options{instance_value}->{display} . "' [Id: " . $options{instance_value}->{id} . "] "; +} + +sub long_output { + my ($self, %options) = @_; + + return "Checking edge '" . $options{instance_value}->{display} . "' [Id: " . $options{instance_value}->{id} . "] "; +} + sub set_counters { my ($self, %options) = @_; @@ -102,24 +120,6 @@ sub set_counters { ]; } -sub prefix_edge_output { - my ($self, %options) = @_; - - return "Edge '" . $options{instance_value}->{display} . "' "; -} - -sub prefix_link_output { - my ($self, %options) = @_; - - return "Link '" . $options{instance_value}->{display} . "' [Id: " . $options{instance_value}->{id} . "] "; -} - -sub long_output { - my ($self, %options) = @_; - - return "Checking edge '" . $options{instance_value}->{display} . "' [Id: " . $options{instance_value}->{id} . "] "; -} - sub new { my ($class, %options) = @_; my $self = $class->SUPER::new(package => __PACKAGE__, %options, force_new_perfdata => 1); @@ -146,15 +146,19 @@ sub manage_selection { my $results = $options{custom}->list_edges(); $self->{edges} = {}; - foreach my $edge (@{$results}) { + foreach my $edge (@$results) { if (defined($self->{option_results}->{filter_edge_name}) && $self->{option_results}->{filter_edge_name} ne '' && $edge->{name} !~ /$self->{option_results}->{filter_edge_name}/) { $self->{output}->output_add(long_msg => "skipping '" . $edge->{name} . "'.", debug => 1); next; } - - $self->{edges}->{$edge->{name}}->{id} = $edge->{id}; - $self->{edges}->{$edge->{name}}->{display} = $edge->{name}; + + $self->{edges}->{ $edge->{name} } = { + id => $edge->{id}, + display => $edge->{name}, + global => { link_count => 0 }, + links => {} + }; my $links = $options{custom}->list_links( edge_id => $edge->{id}, @@ -183,8 +187,8 @@ sub manage_selection { next; } - $self->{edges}->{$edge->{name}}->{global}->{link_count}++; - $self->{edges}->{$edge->{name}}->{links}->{$link->{link}->{displayName}} = { + $self->{edges}->{ $edge->{name} }->{global}->{link_count}++; + $self->{edges}->{ $edge->{name} }->{links}->{ $link->{link}->{displayName} } = { id => $link->{linkId}, display => $link->{link}->{displayName}, voice => $qoes->{$link->{link}->{internalId}}->{score}->{0}, @@ -226,4 +230,4 @@ Can be: 'edge-links-count', 'qoe-voice-global', 'qoe-video-global', 'qoe-transac =back -=cut \ No newline at end of file +=cut diff --git a/src/cloud/vmware/velocloud/restapi/mode/edgestatus.pm b/src/cloud/vmware/velocloud/restapi/mode/edgestatus.pm index bcc8c6cf6..57b4c4ad2 100644 --- a/src/cloud/vmware/velocloud/restapi/mode/edgestatus.pm +++ b/src/cloud/vmware/velocloud/restapi/mode/edgestatus.pm @@ -96,7 +96,7 @@ sub manage_selection { next; } - $self->{edges}->{$edge->{id}} = { + $self->{edges}->{ $edge->{id} } = { display => $edge->{name}, edge_state => $edge->{edgeState}, service_state => $edge->{serviceState}, diff --git a/src/cloud/vmware/velocloud/restapi/mode/linkstatus.pm b/src/cloud/vmware/velocloud/restapi/mode/linkstatus.pm index cd5b9193e..5567affbd 100644 --- a/src/cloud/vmware/velocloud/restapi/mode/linkstatus.pm +++ b/src/cloud/vmware/velocloud/restapi/mode/linkstatus.pm @@ -129,8 +129,12 @@ sub manage_selection { next; } - $self->{edges}->{$edge->{name}}->{id} = $edge->{id}; - $self->{edges}->{$edge->{name}}->{display} = $edge->{name}; + $self->{edges}->{ $edge->{name} } = { + id => $edge->{id}, + display => $edge->{name}, + global => { link_count => 0 }, + links => {} + }; my $links = $options{custom}->get_links_metrics( edge_id => $edge->{id}, @@ -144,8 +148,8 @@ sub manage_selection { next; } - $self->{edges}->{$edge->{name}}->{global}->{link_count}++; - $self->{edges}->{$edge->{name}}->{links}->{$link->{link}->{displayName}} = { + $self->{edges}->{ $edge->{name} }->{global}->{link_count}++; + $self->{edges}->{ $edge->{name} }->{links}->{ $link->{link}->{displayName} } = { id => $link->{linkId}, display => $link->{link}->{displayName}, state => $link->{link}->{state}, diff --git a/src/cloud/vmware/velocloud/restapi/mode/linkusage.pm b/src/cloud/vmware/velocloud/restapi/mode/linkusage.pm index 43ffe5f25..f4e500edf 100644 --- a/src/cloud/vmware/velocloud/restapi/mode/linkusage.pm +++ b/src/cloud/vmware/velocloud/restapi/mode/linkusage.pm @@ -189,10 +189,10 @@ sub manage_selection { next; } - $self->{edges}->{$edge->{name}} = { + $self->{edges}->{ $edge->{name} } = { id => $edge->{id}, display => $edge->{name}, - global => {}, + global => { link_count => 0, traffic_in => 0, traffic_out => 0 }, links => {} }; @@ -208,8 +208,8 @@ sub manage_selection { next; } - $self->{edges}->{$edge->{name}}->{global}->{link_count}++; - $self->{edges}->{$edge->{name}}->{links}->{$link->{link}->{displayName}} = { + $self->{edges}->{ $edge->{name} }->{global}->{link_count}++; + $self->{edges}->{ $edge->{name} }->{links}->{$link->{link}->{displayName}} = { id => $link->{linkId}, display => $link->{link}->{displayName}, traffic_out => int($link->{bytesTx} * 8 / $self->{timeframe}), @@ -221,12 +221,12 @@ sub manage_selection { packet_loss_out => $link->{bestLossPctTx}, packet_loss_in => $link->{bestLossPctRx} }; - if (!defined($self->{edges}->{$edge->{name}}->{global}->{traffic_in})) { - $self->{edges}->{$edge->{name}}->{global}->{traffic_in} = 0; - $self->{edges}->{$edge->{name}}->{global}->{traffic_out} = 0; + if (!defined($self->{edges}->{ $edge->{name} }->{global}->{traffic_in})) { + $self->{edges}->{ $edge->{name} }->{global}->{traffic_in} = 0; + $self->{edges}->{ $edge->{name} }->{global}->{traffic_out} = 0; } - $self->{edges}->{$edge->{name}}->{global}->{traffic_in} += (int($link->{bytesRx} * 8 / $self->{timeframe})); - $self->{edges}->{$edge->{name}}->{global}->{traffic_out} += (int($link->{bytesTx} * 8 / $self->{timeframe})); + $self->{edges}->{ $edge->{name} }->{global}->{traffic_in} += (int($link->{bytesRx} * 8 / $self->{timeframe})); + $self->{edges}->{ $edge->{name} }->{global}->{traffic_out} += (int($link->{bytesTx} * 8 / $self->{timeframe})); } } From 4b73ff2bc4a1740e18889b15c7c0532062e70808 Mon Sep 17 00:00:00 2001 From: qgarnier Date: Fri, 16 Jun 2023 16:59:45 +0200 Subject: [PATCH 12/39] (plugin) apps::ipfabric - add list-paths mode and clean code (#4482) --- src/apps/ipfabric/custom/api.pm | 23 ++- src/apps/ipfabric/mode/discovery.pm | 20 +-- src/apps/ipfabric/mode/listpaths.pm | 126 ++++++++++++++ src/apps/ipfabric/mode/pathverification.pm | 187 +++++++++++---------- src/apps/ipfabric/plugin.pm | 1 + 5 files changed, 243 insertions(+), 114 deletions(-) create mode 100644 src/apps/ipfabric/mode/listpaths.pm diff --git a/src/apps/ipfabric/custom/api.pm b/src/apps/ipfabric/custom/api.pm index 9a7db1d5f..45a11de77 100644 --- a/src/apps/ipfabric/custom/api.pm +++ b/src/apps/ipfabric/custom/api.pm @@ -44,7 +44,7 @@ sub new { $options{options}->add_help(package => __PACKAGE__, sections => 'REST API OPTIONS', once => 1); $self->{output} = $options{output}; - $self->{http} = centreon::plugins::http->new(%options); + $self->{http} = centreon::plugins::http->new(%options, default_backend => 'curl'); return $self; } @@ -60,20 +60,20 @@ sub set_defaults {} sub check_options { my ($self, %options) = @_; - $self->{hostname} = (defined($self->{option_results}->{hostname})) ? $self->{option_results}->{hostname} : ''; - $self->{port} = (defined($self->{option_results}->{port})) ? $self->{option_results}->{port} : 443; - $self->{proto} = (defined($self->{option_results}->{proto})) ? $self->{option_results}->{proto} : 'https'; - $self->{url_path} = (defined($self->{option_results}->{url_path})) ? $self->{option_results}->{url_path} : '/api/v1/tables'; + $self->{option_results}->{hostname} = (defined($self->{option_results}->{hostname})) ? $self->{option_results}->{hostname} : ''; + $self->{option_results}->{port} = (defined($self->{option_results}->{port})) ? $self->{option_results}->{port} : 443; + $self->{option_results}->{proto} = (defined($self->{option_results}->{proto})) ? $self->{option_results}->{proto} : 'https'; + $self->{url_path} = (defined($self->{option_results}->{url_path})) ? $self->{option_results}->{url_path} : '/api/v6.2/tables'; $self->{timeout} = (defined($self->{option_results}->{timeout})) ? $self->{option_results}->{timeout} : 10; $self->{api_key} = (defined($self->{option_results}->{api_key})) ? $self->{option_results}->{api_key} : ''; - $self->{snapshot_id} = (defined($self->{option_results}->{snapshot_id})) ? $self->{option_results}->{snapshot_id} : "\$last"; + $self->{snapshot_id} = (defined($self->{option_results}->{snapshot_id})) ? $self->{option_results}->{snapshot_id} : '$last'; - if (!defined($self->{hostname}) || $self->{hostname} eq '') { + if ($self->{option_results}->{hostname} eq '') { $self->{output}->add_option_msg(short_msg => "Need to specify --hostname option."); $self->{output}->option_exit(); } - if (!defined($self->{api_key}) || $self->{api_key} eq '') { + if ($self->{api_key} eq '') { $self->{output}->add_option_msg(short_msg => "Need to specify --api-key option."); $self->{output}->option_exit(); } @@ -82,8 +82,6 @@ sub check_options { $self->{option_results}->{curl_opt} = ['CURLOPT_POSTREDIR => CURL_REDIR_POST_ALL']; $self->{curl_opt} = 'CURLOPT_POSTREDIR => CURL_REDIR_POST_ALL'; } - - $self->{http}->set_options(%{$self->{option_results}}); return 0; } @@ -94,7 +92,6 @@ sub settings { $self->{http}->add_header(key => 'Content-Type', value => 'application/json'); $self->{http}->add_header(key => 'X-API-Token', value => $self->{api_key}); $self->{http}->set_options(%{$self->{option_results}}); - } sub request_api { @@ -117,7 +114,7 @@ sub request_api { my ($content) = $self->{http}->request( method => 'POST', url_path => $self->{url_path} . $options{endpoint}, - query_form_post => $encoded_form_post, + query_form_post => $encoded_form_post ); my $decoded = $self->json_decode(content => $content); @@ -190,4 +187,4 @@ Set timeout in seconds (Default: 10). B. -=cut \ No newline at end of file +=cut diff --git a/src/apps/ipfabric/mode/discovery.pm b/src/apps/ipfabric/mode/discovery.pm index 337f1684f..2d12bb3ee 100644 --- a/src/apps/ipfabric/mode/discovery.pm +++ b/src/apps/ipfabric/mode/discovery.pm @@ -31,7 +31,7 @@ sub new { bless $self, $class; $options{options}->add_options(arguments => { - "prettify" => { name => 'prettify' }, + 'prettify' => { name => 'prettify' } }); return $self; @@ -88,17 +88,17 @@ sub manage_selection { } my $snmp_req_data_raw = { - "columns" => [ - "id", - "hostname", - "name" + columns => [ + 'id', + 'hostname', + 'name' ], - "filters" => {}, - "pagination" => { - "limit" => undef, - "start" => 0 + filters => {}, + pagination => { + limit => undef, + start => 0 }, - "reports" => "/technology/management/snmp/communities" + reports => '/technology/management/snmp/communities' }; my $snmp_community_api_results = $options{custom}->request_api( diff --git a/src/apps/ipfabric/mode/listpaths.pm b/src/apps/ipfabric/mode/listpaths.pm new file mode 100644 index 000000000..0de647683 --- /dev/null +++ b/src/apps/ipfabric/mode/listpaths.pm @@ -0,0 +1,126 @@ +# +# Copyright 2023 Centreon (http://www.centreon.com/) +# +# Centreon is a full-fledged industry-strength solution that meets +# the needs in IT infrastructure and application monitoring for +# service performance. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +package apps::ipfabric::mode::listpaths; + +use base qw(centreon::plugins::mode); + +use strict; +use warnings; + +sub new { + my ($class, %options) = @_; + my $self = $class->SUPER::new(package => __PACKAGE__, %options); + bless $self, $class; + + $options{options}->add_options(arguments => {}); + + return $self; +} + +sub check_options { + my ($self, %options) = @_; + $self->SUPER::init(%options); +} + +my $mapping = ['id', 'src', 'srcPorts', 'dst', 'dstPorts', 'protocol']; + +sub manage_selection { + my ($self, %options) = @_; + + my $path_raw_form_post = { + columns => [ + "id", + "src", + "srcPorts", + "dst", + "dstPorts", + "protocol" + ], + filters => {}, + pagination => { + limit => undef, + start => 0 + }, + reports => "/technology/routing/path-verifications" + }; + + my $paths = $options{custom}->request_api( + method => 'POST', + endpoint => '/networks/path-lookup-checks', + query_form_post => $path_raw_form_post + ); + + my $results = []; + foreach my $path (@{$paths->{data}}) { + $path->{dstPorts} = (defined($path->{dstPorts})) ? $path->{dstPorts} : '-'; + $path->{srcPorts} = (defined($path->{srcPorts})) ? $path->{srcPorts} : '-'; + + push @$results, $path; + } + + return $results; +} + +sub run { + my ($self, %options) = @_; + + my $results = $self->manage_selection(custom => $options{custom}); + foreach my $entry (@$results) { + $self->{output}->output_add(long_msg => + join('', map("[$_: " . $entry->{$_} . ']', @$mapping)) + ); + } + + $self->{output}->output_add( + severity => 'OK', + short_msg => 'List paths:' + ); + $self->{output}->display(nolabel => 1, force_ignore_perfdata => 1, force_long_output => 1); + $self->{output}->exit(); +} + +sub disco_format { + my ($self, %options) = @_; + + $self->{output}->add_disco_format(elements => $mapping); +} + +sub disco_show { + my ($self, %options) = @_; + + my $results = $self->manage_selection(custom => $options{custom}); + foreach my $entry (@$results) { + $self->{output}->add_disco_entry(%$entry); + } +} +1; + +__END__ + +=head1 MODE + +List GRE tunnels. + +=over 8 + +=back + +=cut diff --git a/src/apps/ipfabric/mode/pathverification.pm b/src/apps/ipfabric/mode/pathverification.pm index a24037899..a399124a7 100644 --- a/src/apps/ipfabric/mode/pathverification.pm +++ b/src/apps/ipfabric/mode/pathverification.pm @@ -30,11 +30,10 @@ sub custom_status_output { my ($self, %options) = @_; return sprintf( - "%s:%s_%s:%s [State: %s], [Expected State: %s]", - $self->{result_values}->{src_ip}, - $self->{result_values}->{src_port}, - $self->{result_values}->{dest_ip}, - $self->{result_values}->{dest_port}, + "source %s destination %s [protocol: %s] state: %s [expected state: %s]", + $self->{result_values}->{src_ip} . ($self->{result_values}->{src_port} ne '' ? ':' . $self->{result_values}->{src_port} : ''), + $self->{result_values}->{dst_ip} . ($self->{result_values}->{dst_port} ne '' ? ':' . $self->{result_values}->{dst_port} : ''), + $self->{result_values}->{protocol}, $self->{result_values}->{state}, $self->{result_values}->{expected_state} ); @@ -44,72 +43,72 @@ sub set_counters { my ($self, %options) = @_; $self->{maps_counters_type} = [ - { name => 'global', type => 0,cb_prefix_output => undef, cb_init => undef }, - { name => 'status', type => 1, cb_prefix_output => 'prefix_status_output', message_multiple => 'All paths are OK. ' } + { name => 'global', type => 0 }, + { name => 'paths', type => 1, message_multiple => 'All paths are ok' } ]; $self->{maps_counters}->{global} = [ - { label => 'total-path', nlabel => 'total.path.count', set => { - key_values => [ { name => 'total_path' }], - output_template => 'Total number of paths: %s', + { label => 'paths-detected', nlabel => 'paths.detected.count', set => { + key_values => [ { name => 'detected' }], + output_template => 'Number of paths detected: %s', perfdatas => [ - { label => 'total_path', template => '%s', min => 0 } + { template => '%s', min => 0 } ] } }, - { label => 'total-mismatch', nlabel => 'total.path.mismatch.count', set => { + { label => 'paths-mismatch', nlabel => 'paths.mismatch.count', set => { key_values => [ { name => 'total_mismatch' } ], - output_template => 'Total mismatch: %s', + output_template => 'mismatch: %s', perfdatas => [ - { label => 'total_mismatch', template => '%s', min => 0 } + { template => '%s', min => 0 } ] } }, - { label => 'all-path', nlabel => 'total.path.all.count', set => { + { label => 'paths-state-all', nlabel => 'paths.state.all.count', set => { key_values => [ { name => 'all_path' } ], - output_template => 'Number of paths in All state: %s', + output_template => 'all state: %s', perfdatas => [ - { label => 'all_path', template => '%s', min => 0 } + { template => '%s', min => 0 } ] } }, - { label => 'part-path', nlabel => 'total.path.part.count', set => { + { label => 'paths-state-part', nlabel => 'paths.state.part.count', set => { key_values => [ { name => 'part_path' } ], - output_template => 'Number of paths in Part state: %s', + output_template => 'part state: %s', perfdatas => [ - { label => 'part_path', template => '%s', min => 0 } + { template => '%s', min => 0 } ] } }, - { label => 'none-path', nlabel => 'total.path.none.count', set => { + { label => 'paths-state-none', nlabel => 'paths.state.none.count', set => { key_values => [ { name => 'none_path' } ], - output_template => 'Number of paths in None state: %s', + output_template => 'none state: %s', perfdatas => [ - { label => 'none_path', template => '%s', min => 0 } + { template => '%s', min => 0 } ] } }, - { label => 'error-path', nlabel => 'total.path.error.count', set => { + { label => 'paths-state-error', nlabel => 'paths.state.error.count', set => { key_values => [ { name => 'error_path' } ], - output_template => 'Number of paths in Error state: %s', + output_template => 'error state: %s', perfdatas => [ - { label => 'error_path', template => '%s', min => 0 } + { template => '%s', min => 0 } ] } } ]; - $self->{maps_counters}->{status} = [ + $self->{maps_counters}->{paths} = [ { label => 'status', type => 2, critical_default => '%{expected_state} ne %{state}', set => { key_values => [ - { name => 'src_ip' }, - { name => 'src_port' }, { name => 'dest_ip' }, - { name => 'dest_port' }, { name => 'state' }, - { name => 'expected_state' } + { name => 'src_ip' }, { name => 'src_port' }, + { name => 'dst_ip' }, { name => 'dst_port' }, + { name => 'protocol' }, + { name => 'state' }, { name => 'expected_state' } ], closure_custom_output => $self->can('custom_status_output'), closure_custom_perfdata => sub { return 0; }, @@ -125,6 +124,10 @@ sub new { bless $self, $class; $options{options}->add_options(arguments => { + 'filter-src-ip:s' => { name => 'filter_src_ip' }, + 'filter-src-port:s' => { name => 'filter_src_port' }, + 'filter-dst-ip:s' => { name => 'filter_dst_ip' }, + 'filter-dst-port:s' => { name => 'filter_dst_port' } }); return $self; @@ -133,30 +136,23 @@ sub new { sub manage_selection { my ($self, %options) = @_; - my $path_state; - - $self->{global}->{all_path} = 0; - $self->{global}->{error_path} = 0; - $self->{global}->{none_path} = 0; - $self->{global}->{part_path} = 0; - $self->{global}->{total_mismatch} = 0; - my $path_raw_form_post = { - "columns" => [ + columns => [ "id", "src", "srcPorts", "dst", "dstPorts", + "protocol", "expectedPassingTraffic", "passingTraffic" ], - "filters" => {}, - "pagination" => { - "limit" => undef, - "start" => 0 + filters => {}, + pagination => { + limit => undef, + start => 0 }, - "reports" => "/technology/routing/path-verifications" + reports => "/technology/routing/path-verifications" }; my $path_state_results = $options{custom}->request_api( @@ -165,56 +161,50 @@ sub manage_selection { query_form_post => $path_raw_form_post ); + $self->{global} = { detected => 0, all_path => 0, error_path => 0, none_path => 0, part_path => 0, total_mismatch => 0 }; + + my $path_state = {}; + $self->{paths} = {}; foreach my $route (@{$path_state_results->{data}}) { - $path_state->{$route->{id}} = { - id => $route->{id}, - dest_ip => $route->{dst}, - dest_port => $route->{dstPorts}, + my $dst_port = (defined($route->{dstPorts})) ? $route->{dstPorts} : '-'; + my $src_port = (defined($route->{srcPorts})) ? $route->{srcPorts} : '-'; + + next if (defined($self->{option_results}->{filter_src_ip}) && $self->{option_results}->{filter_src_ip} ne '' && + $route->{src} !~ /$self->{option_results}->{filter_src_ip}/); + next if (defined($self->{option_results}->{filter_src_port}) && $self->{option_results}->{filter_src_port} ne '' && + $src_port !~ /$self->{option_results}->{filter_src_port}/); + next if (defined($self->{option_results}->{filter_dst_ip}) && $self->{option_results}->{filter_dst_ip} ne '' && + $route->{dst} !~ /$self->{option_results}->{filter_dst_ip}/); + next if (defined($self->{option_results}->{filter_dst_port}) && $self->{option_results}->{filter_dst_port} ne '' && + $dst_port !~ /$self->{option_results}->{filter_dst_port}/); + + $self->{paths}->{ $route->{id} } = { + dst_ip => $route->{dst}, + dst_port => $dst_port, expected_state => $route->{expectedPassingTraffic}, src_ip => $route->{src}, - src_port => $route->{srcPorts}, + src_port => $src_port, + protocol => $route->{protocol}, state => $route->{passingTraffic}->{data} }; - if ($path_state->{$route->{id}}->{expected_state} ne $path_state->{$route->{id}}->{state}){ + + $self->{global}->{detected}++; + if ($route->{passingTraffic}->{data} eq 'none') { + $self->{global}->{none_path}++; + } + if ($route->{passingTraffic}->{data} eq 'all') { + $self->{global}->{all_path}++; + } + if ($route->{passingTraffic}->{data} eq 'part') { + $self->{global}->{part_path}++; + } + if ($route->{passingTraffic}->{data} eq 'error') { + $self->{global}->{error_path}++; + } + if ($route->{expectedPassingTraffic} ne $route->{passingTraffic}->{data}) { $self->{global}->{total_mismatch}++; } } - - if (scalar(keys %$path_state) <= 0) { - $self->{output}->add_option_msg(short_msg => "No path found."); - $self->{output}->option_exit(); - } - - foreach my $id (keys %$path_state) { - - my $dest_port = (defined($path_state->{$id}->{dest_port})) ? $path_state->{$id}->{dest_port} : 'empty'; - my $src_port = (defined($path_state->{$id}->{src_port})) ? $path_state->{$id}->{src_port} : 'empty'; - - my $instance = $path_state->{$id}->{src_ip} . ":" . $src_port . "_" . $path_state->{$id}->{dest_ip} . ":" . $dest_port; - - $self->{status}->{$instance} = { - dest_ip => $path_state->{$id}->{dest_ip}, - dest_port => $dest_port, - expected_state => $path_state->{$id}->{expected_state}, - src_ip => $path_state->{$id}->{src_ip}, - src_port => $src_port, - state => $path_state->{$id}->{state} - }; - $self->{global}->{total_path}++; - if ($path_state->{$id}->{state} eq "none"){ - $self->{global}->{none_path}++; - } - if ($path_state->{$id}->{state} eq "all"){ - $self->{global}->{all_path}++; - } - if ($path_state->{$id}->{state} eq "part"){ - $self->{global}->{part_path}++; - } - if ($path_state->{$id}->{state} eq "error"){ - $self->{global}->{error_path}++; - } - } - } 1; @@ -227,9 +217,25 @@ Check end-to-end path's result against predefined expected state in IP Fabric. =over 8 +=item B<--filter-src-ip> + +Filter paths by source ip (regexp can be used). + +=item B<--filter-src-port> + +Filter paths by source port (regexp can be used). + +=item B<--filter-dst-ip> + +Filter paths by destionation ip (regexp can be used). + +=item B<--filter-dst-port> + +Filter paths by destionation port (regexp can be used). + =item B<--warning-status> -Set warning threshold for status. (Default: ''). +Set warning threshold for status. Can use special variables like: %{state}, %{expected_state} For example, if you want a warning alert when the path state is in 'error' then @@ -248,9 +254,8 @@ the option would be: =item B<--warning-*> B<--critical-*> Thresholds. -Can be: 'total-path', 'total-mismatch', -'error-path', 'none-path', 'part-path', -'all-path' +Can be: 'paths-detected', 'paths-mismatch', 'paths-state-all', +'paths-state-part', 'paths-state-none', 'paths-state-error'. =back diff --git a/src/apps/ipfabric/plugin.pm b/src/apps/ipfabric/plugin.pm index ffb4872bf..d5834c8e7 100644 --- a/src/apps/ipfabric/plugin.pm +++ b/src/apps/ipfabric/plugin.pm @@ -31,6 +31,7 @@ sub new { $self->{modes} = { 'discovery' => 'apps::ipfabric::mode::discovery', + 'list-paths' => 'apps::ipfabric::mode::listpaths', 'path-verification' => 'apps::ipfabric::mode::pathverification' }; From 0b420c90a1097c5eb41099454dc93f38cfc19d9b Mon Sep 17 00:00:00 2001 From: qgarnier Date: Fri, 16 Jun 2023 17:00:04 +0200 Subject: [PATCH 13/39] (snmp_standard) mode interfaces - manage deltaps unit for errors and cast (#4481) --- src/apps/vmware/vcsa/snmp/mode/interfaces.pm | 4 +- .../common/bluearc/snmp/mode/interfaces.pm | 4 +- .../cisco/standard/snmp/mode/interfaces.pm | 4 +- .../fortigate/snmp/mode/interfaces.pm | 4 +- .../common/h3c/snmp/mode/interfaces.pm | 4 +- .../aruba/cppm/snmp/mode/interfaces.pm | 4 +- src/network/atrica/snmp/mode/connections.pm | 2 +- src/network/brocade/snmp/mode/interfaces.pm | 4 +- .../cambium/cnpilot/snmp/mode/interfaces.pm | 4 +- .../cambium/epmp/snmp/mode/interfaces.pm | 4 +- .../dell/nseries/snmp/mode/interfaces.pm | 4 +- .../dlink/standard/snmp/mode/interfaces.pm | 4 +- src/network/enterasys/snmp/mode/interfaces.pm | 4 +- src/network/extreme/snmp/mode/interfaces.pm | 4 +- .../fortinet/fortiadc/snmp/mode/interfaces.pm | 4 +- .../fortiswitch/snmp/mode/interfaces.pm | 4 +- .../hp/moonshot/snmp/mode/interfaces.pm | 4 +- .../hp/procurve/snmp/mode/interfaces.pm | 4 +- src/network/huawei/snmp/mode/interfaces.pm | 4 +- .../juniper/common/junos/mode/interfaces.pm | 4 +- .../lenovo/rackswitch/snmp/mode/interfaces.pm | 4 +- src/network/libraesva/snmp/mode/interfaces.pm | 4 +- .../microsens/g6/snmp/mode/interfaces.pm | 4 +- src/network/mikrotik/snmp/mode/interfaces.pm | 4 +- .../mrv/optiswitch/snmp/mode/interfaces.pm | 4 +- .../netgear/sseries/snmp/mode/interfaces.pm | 4 +- .../nortel/standard/snmp/mode/interfaces.pm | 4 +- src/network/oneaccess/snmp/mode/interfaces.pm | 4 +- src/network/opengear/snmp/mode/interfaces.pm | 4 +- src/network/raisecom/snmp/mode/interfaces.pm | 4 +- src/network/sonus/sbc/snmp/mode/interfaces.pm | 4 +- src/network/viptela/snmp/mode/interfaces.pm | 4 +- src/os/picos/snmp/mode/interfaces.pm | 4 +- src/snmp_standard/mode/interfaces.pm | 69 +++++++++++++++++-- .../lenovo/iomega/snmp/mode/interfaces.pm | 4 +- 35 files changed, 132 insertions(+), 71 deletions(-) diff --git a/src/apps/vmware/vcsa/snmp/mode/interfaces.pm b/src/apps/vmware/vcsa/snmp/mode/interfaces.pm index 8b9f878d7..168a94c9d 100644 --- a/src/apps/vmware/vcsa/snmp/mode/interfaces.pm +++ b/src/apps/vmware/vcsa/snmp/mode/interfaces.pm @@ -115,11 +115,11 @@ Units of thresholds for the traffic (Default: 'percent_delta') ('percent_delta', =item B<--units-errors> -Units of thresholds for errors/discards (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'counter'). +Units of thresholds for errors/discards (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'deltaps', 'counter'). =item B<--units-cast> -Units of thresholds for communication types (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'counter'). +Units of thresholds for communication types (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'deltaps', 'counter'). =item B<--nagvis-perfdata> diff --git a/src/centreon/common/bluearc/snmp/mode/interfaces.pm b/src/centreon/common/bluearc/snmp/mode/interfaces.pm index 7a2be78fd..4fc69ca8b 100644 --- a/src/centreon/common/bluearc/snmp/mode/interfaces.pm +++ b/src/centreon/common/bluearc/snmp/mode/interfaces.pm @@ -115,11 +115,11 @@ Units of thresholds for the traffic (Default: 'percent_delta') ('percent_delta', =item B<--units-errors> -Units of thresholds for errors/discards (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'counter'). +Units of thresholds for errors/discards (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'deltaps', 'counter'). =item B<--units-cast> -Units of thresholds for communication types (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'counter'). +Units of thresholds for communication types (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'deltaps', 'counter'). =item B<--nagvis-perfdata> diff --git a/src/centreon/common/cisco/standard/snmp/mode/interfaces.pm b/src/centreon/common/cisco/standard/snmp/mode/interfaces.pm index e7bde597e..489c9e7b3 100644 --- a/src/centreon/common/cisco/standard/snmp/mode/interfaces.pm +++ b/src/centreon/common/cisco/standard/snmp/mode/interfaces.pm @@ -398,11 +398,11 @@ Units of thresholds for the traffic (Default: 'percent_delta') ('percent_delta', =item B<--units-errors> -Units of thresholds for errors/discards (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'counter'). +Units of thresholds for errors/discards (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'deltaps', 'counter'). =item B<--units-cast> -Units of thresholds for communication types (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'counter'). +Units of thresholds for communication types (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'deltaps', 'counter'). =item B<--nagvis-perfdata> diff --git a/src/centreon/common/fortinet/fortigate/snmp/mode/interfaces.pm b/src/centreon/common/fortinet/fortigate/snmp/mode/interfaces.pm index 087548ec7..b9fbd56e5 100644 --- a/src/centreon/common/fortinet/fortigate/snmp/mode/interfaces.pm +++ b/src/centreon/common/fortinet/fortigate/snmp/mode/interfaces.pm @@ -126,11 +126,11 @@ Units of thresholds for the traffic (Default: 'percent_delta') ('percent_delta', =item B<--units-errors> -Units of thresholds for errors/discards (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'counter'). +Units of thresholds for errors/discards (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'deltaps', 'counter'). =item B<--units-cast> -Units of thresholds for communication types (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'counter'). +Units of thresholds for communication types (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'deltaps', 'counter'). =item B<--nagvis-perfdata> diff --git a/src/centreon/common/h3c/snmp/mode/interfaces.pm b/src/centreon/common/h3c/snmp/mode/interfaces.pm index 7b3427770..0d0ed26e2 100644 --- a/src/centreon/common/h3c/snmp/mode/interfaces.pm +++ b/src/centreon/common/h3c/snmp/mode/interfaces.pm @@ -249,11 +249,11 @@ Units of thresholds for the traffic (Default: 'percent_delta') ('percent_delta', =item B<--units-errors> -Units of thresholds for errors/discards (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'counter'). +Units of thresholds for errors/discards (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'deltaps', 'counter'). =item B<--units-cast> -Units of thresholds for communication types (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'counter'). +Units of thresholds for communication types (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'deltaps', 'counter'). =item B<--nagvis-perfdata> diff --git a/src/network/aruba/cppm/snmp/mode/interfaces.pm b/src/network/aruba/cppm/snmp/mode/interfaces.pm index 57afcd56b..c08ba9632 100644 --- a/src/network/aruba/cppm/snmp/mode/interfaces.pm +++ b/src/network/aruba/cppm/snmp/mode/interfaces.pm @@ -103,11 +103,11 @@ Units of thresholds for the traffic (Default: 'percent_delta') ('percent_delta', =item B<--units-errors> -Units of thresholds for errors/discards (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'counter'). +Units of thresholds for errors/discards (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'deltaps', 'counter'). =item B<--units-cast> -Units of thresholds for communication types (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'counter'). +Units of thresholds for communication types (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'deltaps', 'counter'). =item B<--nagvis-perfdata> diff --git a/src/network/atrica/snmp/mode/connections.pm b/src/network/atrica/snmp/mode/connections.pm index 38f7c54e1..a2ccc2442 100644 --- a/src/network/atrica/snmp/mode/connections.pm +++ b/src/network/atrica/snmp/mode/connections.pm @@ -431,7 +431,7 @@ Units of thresholds for the traffic (Default: 'percent_delta') ('percent_delta', =item B<--units-errors> -Units of thresholds for errors/discards (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'counter'). +Units of thresholds for errors/discards (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'deltaps', 'counter'). =item B<--interface> diff --git a/src/network/brocade/snmp/mode/interfaces.pm b/src/network/brocade/snmp/mode/interfaces.pm index 5d74f4563..1d3e67b7b 100644 --- a/src/network/brocade/snmp/mode/interfaces.pm +++ b/src/network/brocade/snmp/mode/interfaces.pm @@ -319,11 +319,11 @@ Units of thresholds for the traffic (Default: 'percent_delta') ('percent_delta', =item B<--units-errors> -Units of thresholds for errors/discards (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'counter'). +Units of thresholds for errors/discards (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'deltaps', 'counter'). =item B<--units-cast> -Units of thresholds for communication types (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'counter'). +Units of thresholds for communication types (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'deltaps', 'counter'). =item B<--nagvis-perfdata> diff --git a/src/network/cambium/cnpilot/snmp/mode/interfaces.pm b/src/network/cambium/cnpilot/snmp/mode/interfaces.pm index 377c78007..387a0b0b5 100644 --- a/src/network/cambium/cnpilot/snmp/mode/interfaces.pm +++ b/src/network/cambium/cnpilot/snmp/mode/interfaces.pm @@ -103,11 +103,11 @@ Units of thresholds for the traffic (Default: 'percent_delta') ('percent_delta', =item B<--units-errors> -Units of thresholds for errors/discards (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'counter'). +Units of thresholds for errors/discards (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'deltaps', 'counter'). =item B<--units-cast> -Units of thresholds for communication types (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'counter'). +Units of thresholds for communication types (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'deltaps', 'counter'). =item B<--nagvis-perfdata> diff --git a/src/network/cambium/epmp/snmp/mode/interfaces.pm b/src/network/cambium/epmp/snmp/mode/interfaces.pm index 2b5348161..cbe7e5a45 100644 --- a/src/network/cambium/epmp/snmp/mode/interfaces.pm +++ b/src/network/cambium/epmp/snmp/mode/interfaces.pm @@ -103,11 +103,11 @@ Units of thresholds for the traffic (Default: 'percent_delta') ('percent_delta', =item B<--units-errors> -Units of thresholds for errors/discards (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'counter'). +Units of thresholds for errors/discards (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'deltaps', 'counter'). =item B<--units-cast> -Units of thresholds for communication types (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'counter'). +Units of thresholds for communication types (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'deltaps', 'counter'). =item B<--nagvis-perfdata> diff --git a/src/network/dell/nseries/snmp/mode/interfaces.pm b/src/network/dell/nseries/snmp/mode/interfaces.pm index 212daf99f..50643b836 100644 --- a/src/network/dell/nseries/snmp/mode/interfaces.pm +++ b/src/network/dell/nseries/snmp/mode/interfaces.pm @@ -103,11 +103,11 @@ Units of thresholds for the traffic (Default: 'percent_delta') ('percent_delta', =item B<--units-errors> -Units of thresholds for errors/discards (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'counter'). +Units of thresholds for errors/discards (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'deltaps', 'counter'). =item B<--units-cast> -Units of thresholds for communication types (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'counter'). +Units of thresholds for communication types (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'deltaps', 'counter'). =item B<--nagvis-perfdata> diff --git a/src/network/dlink/standard/snmp/mode/interfaces.pm b/src/network/dlink/standard/snmp/mode/interfaces.pm index daead9302..39ca66496 100644 --- a/src/network/dlink/standard/snmp/mode/interfaces.pm +++ b/src/network/dlink/standard/snmp/mode/interfaces.pm @@ -190,11 +190,11 @@ Units of thresholds for the traffic (Default: 'percent_delta') ('percent_delta', =item B<--units-errors> -Units of thresholds for errors/discards (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'counter'). +Units of thresholds for errors/discards (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'deltaps', 'counter'). =item B<--units-cast> -Units of thresholds for communication types (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'counter'). +Units of thresholds for communication types (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'deltaps', 'counter'). =item B<--nagvis-perfdata> diff --git a/src/network/enterasys/snmp/mode/interfaces.pm b/src/network/enterasys/snmp/mode/interfaces.pm index 605769b5d..92a2e3d96 100644 --- a/src/network/enterasys/snmp/mode/interfaces.pm +++ b/src/network/enterasys/snmp/mode/interfaces.pm @@ -103,11 +103,11 @@ Units of thresholds for the traffic (Default: 'percent_delta') ('percent_delta', =item B<--units-errors> -Units of thresholds for errors/discards (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'counter'). +Units of thresholds for errors/discards (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'deltaps', 'counter'). =item B<--units-cast> -Units of thresholds for communication types (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'counter'). +Units of thresholds for communication types (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'deltaps', 'counter'). =item B<--nagvis-perfdata> diff --git a/src/network/extreme/snmp/mode/interfaces.pm b/src/network/extreme/snmp/mode/interfaces.pm index d9631333f..9dbfbbda0 100644 --- a/src/network/extreme/snmp/mode/interfaces.pm +++ b/src/network/extreme/snmp/mode/interfaces.pm @@ -143,11 +143,11 @@ Units of thresholds for the traffic (Default: 'percent_delta') ('percent_delta', =item B<--units-errors> -Units of thresholds for errors/discards (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'counter'). +Units of thresholds for errors/discards (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'deltaps', 'counter'). =item B<--units-cast> -Units of thresholds for communication types (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'counter'). +Units of thresholds for communication types (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'deltaps', 'counter'). =item B<--nagvis-perfdata> diff --git a/src/network/fortinet/fortiadc/snmp/mode/interfaces.pm b/src/network/fortinet/fortiadc/snmp/mode/interfaces.pm index 1ab4e9b0e..8016cc340 100644 --- a/src/network/fortinet/fortiadc/snmp/mode/interfaces.pm +++ b/src/network/fortinet/fortiadc/snmp/mode/interfaces.pm @@ -103,11 +103,11 @@ Units of thresholds for the traffic (Default: 'percent_delta') ('percent_delta', =item B<--units-errors> -Units of thresholds for errors/discards (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'counter'). +Units of thresholds for errors/discards (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'deltaps', 'counter'). =item B<--units-cast> -Units of thresholds for communication types (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'counter'). +Units of thresholds for communication types (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'deltaps', 'counter'). =item B<--nagvis-perfdata> diff --git a/src/network/fortinet/fortiswitch/snmp/mode/interfaces.pm b/src/network/fortinet/fortiswitch/snmp/mode/interfaces.pm index 20e51b21c..cbd9c7eac 100644 --- a/src/network/fortinet/fortiswitch/snmp/mode/interfaces.pm +++ b/src/network/fortinet/fortiswitch/snmp/mode/interfaces.pm @@ -103,11 +103,11 @@ Units of thresholds for the traffic (Default: 'percent_delta') ('percent_delta', =item B<--units-errors> -Units of thresholds for errors/discards (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'counter'). +Units of thresholds for errors/discards (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'deltaps', 'counter'). =item B<--units-cast> -Units of thresholds for communication types (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'counter'). +Units of thresholds for communication types (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'deltaps', 'counter'). =item B<--nagvis-perfdata> diff --git a/src/network/hp/moonshot/snmp/mode/interfaces.pm b/src/network/hp/moonshot/snmp/mode/interfaces.pm index ede98bcaf..0f2381b9c 100644 --- a/src/network/hp/moonshot/snmp/mode/interfaces.pm +++ b/src/network/hp/moonshot/snmp/mode/interfaces.pm @@ -103,11 +103,11 @@ Units of thresholds for the traffic (Default: 'percent_delta') ('percent_delta', =item B<--units-errors> -Units of thresholds for errors/discards (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'counter'). +Units of thresholds for errors/discards (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'deltaps', 'counter'). =item B<--units-cast> -Units of thresholds for communication types (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'counter'). +Units of thresholds for communication types (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'deltaps', 'counter'). =item B<--nagvis-perfdata> diff --git a/src/network/hp/procurve/snmp/mode/interfaces.pm b/src/network/hp/procurve/snmp/mode/interfaces.pm index 9d16af011..7f1f20eeb 100644 --- a/src/network/hp/procurve/snmp/mode/interfaces.pm +++ b/src/network/hp/procurve/snmp/mode/interfaces.pm @@ -336,11 +336,11 @@ Units of thresholds for the traffic (Default: 'percent_delta') ('percent_delta', =item B<--units-errors> -Units of thresholds for errors/discards (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'counter'). +Units of thresholds for errors/discards (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'deltaps', 'counter'). =item B<--units-cast> -Units of thresholds for communication types (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'counter'). +Units of thresholds for communication types (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'deltaps', 'counter'). =item B<--nagvis-perfdata> diff --git a/src/network/huawei/snmp/mode/interfaces.pm b/src/network/huawei/snmp/mode/interfaces.pm index 2cdd2db30..1ecae9846 100644 --- a/src/network/huawei/snmp/mode/interfaces.pm +++ b/src/network/huawei/snmp/mode/interfaces.pm @@ -245,11 +245,11 @@ Units of thresholds for the traffic (Default: 'percent_delta') ('percent_delta', =item B<--units-errors> -Units of thresholds for errors/discards (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'counter'). +Units of thresholds for errors/discards (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'deltaps', 'counter'). =item B<--units-cast> -Units of thresholds for communication types (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'counter'). +Units of thresholds for communication types (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'deltaps', 'counter'). =item B<--nagvis-perfdata> diff --git a/src/network/juniper/common/junos/mode/interfaces.pm b/src/network/juniper/common/junos/mode/interfaces.pm index 58567110f..c5968e644 100644 --- a/src/network/juniper/common/junos/mode/interfaces.pm +++ b/src/network/juniper/common/junos/mode/interfaces.pm @@ -320,11 +320,11 @@ Units of thresholds for the traffic (Default: 'percent_delta') ('percent_delta', =item B<--units-errors> -Units of thresholds for errors/discards (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'counter'). +Units of thresholds for errors/discards (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'deltaps', 'counter'). =item B<--units-cast> -Units of thresholds for communication types (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'counter'). +Units of thresholds for communication types (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'deltaps', 'counter'). =item B<--nagvis-perfdata> diff --git a/src/network/lenovo/rackswitch/snmp/mode/interfaces.pm b/src/network/lenovo/rackswitch/snmp/mode/interfaces.pm index f62f8373d..6f73da9b9 100644 --- a/src/network/lenovo/rackswitch/snmp/mode/interfaces.pm +++ b/src/network/lenovo/rackswitch/snmp/mode/interfaces.pm @@ -103,11 +103,11 @@ Units of thresholds for the traffic (Default: 'percent_delta') ('percent_delta', =item B<--units-errors> -Units of thresholds for errors/discards (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'counter'). +Units of thresholds for errors/discards (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'deltaps', 'counter'). =item B<--units-cast> -Units of thresholds for communication types (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'counter'). +Units of thresholds for communication types (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'deltaps', 'counter'). =item B<--nagvis-perfdata> diff --git a/src/network/libraesva/snmp/mode/interfaces.pm b/src/network/libraesva/snmp/mode/interfaces.pm index c7050310a..bd2ac0706 100644 --- a/src/network/libraesva/snmp/mode/interfaces.pm +++ b/src/network/libraesva/snmp/mode/interfaces.pm @@ -103,11 +103,11 @@ Units of thresholds for the traffic (Default: 'percent_delta') ('percent_delta', =item B<--units-errors> -Units of thresholds for errors/discards (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'counter'). +Units of thresholds for errors/discards (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'deltaps', 'counter'). =item B<--units-cast> -Units of thresholds for communication types (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'counter'). +Units of thresholds for communication types (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'deltaps', 'counter'). =item B<--nagvis-perfdata> diff --git a/src/network/microsens/g6/snmp/mode/interfaces.pm b/src/network/microsens/g6/snmp/mode/interfaces.pm index 972c6aa36..5f2f20bc4 100644 --- a/src/network/microsens/g6/snmp/mode/interfaces.pm +++ b/src/network/microsens/g6/snmp/mode/interfaces.pm @@ -103,11 +103,11 @@ Units of thresholds for the traffic (Default: 'percent_delta') ('percent_delta', =item B<--units-errors> -Units of thresholds for errors/discards (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'counter'). +Units of thresholds for errors/discards (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'deltaps', 'counter'). =item B<--units-cast> -Units of thresholds for communication types (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'counter'). +Units of thresholds for communication types (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'deltaps', 'counter'). =item B<--nagvis-perfdata> diff --git a/src/network/mikrotik/snmp/mode/interfaces.pm b/src/network/mikrotik/snmp/mode/interfaces.pm index 0a955428d..6b79d3115 100644 --- a/src/network/mikrotik/snmp/mode/interfaces.pm +++ b/src/network/mikrotik/snmp/mode/interfaces.pm @@ -216,11 +216,11 @@ Units of thresholds for the traffic (Default: 'percent_delta') ('percent_delta', =item B<--units-errors> -Units of thresholds for errors/discards (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'counter'). +Units of thresholds for errors/discards (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'deltaps', 'counter'). =item B<--units-cast> -Units of thresholds for communication types (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'counter'). +Units of thresholds for communication types (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'deltaps', 'counter'). =item B<--nagvis-perfdata> diff --git a/src/network/mrv/optiswitch/snmp/mode/interfaces.pm b/src/network/mrv/optiswitch/snmp/mode/interfaces.pm index 940e83ae7..df72c2b3c 100644 --- a/src/network/mrv/optiswitch/snmp/mode/interfaces.pm +++ b/src/network/mrv/optiswitch/snmp/mode/interfaces.pm @@ -483,11 +483,11 @@ Units of thresholds for the traffic (Default: 'percent_delta') ('percent_delta', =item B<--units-errors> -Units of thresholds for errors/discards (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'counter'). +Units of thresholds for errors/discards (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'deltaps', 'counter'). =item B<--units-cast> -Units of thresholds for communication types (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'counter'). +Units of thresholds for communication types (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'deltaps', 'counter'). =item B<--nagvis-perfdata> diff --git a/src/network/netgear/sseries/snmp/mode/interfaces.pm b/src/network/netgear/sseries/snmp/mode/interfaces.pm index 6691677da..57bd7161d 100644 --- a/src/network/netgear/sseries/snmp/mode/interfaces.pm +++ b/src/network/netgear/sseries/snmp/mode/interfaces.pm @@ -103,11 +103,11 @@ Units of thresholds for the traffic (Default: 'percent_delta') ('percent_delta', =item B<--units-errors> -Units of thresholds for errors/discards (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'counter'). +Units of thresholds for errors/discards (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'deltaps', 'counter'). =item B<--units-cast> -Units of thresholds for communication types (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'counter'). +Units of thresholds for communication types (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'deltaps', 'counter'). =item B<--nagvis-perfdata> diff --git a/src/network/nortel/standard/snmp/mode/interfaces.pm b/src/network/nortel/standard/snmp/mode/interfaces.pm index 8c44ab99f..419c7f70f 100644 --- a/src/network/nortel/standard/snmp/mode/interfaces.pm +++ b/src/network/nortel/standard/snmp/mode/interfaces.pm @@ -125,11 +125,11 @@ Units of thresholds for the traffic (Default: 'percent_delta') ('percent_delta', =item B<--units-errors> -Units of thresholds for errors/discards (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'counter'). +Units of thresholds for errors/discards (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'deltaps', 'counter'). =item B<--units-cast> -Units of thresholds for communication types (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'counter'). +Units of thresholds for communication types (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'deltaps', 'counter'). =item B<--nagvis-perfdata> diff --git a/src/network/oneaccess/snmp/mode/interfaces.pm b/src/network/oneaccess/snmp/mode/interfaces.pm index ca1b3ef2b..7a4a4e7ff 100644 --- a/src/network/oneaccess/snmp/mode/interfaces.pm +++ b/src/network/oneaccess/snmp/mode/interfaces.pm @@ -103,11 +103,11 @@ Units of thresholds for the traffic (Default: 'percent_delta') ('percent_delta', =item B<--units-errors> -Units of thresholds for errors/discards (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'counter'). +Units of thresholds for errors/discards (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'deltaps', 'counter'). =item B<--units-cast> -Units of thresholds for communication types (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'counter'). +Units of thresholds for communication types (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'deltaps', 'counter'). =item B<--nagvis-perfdata> diff --git a/src/network/opengear/snmp/mode/interfaces.pm b/src/network/opengear/snmp/mode/interfaces.pm index c99887a02..63cc2b8bd 100644 --- a/src/network/opengear/snmp/mode/interfaces.pm +++ b/src/network/opengear/snmp/mode/interfaces.pm @@ -103,11 +103,11 @@ Units of thresholds for the traffic (Default: 'percent_delta') ('percent_delta', =item B<--units-errors> -Units of thresholds for errors/discards (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'counter'). +Units of thresholds for errors/discards (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'deltaps', 'counter'). =item B<--units-cast> -Units of thresholds for communication types (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'counter'). +Units of thresholds for communication types (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'deltaps', 'counter'). =item B<--nagvis-perfdata> diff --git a/src/network/raisecom/snmp/mode/interfaces.pm b/src/network/raisecom/snmp/mode/interfaces.pm index 00bbb4f75..a536b21dd 100644 --- a/src/network/raisecom/snmp/mode/interfaces.pm +++ b/src/network/raisecom/snmp/mode/interfaces.pm @@ -103,11 +103,11 @@ Units of thresholds for the traffic (Default: 'percent_delta') ('percent_delta', =item B<--units-errors> -Units of thresholds for errors/discards (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'counter'). +Units of thresholds for errors/discards (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'deltaps', 'counter'). =item B<--units-cast> -Units of thresholds for communication types (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'counter'). +Units of thresholds for communication types (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'deltaps', 'counter'). =item B<--nagvis-perfdata> diff --git a/src/network/sonus/sbc/snmp/mode/interfaces.pm b/src/network/sonus/sbc/snmp/mode/interfaces.pm index ee0e1251a..91ad7b22e 100644 --- a/src/network/sonus/sbc/snmp/mode/interfaces.pm +++ b/src/network/sonus/sbc/snmp/mode/interfaces.pm @@ -103,11 +103,11 @@ Units of thresholds for the traffic (Default: 'percent_delta') ('percent_delta', =item B<--units-errors> -Units of thresholds for errors/discards (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'counter'). +Units of thresholds for errors/discards (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'deltaps', 'counter'). =item B<--units-cast> -Units of thresholds for communication types (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'counter'). +Units of thresholds for communication types (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'deltaps', 'counter'). =item B<--nagvis-perfdata> diff --git a/src/network/viptela/snmp/mode/interfaces.pm b/src/network/viptela/snmp/mode/interfaces.pm index 088b15447..768f4b8db 100644 --- a/src/network/viptela/snmp/mode/interfaces.pm +++ b/src/network/viptela/snmp/mode/interfaces.pm @@ -103,11 +103,11 @@ Units of thresholds for the traffic (Default: 'percent_delta') ('percent_delta', =item B<--units-errors> -Units of thresholds for errors/discards (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'counter'). +Units of thresholds for errors/discards (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'deltaps', 'counter'). =item B<--units-cast> -Units of thresholds for communication types (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'counter'). +Units of thresholds for communication types (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'deltaps', 'counter'). =item B<--nagvis-perfdata> diff --git a/src/os/picos/snmp/mode/interfaces.pm b/src/os/picos/snmp/mode/interfaces.pm index db94a20b1..3c5f61de2 100644 --- a/src/os/picos/snmp/mode/interfaces.pm +++ b/src/os/picos/snmp/mode/interfaces.pm @@ -249,11 +249,11 @@ Units of thresholds for the traffic (Default: 'percent_delta') ('percent_delta', =item B<--units-errors> -Units of thresholds for errors/discards (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'counter'). +Units of thresholds for errors/discards (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'deltaps', 'counter'). =item B<--units-cast> -Units of thresholds for communication types (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'counter'). +Units of thresholds for communication types (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'deltaps', 'counter'). =item B<--nagvis-perfdata> diff --git a/src/snmp_standard/mode/interfaces.pm b/src/snmp_standard/mode/interfaces.pm index 2066fdee1..0f71be87e 100644 --- a/src/snmp_standard/mode/interfaces.pm +++ b/src/snmp_standard/mode/interfaces.pm @@ -91,6 +91,19 @@ sub custom_cast_perfdata { min => 0, max => 100 ); + } elsif ($self->{instance_mode}->{option_results}->{units_cast} eq 'deltaps') { + my $nlabel = $self->{nlabel}; + $nlabel =~ s/count$/persecond/; + $self->{output}->perfdata_add( + force_new_perfdata => 1, + nlabel => $nlabel, + instances => $self->{result_values}->{display}, + value => sprintf('%.2f', $self->{result_values}->{used_ps}), + warning => $self->{perfdata}->get_perfdata_for_output(label => 'warning-' . $self->{thlabel}), + critical => $self->{perfdata}->get_perfdata_for_output(label => 'critical-' . $self->{thlabel}), + unit => '/s', + min => 0 + ); } else { $self->{output}->perfdata_add( force_new_perfdata => 1, @@ -111,6 +124,8 @@ sub custom_cast_threshold { my $exit = 'ok'; if ($self->{instance_mode}->{option_results}->{units_cast} =~ /percent/) { $exit = $self->{perfdata}->threshold_check(value => $self->{result_values}->{prct}, threshold => [ { label => 'critical-' . $self->{thlabel}, exit_litteral => 'critical' }, { label => 'warning-' . $self->{thlabel}, exit_litteral => 'warning' } ]); + } elsif ($self->{instance_mode}->{option_results}->{units_cast} eq 'deltaps') { + $exit = $self->{perfdata}->threshold_check(value => $self->{result_values}->{used_ps}, threshold => [ { label => 'critical-' . $self->{thlabel}, exit_litteral => 'critical' }, { label => 'warning-' . $self->{thlabel}, exit_litteral => 'warning' } ]); } else { $exit = $self->{perfdata}->threshold_check(value => $self->{result_values}->{used}, threshold => [ { label => 'critical-' . $self->{thlabel}, exit_litteral => 'critical' }, { label => 'warning-' . $self->{thlabel}, exit_litteral => 'warning' } ]); } @@ -120,6 +135,18 @@ sub custom_cast_threshold { sub custom_cast_output { my ($self, %options) = @_; + if ($self->{instance_mode}->{option_results}->{units_cast} eq 'deltaps') { + return sprintf( + '%s %s : %.2f/s (%.2f%% - %s on %s)', + $self->{result_values}->{cast_going} eq 'i' ? 'In' : 'Out', + ucfirst($self->{result_values}->{cast_test}), + $self->{result_values}->{used_ps}, + $self->{result_values}->{prct}, + $self->{result_values}->{used}, + $self->{result_values}->{total} + ); + } + return sprintf( '%s %s : %.2f%% (%s on %s)', $self->{result_values}->{cast_going} eq 'i' ? 'In' : 'Out', @@ -163,6 +190,10 @@ sub custom_cast_calc { } elsif ($self->{instance_mode}->{option_results}->{units_cast} eq 'delta') { $self->{result_values}->{prct} = $cast_diff * 100 / $total_diff if ($total_diff > 0); $self->{result_values}->{used} = $cast_diff; + } elsif ($self->{instance_mode}->{option_results}->{units_cast} eq 'deltaps') { + $self->{result_values}->{prct} = $cast_diff * 100 / $total_diff if ($total_diff > 0); + $self->{result_values}->{used} = $cast_diff; + $self->{result_values}->{used_ps} = $cast_diff / $options{delta_time}; } else { $self->{result_values}->{prct} = $cast_diff * 100 / $total_diff if ($total_diff > 0); $self->{result_values}->{used} = $cast; @@ -296,6 +327,19 @@ sub custom_errors_perfdata { min => 0, max => 100 ); + } elsif ($self->{instance_mode}->{option_results}->{units_errors} eq 'deltaps') { + my $nlabel = $self->{nlabel}; + $nlabel =~ s/count$/persecond/; + $self->{output}->perfdata_add( + force_new_perfdata => 1, + nlabel => $nlabel, + unit => '/s', + instances => $self->{result_values}->{display}, + value => sprintf('%.2f', $self->{result_values}->{used_ps}), + warning => $self->{perfdata}->get_perfdata_for_output(label => 'warning-' . $self->{thlabel}), + critical => $self->{perfdata}->get_perfdata_for_output(label => 'critical-' . $self->{thlabel}), + min => 0 + ); } else { $self->{output}->perfdata_add( label => 'packets_' . $self->{result_values}->{label2} . '_' . $self->{result_values}->{label1}, @@ -316,6 +360,8 @@ sub custom_errors_threshold { my $exit = 'ok'; if ($self->{instance_mode}->{option_results}->{units_errors} =~ /percent/) { $exit = $self->{perfdata}->threshold_check(value => $self->{result_values}->{prct}, threshold => [ { label => 'critical-' . $self->{thlabel}, exit_litteral => 'critical' }, { label => 'warning-' . $self->{thlabel}, exit_litteral => 'warning' } ]); + } elsif ($self->{instance_mode}->{option_results}->{units_errors} eq 'deltaps') { + $exit = $self->{perfdata}->threshold_check(value => $self->{result_values}->{used_ps}, threshold => [ { label => 'critical-' . $self->{thlabel}, exit_litteral => 'critical' }, { label => 'warning-' . $self->{thlabel}, exit_litteral => 'warning' } ]); } else { $exit = $self->{perfdata}->threshold_check(value => $self->{result_values}->{used}, threshold => [ { label => 'critical-' . $self->{thlabel}, exit_litteral => 'critical' }, { label => 'warning-' . $self->{thlabel}, exit_litteral => 'warning' } ]); } @@ -325,6 +371,17 @@ sub custom_errors_threshold { sub custom_errors_output { my ($self, %options) = @_; + if ($self->{instance_mode}->{option_results}->{units_errors} eq 'deltaps') { + return sprintf( + 'Packets %s : %.2f/s (%.2f%% - %s on %s)', + $self->{result_values}->{label}, + $self->{result_values}->{used_ps}, + $self->{result_values}->{prct}, + $self->{result_values}->{used}, + $self->{result_values}->{total} + ); + } + return sprintf( 'Packets %s : %.2f%% (%s on %s)', $self->{result_values}->{label}, @@ -362,6 +419,10 @@ sub custom_errors_calc { } elsif ($self->{instance_mode}->{option_results}->{units_errors} eq 'delta') { $self->{result_values}->{prct} = $errors_diff * 100 / $total_diff if ($total_diff > 0); $self->{result_values}->{used} = $errors_diff; + } elsif ($self->{instance_mode}->{option_results}->{units_errors} eq 'deltaps') { + $self->{result_values}->{prct} = $errors_diff * 100 / $total_diff if ($total_diff > 0); + $self->{result_values}->{used} = $errors_diff; + $self->{result_values}->{used_ps} = $errors_diff / $options{delta_time}; } else { $self->{result_values}->{prct} = $errors * 100 / $total if ($total > 0); $self->{result_values}->{used} = $errors; @@ -954,7 +1015,7 @@ sub check_options { $self->{option_results}->{units_errors} eq '' || $self->{option_results}->{units_errors} eq '%'); $self->{option_results}->{units_errors} = 'delta' if ($self->{option_results}->{units_errors} eq 'absolute'); # compat - if ($self->{option_results}->{units_errors} !~ /^(?:percent|percent_delta|delta|counter)$/) { + if ($self->{option_results}->{units_errors} !~ /^(?:percent|percent_delta|delta|deltaps|counter)$/) { $self->{output}->add_option_msg(short_msg => 'Wrong option --units-errors.'); $self->{output}->option_exit(); } @@ -962,7 +1023,7 @@ sub check_options { if (defined($self->{option_results}->{add_cast})) { $self->{option_results}->{units_cast} = 'percent_delta' if (!defined($self->{option_results}->{units_cast}) || $self->{option_results}->{units_cast} eq ''); - if ($self->{option_results}->{units_cast} !~ /^(?:percent|percent_delta|delta|counter)$/) { + if ($self->{option_results}->{units_cast} !~ /^(?:percent|percent_delta|delta|deltaps|counter)$/) { $self->{output}->add_option_msg(short_msg => 'Wrong option --units-cast.'); $self->{output}->option_exit(); } @@ -1606,11 +1667,11 @@ Units of thresholds for the traffic (Default: 'percent_delta') ('percent_delta', =item B<--units-errors> -Units of thresholds for errors/discards (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'counter'). +Units of thresholds for errors/discards (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'deltaps', 'counter'). =item B<--units-cast> -Units of thresholds for communication types (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'counter'). +Units of thresholds for communication types (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'deltaps', 'counter'). =item B<--nagvis-perfdata> diff --git a/src/storage/lenovo/iomega/snmp/mode/interfaces.pm b/src/storage/lenovo/iomega/snmp/mode/interfaces.pm index 7249cbe21..267ef890e 100644 --- a/src/storage/lenovo/iomega/snmp/mode/interfaces.pm +++ b/src/storage/lenovo/iomega/snmp/mode/interfaces.pm @@ -116,11 +116,11 @@ Units of thresholds for the traffic (Default: 'percent_delta') ('percent_delta', =item B<--units-errors> -Units of thresholds for errors/discards (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'counter'). +Units of thresholds for errors/discards (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'deltaps', 'counter'). =item B<--units-cast> -Units of thresholds for communication types (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'counter'). +Units of thresholds for communication types (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'deltaps', 'counter'). =item B<--nagvis-perfdata> From 1f09bb4d134b3f3b938eaf6b9d3316d8dded98ad Mon Sep 17 00:00:00 2001 From: qgarnier Date: Fri, 16 Jun 2023 18:15:42 +0200 Subject: [PATCH 14/39] (plugin) cloud::prometheus::restapi - fix legacy compatibility (#4489) --- src/cloud/prometheus/restapi/mode/expression.pm | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/cloud/prometheus/restapi/mode/expression.pm b/src/cloud/prometheus/restapi/mode/expression.pm index 9cc0ba889..c61d04b01 100644 --- a/src/cloud/prometheus/restapi/mode/expression.pm +++ b/src/cloud/prometheus/restapi/mode/expression.pm @@ -69,7 +69,7 @@ sub custom_status_calc { foreach my $key (@{$self->{instance_mode}->{custom_keys}}) { $self->{result_values}->{$key} = $options{new_datas}->{ $self->{instance} . '_' . $key }; } - + return 0; } @@ -186,16 +186,16 @@ sub manage_selection { push @$instances, { name => $_, value => $result->{metric}->{$_} }; } - my $instance_key = join('_', @$instances); + my $instance_key = join('_', map { $_->{value} } @$instances); next if (!defined($instance_key) || $instance_key eq ''); my $value; $value = $options{custom}->compute(aggregation => $self->{option_results}->{aggregation}, values => $result->{values}) if (defined($result->{values})); $value = $result->{value}->[1] if (defined($result->{value})); - $self->{expressions}->{$instance_key} = { - instances => $instances, - $result->{metric}->{__name__} => $value - }; + if (!defined($self->{expressions}->{$instance_key})) { + $self->{expressions}->{$instance_key} = { instances => $instances }; + } + $self->{expressions}->{$instance_key}->{ $result->{metric}->{__name__} } = $value; } if (scalar(keys %{$self->{expressions}}) <= 0) { From 8c8f40632faeb03b014f1eacdfaf003f2289e572 Mon Sep 17 00:00:00 2001 From: qgarnier Date: Fri, 16 Jun 2023 18:19:59 +0200 Subject: [PATCH 15/39] (plugin) storage::ibm::storwize::ssh - add mode replication (#4483) --- .../ibm/storwize/ssh/mode/replication.pm | 125 ++++++++++++++++++ src/storage/ibm/storwize/ssh/plugin.pm | 13 +- 2 files changed, 132 insertions(+), 6 deletions(-) create mode 100644 src/storage/ibm/storwize/ssh/mode/replication.pm diff --git a/src/storage/ibm/storwize/ssh/mode/replication.pm b/src/storage/ibm/storwize/ssh/mode/replication.pm new file mode 100644 index 000000000..77da26df4 --- /dev/null +++ b/src/storage/ibm/storwize/ssh/mode/replication.pm @@ -0,0 +1,125 @@ +# +# Copyright 2023 Centreon (http://www.centreon.com/) +# +# Centreon is a full-fledged industry-strength solution that meets +# the needs in IT infrastructure and application monitoring for +# service performance. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +package storage::ibm::storwize::ssh::mode::replication; + +use base qw(centreon::plugins::templates::counter); + +use strict; +use warnings; +use centreon::plugins::templates::catalog_functions qw(catalog_status_threshold_ng); + +sub prefix_replication_output { + my ($self, %options) = @_; + + return sprintf( + 'Volume %s [group: %s, vdisk: %s] ', + $options{instance_value}->{name}, + $options{instance_value}->{group_name}, + $options{instance_value}->{vdisk_name} + ); +} + +sub set_counters { + my ($self, %options) = @_; + + $self->{maps_counters_type} = [ + { name => 'replication', type => 1, cb_prefix_output => 'prefix_replication_output', message_multiple => 'All volumes are in consistent_synchronized state'} + ]; + + $self->{maps_counters}->{replication} = [ + { + label => 'status', + type => 2, + warning_default => '%{status} =~ /idling/i', + set => { + key_values => [ { name => 'status' } ], + output_template => 'status: %s', + closure_custom_perfdata => sub { return 0; }, + closure_custom_threshold_check => \&catalog_status_threshold_ng + } + } + ]; +} + +sub new { + my ($class, %options) = @_; + my $self = $class->SUPER::new(package => __PACKAGE__, %options); + bless $self, $class; + + $options{options}->add_options(arguments => { + 'filter-consistency-group-name:s' => { name => 'filter_group' } + }); + + return $self; +} + +sub manage_selection { + my ($self, %options) = @_; + + my ($content) = $options{custom}->execute_command(command => 'lsrcrelationship -delim :'); + my $result = $options{custom}->get_hasharray(content => $content, delim => ':'); + + $self->{replication} = {}; + foreach my $item (@$result) { + next if (defined($self->{option_results}->{filter_group}) && $self->{option_results}->{filter_group} ne '' && + $item->{consistency_group_name} !~ /$self->{option_results}->{filter_group}/); + + $self->{replication}->{ $item->{id} } = { + name => $item->{name}, + vdisk_name => $item->{aux_vdisk_name}, + group_name => $item->{consistency_group_name}, + status => $item->{state} + }; + } + + if (scalar(keys %{$self->{replication}}) <= 0){ + $self->{output}->add_option_msg(short_msg => 'No volume found.'); + $self->{output}->option_exit(); + } +} + +1; + +__END__ + +=head1 MODE + +Check replication usages. + +=over 8 + +=item B<--filter-consistency-group-name> + +Filter group name (can be a regexp). + +=item B<--warning-status> + +Set warning threshold for status (Default: '%{status} =~ /idling/i'). +You can use the following variables: %{status} + +=item B<--critical-status> + +Set critical threshold for status. +You can use the following variables: %{status} + +=back + +=cut diff --git a/src/storage/ibm/storwize/ssh/plugin.pm b/src/storage/ibm/storwize/ssh/plugin.pm index 34ed0e503..3654f6d77 100644 --- a/src/storage/ibm/storwize/ssh/plugin.pm +++ b/src/storage/ibm/storwize/ssh/plugin.pm @@ -29,12 +29,13 @@ sub new { my $self = $class->SUPER::new(package => __PACKAGE__, %options); bless $self, $class; - $self->{version} = '1.0'; - %{$self->{modes}} = ( - 'components' => 'storage::ibm::storwize::ssh::mode::hardware', - 'eventlog' => 'storage::ibm::storwize::ssh::mode::eventlog', - 'pool-usage' => 'storage::ibm::storwize::ssh::mode::poolusage', - ); + $self->{modes} = { + 'components' => 'storage::ibm::storwize::ssh::mode::hardware', + 'eventlog' => 'storage::ibm::storwize::ssh::mode::eventlog', + 'pool-usage' => 'storage::ibm::storwize::ssh::mode::poolusage', + 'replication' => 'storage::ibm::storwize::ssh::mode::replication' + }; + $self->{custom_modes}{api} = 'storage::ibm::storwize::ssh::custom::api'; return $self; From fecdbf140417a005f755c00ccdd323ffb239a6f5 Mon Sep 17 00:00:00 2001 From: qgarnier Date: Mon, 26 Jun 2023 14:40:24 +0200 Subject: [PATCH 16/39] centreon::plugins::snmp - fix undefined value with discovery (#4493) --- src/centreon/plugins/snmp.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/centreon/plugins/snmp.pm b/src/centreon/plugins/snmp.pm index 40757165d..14e5afcc4 100644 --- a/src/centreon/plugins/snmp.pm +++ b/src/centreon/plugins/snmp.pm @@ -81,6 +81,8 @@ sub new { $self->{output} = $options{output}; $self->{snmp_params} = {}; + $self->{use_snmp_cache} = 0; + # Dont load MIB $SNMP::auto_init_mib = 0; $ENV{MIBS} = ''; @@ -855,7 +857,6 @@ sub check_options { $self->{snmp_errors_exit} = $options{option_results}->{snmp_errors_exit}; - $self->{use_snmp_cache} = 0; if (defined($options{option_results}->{snmp_cache_file}) && $options{option_results}->{snmp_cache_file} ne '') { centreon::plugins::misc::mymodule_load( output => $self->{output}, From 6143363aac4a017cfa8bad320e2c5b4befc45660 Mon Sep 17 00:00:00 2001 From: qgarnier Date: Tue, 27 Jun 2023 10:12:53 +0200 Subject: [PATCH 17/39] (plugin) apps::backup::rubrik::restapi - add mode jobs (#4475) --- src/apps/backup/rubrik/restapi/custom/api.pm | 91 +++-- .../backup/rubrik/restapi/mode/compliance.pm | 7 +- src/apps/backup/rubrik/restapi/mode/jobs.pm | 379 ++++++++++++++++++ .../backup/rubrik/restapi/mode/listjobs.pm | 113 ++++++ src/apps/backup/rubrik/restapi/mode/nodes.pm | 11 +- src/apps/backup/rubrik/restapi/mode/tasks.pm | 7 +- src/apps/backup/rubrik/restapi/plugin.pm | 15 +- 7 files changed, 585 insertions(+), 38 deletions(-) create mode 100644 src/apps/backup/rubrik/restapi/mode/jobs.pm create mode 100644 src/apps/backup/rubrik/restapi/mode/listjobs.pm diff --git a/src/apps/backup/rubrik/restapi/custom/api.pm b/src/apps/backup/rubrik/restapi/custom/api.pm index 52d76eb79..4fab88e2c 100644 --- a/src/apps/backup/rubrik/restapi/custom/api.pm +++ b/src/apps/backup/rubrik/restapi/custom/api.pm @@ -287,48 +287,91 @@ sub credentials { return $creds; } +sub request_api_paginate { + my ($self, %options) = @_; + + my $endpoint = $options{endpoint}; + if ($endpoint !~ /^\/api/) { + $endpoint = '/api/internal' . $endpoint; + } + + my $full_url; + my $items = []; + $options{get_param} = [] if (!defined($options{get_param})); + my $get_param = $options{get_param}; + while (1) { + my $content = $self->{http}->request( + method => $options{method}, + full_url => $full_url, + url_path => $endpoint, + get_param => $get_param, + %{$options{creds}} + ); + + if (!defined($content) || $content eq '') { + $self->{output}->add_option_msg(short_msg => "API returns empty content [code: '" . $self->{http}->get_code() . "'] [message: '" . $self->{http}->get_message() . "']"); + $self->{output}->option_exit(); + } + + my $decoded; + eval { + $decoded = JSON::XS->new->allow_nonref(1)->utf8->decode($content); + }; + if ($@) { + $self->{output}->add_option_msg(short_msg => "Cannot decode response (add --debug option to display returned content)"); + $self->{output}->option_exit(); + } + + return $decoded if (ref($decoded) ne 'HASH'); + + return $decoded if (!defined($decoded->{hasMore}) || !defined($options{label})); + + push @$items, @{$decoded->{ $options{label} }}; + + last if ($decoded->{hasMore} !~ /true|1/i); + + if (defined($decoded->{cursor})) { + $get_param = [@{$options{get_param}}, 'cursor=' . $decoded->{cursor}]; + } elsif (defined($decoded->{afterId})) { + $get_param = [@{$options{get_param}}, 'after_id=' . $decoded->{afterId}]; + } elsif (defined($decoded->{links}->{next})) { + $full_url = $decoded->{links}->{next}->{href}; + } + } + + return $items; +} + sub request_api { my ($self, %options) = @_; $self->settings(); my $creds = $self->credentials(); - my ($content) = $self->{http}->request( + my $result = $self->request_api_paginate( + label => $options{label}, method => 'GET', - url_path => '/api/internal' . $options{endpoint}, + endpoint => $options{endpoint}, get_param => $options{get_param}, - %$creds + creds => $creds ); # Maybe token is invalid. so we retry if (defined($self->{token}) && $self->{http}->get_code() < 200 || $self->{http}->get_code() >= 300) { $self->clean_token(); $creds = $self->credentials(); - $content = $self->{http}->request( + $creds->{unknown_status} = $self->{unknown_http_status}; + $creds->{warning_status} = $self->{warning_status}; + $creds->{critical_http_status} = $self->{critical_http_status}; + $result = $self->request_api_paginate( + label => $options{label}, method => 'GET', - url_path => '/api/internal' . $options{endpoint}, + endpoint => $options{endpoint}, get_param => $options{get_param}, - %$creds, - unknown_status => $self->{unknown_http_status}, - warning_status => $self->{warning_http_status}, - critical_status => $self->{critical_http_status} + creds => $creds ); } - if (!defined($content) || $content eq '') { - $self->{output}->add_option_msg(short_msg => "API returns empty content [code: '" . $self->{http}->get_code() . "'] [message: '" . $self->{http}->get_message() . "']"); - $self->{output}->option_exit(); - } - - my $decoded; - eval { - $decoded = JSON::XS->new->allow_nonref(1)->utf8->decode($content); - }; - if ($@) { - $self->{output}->add_option_msg(short_msg => "Cannot decode response (add --debug option to display returned content)"); - $self->{output}->option_exit(); - } - - return $decoded; + return $result; } 1; diff --git a/src/apps/backup/rubrik/restapi/mode/compliance.pm b/src/apps/backup/rubrik/restapi/mode/compliance.pm index 2f1444248..6e159b863 100644 --- a/src/apps/backup/rubrik/restapi/mode/compliance.pm +++ b/src/apps/backup/rubrik/restapi/mode/compliance.pm @@ -72,9 +72,12 @@ sub new { sub manage_selection { my ($self, %options) = @_; - my $reports = $options{custom}->request_api(endpoint => '/report'); + my $reports = $options{custom}->request_api( + endpoint => '/report', + label => 'data' + ); my $report_id; - foreach (@{$reports->{data}}) { + foreach (@$reports) { if ($_->{name} eq 'SLA Compliance Summary') { $report_id = $_->{id}; last; diff --git a/src/apps/backup/rubrik/restapi/mode/jobs.pm b/src/apps/backup/rubrik/restapi/mode/jobs.pm new file mode 100644 index 000000000..1e2925c13 --- /dev/null +++ b/src/apps/backup/rubrik/restapi/mode/jobs.pm @@ -0,0 +1,379 @@ +# +# Copyright 2023 Centreon (http://www.centreon.com/) +# +# Centreon is a full-fledged industry-strength solution that meets +# the needs in IT infrastructure and application monitoring for +# service performance. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +package apps::backup::rubrik::restapi::mode::jobs; + +use base qw(centreon::plugins::templates::counter); + +use strict; +use warnings; +use Digest::MD5; +use DateTime; +use POSIX; +use centreon::plugins::templates::catalog_functions qw(catalog_status_threshold_ng); +use centreon::plugins::misc; +use centreon::plugins::statefile; + +my $unitdiv = { s => 1, w => 604800, d => 86400, h => 3600, m => 60 }; +my $unitdiv_long = { s => 'seconds', w => 'weeks', d => 'days', h => 'hours', m => 'minutes' }; + +sub custom_last_exec_perfdata { + my ($self, %options) = @_; + + $self->{output}->perfdata_add( + nlabel => $self->{nlabel} . '.' . $unitdiv_long->{ $self->{instance_mode}->{option_results}->{unit} }, + instances => $self->{result_values}->{name}, + unit => $self->{instance_mode}->{option_results}->{unit}, + value => $self->{result_values}->{lastExecSeconds} >= 0 ? floor($self->{result_values}->{lastExecSeconds} / $unitdiv->{ $self->{instance_mode}->{option_results}->{unit} }) : $self->{result_values}->{lastExecSeconds}, + warning => $self->{perfdata}->get_perfdata_for_output(label => 'warning-' . $self->{thlabel}), + critical => $self->{perfdata}->get_perfdata_for_output(label => 'critical-' . $self->{thlabel}), + min => 0 + ); +} + +sub custom_last_exec_threshold { + my ($self, %options) = @_; + + return $self->{perfdata}->threshold_check( + value => $self->{result_values}->{lastExecSeconds} >= 0 ? floor($self->{result_values}->{lastExecSeconds} / $unitdiv->{ $self->{instance_mode}->{option_results}->{unit} }) : $self->{result_values}->{lastExecSeconds}, + threshold => [ + { label => 'critical-' . $self->{thlabel}, exit_litteral => 'critical' }, + { label => 'warning-'. $self->{thlabel}, exit_litteral => 'warning' }, + { label => 'unknown-'. $self->{thlabel}, exit_litteral => 'unknown' } + ] + ); +} + +sub custom_duration_perfdata { + my ($self, %options) = @_; + + $self->{output}->perfdata_add( + nlabel => $self->{nlabel} . '.' . $unitdiv_long->{ $self->{instance_mode}->{option_results}->{unit} }, + instances => $self->{result_values}->{name}, + unit => $self->{instance_mode}->{option_results}->{unit}, + value => floor($self->{result_values}->{durationSeconds} / $unitdiv->{ $self->{instance_mode}->{option_results}->{unit} }), + warning => $self->{perfdata}->get_perfdata_for_output(label => 'warning-' . $self->{thlabel}), + critical => $self->{perfdata}->get_perfdata_for_output(label => 'critical-' . $self->{thlabel}), + min => 0 + ); +} + +sub custom_duration_threshold { + my ($self, %options) = @_; + + return $self->{perfdata}->threshold_check( + value => floor($self->{result_values}->{durationSeconds} / $unitdiv->{ $self->{instance_mode}->{option_results}->{unit} }), + threshold => [ + { label => 'critical-' . $self->{thlabel}, exit_litteral => 'critical' }, + { label => 'warning-'. $self->{thlabel}, exit_litteral => 'warning' }, + { label => 'unknown-'. $self->{thlabel}, exit_litteral => 'unknown' } + ] + ); +} + +sub job_long_output { + my ($self, %options) = @_; + + return sprintf( + "checking job '%s' [type: %s]", + $options{instance_value}->{name}, + $options{instance_value}->{jobType} + ); +} + +sub prefix_job_output { + my ($self, %options) = @_; + + return sprintf( + "job '%s' [type: %s] ", + $options{instance_value}->{name}, + $options{instance_value}->{jobType} + ); +} + +sub prefix_global_output { + my ($self, %options) = @_; + + return 'Number of jobs '; +} + +sub prefix_execution_output { + my ($self, %options) = @_; + + return sprintf( + "last execution started: %s ", + $options{instance_value}->{started} + ); +} + +sub set_counters { + my ($self, %options) = @_; + + $self->{maps_counters_type} = [ + { name => 'global', type => 0, cb_prefix_output => 'prefix_global_output' }, + { + name => 'jobs', type => 3, cb_prefix_output => 'prefix_job_output', cb_long_output => 'job_long_output', indent_long_output => ' ', message_multiple => 'All jobs are ok', + group => [ + { name => 'failed', type => 0 }, + { name => 'timers', type => 0, skipped_code => { -10 => 1 } }, + { name => 'executions', type => 1, cb_prefix_output => 'prefix_execution_output', message_multiple => 'executions are ok', display_long => 1, skipped_code => { -10 => 1 } }, + ] + } + ]; + + $self->{maps_counters}->{global} = [ + { label => 'jobs-executions-detected', display_ok => 0, nlabel => 'jobs.executions.detected.count', set => { + key_values => [ { name => 'detected' } ], + output_template => 'executions detected: %s', + perfdatas => [ + { template => '%s', min => 0 } + ] + } + } + ]; + + $self->{maps_counters}->{failed} = [ + { label => 'job-executions-failed-prct', nlabel => 'job.executions.failed.percentage', set => { + key_values => [ { name => 'failedPrct' } ], + output_template => 'number of failed executions: %.2f %%', + perfdatas => [ + { template => '%.2f', unit => '%', min => 0, max => 100, label_extra_instance => 1 } + ] + } + } + ]; + + $self->{maps_counters}->{timers} = [ + { label => 'job-execution-last', nlabel => 'job.execution.last', set => { + key_values => [ { name => 'lastExecSeconds' }, { name => 'lastExecHuman' }, { name => 'name' } ], + output_template => 'last execution %s', + output_use => 'lastExecHuman', + closure_custom_perfdata => $self->can('custom_last_exec_perfdata'), + closure_custom_threshold_check => $self->can('custom_last_exec_threshold') + } + }, + { label => 'job-running-duration', nlabel => 'job.running.duration', set => { + key_values => [ { name => 'durationSeconds' }, { name => 'durationHuman' }, { name => 'name' } ], + output_template => 'running duration %s', + output_use => 'durationHuman', + closure_custom_perfdata => $self->can('custom_duration_perfdata'), + closure_custom_threshold_check => $self->can('custom_duration_threshold') + } + } + ]; + + $self->{maps_counters}->{executions} = [ + { + label => 'execution-status', + type => 2, + critical_default => '%{status} =~ /failure/i', + set => { + key_values => [ + { name => 'status' }, { name => 'jobName' } + ], + output_template => 'status: %s', + closure_custom_perfdata => sub { return 0; }, + closure_custom_threshold_check => \&catalog_status_threshold_ng + } + } + ]; +} + +sub new { + my ($class, %options) = @_; + my $self = $class->SUPER::new(package => __PACKAGE__, %options, force_new_perfdata => 1); + bless $self, $class; + + $options{options}->add_options(arguments => { + 'filter-job-id:s' => { name => 'filter_job_id' }, + 'filter-job-name:s' => { name => 'filter_job_name' }, + 'filter-job-type:s' => { name => 'filter_job_type' }, + 'filter-location-name:s' => { name => 'filter_location_name' }, + 'unit:s' => { name => 'unit', default => 's' } + }); + + $self->{cache_exec} = centreon::plugins::statefile->new(%options); + + return $self; +} + +sub check_options { + my ($self, %options) = @_; + $self->SUPER::check_options(%options); + + if ($self->{option_results}->{unit} eq '' || !defined($unitdiv->{$self->{option_results}->{unit}})) { + $self->{option_results}->{unit} = 's'; + } + + $self->{cache_exec}->check_options(option_results => $self->{option_results}, default_format => 'json'); +} + +sub manage_selection { + my ($self, %options) = @_; + + my $jobs_exec = $options{custom}->request_api( + endpoint => '/api/v1/job_monitoring', + label => 'jobMonitoringInfoList' + ); + + $self->{cache_exec}->read(statefile => 'rubrik_' . $self->{mode} . '_' . + Digest::MD5::md5_hex( + (defined($self->{option_results}->{filter_job_id}) ? $self->{option_results}->{filter_job_id} : '') . '_' . + (defined($self->{option_results}->{filter_job_name}) ? $self->{option_results}->{filter_job_name} : '') . '_' . + (defined($self->{option_results}->{filter_job_type}) ? $self->{option_results}->{filter_job_type} : '') + ) + ); + my $ctime = time(); + my $last_exec_times = $self->{cache_exec}->get(name => 'jobs'); + $last_exec_times = {} if (!defined($last_exec_times)); + + $self->{global} = { detected => 0 }; + $self->{jobs} = {}; + foreach my $job_exec (@$jobs_exec) { + next if (defined($self->{option_results}->{filter_job_id}) && $self->{option_results}->{filter_job_id} ne '' && + $job_exec->{objectId} !~ /$self->{option_results}->{filter_job_id}/); + next if (defined($self->{option_results}->{filter_job_name}) && $self->{option_results}->{filter_job_name} ne '' && + $job_exec->{objectName} !~ /$self->{option_results}->{filter_job_name}/); + next if (defined($self->{option_results}->{filter_job_type}) && $self->{option_results}->{filter_job_type} ne '' && + $job_exec->{jobType} !~ /$self->{option_results}->{filter_job_type}/i); + next if (defined($self->{option_results}->{filter_location_name}) && $self->{option_results}->{filter_location_name} ne '' && + $job_exec->{locationName} !~ /$self->{option_results}->{filter_location_name}/); + + if (!defined($self->{jobs}->{ $job_exec->{objectId} })) { + $self->{jobs}->{ $job_exec->{objectId} } = { + name => $job_exec->{objectName}, + jobType => lc($job_exec->{jobType}), + timers => {}, + executions => {} + }; + } + + my ($last_exec, $older_running_exec); + my ($failed, $total) = (0, 0); + foreach (@$jobs_exec) { + next if ($_->{objectId} ne $job_exec->{objectId}); + + if (!defined($_->{endTime}) && $_->{jobStatus} =~ /Active/i) { + $older_running_exec = $_; + } + if (!defined($last_exec) && $_->{jobStatus} !~ /Scheduled/i) { + $last_exec = $_; + } + + $self->{global}->{detected}++; + # Failure, Scheduled, Success, SuccessfulWithWarnings, Active, Canceled + $failed++ if ($_->{jobStatus} =~ /Failure/i); + $total++; + } + + $self->{jobs}->{ $job_exec->{objectId} }->{failed} = { + failedPrct => $total > 0 ? $failed * 100 / $total : 0 + }; + + if (defined($last_exec)) { + $self->{jobs}->{ $job_exec->{objectId} }->{executions}->{last} = { + jobName => $job_exec->{objectName}, + started => $last_exec->{startTime}, + status => $last_exec->{jobStatus} + }; + + $last_exec->{startTime} =~ /^(\d+)-(\d+)-(\d+)T(\d+):(\d+):(\d+)/; + my $dt = DateTime->new(year => $1, month => $2, day => $3, hour => $4, minute => $5, second => $6); + $last_exec_times->{ $job_exec->{objectId} } = $dt->epoch(); + } + + $self->{jobs}->{ $job_exec->{objectId} }->{timers} = { + name => $job_exec->{objectName}, + lastExecSeconds => defined($last_exec_times->{ $job_exec->{objectId} }) ? $ctime - $last_exec_times->{ $job_exec->{objectId} } : -1, + lastExecHuman => 'never' + }; + if (defined($last_exec_times->{ $job_exec->{objectId} })) { + $self->{jobs}->{ $job_exec->{objectId} }->{timers}->{lastExecHuman} = centreon::plugins::misc::change_seconds(value => $ctime - $last_exec_times->{ $job_exec->{objectId} }); + } + + if (defined($older_running_exec)) { + $older_running_exec->{startTime} =~ /^(\d+)-(\d+)-(\d+)T(\d+):(\d+):(\d+)/; + my $dt = DateTime->new(year => $1, month => $2, day => $3, hour => $4, minute => $5, second => $6); + my $duration = $ctime - $dt->epoch(); + $self->{jobs}->{ $job_exec->{objectId} }->{timers}->{durationSeconds} = $duration; + $self->{jobs}->{ $job_exec->{objectId} }->{timers}->{durationHuman} = centreon::plugins::misc::change_seconds(value => $duration); + } + } + + $self->{cache_exec}->write(data => { + jobs => $last_exec_times + }); +} + +1; + +__END__ + +=head1 MODE + +Check jobs. + +=over 8 + +=item B<--filter-job-id> + +Filter jobs by job ID. + +=item B<--filter-job-name> + +Filter jobs by job name. + +=item B<--filter-job-type> + +Filter jobs by job type. + +=item B<--filter-location-name> + +Filter jobs by location name. + +=item B<--unit> + +Select the unit for last execution time threshold. May be 's' for seconds, 'm' for minutes, +'h' for hours, 'd' for days, 'w' for weeks. Default is seconds. + +=item B<--unknown-execution-status> + +Set unknown threshold for last job execution status. +You can use the following variables: %{status}, %{jobName} + +=item B<--warning-execution-status> + +Set warning threshold for last job execution status. +You can use the following variables: %{status}, %{jobName} + +=item B<--critical-execution-status> + +Set critical threshold for last job execution status (Default: %{status} =~ /Failure/i). +You can use the following variables: %{status}, %{jobName} + +=item B<--warning-*> B<--critical-*> + +Thresholds. +Can be: 'jobs-executions-detected', 'job-executions-failed-prct', +'job-execution-last', 'job-running-duration'. + +=back + +=cut diff --git a/src/apps/backup/rubrik/restapi/mode/listjobs.pm b/src/apps/backup/rubrik/restapi/mode/listjobs.pm new file mode 100644 index 000000000..2e9e14fde --- /dev/null +++ b/src/apps/backup/rubrik/restapi/mode/listjobs.pm @@ -0,0 +1,113 @@ +# +# Copyright 2023 Centreon (http://www.centreon.com/) +# +# Centreon is a full-fledged industry-strength solution that meets +# the needs in IT infrastructure and application monitoring for +# service performance. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +package apps::backup::rubrik::restapi::mode::listjobs; + +use base qw(centreon::plugins::mode); + +use strict; +use warnings; + +sub new { + my ($class, %options) = @_; + my $self = $class->SUPER::new(package => __PACKAGE__, %options); + bless $self, $class; + + $options{options}->add_options(arguments => {}); + + return $self; +} + +sub check_options { + my ($self, %options) = @_; + $self->SUPER::init(%options); +} + +sub manage_selection { + my ($self, %options) = @_; + + my $jobs = $options{custom}->request_api( + endpoint => '/api/v1/job_monitoring', + label => 'jobMonitoringInfoList' + ); + my $results = {}; + foreach (@$jobs) { + $results->{ $_->{objectId} } = $_; + } + return $results; +} + +sub run { + my ($self, %options) = @_; + + my $results = $self->manage_selection(%options); + foreach (values %$results) { + $self->{output}->output_add( + long_msg => sprintf( + '[jobId: %s][jobName: %s][jobType: %s][locationName: %s]', + $_->{objectId}, + $_->{objectName}, + $_->{jobType}, + $_->{locationName} + ) + ); + } + $self->{output}->output_add( + severity => 'OK', + short_msg => 'List jobs:' + ); + + $self->{output}->display(nolabel => 1, force_ignore_perfdata => 1, force_long_output => 1); + $self->{output}->exit(); +} + +sub disco_format { + my ($self, %options) = @_; + + $self->{output}->add_disco_format(elements => ['jobId', 'jobName', 'jobType', 'locationName']); +} + +sub disco_show { + my ($self, %options) = @_; + + my $results = $self->manage_selection(%options); + foreach (values %$results) { + $self->{output}->add_disco_entry( + jobId => $_->{objectId}, + jobName => $_->{objectName}, + jobType => $_->{jobType}, + locationName => $_->{locationName} + ); + } +} + +1; + +__END__ + +=head1 MODE + +List jobs. + +=over 8 + +=back + +=cut diff --git a/src/apps/backup/rubrik/restapi/mode/nodes.pm b/src/apps/backup/rubrik/restapi/mode/nodes.pm index 0f82513de..eeb9f1c2b 100644 --- a/src/apps/backup/rubrik/restapi/mode/nodes.pm +++ b/src/apps/backup/rubrik/restapi/mode/nodes.pm @@ -124,8 +124,13 @@ sub check_options { sub manage_selection { my ($self, %options) = @_; - my $name = $options{custom}->request_api(endpoint => '/cluster/' . $self->{option_results}->{cluster_id} . '/name'); - my $nodes = $options{custom}->request_api(endpoint => '/cluster/' . $self->{option_results}->{cluster_id} . '/node'); + my $name = $options{custom}->request_api( + endpoint => '/cluster/' . $self->{option_results}->{cluster_id} . '/name' + ); + my $nodes = $options{custom}->request_api( + endpoint => '/cluster/' . $self->{option_results}->{cluster_id} . '/node', + label => 'data' + ); $self->{clusters} = { $name => { @@ -137,7 +142,7 @@ sub manage_selection { nodes => {} } }; - foreach (@{$nodes->{data}}) { + foreach (@$nodes) { next if (defined($self->{option_results}->{filter_node_id}) && $self->{option_results}->{filter_node_id} ne '' && $_->{id} !~ /$self->{option_results}->{filter_node_id}/); diff --git a/src/apps/backup/rubrik/restapi/mode/tasks.pm b/src/apps/backup/rubrik/restapi/mode/tasks.pm index 30457f8f7..17f6206df 100644 --- a/src/apps/backup/rubrik/restapi/mode/tasks.pm +++ b/src/apps/backup/rubrik/restapi/mode/tasks.pm @@ -80,9 +80,12 @@ sub new { sub manage_selection { my ($self, %options) = @_; - my $reports = $options{custom}->request_api(endpoint => '/report'); + my $reports = $options{custom}->request_api( + endpoint => '/report', + label => 'data' + ); my $report_id; - foreach (@{$reports->{data}}) { + foreach (@$reports) { if ($_->{name} eq 'Protection Tasks Details') { $report_id = $_->{id}; last; diff --git a/src/apps/backup/rubrik/restapi/plugin.pm b/src/apps/backup/rubrik/restapi/plugin.pm index f38ceff42..488841b04 100644 --- a/src/apps/backup/rubrik/restapi/plugin.pm +++ b/src/apps/backup/rubrik/restapi/plugin.pm @@ -29,14 +29,15 @@ sub new { my $self = $class->SUPER::new(package => __PACKAGE__, %options); bless $self, $class; - $self->{version} = '0.1'; $self->{modes} = { - 'cluster' => 'apps::backup::rubrik::restapi::mode::cluster', - 'compliance' => 'apps::backup::rubrik::restapi::mode::compliance', - 'disks' => 'apps::backup::rubrik::restapi::mode::disks', - 'nodes' => 'apps::backup::rubrik::restapi::mode::nodes', - 'storage' => 'apps::backup::rubrik::restapi::mode::storage', - 'tasks' => 'apps::backup::rubrik::restapi::mode::tasks' + 'cluster' => 'apps::backup::rubrik::restapi::mode::cluster', + 'compliance' => 'apps::backup::rubrik::restapi::mode::compliance', + 'disks' => 'apps::backup::rubrik::restapi::mode::disks', + 'jobs' => 'apps::backup::rubrik::restapi::mode::jobs', + 'list-jobs' => 'apps::backup::rubrik::restapi::mode::listjobs', + 'nodes' => 'apps::backup::rubrik::restapi::mode::nodes', + 'storage' => 'apps::backup::rubrik::restapi::mode::storage', + 'tasks' => 'apps::backup::rubrik::restapi::mode::tasks' }; $self->{custom_modes}->{api} = 'apps::backup::rubrik::restapi::custom::api'; From 058eb41733d962d41a8b582dbe1623a460b432d6 Mon Sep 17 00:00:00 2001 From: Kevin Duret Date: Tue, 27 Jun 2023 15:55:12 +0200 Subject: [PATCH 18/39] enh(ci): package plugins using nfpm (#4473) --- .../actions/deb-delivery-legacy/action.yml | 3 +- .github/actions/deb-delivery/action.yml | 3 +- .github/actions/package/action.yml | 109 ++++++------- .../actions/rpm-delivery-legacy/action.yml | 3 +- .github/actions/rpm-delivery/action.yml | 3 +- .../docker/Dockerfile.packaging-plugins-alma8 | 2 +- .../docker/Dockerfile.packaging-plugins-alma9 | 2 +- .../Dockerfile.packaging-plugins-centos7 | 4 +- .../packaging/centreon-plugin.yaml.template | 88 +++++++++++ .../packaging/debian/control.body.template | 24 --- .../packaging/debian/control.head.template | 12 -- .github/packaging/debian/copyright | 29 ---- .../packaging/debian/plugin.install.template | 1 - .github/packaging/debian/rules | 7 - .github/packaging/debian/source/format | 1 - .github/packaging/rpm/plugin.spectemplate | 48 ------ .github/scripts/plugin-packaging-deb.sh | 55 ------- .github/scripts/plugin-packaging-rpm.sh | 37 ----- .github/scripts/rpm-signing.sh | 5 - .github/workflows/connector-vmware.yml | 35 +++-- .github/workflows/package.yml | 117 -------------- .github/workflows/perl-vmware-vsphere.yml | 40 +++-- .github/workflows/plugin-delivery.yml | 3 +- .github/workflows/plugin-package.yml | 88 ----------- .github/workflows/plugins.yml | 145 ++++++++++++++++-- .github/workflows/tests-functional.yml | 14 +- doc/CI.md | 14 +- .../deb.json | 7 +- .../rpm.json | 2 +- .../rpm.json | 5 +- .../rpm.json | 2 +- .../rpm.json | 2 +- .../rpm.json | 2 +- .../rpm.json | 2 +- .../rpm.json | 2 +- .../rpm.json | 2 +- .../rpm.json | 2 +- .../rpm.json | 2 +- .../rpm.json | 2 +- .../rpm.json | 2 +- .../rpm.json | 2 +- .../deb.json | 5 +- .../pkg.json | 3 +- .../rpm.json | 5 +- .../rpm.json | 2 +- .../pkg.json | 2 +- .../rpm.json | 2 +- .../rpm.json | 2 +- .../rpm.json | 2 +- .../rpm.json | 2 +- 50 files changed, 401 insertions(+), 552 deletions(-) create mode 100644 .github/packaging/centreon-plugin.yaml.template delete mode 100644 .github/packaging/debian/control.body.template delete mode 100644 .github/packaging/debian/control.head.template delete mode 100644 .github/packaging/debian/copyright delete mode 100644 .github/packaging/debian/plugin.install.template delete mode 100644 .github/packaging/debian/rules delete mode 100644 .github/packaging/debian/source/format delete mode 100644 .github/packaging/rpm/plugin.spectemplate delete mode 100755 .github/scripts/plugin-packaging-deb.sh delete mode 100755 .github/scripts/plugin-packaging-rpm.sh delete mode 100755 .github/scripts/rpm-signing.sh delete mode 100644 .github/workflows/package.yml delete mode 100644 .github/workflows/plugin-package.yml diff --git a/.github/actions/deb-delivery-legacy/action.yml b/.github/actions/deb-delivery-legacy/action.yml index 00cba4df8..624b048cd 100644 --- a/.github/actions/deb-delivery-legacy/action.yml +++ b/.github/actions/deb-delivery-legacy/action.yml @@ -24,10 +24,11 @@ runs: using: "composite" steps: - name: Use cache DEB files - uses: actions/cache@v3 + uses: actions/cache/restore@v3 with: path: ./*.deb key: ${{ inputs.cache_key }} + fail-on-cache-miss: true - name: Publish DEBs to Nexus run: | diff --git a/.github/actions/deb-delivery/action.yml b/.github/actions/deb-delivery/action.yml index 6d57f6f98..9faad28cd 100644 --- a/.github/actions/deb-delivery/action.yml +++ b/.github/actions/deb-delivery/action.yml @@ -24,10 +24,11 @@ runs: using: "composite" steps: - name: Use cache DEB files - uses: actions/cache@v3 + uses: actions/cache/restore@v3 with: path: ./*.deb key: ${{ inputs.cache_key }} + fail-on-cache-miss: true - uses: jfrog/setup-jfrog-cli@v3 env: diff --git a/.github/actions/package/action.yml b/.github/actions/package/action.yml index 5883ca2d5..b0797d1ec 100644 --- a/.github/actions/package/action.yml +++ b/.github/actions/package/action.yml @@ -1,84 +1,85 @@ name: package -description: Package module +description: Package module using nfpm inputs: + nfpm_file_pattern: + description: The pattern of the nfpm configuration file(s) + required: true package_extension: description: The package extension (deb or rpm) required: true distrib: - description: The package distrib (el8, bullseye...) - required: true - image_name: - description: The docker image name - required: true - script_name: - description: The packaging script name - plugins: - description: List of plugins to package + description: The package distrib required: true version: - description: The plugins version - required: true + description: The package version + required: false release: - description: The release number + description: The package release number + required: false + commit_hash: + description: The commit hash required: true cache_key: description: The package files cache key required: true - sign: - description: Wether to sign the package or not - default: "" - registry_url: - description: Docker registry url + rpm_gpg_key: + description: The rpm gpg key required: true - registry_username: - description: Docker registry username + rpm_gpg_signing_key_id: + description: The rpm gpg signing key identifier required: true - registry_password: - description: Docker registry password + rpm_gpg_signing_passphrase: + description: The rpm gpg signing passphrase required: true runs: using: composite steps: - - name: Login to Registry - uses: docker/login-action@v2 - with: - registry: ${{ inputs.registry_url }} - username: ${{ inputs.registry_username }} - password: ${{ inputs.registry_password }} + - name: Import gpg key + env: + RPM_GPG_SIGNING_KEY: ${{ inputs.rpm_gpg_key }} + run: echo -n "$RPM_GPG_SIGNING_KEY" > key.gpg + shell: bash - - name: Package - uses: ./.github/actions/runner-docker - with: - script_name: ${{ inputs.script_name }} - image_name: ${{ inputs.image_name }} - image_version: latest - registry_url: ${{ inputs.registry_url }} - registry_username: ${{ inputs.registry_username }} - registry_password: ${{ inputs.registry_password }} - params: ${{ inputs.version }} ${{ inputs.release }} "${{ inputs.plugins }}" + - name: Build ${{ inputs.package_extension }} files + env: + RPM_GPG_SIGNING_KEY_ID: ${{ inputs.rpm_gpg_signing_key_id }} + RPM_GPG_SIGNING_PASSPHRASE: ${{ inputs.rpm_gpg_signing_passphrase }} + run: | + export VERSION="${{ inputs.version }}" + export RELEASE="${{ inputs.release }}" - - name: Sign - if: ${{ inputs.sign != '' && inputs.package_extension == 'rpm' }} - uses: ./.github/actions/runner-docker - with: - script_name: rpm-signing - image_name: rpm-signing - image_version: ubuntu - registry_url: ${{ inputs.registry_url }} - registry_username: ${{ inputs.registry_username }} - registry_password: ${{ inputs.registry_password }} + if [ "${{ inputs.package_extension }}" = "rpm" ]; then + export DIST=".${{ inputs.distrib }}" + else + export DIST="" + fi - - name: Cache packaged files - uses: actions/cache@v3 - with: - path: ./*.${{ inputs.package_extension }} - key: ${{ inputs.cache_key }} + export RPM_SIGNING_KEY_FILE="$(pwd)/key.gpg" + export RPM_SIGNING_KEY_ID="$RPM_GPG_SIGNING_KEY_ID" + export NFPM_RPM_PASSPHRASE="$RPM_GPG_SIGNING_PASSPHRASE" - - if: ${{ inputs.distrib == 'el8' }} + for FILE in ${{ inputs.nfpm_file_pattern }}; do + DIRNAME=$(dirname $FILE) + BASENAME=$(basename $FILE) + cd $DIRNAME + sed -i "s/@COMMIT_HASH@/${{ inputs.commit_hash }}/g" $BASENAME + nfpm package --config $BASENAME --packager ${{ inputs.package_extension }} + cd - + mv $DIRNAME/*.${{ inputs.package_extension }} ./ + done + shell: bash + + - name: Upload package artifacts uses: actions/upload-artifact@v3 with: name: packages-${{ inputs.distrib }} path: ./*.${{ inputs.package_extension }} retention-days: 1 + + - name: Cache packages + uses: actions/cache/save@v3 + with: + path: ./*.${{ inputs.package_extension }} + key: ${{ inputs.cache_key }} diff --git a/.github/actions/rpm-delivery-legacy/action.yml b/.github/actions/rpm-delivery-legacy/action.yml index dba196186..bf7b7ff41 100644 --- a/.github/actions/rpm-delivery-legacy/action.yml +++ b/.github/actions/rpm-delivery-legacy/action.yml @@ -36,10 +36,11 @@ runs: using: "composite" steps: - name: Use cache RPM files - uses: actions/cache@v3 + uses: actions/cache/restore@v3 with: path: ./*.rpm key: ${{ inputs.cache_key }} + fail-on-cache-miss: true - name: Setup awscli run: | diff --git a/.github/actions/rpm-delivery/action.yml b/.github/actions/rpm-delivery/action.yml index 99b16e438..94622ce2d 100644 --- a/.github/actions/rpm-delivery/action.yml +++ b/.github/actions/rpm-delivery/action.yml @@ -21,10 +21,11 @@ runs: using: "composite" steps: - name: Use cache RPM files - uses: actions/cache@v3 + uses: actions/cache/restore@v3 with: path: ./*.rpm key: ${{ inputs.cache_key }} + fail-on-cache-miss: true - uses: jfrog/setup-jfrog-cli@v3 env: diff --git a/.github/docker/Dockerfile.packaging-plugins-alma8 b/.github/docker/Dockerfile.packaging-plugins-alma8 index 5337a9edb..e1f986e62 100644 --- a/.github/docker/Dockerfile.packaging-plugins-alma8 +++ b/.github/docker/Dockerfile.packaging-plugins-alma8 @@ -10,7 +10,7 @@ baseurl=https://repo.goreleaser.com/yum/ enabled=1 gpgcheck=0' | tee /etc/yum.repos.d/goreleaser.repo -dnf -y install git gettext rpm-build dos2unix python3 epel-release nfpm zstd +dnf -y install git gettext rpm-build dos2unix python3 epel-release nfpm jq zstd dnf -y install perl-App-cpanminus perl-JSON cpanm App::FatPacker cpanm File::Copy::Recursive diff --git a/.github/docker/Dockerfile.packaging-plugins-alma9 b/.github/docker/Dockerfile.packaging-plugins-alma9 index 458541df3..c7d393227 100644 --- a/.github/docker/Dockerfile.packaging-plugins-alma9 +++ b/.github/docker/Dockerfile.packaging-plugins-alma9 @@ -10,7 +10,7 @@ baseurl=https://repo.goreleaser.com/yum/ enabled=1 gpgcheck=0' | tee /etc/yum.repos.d/goreleaser.repo -dnf -y install git gettext rpm-build dos2unix python3 epel-release nfpm zstd +dnf -y install git gettext rpm-build dos2unix python3 epel-release nfpm jq zstd dnf -y install perl-App-cpanminus perl-JSON cpanm App::FatPacker cpanm File::Copy::Recursive diff --git a/.github/docker/Dockerfile.packaging-plugins-centos7 b/.github/docker/Dockerfile.packaging-plugins-centos7 index b43fc6571..78561500f 100644 --- a/.github/docker/Dockerfile.packaging-plugins-centos7 +++ b/.github/docker/Dockerfile.packaging-plugins-centos7 @@ -10,8 +10,8 @@ baseurl=https://repo.goreleaser.com/yum/ enabled=1 gpgcheck=0' | tee /etc/yum.repos.d/goreleaser.repo -yum -y install git gettext rpm-build dos2unix python3 epel-release nfpm zstd -yum -y install perl-App-FatPacker perl-File-Copy-Recursive perl-JSON +yum -y install git gettext rpm-build dos2unix python3 epel-release nfpm +yum -y install perl-App-FatPacker perl-File-Copy-Recursive perl-JSON jq zstd yum clean all EOF diff --git a/.github/packaging/centreon-plugin.yaml.template b/.github/packaging/centreon-plugin.yaml.template new file mode 100644 index 000000000..798020b46 --- /dev/null +++ b/.github/packaging/centreon-plugin.yaml.template @@ -0,0 +1,88 @@ +name: "@PACKAGE_NAME@" +arch: "all" +platform: "linux" +version_schema: "none" +version: "${VERSION}" +release: "${RELEASE}${DIST}" +section: "default" +priority: "optional" +maintainer: "Centreon " +description: | + @SUMMARY@ + Commit: @COMMIT_HASH@ +vendor: "Centreon" +homepage: "https://centreon.com" +license: "Apache-2.0" + +contents: + - src: "../../build/@PLUGIN_NAME@/*" + dst: "/usr/lib/centreon/plugins/" + file_info: + mode: 0775 + +conflicts: + [@CONFLICTS@] +replaces: + [@REPLACES@] +provides: + [@PROVIDES@] + +overrides: + rpm: + depends: [ + perl(Digest::MD5), + perl(Pod::Find), + perl-Net-Curl, + perl(URI::Encode), + perl(LWP::UserAgent), + perl(LWP::Protocol::https), + perl(IO::Socket::SSL), + perl(URI), + perl(HTTP::ProxyPAC), + perl-CryptX, + perl(MIME::Base64), + perl(JSON::XS), + perl-JSON-Path, + perl-KeePass-Reader, + perl(Storable), + perl(POSIX), + perl(Encode), + @RPM_DEPENDENCIES@ + ] + conflicts: + [@RPM_CONFLICTS@] + replaces: + [@RPM_REPLACES@] + provides: + [@RPM_PROVIDES@] + deb: + depends: [ + libpod-parser-perl, + libnet-curl-perl, + liburi-encode-perl, + libwww-perl, + liblwp-protocol-https-perl, + libhttp-cookies-perl, + libio-socket-ssl-perl, + liburi-perl, + libhttp-proxypac-perl, + libcryptx-perl, + libjson-xs-perl, + libjson-path-perl, + libcrypt-argon2-perl, + libkeepass-reader-perl, + libdatetime-perl, + @RPM_DEPENDENCIES@ + ] + conflicts: + [@DEB_CONFLICTS@] + replaces: + [@DEB_REPLACES@] + provides: + [@DEB_PROVIDES@] + +rpm: + compression: zstd + signature: + key_file: ${RPM_SIGNING_KEY_FILE} + key_id: ${RPM_SIGNING_KEY_ID} diff --git a/.github/packaging/debian/control.body.template b/.github/packaging/debian/control.body.template deleted file mode 100644 index 340a0939e..000000000 --- a/.github/packaging/debian/control.body.template +++ /dev/null @@ -1,24 +0,0 @@ - -Package: @NAME@ -Architecture: all -Description: @SUMMARY@@CUSTOM_PKG_DATA@ -Depends: - ${shlibs:Depends}, - ${misc:Depends}, - libpod-parser-perl, - libnet-curl-perl, - liburi-encode-perl, - libwww-perl, - liblwp-protocol-https-perl, - libhttp-cookies-perl, - libio-socket-ssl-perl, - liburi-perl, - libhttp-proxypac-perl, - libcryptx-perl, - libjson-xs-perl, - libjson-path-perl, - libcrypt-argon2-perl, - libkeepass-reader-perl, - libdatetime-perl, - @REQUIRES@ - diff --git a/.github/packaging/debian/control.head.template b/.github/packaging/debian/control.head.template deleted file mode 100644 index 419718341..000000000 --- a/.github/packaging/debian/control.head.template +++ /dev/null @@ -1,12 +0,0 @@ -Source: centreon-plugins -Section: net -Priority: optional -Maintainer: Centreon -Build-Depends: - debhelper-compat (= 12), - libapp-fatpacker-perl, - libfile-copy-recursive-perl, - libjson-perl -Standards-Version: 4.5.0 -Homepage: https://www.centreon.com - diff --git a/.github/packaging/debian/copyright b/.github/packaging/debian/copyright deleted file mode 100644 index 25b92b586..000000000 --- a/.github/packaging/debian/copyright +++ /dev/null @@ -1,29 +0,0 @@ -Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ -Upstream-Name: centreon-collect -Upstream-Contact: Centreon -Source: https://www.centreon.com - -Files: * -Copyright: 2023 Centreon -License: Apache-2.0 - -Files: debian/* -Copyright: 2023 Centreon -License: Apache-2.0 - -License: Apache-2.0 - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - . - https://www.apache.org/licenses/LICENSE-2.0 - . - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - . - On Debian systems, the complete text of the Apache version 2.0 license - can be found in "/usr/share/common-licenses/Apache-2.0". - diff --git a/.github/packaging/debian/plugin.install.template b/.github/packaging/debian/plugin.install.template deleted file mode 100644 index 937497ef7..000000000 --- a/.github/packaging/debian/plugin.install.template +++ /dev/null @@ -1 +0,0 @@ -plugins/@DIR@/@NAME@ usr/lib/centreon/plugins diff --git a/.github/packaging/debian/rules b/.github/packaging/debian/rules deleted file mode 100644 index d1cd2b1a6..000000000 --- a/.github/packaging/debian/rules +++ /dev/null @@ -1,7 +0,0 @@ -#!/usr/bin/make -f - -%: - dh $@ - -override_dh_clean: -override_dh_auto_build: diff --git a/.github/packaging/debian/source/format b/.github/packaging/debian/source/format deleted file mode 100644 index 163aaf8d8..000000000 --- a/.github/packaging/debian/source/format +++ /dev/null @@ -1 +0,0 @@ -3.0 (quilt) diff --git a/.github/packaging/rpm/plugin.spectemplate b/.github/packaging/rpm/plugin.spectemplate deleted file mode 100644 index 3e7bae4ab..000000000 --- a/.github/packaging/rpm/plugin.spectemplate +++ /dev/null @@ -1,48 +0,0 @@ -Name: @NAME@ -Version: @VERSION@ -Release: @RELEASE@%{?dist} -Source0: %{name}-%{version}.tar.gz -Summary: @SUMMARY@ -Group: Development/Libraries -License: Apache-2.0 -URL: https://www.centreon.com/ -BuildArch: noarch -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) -AutoReqProv: no - -AutoReqProv: no -Requires: perl(Digest::MD5) -Requires: perl(Pod::Find) -Requires: perl-Net-Curl -Requires: perl(URI::Encode) -Requires: perl(LWP::UserAgent) -Requires: perl(LWP::Protocol::https) -Requires: perl(IO::Socket::SSL) -Requires: perl(URI) -Requires: perl(HTTP::ProxyPAC) -Requires: perl-CryptX -Requires: perl(MIME::Base64) -Requires: perl(JSON::XS) -Requires: perl-JSON-Path -Requires: perl-KeePass-Reader -Requires: perl(Storable) -Requires: perl(POSIX) -Requires: perl(Encode) -@REQUIRES@ - -@CUSTOM_PKG_DATA@ - -%description -Centreon plugin - -%prep -%setup -q - -%install -rm -rf %{buildroot} -mkdir -p %{buildroot}/usr/lib/centreon/plugins/ -%{__install} -m 775 *.pl %{buildroot}%{_prefix}/lib/centreon/plugins/ - -%files -%defattr(-,root,root,-) -%{_prefix}/lib/centreon/plugins/@PLUGIN_NAME@ diff --git a/.github/scripts/plugin-packaging-deb.sh b/.github/scripts/plugin-packaging-deb.sh deleted file mode 100755 index fdfa97f8c..000000000 --- a/.github/scripts/plugin-packaging-deb.sh +++ /dev/null @@ -1,55 +0,0 @@ -#!/bin/bash - -set -e - -VERSION="$1" -RELEASE="$2" -PLUGINS="$3" - -cd /src - -mkdir -p centreon-plugins/plugins -cp -R .github/packaging/debian centreon-plugins/debian -mv centreon-plugins/debian/control.head.template centreon-plugins/debian/control - -for PLUGIN in $PLUGINS; do - - PACKAGE_PATH=$PLUGIN - - if [[ "$PLUGIN" =~ (.+)"=>"(.+) ]]; then - PACKAGE_PATH=$(echo ${BASH_REMATCH[1]}) - PLUGIN=$(echo ${BASH_REMATCH[2]}) - fi - - PLUGIN_NAME_LOWER=$(echo "$PLUGIN" | tr '[:upper:]' '[:lower:]') - - echo "::group::Preparing $PLUGIN_NAME_LOWER" - - mkdir centreon-plugins/plugins/$PLUGIN - cp -R build/$PLUGIN/*.pl centreon-plugins/plugins/$PLUGIN - - # Process package files - pkg_values=($(cat "packaging/$PACKAGE_PATH/pkg.json" | jq -r '.pkg_name,.plugin_name')) - pkg_summary=$(echo "${pkg_values[0]}") - plugin_name=$(echo "${pkg_values[1]}") - deb_dependencies=$(cat "packaging/$PACKAGE_PATH/deb.json" | jq -r '.dependencies | join(",\\n ")') - deb_custom_pkg_data=$(cat "packaging/$PACKAGE_PATH/deb.json" | jq -r '.custom_pkg_data // "" | if . != "" then ("\\n" + .) else "" end') - - sed -e "s/@NAME@/$PLUGIN_NAME_LOWER/g" \ - -e "s/@SUMMARY@/$pkg_summary/g" \ - -e "s/@REQUIRES@/$deb_dependencies/g" \ - -e "s/@CUSTOM_PKG_DATA@/$deb_custom_pkg_data/g" \ - < centreon-plugins/debian/control.body.template \ - >> centreon-plugins/debian/control - - # .install file - sed -e "s/@DIR@/$PLUGIN/g" -e "s/@NAME@/$plugin_name/g" < centreon-plugins/debian/plugin.install.template >> centreon-plugins/debian/$PLUGIN_NAME_LOWER.install - - echo "::endgroup::" -done - -rm -f centreon-plugins/debian/*.template -tar czf centreon-plugins-${VERSION}-${RELEASE}.tar.gz centreon-plugins -cd centreon-plugins -debmake -f "Centreon" -e "contact@centreon.com" -u "${VERSION}-${RELEASE}" -y -r "bullseye" -debuild-pbuilder --no-lintian diff --git a/.github/scripts/plugin-packaging-rpm.sh b/.github/scripts/plugin-packaging-rpm.sh deleted file mode 100755 index e209d312f..000000000 --- a/.github/scripts/plugin-packaging-rpm.sh +++ /dev/null @@ -1,37 +0,0 @@ -#!/bin/bash - -set -e - -VERSION="$1" -RELEASE="$2" -PLUGINS="$3" - -for PLUGIN_NAME in $PLUGINS; do - echo "::group::Packaging $PLUGIN_NAME" - - PACKAGE_PATH=$PLUGIN_NAME - - if [[ "$PLUGIN_NAME" =~ (.+)"=>"(.+) ]]; then - PACKAGE_PATH=$(echo ${BASH_REMATCH[1]}) - PLUGIN_NAME=$(echo ${BASH_REMATCH[2]}) - fi - - # Process specfile - rm -f plugin.specfile - python3 .github/scripts/create-spec-file.py "$PACKAGE_PATH" "$PLUGIN_NAME" "$VERSION" "$RELEASE" - - rm -rf $HOME/rpmbuild/{BUILD,BUILDROOT,RPMS,SOURCES,SPECS,SRPMS} - mkdir -p $HOME/rpmbuild/{BUILD,BUILDROOT,RPMS,SOURCES,SPECS,SRPMS} - - mv build/$PLUGIN_NAME $PLUGIN_NAME-$VERSION - tar czf $PLUGIN_NAME-$VERSION.tar.gz $PLUGIN_NAME-$VERSION - mv $PLUGIN_NAME-$VERSION.tar.gz $HOME/rpmbuild/SOURCES/ - - cd $PLUGIN_NAME-$VERSION - rpmbuild -ba ../plugin.specfile - find $HOME/rpmbuild/RPMS -name *.rpm -exec mv {} /src/ \; - - cd - - - echo "::endgroup::" -done diff --git a/.github/scripts/rpm-signing.sh b/.github/scripts/rpm-signing.sh deleted file mode 100755 index 07bc88276..000000000 --- a/.github/scripts/rpm-signing.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/bash - -set -ex -export GPG_TTY=$(tty) -rpmsign --addsign /src/*.rpm diff --git a/.github/workflows/connector-vmware.yml b/.github/workflows/connector-vmware.yml index 6afd589d3..52be7e5dd 100644 --- a/.github/workflows/connector-vmware.yml +++ b/.github/workflows/connector-vmware.yml @@ -29,6 +29,7 @@ jobs: package: needs: - get-environment + runs-on: ubuntu-22.04 strategy: matrix: include: @@ -41,18 +42,32 @@ jobs: - package_extension: deb image: packaging-plugins-bullseye distrib: bullseye + + container: + image: ${{ vars.DOCKER_INTERNAL_REGISTRY_URL }}/${{ matrix.image }} + credentials: + username: ${{ secrets.DOCKER_REGISTRY_ID }} + password: ${{ secrets.DOCKER_REGISTRY_PASSWD }} + name: package ${{ matrix.distrib }} - uses: ./.github/workflows/package.yml - with: - nfpm_file_pattern: "connectors/vmware/packaging/centreon-plugin-virtualization-vmware-daemon.yaml" - distrib: ${{ matrix.distrib }} - package_extension: ${{ matrix.package_extension }} - image_name: ${{ matrix.image }} - version: ${{ needs.get-environment.outputs.version }} - release: ${{ needs.get-environment.outputs.release }} - cache_key: ${{ github.sha }}-${{ github.run_id }}-${{ matrix.package_extension }}-${{ matrix.distrib }} - secrets: inherit + steps: + - name: Checkout sources + uses: actions/checkout@v3 + + - name: Package + uses: ./.github/actions/package + with: + nfpm_file_pattern: "connectors/vmware/packaging/centreon-plugin-virtualization-vmware-daemon.yaml" + distrib: ${{ matrix.distrib }} + package_extension: ${{ matrix.package_extension }} + version: ${{ needs.get-environment.outputs.version }} + release: ${{ needs.get-environment.outputs.release }} + commit_hash: ${{ github.sha }} + cache_key: ${{ github.sha }}-${{ github.run_id }}-${{ matrix.package_extension }}-${{ matrix.distrib }} + rpm_gpg_key: ${{ secrets.RPM_GPG_SIGNING_KEY }} + rpm_gpg_signing_key_id: ${{ secrets.RPM_GPG_SIGNING_KEY_ID }} + rpm_gpg_signing_passphrase: ${{ secrets.RPM_GPG_SIGNING_PASSPHRASE }} deliver-rpm: needs: diff --git a/.github/workflows/package.yml b/.github/workflows/package.yml deleted file mode 100644 index aef00f0ce..000000000 --- a/.github/workflows/package.yml +++ /dev/null @@ -1,117 +0,0 @@ -on: - workflow_call: - inputs: - nfpm_file_pattern: - type: string - description: The pattern of the nfpm configuration file(s) - required: true - distrib: - type: string - description: The distrib - required: true - package_extension: - type: string - description: The package extension (deb or rpm) - required: true - image_name: - type: string - description: The image name - required: true - version: - type: string - description: The package version - required: false - release: - type: string - description: The release number - required: false - source_cache_key: - type: string - description: The source files cache key - required: false - source_cache_path: - type: string - description: The source files path - required: false - cache_key: - type: string - description: The package files cache key - required: true - -jobs: - package: - runs-on: ubuntu-22.04 - container: - image: ${{ vars.DOCKER_INTERNAL_REGISTRY_URL }}/${{ inputs.image_name }} - credentials: - username: ${{ secrets.DOCKER_REGISTRY_ID }} - password: ${{ secrets.DOCKER_REGISTRY_PASSWD }} - - steps: - - name: Checkout sources - uses: actions/checkout@v3 - - - name: Import gpg key - env: - RPM_GPG_SIGNING_KEY: ${{ secrets.RPM_GPG_SIGNING_KEY }} - run: echo -n "$RPM_GPG_SIGNING_KEY" > key.gpg - shell: bash - - - if: ${{ inputs.source_cache_key != '' && inputs.source_cache_path != '' }} - name: Import source files - uses: actions/cache/restore@v3 - with: - path: ${{ inputs.source_cache_path }} - key: ${{ inputs.source_cache_key }} - fail-on-cache-miss: true - - - name: Build ${{ inputs.package_extension }} files - env: - RPM_GPG_SIGNING_KEY_ID: ${{ secrets.RPM_GPG_SIGNING_KEY_ID }} - RPM_GPG_SIGNING_PASSPHRASE: ${{ secrets.RPM_GPG_SIGNING_PASSPHRASE }} - run: | - export VERSION="${{ inputs.version }}" - export RELEASE="${{ inputs.release }}" - - if [ "${{ inputs.package_extension }}" = "rpm" ]; then - export DIST=".${{ inputs.distrib }}" - export APACHE_USER="apache" - export APACHE_GROUP="apache" - else - export DIST="" - export APACHE_USER="www-data" - export APACHE_GROUP="www-data" - fi - - export PERL_SITELIB="$(eval "$(perl -V:installsitelib)"; echo $installsitelib)" - export PERL_VENDORLIB="$(eval "$(perl -V:installvendorlib)"; echo $installvendorlib)" - - export RPM_SIGNING_KEY_FILE="$(pwd)/key.gpg" - export RPM_SIGNING_KEY_ID="$RPM_GPG_SIGNING_KEY_ID" - export NFPM_RPM_PASSPHRASE="$RPM_GPG_SIGNING_PASSPHRASE" - - for FILE in ${{ inputs.nfpm_file_pattern }}; do - DIRNAME=$(dirname $FILE) - BASENAME=$(basename $FILE) - cd $DIRNAME - sed -i \ - "s/@COMMIT_HASH@/${{ github.sha }}/g; s#@PERL_SITELIB@#${PERL_SITELIB}#g; s#@PERL_VENDORLIB@#${PERL_VENDORLIB}#g" \ - $BASENAME - nfpm package --config $BASENAME --packager ${{ inputs.package_extension }} - cd - - mv $DIRNAME/*.${{ inputs.package_extension }} ./ - done - shell: bash - - - name: Upload package artifacts - uses: actions/upload-artifact@v3 - with: - name: packages-${{ inputs.distrib }} - path: ./*.${{ inputs.package_extension }} - retention-days: 1 - - - name: Cache packages - uses: actions/cache@v3 - with: - path: ./*.${{ inputs.package_extension }} - key: ${{ inputs.cache_key }} diff --git a/.github/workflows/perl-vmware-vsphere.yml b/.github/workflows/perl-vmware-vsphere.yml index be2485f30..4656e0449 100644 --- a/.github/workflows/perl-vmware-vsphere.yml +++ b/.github/workflows/perl-vmware-vsphere.yml @@ -49,6 +49,7 @@ jobs: package: needs: - get-sources + runs-on: ubuntu-22.04 strategy: matrix: include: @@ -61,18 +62,37 @@ jobs: - package_extension: deb image: packaging-plugins-bullseye distrib: bullseye + + container: + image: ${{ vars.DOCKER_INTERNAL_REGISTRY_URL }}/${{ matrix.image }} + credentials: + username: ${{ secrets.DOCKER_REGISTRY_ID }} + password: ${{ secrets.DOCKER_REGISTRY_PASSWD }} + name: package ${{ matrix.distrib }} - uses: ./.github/workflows/package.yml - with: - nfpm_file_pattern: "dependencies/perl-vmware-vsphere/packaging/perl-vmware-vsphere.yaml" - distrib: ${{ matrix.distrib }} - package_extension: ${{ matrix.package_extension }} - image_name: ${{ matrix.image }} - source_cache_key: ${{ github.sha }}-${{ github.run_id }}-sources-perl-vmware-vsphere - source_cache_path: vmware-vsphere-cli-distrib - cache_key: ${{ github.sha }}-${{ github.run_id }}-${{ matrix.package_extension }}-${{ matrix.distrib }} - secrets: inherit + steps: + - name: Checkout sources + uses: actions/checkout@v3 + + - name: Import source files + uses: actions/cache/restore@v3 + with: + path: vmware-vsphere-cli-distrib + key: ${{ github.sha }}-${{ github.run_id }}-sources-perl-vmware-vsphere + fail-on-cache-miss: true + + - name: Package + uses: ./.github/actions/package + with: + nfpm_file_pattern: "dependencies/perl-vmware-vsphere/packaging/perl-vmware-vsphere.yaml" + distrib: ${{ matrix.distrib }} + package_extension: ${{ matrix.package_extension }} + commit_hash: ${{ github.sha }} + cache_key: ${{ github.sha }}-${{ github.run_id }}-${{ matrix.package_extension }}-${{ matrix.distrib }} + rpm_gpg_key: ${{ secrets.RPM_GPG_SIGNING_KEY }} + rpm_gpg_signing_key_id: ${{ secrets.RPM_GPG_SIGNING_KEY_ID }} + rpm_gpg_signing_passphrase: ${{ secrets.RPM_GPG_SIGNING_PASSPHRASE }} deliver-rpm: needs: diff --git a/.github/workflows/plugin-delivery.yml b/.github/workflows/plugin-delivery.yml index 56958e9bb..81cdb2f6b 100644 --- a/.github/workflows/plugin-delivery.yml +++ b/.github/workflows/plugin-delivery.yml @@ -46,10 +46,11 @@ jobs: - name: Checkout sources uses: actions/checkout@v3 - - uses: actions/cache@v3 + - uses: actions/cache/restore@v3 with: path: ./build/ key: fatpacked-plugins-${{ github.sha }}-${{ github.run_id }} + fail-on-cache-miss: true - name: Deliver sources uses: ./.github/actions/release-sources diff --git a/.github/workflows/plugin-package.yml b/.github/workflows/plugin-package.yml deleted file mode 100644 index 9a75f5fe4..000000000 --- a/.github/workflows/plugin-package.yml +++ /dev/null @@ -1,88 +0,0 @@ -on: - workflow_call: - inputs: - plugins: - required: true - type: string - version: - required: true - type: string - release: - required: true - type: string - secrets: - registry_username: - required: true - registry_password: - required: true - -jobs: - fatpacker: - runs-on: ubuntu-22.04 - steps: - - name: Checkout sources - uses: actions/checkout@v3 - with: - fetch-depth: 1 - - - name: Prepare FatPacker - uses: shogo82148/actions-setup-perl@v1 - with: - perl-version: '5.34' - install-modules-with: cpm - install-modules: App::FatPacker File::Copy::Recursive JSON - - - name: Run FatPacker - run: | - COMMIT=$(git log -1 HEAD --pretty=format:%h) - perl .github/scripts/plugins-source.container.pl "${{ inputs.plugins }}" "${{ inputs.version }} ($COMMIT)" - - - uses: actions/cache@v3 - with: - path: ./build/ - key: fatpacked-plugins-${{ github.sha }}-${{ github.run_id }} - - package: - runs-on: ubuntu-22.04 - needs: [fatpacker] - - strategy: - matrix: - include: - - package_extension: rpm - image: packaging-plugins-centos7 - distrib: el7 - - package_extension: rpm - image: packaging-plugins-alma8 - distrib: el8 - - package_extension: rpm - image: packaging-plugins-alma9 - distrib: el9 - - package_extension: deb - image: packaging-plugins-bullseye - distrib: bullseye - name: "package ${{ matrix.distrib }}" - - steps: - - name: Checkout sources - uses: actions/checkout@v3 - - - uses: actions/cache@v3 - with: - path: ./build/ - key: fatpacked-plugins-${{ github.sha }}-${{ github.run_id }} - - - uses: ./.github/actions/package - with: - package_extension: ${{ matrix.package_extension }} - distrib: ${{ matrix.distrib }} - image_name: ${{ matrix.image }} - script_name: plugin-packaging-${{ matrix.package_extension }} - plugins: ${{ inputs.plugins }} - version: ${{ inputs.version }} - release: ${{ inputs.release }} - cache_key: ${{ github.sha }}-${{ github.run_id }}-${{ matrix.package_extension }}-${{ matrix.distrib }} - sign: true - registry_url: ${{ vars.DOCKER_INTERNAL_REGISTRY_URL }} - registry_username: ${{ secrets.registry_username }} - registry_password: ${{ secrets.registry_password }} diff --git a/.github/workflows/plugins.yml b/.github/workflows/plugins.yml index 6af13d3d1..6745b3758 100644 --- a/.github/workflows/plugins.yml +++ b/.github/workflows/plugins.yml @@ -84,17 +84,144 @@ jobs: fi shell: bash - package: + fatpacker: if: ${{ needs.get-plugins.outputs.plugins != '' }} needs: [get-environment, get-plugins] - uses: ./.github/workflows/plugin-package.yml - with: - plugins: ${{ needs.get-plugins.outputs.plugins }} - version: ${{ needs.get-environment.outputs.version }} - release: ${{ needs.get-environment.outputs.release }} - secrets: - registry_username: ${{ secrets.DOCKER_REGISTRY_ID }} - registry_password: ${{ secrets.DOCKER_REGISTRY_PASSWD }} + runs-on: ubuntu-22.04 + steps: + - name: Checkout sources + uses: actions/checkout@v3 + with: + fetch-depth: 1 + + - name: Prepare FatPacker + uses: shogo82148/actions-setup-perl@v1 + with: + perl-version: '5.34' + install-modules-with: cpm + install-modules: App::FatPacker File::Copy::Recursive JSON + + - name: Run FatPacker + run: | + COMMIT=$(git log -1 HEAD --pretty=format:%h) + perl .github/scripts/plugins-source.container.pl "${{ needs.get-plugins.outputs.plugins }}" "${{ needs.get-environment.outputs.version }} ($COMMIT)" + + - uses: actions/cache/save@v3 + with: + path: ./build/ + key: fatpacked-plugins-${{ github.sha }}-${{ github.run_id }} + + package: + runs-on: ubuntu-22.04 + needs: [get-environment, get-plugins, fatpacker] + + strategy: + fail-fast: false + matrix: + include: + - package_extension: rpm + image: packaging-plugins-centos7 + distrib: el7 + - package_extension: rpm + image: packaging-plugins-alma8 + distrib: el8 + - package_extension: rpm + image: packaging-plugins-alma9 + distrib: el9 + - package_extension: deb + image: packaging-plugins-bullseye + distrib: bullseye + + container: + image: ${{ vars.DOCKER_INTERNAL_REGISTRY_URL }}/${{ matrix.image }} + credentials: + username: ${{ secrets.DOCKER_REGISTRY_ID }} + password: ${{ secrets.DOCKER_REGISTRY_PASSWD }} + + name: "package ${{ matrix.distrib }}" + + steps: + - name: Checkout sources + uses: actions/checkout@v3 + + - uses: actions/cache/restore@v3 + with: + path: ./build/ + key: fatpacked-plugins-${{ github.sha }}-${{ github.run_id }} + fail-on-cache-miss: true + + - run: | + PLUGINS="${{ needs.get-plugins.outputs.plugins }}" + for PLUGIN in $PLUGINS; do + PACKAGE_PATH=$PLUGIN + + if [[ "$PLUGIN" =~ (.+)"=>"(.+) ]]; then + PACKAGE_PATH=$(echo ${BASH_REMATCH[1]}) + PLUGIN=$(echo ${BASH_REMATCH[2]}) + fi + + PLUGIN_NAME_LOWER=$(echo "$PLUGIN" | tr '[:upper:]' '[:lower:]') + + echo "::group::Preparing $PLUGIN_NAME_LOWER" + + # Process package files + pkg_values=($(cat "packaging/$PACKAGE_PATH/pkg.json" | jq -r '.pkg_name,.plugin_name')) + pkg_summary=$(echo "${pkg_values[0]}") + plugin_name=$(echo "${pkg_values[1]}") + conflicts=$(cat "packaging/$PACKAGE_PATH/pkg.json" | jq -r '.conflicts // [] | join(",")') + replaces=$(cat "packaging/$PACKAGE_PATH/pkg.json" | jq -r '.replaces // [] | join(",")') + provides=$(cat "packaging/$PACKAGE_PATH/pkg.json" | jq -r '.provides // [] | join(",")') + deb_dependencies=$(cat "packaging/$PACKAGE_PATH/deb.json" | jq -r '.dependencies // [] | join(",")') + deb_conflicts=$(cat "packaging/$PACKAGE_PATH/deb.json" | jq -r '.conflicts // [] | join(",")') + deb_replaces=$(cat "packaging/$PACKAGE_PATH/deb.json" | jq -r '.replaces // [] | join(",")') + deb_provides=$(cat "packaging/$PACKAGE_PATH/deb.json" | jq -r '.provides // [] | join(",")') + rpm_dependencies=$(cat "packaging/$PACKAGE_PATH/rpm.json" | jq -r '.dependencies // [] | join(",")') + rpm_conflicts=$(cat "packaging/$PACKAGE_PATH/rpm.json" | jq -r '.conflicts // [] | join(",")') + rpm_replaces=$(cat "packaging/$PACKAGE_PATH/rpm.json" | jq -r '.replaces // [] | join(",")') + rpm_provides=$(cat "packaging/$PACKAGE_PATH/rpm.json" | jq -r '.provides // [] | join(",")') + + sed -e "s/@PLUGIN_NAME@/$PLUGIN/g;" \ + -e "s/@SUMMARY@/$pkg_summary/g" \ + -e "s/@CONFLICTS@/$conflicts/g" \ + -e "s/@REPLACES@/$replaces/g" \ + -e "s/@PROVIDES@/$provides/g" \ + -e "s/@DEB_DEPENDENCIES@/$deb_dependencies/g" \ + -e "s/@DEB_CONFLICTS@/$deb_conflicts/g" \ + -e "s/@DEB_REPLACES@/$deb_replaces/g" \ + -e "s/@DEB_PROVIDES@/$deb_provides/g" \ + -e "s/@RPM_DEPENDENCIES@/$rpm_dependencies/g" \ + -e "s/@RPM_CONFLICTS@/$rpm_conflicts/g" \ + -e "s/@RPM_REPLACES@/$rpm_replaces/g" \ + -e "s/@RPM_PROVIDES@/$rpm_provides/g" \ + < .github/packaging/centreon-plugin.yaml.template \ + >> .github/packaging/$PLUGIN.yaml + + if [ "${{ matrix.package_extension }}" = "rpm" ]; then + sed -i "s/@PACKAGE_NAME@/$PLUGIN/g" \ + .github/packaging/$PLUGIN.yaml + else + sed -i "s/@PACKAGE_NAME@/$PLUGIN_NAME_LOWER/g" \ + .github/packaging/$PLUGIN.yaml + fi + + cat .github/packaging/$PLUGIN.yaml + + echo "::endgroup::" + done + shell: bash + + - uses: ./.github/actions/package + with: + nfpm_file_pattern: ".github/packaging/*.yaml" + distrib: ${{ matrix.distrib }} + package_extension: ${{ matrix.package_extension }} + version: ${{ needs.get-environment.outputs.version }} + release: ${{ needs.get-environment.outputs.release }} + commit_hash: ${{ github.sha }} + cache_key: ${{ github.sha }}-${{ github.run_id }}-${{ matrix.package_extension }}-${{ matrix.distrib }} + rpm_gpg_key: ${{ secrets.RPM_GPG_SIGNING_KEY }} + rpm_gpg_signing_key_id: ${{ secrets.RPM_GPG_SIGNING_KEY_ID }} + rpm_gpg_signing_passphrase: ${{ secrets.RPM_GPG_SIGNING_PASSPHRASE }} deliver: needs: [get-environment, package] diff --git a/.github/workflows/tests-functional.yml b/.github/workflows/tests-functional.yml index 406def0b0..f90e0fa60 100644 --- a/.github/workflows/tests-functional.yml +++ b/.github/workflows/tests-functional.yml @@ -1,4 +1,9 @@ name: Functional tests + +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} + cancel-in-progress: true + on: workflow_dispatch: pull_request: @@ -8,16 +13,19 @@ on: jobs: AWS_tests: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 + - name: Use Node.js uses: actions/setup-node@v2 with: node-version: "16.x" + - name: Install Mockoon CLI run: npm install -D @mockoon/cli + - name: Install perl dependencies uses: shogo82148/actions-setup-perl@v1 with: @@ -38,8 +46,10 @@ jobs: Storable URI URI::Encode + - name: Run Mockoon CLI run: npx mockoon-cli start --data tests/resources/mockoon/cloud-aws-cloudtrail.json --port 3000 + - name: Run plugin run: | sudo chmod -R +x tests/functional/ diff --git a/doc/CI.md b/doc/CI.md index 39d63d14c..935df4b9b 100644 --- a/doc/CI.md +++ b/doc/CI.md @@ -90,12 +90,6 @@ The following files are included by default: * centreon/plugins/templates/hardware.pm, * centreon/plugins/values.pm. -Extra entries can be used, for example to make a package obsoleting another one: - -```bash - "custom_pkg_data": "Obsoletes: centreon-plugin-Old-Plugin", -``` - #### Create package dependencies management files In the previously created directory, create two new JSON files named *rpm.json* and *deb.json*. @@ -126,6 +120,14 @@ Example of *deb.json* file: } ``` +Extra entries can be used in *rpm.json* and *deb.json*, for example to make a package obsoleting another one: + +```bash + "conflicts": "centreon-plugin-Old-Plugin", + "replaces": "centreon-plugin-Old-Plugin", + "provides": "centreon-plugin-Old-Plugin", +``` + ### Commit and push changes In the project directory, create a new branch: diff --git a/packaging/centreon-plugin-Applications-Cisco-Ssms-Restapi/deb.json b/packaging/centreon-plugin-Applications-Cisco-Ssms-Restapi/deb.json index ea676ec3b..45b046e52 100644 --- a/packaging/centreon-plugin-Applications-Cisco-Ssms-Restapi/deb.json +++ b/packaging/centreon-plugin-Applications-Cisco-Ssms-Restapi/deb.json @@ -1,5 +1,6 @@ { - "dependencies": [ - ], - "custom_pkg_data": "Provides: centreon-plugin-network-cisco-ssms-restapi\\nReplaces: centreon-plugin-network-cisco-ssms-restapi\\nConflicts: centreon-plugin-network-cisco-ssms-restapi" + "dependencies": [], + "provides": ["centreon-plugin-network-cisco-ssms-restapi"], + "replaces": ["centreon-plugin-network-cisco-ssms-restapi"], + "conflicts": ["centreon-plugin-network-cisco-ssms-restapi"] } diff --git a/packaging/centreon-plugin-Applications-Cisco-Ssms-Restapi/rpm.json b/packaging/centreon-plugin-Applications-Cisco-Ssms-Restapi/rpm.json index a25aaf290..26eca86cf 100644 --- a/packaging/centreon-plugin-Applications-Cisco-Ssms-Restapi/rpm.json +++ b/packaging/centreon-plugin-Applications-Cisco-Ssms-Restapi/rpm.json @@ -1,5 +1,5 @@ { "dependencies": [ ], - "custom_pkg_data": "Obsoletes: centreon-plugin-Network-Cisco-Ssms-Restapi" + "replaces": ["centreon-plugin-Network-Cisco-Ssms-Restapi"] } diff --git a/packaging/centreon-plugin-Applications-Databases-Elasticsearch/rpm.json b/packaging/centreon-plugin-Applications-Databases-Elasticsearch/rpm.json index 081c4492e..de40ab39e 100644 --- a/packaging/centreon-plugin-Applications-Databases-Elasticsearch/rpm.json +++ b/packaging/centreon-plugin-Applications-Databases-Elasticsearch/rpm.json @@ -1,5 +1,4 @@ { - "dependencies": [ - ], - "custom_pkg_data": "Obsoletes: centreon-plugin-Applications-Elasticsearch" + "dependencies": [], + "replaces": ["centreon-plugin-Applications-Elasticsearch"] } diff --git a/packaging/centreon-plugin-Applications-Monitoring-Centreon-Central/rpm.json b/packaging/centreon-plugin-Applications-Monitoring-Centreon-Central/rpm.json index 29a41817c..5b96ec51d 100644 --- a/packaging/centreon-plugin-Applications-Monitoring-Centreon-Central/rpm.json +++ b/packaging/centreon-plugin-Applications-Monitoring-Centreon-Central/rpm.json @@ -6,5 +6,5 @@ "perl(DBI)", "perl(DBD::mysql)" ], - "custom_pkg_data": "Obsoletes: centreon-plugin-meta" + "replaces": ["centreon-plugin-meta"] } diff --git a/packaging/centreon-plugin-Applications-Protocol-Snmp/rpm.json b/packaging/centreon-plugin-Applications-Protocol-Snmp/rpm.json index 375ecc290..d5d2dad22 100644 --- a/packaging/centreon-plugin-Applications-Protocol-Snmp/rpm.json +++ b/packaging/centreon-plugin-Applications-Protocol-Snmp/rpm.json @@ -4,5 +4,5 @@ "perl(Digest::MD5)", "perl(NetAddr::IP)" ], - "custom_pkg_data": "Obsoletes: centreon-plugin-Generic-Snmp" + "replaces": ["centreon-plugin-Generic-Snmp"] } diff --git a/packaging/centreon-plugin-Applications-Video-Openheadend-Snmp/rpm.json b/packaging/centreon-plugin-Applications-Video-Openheadend-Snmp/rpm.json index c9ec37470..c43a75efc 100644 --- a/packaging/centreon-plugin-Applications-Video-Openheadend-Snmp/rpm.json +++ b/packaging/centreon-plugin-Applications-Video-Openheadend-Snmp/rpm.json @@ -2,5 +2,5 @@ "dependencies": [ "perl(SNMP)" ], - "custom_pkg_data": "Obsoletes: centreon-plugin-App-Video-Openheadend-Snmp" + "replaces": ["centreon-plugin-App-Video-Openheadend-Snmp"] } diff --git a/packaging/centreon-plugin-Cloud-Aws-Cloudwatch-Api/rpm.json b/packaging/centreon-plugin-Cloud-Aws-Cloudwatch-Api/rpm.json index 8567b0aed..5c2153a42 100644 --- a/packaging/centreon-plugin-Cloud-Aws-Cloudwatch-Api/rpm.json +++ b/packaging/centreon-plugin-Cloud-Aws-Cloudwatch-Api/rpm.json @@ -2,5 +2,5 @@ "dependencies": [ "perl(DateTime)" ], - "custom_pkg_data": "Obsoletes: centreon-plugin-Cloud-Aws-Api" + "replaces": ["centreon-plugin-Cloud-Aws-Api"] } diff --git a/packaging/centreon-plugin-Cloud-Aws-Cloudwatchlogs-Api/rpm.json b/packaging/centreon-plugin-Cloud-Aws-Cloudwatchlogs-Api/rpm.json index 8567b0aed..5c2153a42 100644 --- a/packaging/centreon-plugin-Cloud-Aws-Cloudwatchlogs-Api/rpm.json +++ b/packaging/centreon-plugin-Cloud-Aws-Cloudwatchlogs-Api/rpm.json @@ -2,5 +2,5 @@ "dependencies": [ "perl(DateTime)" ], - "custom_pkg_data": "Obsoletes: centreon-plugin-Cloud-Aws-Api" + "replaces": ["centreon-plugin-Cloud-Aws-Api"] } diff --git a/packaging/centreon-plugin-Cloud-Azure-Compute-VirtualMachine-Api/rpm.json b/packaging/centreon-plugin-Cloud-Azure-Compute-VirtualMachine-Api/rpm.json index c0efb95f2..3ce160382 100644 --- a/packaging/centreon-plugin-Cloud-Azure-Compute-VirtualMachine-Api/rpm.json +++ b/packaging/centreon-plugin-Cloud-Azure-Compute-VirtualMachine-Api/rpm.json @@ -3,5 +3,5 @@ "perl(DateTime)", "perl(Digest::SHA)" ], - "custom_pkg_data": "Obsoletes: centreon-plugin-Cloud-Azure-Compute-Api" + "replaces": ["centreon-plugin-Cloud-Azure-Compute-Api"] } diff --git a/packaging/centreon-plugin-Cloud-Azure-Management-Monitor-Api/rpm.json b/packaging/centreon-plugin-Cloud-Azure-Management-Monitor-Api/rpm.json index a0823edd7..5bfcbcc4e 100644 --- a/packaging/centreon-plugin-Cloud-Azure-Management-Monitor-Api/rpm.json +++ b/packaging/centreon-plugin-Cloud-Azure-Management-Monitor-Api/rpm.json @@ -3,5 +3,5 @@ "perl(DateTime)", "perl(Digest::SHA)" ], - "custom_pkg_data": "Obsoletes: centreon-plugin-Cloud-Azure-Monitor-Api" + "replaces": ["centreon-plugin-Cloud-Azure-Monitor-Api"] } diff --git a/packaging/centreon-plugin-Cloud-Azure-Management-Resource-Api/rpm.json b/packaging/centreon-plugin-Cloud-Azure-Management-Resource-Api/rpm.json index 44d3e16bc..550ef83b6 100644 --- a/packaging/centreon-plugin-Cloud-Azure-Management-Resource-Api/rpm.json +++ b/packaging/centreon-plugin-Cloud-Azure-Management-Resource-Api/rpm.json @@ -5,5 +5,5 @@ "perl(DateTime-Format-Duration-ISO8601)", "perl(DateTime::Duration)" ], - "custom_pkg_data": "Obsoletes: centreon-plugin-Cloud-Azure-Resources-Api" + "replaces": ["centreon-plugin-Cloud-Azure-Resources-Api"] } diff --git a/packaging/centreon-plugin-Cloud-Azure-Network-LoadBalancer-Api/rpm.json b/packaging/centreon-plugin-Cloud-Azure-Network-LoadBalancer-Api/rpm.json index c081bd37b..aadee4b28 100644 --- a/packaging/centreon-plugin-Cloud-Azure-Network-LoadBalancer-Api/rpm.json +++ b/packaging/centreon-plugin-Cloud-Azure-Network-LoadBalancer-Api/rpm.json @@ -3,5 +3,5 @@ "perl(DateTime)", "perl(Digest::SHA)" ], - "custom_pkg_data": "Obsoletes: centreon-plugin-Cloud-Azure-Nework-LoadBalancer-Api" + "replaces": ["centreon-plugin-Cloud-Azure-Nework-LoadBalancer-Api"] } diff --git a/packaging/centreon-plugin-Cloud-Azure-Network-NetworkInterface-Api/rpm.json b/packaging/centreon-plugin-Cloud-Azure-Network-NetworkInterface-Api/rpm.json index 0bea580f7..4751b72df 100644 --- a/packaging/centreon-plugin-Cloud-Azure-Network-NetworkInterface-Api/rpm.json +++ b/packaging/centreon-plugin-Cloud-Azure-Network-NetworkInterface-Api/rpm.json @@ -3,5 +3,5 @@ "perl(DateTime)", "perl(Digest::SHA)" ], - "custom_pkg_data": "Obsoletes: centreon-plugin-Cloud-Azure-Network-Api" + "replaces": ["centreon-plugin-Cloud-Azure-Network-Api"] } diff --git a/packaging/centreon-plugin-Cloud-Azure-Storage-StorageAccount-Api/rpm.json b/packaging/centreon-plugin-Cloud-Azure-Storage-StorageAccount-Api/rpm.json index 93cea7bce..09b1ce3d9 100644 --- a/packaging/centreon-plugin-Cloud-Azure-Storage-StorageAccount-Api/rpm.json +++ b/packaging/centreon-plugin-Cloud-Azure-Storage-StorageAccount-Api/rpm.json @@ -3,5 +3,5 @@ "perl(DateTime)", "perl(Digest::SHA)" ], - "custom_pkg_data": "Obsoletes: centreon-plugin-Cloud-Azure-Storage-Api" + "replaces": ["centreon-plugin-Cloud-Azure-Storage-Api"] } diff --git a/packaging/centreon-plugin-Hardware-Devices-Masterclock-Ntp100gps-Snmp/deb.json b/packaging/centreon-plugin-Hardware-Devices-Masterclock-Ntp100gps-Snmp/deb.json index 663aaaceb..466d3067f 100644 --- a/packaging/centreon-plugin-Hardware-Devices-Masterclock-Ntp100gps-Snmp/deb.json +++ b/packaging/centreon-plugin-Hardware-Devices-Masterclock-Ntp100gps-Snmp/deb.json @@ -1,5 +1,8 @@ { "dependencies": [ "libsnmp-perl" - ] + ], + "replaces": ["centreon-plugin-hardware-devices-masterclock-ntpserver-snmp"], + "conflicts": ["centreon-plugin-hardware-devices-masterclock-ntpserver-snmp"], + "provides": ["centreon-plugin-hardware-devices-masterclock-ntpserver-snmp"] } \ No newline at end of file diff --git a/packaging/centreon-plugin-Hardware-Devices-Masterclock-Ntp100gps-Snmp/pkg.json b/packaging/centreon-plugin-Hardware-Devices-Masterclock-Ntp100gps-Snmp/pkg.json index 91188f550..fe31a073a 100644 --- a/packaging/centreon-plugin-Hardware-Devices-Masterclock-Ntp100gps-Snmp/pkg.json +++ b/packaging/centreon-plugin-Hardware-Devices-Masterclock-Ntp100gps-Snmp/pkg.json @@ -7,6 +7,5 @@ "centreon/plugins/snmp.pm", "snmp_standard/mode/uptime.pm", "hardware/devices/masterclock/ntp100gps/snmp/" - ], - "custom_pkg_data": "Obsoletes: centreon-plugin-Hardware-Devices-Masterclock-Ntpserver-Snmp" + ] } diff --git a/packaging/centreon-plugin-Hardware-Devices-Masterclock-Ntp100gps-Snmp/rpm.json b/packaging/centreon-plugin-Hardware-Devices-Masterclock-Ntp100gps-Snmp/rpm.json index 418a331fc..a8251d1d4 100644 --- a/packaging/centreon-plugin-Hardware-Devices-Masterclock-Ntp100gps-Snmp/rpm.json +++ b/packaging/centreon-plugin-Hardware-Devices-Masterclock-Ntp100gps-Snmp/rpm.json @@ -1,5 +1,8 @@ { "dependencies": [ "perl(SNMP)" - ] + ], + "replaces": ["centreon-plugin-Hardware-Devices-Masterclock-Ntpserver-Snmp"], + "conflicts": ["centreon-plugin-Hardware-Devices-Masterclock-Ntpserver-Snmp"], + "provides": ["centreon-plugin-Hardware-Devices-Masterclock-Ntpserver-Snmp"] } \ No newline at end of file diff --git a/packaging/centreon-plugin-Hardware-Servers-Hp-Ilo-Xmlapi/rpm.json b/packaging/centreon-plugin-Hardware-Servers-Hp-Ilo-Xmlapi/rpm.json index c48ecbe12..1e0d1bc44 100644 --- a/packaging/centreon-plugin-Hardware-Servers-Hp-Ilo-Xmlapi/rpm.json +++ b/packaging/centreon-plugin-Hardware-Servers-Hp-Ilo-Xmlapi/rpm.json @@ -2,5 +2,5 @@ "dependencies": [ "perl(XML::Simple)" ], - "custom_pkg_data": "Obsoletes: centreon-plugin-Hardware-Servers-Hp-Ilo-Xmlapii" + "replaces": ["centreon-plugin-Hardware-Servers-Hp-Ilo-Xmlapii"] } diff --git a/packaging/centreon-plugin-Hardware-Servers-Ibm-Imm-Snmp/pkg.json b/packaging/centreon-plugin-Hardware-Servers-Ibm-Imm-Snmp/pkg.json index ff1fbfbce..1eea5349f 100644 --- a/packaging/centreon-plugin-Hardware-Servers-Ibm-Imm-Snmp/pkg.json +++ b/packaging/centreon-plugin-Hardware-Servers-Ibm-Imm-Snmp/pkg.json @@ -8,5 +8,5 @@ "hardware/server/ibm/mgmt_cards/imm/snmp/", "snmp_standard/mode/ntp.pm" ], - "custom_pkg_data": "Obsoletes: centreon-plugin-Hardware-servers-ibm-imm-snmp" + "replaces": ["centreon-plugin-Hardware-servers-ibm-imm-snmp"] } diff --git a/packaging/centreon-plugin-Hardware-Storage-Oracle-Zs-Snmp/rpm.json b/packaging/centreon-plugin-Hardware-Storage-Oracle-Zs-Snmp/rpm.json index 6521e014c..d8fe0c663 100644 --- a/packaging/centreon-plugin-Hardware-Storage-Oracle-Zs-Snmp/rpm.json +++ b/packaging/centreon-plugin-Hardware-Storage-Oracle-Zs-Snmp/rpm.json @@ -2,5 +2,5 @@ "dependencies": [ "perl(SNMP)" ], - "custom_pkg_data": "Obsoletes: centreon-plugin-Hardware-Storage-Oracle-Zfs-Snmp" + "replaces": ["centreon-plugin-Hardware-Storage-Oracle-Zfs-Snmp"] } diff --git a/packaging/centreon-plugin-Network-Cisco-Meraki-Restapi/rpm.json b/packaging/centreon-plugin-Network-Cisco-Meraki-Restapi/rpm.json index 6faebba48..a26b8b792 100644 --- a/packaging/centreon-plugin-Network-Cisco-Meraki-Restapi/rpm.json +++ b/packaging/centreon-plugin-Network-Cisco-Meraki-Restapi/rpm.json @@ -1,5 +1,5 @@ { "dependencies": [ ], - "custom_pkg_data": "Obsoletes: centreon-plugin-Network-Cisco-Meraki-Restap" + "replaces": ["centreon-plugin-Network-Cisco-Meraki-Restap"] } diff --git a/packaging/centreon-plugin-Network-Fritzbox-Upnp/rpm.json b/packaging/centreon-plugin-Network-Fritzbox-Upnp/rpm.json index 966c72f22..4b8358cc9 100644 --- a/packaging/centreon-plugin-Network-Fritzbox-Upnp/rpm.json +++ b/packaging/centreon-plugin-Network-Fritzbox-Upnp/rpm.json @@ -4,5 +4,5 @@ "perl(DateTime)", "perl(Digest::SHA)" ], - "custom_pkg_data": "Obsoletes: centreon-plugin-Network-Fritzbox" + "replaces": ["centreon-plugin-Network-Fritzbox"] } diff --git a/packaging/centreon-plugin-Operatingsystems-Hpux-Snmp/rpm.json b/packaging/centreon-plugin-Operatingsystems-Hpux-Snmp/rpm.json index c7f3ac25e..321f881cb 100644 --- a/packaging/centreon-plugin-Operatingsystems-Hpux-Snmp/rpm.json +++ b/packaging/centreon-plugin-Operatingsystems-Hpux-Snmp/rpm.json @@ -3,5 +3,5 @@ "perl(SNMP)", "perl(DateTime)" ], - "custom_pkg_data": "Obsoletes: centreon-plugin-Operatingsystems-Hpuux-Snmp" + "replaces": ["centreon-plugin-Operatingsystems-Hpuux-Snmp"] } From d7dd0194405abd006ec91816fed6d81221cb4e4c Mon Sep 17 00:00:00 2001 From: omercier <32134301+omercier@users.noreply.github.com> Date: Wed, 28 Jun 2023 10:37:32 +0200 Subject: [PATCH 19/39] Mon 16172 new updates (#4514) * fix: check all interface * fix: "to filter interface " * fix: --oid-display * enh: "Set critical threshold for status" * enh: "Set warning threshold for status" * fix: Threshold warning|critical * enh: rewrite all "for status" * enh: attempt to clarify --range-perfdata --- doc/en/developer/guide.md | 4 +- doc/fr/developer/guide.rst | 4 +- .../clamav/local/mode/updatestatus.pm | 12 ++-- .../kaspersky/snmp/mode/deployment.pm | 8 +-- .../antivirus/kaspersky/snmp/mode/events.pm | 8 +-- .../antivirus/kaspersky/snmp/mode/fullscan.pm | 8 +-- .../kaspersky/snmp/mode/logicalnetwork.pm | 8 +-- .../kaspersky/snmp/mode/protection.pm | 8 +-- .../antivirus/kaspersky/snmp/mode/updates.pm | 8 +-- .../mcafee/webgateway/snmp/mode/clients.pm | 4 +- .../webgateway/snmp/mode/connections.pm | 4 +- .../mcafee/webgateway/snmp/mode/detections.pm | 4 +- .../webgateway/snmp/mode/ftpstatistics.pm | 4 +- .../webgateway/snmp/mode/httpsstatistics.pm | 4 +- .../webgateway/snmp/mode/httpstatistics.pm | 4 +- .../mcafee/webgateway/snmp/mode/versions.pm | 4 +- .../apache/serverstatus/mode/responsetime.pm | 10 +-- .../automation/ansible/tower/mode/hosts.pm | 6 +- .../ansible/tower/mode/jobtemplates.pm | 6 +- .../ansible/tower/mode/schedules.pm | 6 +- .../arcserve/udp/mssql/mode/jobstatus.pm | 6 +- .../backup/backupexec/local/mode/alerts.pm | 4 +- .../backup/backupexec/local/mode/disks.pm | 4 +- src/apps/backup/backupexec/local/mode/jobs.pm | 4 +- .../commserve/restapi/mode/alerts.pm | 4 +- .../commvault/commserve/restapi/mode/jobs.pm | 4 +- .../commserve/restapi/mode/mediaagents.pm | 6 +- .../commserve/restapi/mode/storagepools.pm | 6 +- .../netapp/snapcenter/restapi/mode/jobs.pm | 6 +- .../netbackup/local/mode/dedupstatus.pm | 4 +- .../netbackup/local/mode/drivecleaning.pm | 4 +- .../netbackup/local/mode/drivestatus.pm | 4 +- .../backup/netbackup/local/mode/jobstatus.pm | 6 +- .../backup/netbackup/local/mode/tapeusage.pm | 4 +- .../quadstor/local/mode/vtldiskusage.pm | 8 +-- .../quadstor/local/mode/vtljobstatus.pm | 4 +- .../quadstor/local/mode/vtltapeusage.pm | 4 +- .../backup/rapidrecovery/snmp/mode/agent.pm | 6 +- .../rapidrecovery/snmp/mode/repository.pm | 6 +- .../backup/rubrik/restapi/mode/cluster.pm | 6 +- src/apps/backup/rubrik/restapi/mode/disks.pm | 6 +- src/apps/backup/rubrik/restapi/mode/nodes.pm | 6 +- src/apps/backup/tsm/local/mode/actlog.pm | 4 +- src/apps/backup/tsm/local/mode/sessions.pm | 4 +- src/apps/backup/veeam/local/mode/jobstatus.pm | 6 +- src/apps/backup/veeam/local/mode/licenses.pm | 4 +- .../backup/veeam/local/mode/repositories.pm | 4 +- src/apps/backup/veeam/local/mode/tapejobs.pm | 6 +- src/apps/backup/veeam/local/mode/vsbjobs.pm | 6 +- src/apps/bind9/web/mode/memoryusage.pm | 4 +- .../biztalk/sql/mode/rlocationdisabled.pm | 4 +- src/apps/centreon/local/mode/brokerstats.pm | 4 +- .../local/mode/centreonpluginsversion.pm | 4 +- src/apps/centreon/map/jmx/mode/brokerstats.pm | 8 +-- src/apps/centreon/map/jmx/mode/enginestats.pm | 4 +- src/apps/centreon/map/jmx/mode/events.pm | 4 +- src/apps/centreon/map/jmx/mode/openviews.pm | 4 +- src/apps/centreon/map/jmx/mode/sessions.pm | 4 +- src/apps/centreon/map/jmx/mode/syncstats.pm | 8 +-- .../centreon/sql/mode/countnotifications.pm | 4 +- src/apps/centreon/sql/mode/countproblems.pm | 4 +- src/apps/centreon/sql/mode/dsmqueue.pm | 4 +- src/apps/centreon/sql/mode/partitioning.pm | 4 +- src/apps/centreon/sql/mode/pollerdelay.pm | 4 +- src/apps/ceph/restapi/mode/health.pm | 4 +- src/apps/cisco/cms/restapi/mode/alarms.pm | 4 +- src/apps/cisco/cms/restapi/mode/calls.pm | 4 +- .../cisco/cms/restapi/mode/databasestatus.pm | 4 +- src/apps/cisco/cms/restapi/mode/licenses.pm | 4 +- .../cisco/cms/restapi/mode/systemstatus.pm | 8 +-- src/apps/cisco/ise/restapi/mode/session.pm | 4 +- src/apps/cisco/ssms/restapi/mode/licenses.pm | 6 +- src/apps/citrix/local/mode/folder.pm | 4 +- src/apps/citrix/local/mode/session.pm | 4 +- src/apps/citrix/local/mode/zone.pm | 4 +- src/apps/controlm/restapi/mode/jobs.pm | 4 +- src/apps/emc/ppma/restapi/mode/hosts.pm | 6 +- src/apps/github/mode/issues.pm | 4 +- src/apps/github/mode/pullrequests.pm | 4 +- src/apps/grafana/api/mode/health.pm | 4 +- src/apps/haproxy/snmp/mode/backendusage.pm | 4 +- src/apps/haproxy/snmp/mode/frontendusage.pm | 4 +- src/apps/hddtemp/mode/temperatures.pm | 6 +- .../ibm/tsamp/local/mode/resourcegroups.pm | 6 +- src/apps/inin/ig/snmp/mode/spanusage.pm | 8 +-- src/apps/inin/ig/snmp/mode/stats.pm | 4 +- .../mediaserver/snmp/mode/audioengineusage.pm | 4 +- .../inin/mediaserver/snmp/mode/cmdsrvusage.pm | 8 +-- .../inin/mediaserver/snmp/mode/diskusage.pm | 4 +- .../inin/mediaserver/snmp/mode/memoryusage.pm | 4 +- src/apps/ipfabric/mode/pathverification.pm | 4 +- src/apps/java/awa/jmx/mode/agent.pm | 4 +- src/apps/java/awa/jmx/mode/queue.pm | 4 +- src/apps/java/awa/jmx/mode/server.pm | 4 +- src/apps/java/hibernate/jmx/mode/stats.pm | 4 +- .../java/jboss/jmx/mode/datasourceusage.pm | 4 +- src/apps/java/jvm/actuator/mode/cpuload.pm | 8 +-- src/apps/java/jvm/actuator/mode/memory.pm | 8 +-- .../java/jvm/actuator/mode/memorydetailed.pm | 20 +++--- src/apps/java/jvm/actuator/mode/threads.pm | 4 +- src/apps/java/kafka/jmx/mode/globalstats.pm | 4 +- .../java/peoplesoft/jmx/mode/queuelength.pm | 4 +- src/apps/java/peoplesoft/jmx/mode/sessions.pm | 4 +- src/apps/java/solr/jmx/mode/cacheusage.pm | 4 +- .../java/solr/jmx/mode/requesthandlerusage.pm | 4 +- .../java/weblogic/jmx/mode/workmanager.pm | 4 +- src/apps/java/zookeeper/jmx/mode/stats.pm | 4 +- src/apps/jmeter/mode/scenario.pm | 4 +- src/apps/keepalived/snmp/mode/vrrpstatus.pm | 4 +- src/apps/lotus/snmp/mode/mailstate.pm | 8 +-- src/apps/lotus/snmp/mode/mailtime.pm | 4 +- .../lotus/snmp/mode/serveravailability.pm | 4 +- .../lotus/snmp/mode/servertransactions.pm | 4 +- src/apps/lotus/snmp/mode/usersessions.pm | 4 +- .../activedirectory/local/mode/dfsrbacklog.pm | 4 +- src/apps/microsoft/dhcp/snmp/mode/subnets.pm | 6 +- .../2012/local/mode/nodeintegrationservice.pm | 8 +-- .../hyperv/2012/local/mode/nodereplication.pm | 4 +- .../hyperv/2012/local/mode/nodesnapshot.pm | 4 +- .../hyperv/2012/local/mode/nodevmstatus.pm | 4 +- .../local/mode/scvmmintegrationservice.pm | 4 +- .../hyperv/2012/local/mode/scvmmsnapshot.pm | 4 +- .../hyperv/2012/local/mode/scvmmvmstatus.pm | 4 +- .../iis/local/mode/applicationpoolstate.pm | 6 +- .../iis/restapi/mode/applicationpools.pm | 6 +- .../microsoft/iis/restapi/mode/websites.pm | 6 +- .../iis/wsman/mode/applicationpools.pm | 6 +- .../mscs/local/mode/networkstatus.pm | 6 +- .../microsoft/mscs/local/mode/nodestatus.pm | 6 +- .../mscs/local/mode/resourcegroupstatus.pm | 6 +- .../mscs/local/mode/resourcestatus.pm | 6 +- .../dynatrace/restapi/mode/events.pm | 6 +- .../dynatrace/restapi/mode/problems.pm | 6 +- .../iplabel/datametrie/restapi/mode/kpi.pm | 6 +- .../monitoring/mip/restapi/mode/scenarios.pm | 6 +- .../monitoring/nodeexporter/linux/mode/cpu.pm | 4 +- .../nodeexporter/linux/mode/load.pm | 4 +- .../nodeexporter/linux/mode/memory.pm | 4 +- .../nodeexporter/linux/mode/storage.pm | 4 +- .../nodeexporter/windows/mode/cpu.pm | 4 +- .../nodeexporter/windows/mode/services.pm | 4 +- .../nodeexporter/windows/mode/storage.pm | 4 +- .../monitoring/ntopng/restapi/mode/alerts.pm | 4 +- .../monitoring/scom/restapi/mode/alerts.pm | 4 +- src/apps/mq/activemq/jmx/mode/brokers.pm | 4 +- src/apps/mq/ibmmq/mqi/mode/channels.pm | 6 +- src/apps/mq/ibmmq/mqi/mode/queuemanager.pm | 6 +- .../mq/ibmmq/restapi/mode/queuemanagers.pm | 6 +- .../mq/rabbitmq/restapi/mode/nodeusage.pm | 4 +- .../mq/rabbitmq/restapi/mode/queueusage.pm | 4 +- .../mq/rabbitmq/restapi/mode/vhostusage.pm | 4 +- src/apps/mq/vernemq/restapi/mode/clusters.pm | 6 +- src/apps/mq/vernemq/restapi/mode/listeners.pm | 6 +- .../mulesoft/restapi/mode/applications.pm | 4 +- src/apps/mulesoft/restapi/mode/clusters.pm | 4 +- src/apps/mulesoft/restapi/mode/servers.pm | 4 +- src/apps/nsclient/restapi/mode/query.pm | 6 +- src/apps/oracle/gg/local/mode/processes.pm | 6 +- src/apps/oracle/ovm/api/mode/manager.pm | 6 +- src/apps/oracle/ovm/api/mode/servers.pm | 6 +- src/apps/oracle/ovm/api/mode/vm.pm | 6 +- src/apps/pacemaker/local/mode/clustat.pm | 4 +- src/apps/pacemaker/local/mode/crm.pm | 16 ++--- src/apps/pfsense/fauxapi/mode/gateways.pm | 6 +- src/apps/pfsense/snmp/mode/packetstats.pm | 4 +- src/apps/pfsense/snmp/mode/pfinterfaces.pm | 4 +- src/apps/pfsense/snmp/mode/runtime.pm | 4 +- src/apps/php/apc/web/mode/filecache.pm | 4 +- src/apps/php/apc/web/mode/memory.pm | 4 +- .../pineapp/securemail/snmp/mode/system.pm | 12 ++-- src/apps/protocols/cifs/mode/connection.pm | 8 +-- src/apps/protocols/cifs/mode/scenario.pm | 8 +-- src/apps/protocols/dns/mode/request.pm | 4 +- src/apps/protocols/ftp/mode/commands.pm | 4 +- src/apps/protocols/ftp/mode/date.pm | 4 +- src/apps/protocols/ftp/mode/filescount.pm | 4 +- src/apps/protocols/ftp/mode/login.pm | 4 +- .../protocols/http/mode/expectedcontent.pm | 20 +++--- src/apps/protocols/http/mode/jsoncontent.pm | 18 ++--- src/apps/protocols/http/mode/response.pm | 6 +- src/apps/protocols/http/mode/soapcontent.pm | 16 ++--- src/apps/protocols/imap/mode/login.pm | 4 +- src/apps/protocols/imap/mode/searchmessage.pm | 4 +- src/apps/protocols/jmx/mode/numericvalue.pm | 4 +- src/apps/protocols/ldap/mode/login.pm | 4 +- src/apps/protocols/ldap/mode/search.pm | 8 +-- src/apps/protocols/nrpe/custom/nsclient.pm | 6 +- src/apps/protocols/ntp/mode/offset.pm | 4 +- src/apps/protocols/ntp/mode/responsetime.pm | 4 +- src/apps/protocols/ospf/snmp/mode/neighbor.pm | 8 +-- src/apps/protocols/radius/mode/login.pm | 8 +-- src/apps/protocols/sftp/mode/connection.pm | 8 +-- src/apps/protocols/sftp/mode/scenario.pm | 8 +-- src/apps/protocols/smtp/mode/login.pm | 4 +- src/apps/protocols/smtp/mode/message.pm | 4 +- src/apps/protocols/ssh/mode/login.pm | 8 +-- .../protocols/tcp/mode/connectionstatus.pm | 10 +-- src/apps/protocols/telnet/mode/scenario.pm | 4 +- src/apps/protocols/tftp/mode/commands.pm | 8 +-- src/apps/protocols/whois/mode/domain.pm | 6 +- src/apps/protocols/x509/mode/certificate.pm | 4 +- src/apps/proxmox/ve/restapi/mode/nodeusage.pm | 4 +- .../proxmox/ve/restapi/mode/storageusage.pm | 4 +- src/apps/proxmox/ve/restapi/mode/vmusage.pm | 8 +-- src/apps/pvx/restapi/mode/httphits.pm | 4 +- .../pvx/restapi/mode/networkconnection.pm | 4 +- src/apps/pvx/restapi/mode/networktraffic.pm | 4 +- .../pvx/restapi/mode/networkuserexperience.pm | 4 +- .../redis/rlec/restapi/mode/clusterstats.pm | 4 +- .../redis/rlec/restapi/mode/databasesstats.pm | 8 +-- .../redis/rlec/restapi/mode/nodesstats.pm | 8 +-- .../redis/rlec/restapi/mode/shardsstats.pm | 8 +-- src/apps/redis/sentinel/mode/redisclusters.pm | 6 +- .../redis/sentinel/mode/sentinelclusters.pm | 8 +-- .../rudder/restapi/mode/globalcompliance.pm | 4 +- .../rudder/restapi/mode/nodecompliance.pm | 4 +- .../restapi/mode/nodesoverallcompliance.pm | 4 +- .../rudder/restapi/mode/rulecompliance.pm | 4 +- src/apps/rudder/restapi/mode/statistics.pm | 4 +- src/apps/sahipro/restapi/mode/scenario.pm | 4 +- src/apps/selenium/mode/scenario.pm | 4 +- src/apps/selenium/mode/scenariokatalon.pm | 16 ++--- src/apps/slack/restapi/mode/countchannels.pm | 8 +-- src/apps/slack/restapi/mode/countmembers.pm | 4 +- src/apps/smartermail/restapi/mode/licenses.pm | 6 +- src/apps/smartermail/restapi/mode/services.pm | 6 +- src/apps/squid/snmp/mode/cacheusage.pm | 4 +- src/apps/squid/snmp/mode/protocolstats.pm | 4 +- .../mistral/vs9/restapi/mode/clusters.pm | 12 ++-- .../mistral/vs9/restapi/mode/devices.pm | 48 ++++++------- .../vs9/restapi/mode/mmccertificates.pm | 6 +- .../mistral/vs9/restapi/mode/mmccluster.pm | 12 ++-- src/apps/tomcat/jmx/mode/connectorusage.pm | 4 +- src/apps/tomcat/jmx/mode/datasourceusage.pm | 4 +- src/apps/tomcat/jmx/mode/webappssessions.pm | 4 +- src/apps/tomcat/web/mode/applications.pm | 10 +-- .../storemate/sql/mode/maintenanceplan.pm | 4 +- .../toshiba/storemate/sql/mode/posstatus.pm | 4 +- .../video/openheadend/snmp/mode/nodeusage.pm | 8 +-- .../openheadend/snmp/mode/operationstatus.pm | 4 +- .../restapi/mode/broadcasterinputusage.pm | 8 +-- .../restapi/mode/broadcasterlicenseusage.pm | 8 +-- .../restapi/mode/broadcasteroutputusage.pm | 8 +-- .../restapi/mode/broadcastersystemusage.pm | 4 +- .../zixi/restapi/mode/feederinputusage.pm | 8 +-- .../zixi/restapi/mode/feederoutputusage.pm | 8 +-- .../hpe/simplivity/restapi/mode/hosts.pm | 6 +- .../restapi/mode/virtualmachines.pm | 6 +- src/apps/virtualization/ovirt/mode/cpuhost.pm | 4 +- .../vmware/connector/mode/alarmdatacenter.pm | 8 +-- src/apps/vmware/connector/mode/alarmhost.pm | 8 +-- src/apps/vmware/connector/mode/countvmhost.pm | 10 +-- src/apps/vmware/connector/mode/cpuhost.pm | 10 +-- src/apps/vmware/connector/mode/cpuvm.pm | 10 +-- .../vmware/connector/mode/datastorecountvm.pm | 10 +-- .../vmware/connector/mode/datastorehost.pm | 10 +-- src/apps/vmware/connector/mode/datastoreio.pm | 10 +-- .../vmware/connector/mode/datastoreiops.pm | 6 +- .../connector/mode/datastoresnapshot.pm | 10 +-- .../vmware/connector/mode/datastoreusage.pm | 6 +- src/apps/vmware/connector/mode/datastorevm.pm | 6 +- src/apps/vmware/connector/mode/devicevm.pm | 10 +-- src/apps/vmware/connector/mode/healthhost.pm | 6 +- src/apps/vmware/connector/mode/limitvm.pm | 12 ++-- .../vmware/connector/mode/maintenancehost.pm | 10 +-- src/apps/vmware/connector/mode/memoryhost.pm | 16 ++--- src/apps/vmware/connector/mode/memoryvm.pm | 10 +-- src/apps/vmware/connector/mode/nethost.pm | 12 ++-- src/apps/vmware/connector/mode/netvm.pm | 10 +-- src/apps/vmware/connector/mode/servicehost.pm | 10 +-- .../vmware/connector/mode/statconnectors.pm | 4 +- .../vmware/connector/mode/statuscluster.pm | 6 +- src/apps/vmware/connector/mode/statushost.pm | 12 ++-- src/apps/vmware/connector/mode/statusvm.pm | 12 ++-- src/apps/vmware/connector/mode/storagehost.pm | 6 +- src/apps/vmware/connector/mode/swaphost.pm | 10 +-- src/apps/vmware/connector/mode/swapvm.pm | 10 +-- src/apps/vmware/connector/mode/timehost.pm | 10 +-- src/apps/vmware/connector/mode/uptimehost.pm | 10 +-- .../connector/mode/vmoperationcluster.pm | 4 +- src/apps/vmware/vcsa/restapi/mode/health.pm | 6 +- src/apps/vmware/vcsa/snmp/mode/interfaces.pm | 10 +-- .../vmware/vcsa/snmp/mode/listinterfaces.pm | 6 +- src/apps/vmware/vcsa/snmp/mode/storage.pm | 8 +-- src/apps/vmware/vcsa/snmp/mode/uptime.pm | 4 +- src/apps/voip/3cx/restapi/custom/api.pm | 4 +- src/apps/voip/3cx/restapi/mode/extension.pm | 6 +- src/apps/voip/3cx/restapi/mode/system.pm | 6 +- .../voip/asterisk/ami/mode/channelusage.pm | 4 +- .../voip/asterisk/ami/mode/dahdistatus.pm | 4 +- .../voip/asterisk/ami/mode/sippeersusage.pm | 8 +-- .../voip/asterisk/snmp/mode/channelusage.pm | 4 +- .../cisco/meetingplace/mode/audiolicenses.pm | 4 +- .../cisco/meetingplace/mode/audioports.pm | 4 +- .../cisco/meetingplace/mode/videolicenses.pm | 4 +- .../cisco/meetingplace/mode/videoports.pm | 4 +- src/apps/vtom/restapi/mode/jobs.pm | 4 +- src/apps/wallix/bastion/snmp/mode/license.pm | 4 +- src/apps/wallix/bastion/snmp/mode/system.pm | 4 +- src/apps/wazuh/restapi/mode/agents.pm | 4 +- src/apps/wazuh/restapi/mode/manager.pm | 4 +- .../common/airespace/snmp/mode/apstatus.pm | 8 +-- .../common/airespace/snmp/mode/cpu.pm | 4 +- .../common/aruba/snmp/mode/apconnections.pm | 4 +- .../aruba/snmp/mode/apssidstatistics.pm | 4 +- .../common/aruba/snmp/mode/apusers.pm | 4 +- .../aruba/snmp/mode/controllerstatus.pm | 4 +- src/centreon/common/aruba/snmp/mode/cpu.pm | 4 +- .../common/aruba/snmp/mode/license.pm | 4 +- src/centreon/common/aruba/snmp/mode/memory.pm | 4 +- .../common/aruba/snmp/mode/storage.pm | 4 +- src/centreon/common/avaya/snmp/mode/cpu.pm | 4 +- src/centreon/common/avaya/snmp/mode/memory.pm | 4 +- .../common/bluearc/snmp/mode/clusterstatus.pm | 6 +- .../common/bluearc/snmp/mode/interfaces.pm | 10 +-- .../bluearc/snmp/mode/listinterfaces.pm | 6 +- .../common/bluearc/snmp/mode/volumeusage.pm | 4 +- .../common/broadcom/fastpath/snmp/mode/cpu.pm | 4 +- .../broadcom/fastpath/snmp/mode/memory.pm | 4 +- .../cisco/ironport/snmp/mode/mailusage.pm | 6 +- .../common/cisco/ironport/snmp/mode/memory.pm | 4 +- .../cisco/ironport/xmlapi/mode/systemusage.pm | 8 +-- .../cisco/smallbusiness/snmp/mode/cpu.pm | 4 +- .../cisco/standard/snmp/mode/aaaservers.pm | 6 +- .../common/cisco/standard/snmp/mode/bgp.pm | 6 +- .../cisco/standard/snmp/mode/configuration.pm | 4 +- .../cisco/standard/snmp/mode/interfaces.pm | 10 +-- .../cisco/standard/snmp/mode/ipsectunnel.pm | 4 +- .../common/cisco/standard/snmp/mode/ipsla.pm | 4 +- .../common/cisco/standard/snmp/mode/memory.pm | 4 +- .../cisco/standard/snmp/mode/memoryflash.pm | 6 +- .../cisco/standard/snmp/mode/qosusage.pm | 8 +-- .../cisco/standard/snmp/mode/sessions.pm | 4 +- .../common/cisco/standard/snmp/mode/vpc.pm | 18 ++--- .../common/cisco/standard/snmp/mode/vss.pm | 18 ++--- .../common/cisco/standard/snmp/mode/wan3g.pm | 30 ++++---- .../common/cps/ups/snmp/mode/batterystatus.pm | 6 +- .../common/cps/ups/snmp/mode/inputlines.pm | 6 +- .../common/cps/ups/snmp/mode/outputlines.pm | 6 +- .../common/dell/fastpath/snmp/mode/cpu.pm | 4 +- .../common/dell/fastpath/snmp/mode/memory.pm | 4 +- .../common/emc/navisphere/mode/cache.pm | 4 +- .../common/emc/navisphere/mode/controller.pm | 4 +- .../common/emc/navisphere/mode/disk.pm | 4 +- src/centreon/common/force10/snmp/mode/cpu.pm | 4 +- .../common/force10/snmp/mode/memory.pm | 4 +- .../fortinet/fortigate/snmp/mode/apusage.pm | 10 +-- .../fortigate/snmp/mode/clusterstatus.pm | 4 +- .../fortinet/fortigate/snmp/mode/disk.pm | 4 +- .../fortigate/snmp/mode/interfaces.pm | 10 +-- .../fortinet/fortigate/snmp/mode/sdwan.pm | 6 +- .../fortinet/fortigate/snmp/mode/vdomusage.pm | 4 +- .../fortinet/fortigate/snmp/mode/vpn.pm | 4 +- src/centreon/common/h3c/snmp/mode/cpu.pm | 4 +- .../common/h3c/snmp/mode/interfaces.pm | 10 +-- src/centreon/common/h3c/snmp/mode/memory.pm | 4 +- src/centreon/common/ibm/nos/snmp/mode/disk.pm | 4 +- .../common/ingrian/snmp/mode/connections.pm | 4 +- src/centreon/common/ingrian/snmp/mode/cpu.pm | 4 +- src/centreon/common/ingrian/snmp/mode/disk.pm | 4 +- .../common/ingrian/snmp/mode/memory.pm | 4 +- .../common/ingrian/snmp/mode/requeststats.pm | 4 +- src/centreon/common/jvm/mode/cpuload.pm | 8 +-- src/centreon/common/jvm/mode/gcusage.pm | 4 +- src/centreon/common/jvm/mode/memory.pm | 8 +-- .../common/jvm/mode/memorydetailed.pm | 20 +++--- src/centreon/common/jvm/mode/threads.pm | 4 +- .../endpoint/snmp/mode/videoconferencing.pm | 4 +- .../protocols/sql/mode/connectiontime.pm | 4 +- .../common/protocols/sql/mode/sqlstring.pm | 4 +- .../steelhead/snmp/mode/bwoptimization.pm | 4 +- .../steelhead/snmp/mode/bwpassthrough.pm | 4 +- .../steelhead/snmp/mode/diskutilization.pm | 4 +- .../riverbed/steelhead/snmp/mode/status.pm | 4 +- .../steelhead/snmp/mode/temperature.pm | 4 +- .../common/xppc/snmp/mode/batterystatus.pm | 6 +- .../common/xppc/snmp/mode/outputlines.pm | 6 +- src/centreon/plugins/output.pm | 6 +- src/centreon/plugins/templates/counter.pm | 4 +- src/cloud/aws/cloudwatch/mode/getalarms.pm | 4 +- src/cloud/aws/cloudwatch/mode/getmetrics.pm | 4 +- src/cloud/aws/cloudwatchlogs/mode/getlogs.pm | 6 +- .../aws/directconnect/mode/connections.pm | 4 +- .../directconnect/mode/virtualinterfaces.pm | 4 +- src/cloud/aws/ec2/mode/asgstatus.pm | 6 +- src/cloud/aws/ec2/mode/instancesstatus.pm | 4 +- src/cloud/aws/ec2/mode/instancestypes.pm | 2 +- src/cloud/aws/ec2/mode/status.pm | 4 +- src/cloud/aws/rds/mode/instancestatus.pm | 8 +-- .../azure/analytics/eventhubs/mode/health.pm | 8 +-- .../azure/common/appservice/mode/health.pm | 8 +-- .../azure/common/storageaccount/health.pm | 8 +-- src/cloud/azure/compute/aks/mode/health.pm | 8 +-- .../compute/virtualmachine/mode/health.pm | 8 +-- .../compute/virtualmachine/mode/vmsizes.pm | 4 +- .../azure/compute/vmscalesets/mode/health.pm | 8 +-- .../azure/database/cosmosdb/mode/health.pm | 8 +-- src/cloud/azure/database/redis/mode/health.pm | 8 +-- .../azure/database/sqldatabase/mode/health.pm | 8 +-- .../sqlmanagedinstance/mode/health.pm | 8 +-- .../database/sqlserver/mode/serverstatus.pm | 4 +- .../integration/eventgrid/mode/health.pm | 8 +-- .../integration/servicebus/mode/health.pm | 8 +-- .../azure/management/costs/mode/budgets.pm | 2 +- .../management/monitor/mode/getmetrics.pm | 4 +- .../recovery/mode/backupitemsstatus.pm | 8 +-- .../recovery/mode/backupjobsstatus.pm | 8 +-- .../resource/mode/deploymentsstatus.pm | 8 +-- .../azure/management/resource/mode/items.pm | 4 +- .../azure/network/appgateway/mode/health.pm | 8 +-- .../expressroute/mode/circuitstatus.pm | 4 +- .../azure/network/expressroute/mode/health.pm | 8 +-- .../azure/network/frontdoor/mode/health.pm | 8 +-- .../network/trafficmanager/mode/health.pm | 8 +-- .../virtualnetwork/mode/peeringsstatus.pm | 4 +- .../azure/network/vpngateway/mode/health.pm | 8 +-- .../vpngateway/mode/vpngatewaystatus.pm | 4 +- .../azure/web/appserviceplan/mode/health.pm | 8 +-- src/cloud/azure/web/signalr/mode/health.pm | 8 +-- .../cadvisor/restapi/mode/containerusage.pm | 4 +- src/cloud/cadvisor/restapi/mode/diskio.pm | 4 +- src/cloud/cadvisor/restapi/mode/traffic.pm | 4 +- .../cloudfoundry/restapi/mode/appsstate.pm | 8 +-- .../restapi/mode/instancesstate.pm | 12 ++-- .../docker/restapi/mode/containerusage.pm | 4 +- src/cloud/docker/restapi/mode/nodestatus.pm | 8 +-- .../docker/restapi/mode/servicestatus.pm | 6 +- .../management/stackdriver/mode/getmetrics.pm | 4 +- src/cloud/ibm/softlayer/mode/events.pm | 8 +-- src/cloud/ibm/softlayer/mode/opentickets.pm | 8 +-- src/cloud/iics/restapi/mode/agents.pm | 12 ++-- src/cloud/kubernetes/mode/clusterevents.pm | 4 +- src/cloud/kubernetes/mode/cronjobstatus.pm | 4 +- src/cloud/kubernetes/mode/daemonsetstatus.pm | 4 +- src/cloud/kubernetes/mode/deploymentstatus.pm | 4 +- src/cloud/kubernetes/mode/nodestatus.pm | 4 +- .../kubernetes/mode/persistentvolumestatus.pm | 4 +- src/cloud/kubernetes/mode/podstatus.pm | 12 ++-- src/cloud/kubernetes/mode/replicasetstatus.pm | 4 +- .../mode/replicationcontrollerstatus.pm | 4 +- .../kubernetes/mode/statefulsetstatus.pm | 4 +- .../azuread/mode/directorysizeusage.pm | 4 +- .../office365/exchange/mode/emailactivity.pm | 4 +- .../office365/exchange/mode/mailboxusage.pm | 8 +-- .../management/mode/appcredentials.pm | 8 +-- .../management/mode/servicestatus.pm | 4 +- .../management/mode/subscriptions.pm | 4 +- .../office365/onedrive/mode/siteusage.pm | 4 +- .../office365/onedrive/mode/usersactivity.pm | 4 +- .../sharepoint/mode/usersactivity.pm | 4 +- .../office365/skype/mode/devicesusage.pm | 4 +- .../office365/skype/mode/usersactivity.pm | 4 +- .../office365/teams/mode/devicesusage.pm | 4 +- .../office365/teams/mode/usersactivity.pm | 4 +- src/cloud/nutanix/snmp/mode/clusterusage.pm | 8 +-- src/cloud/nutanix/snmp/mode/containerusage.pm | 4 +- src/cloud/nutanix/snmp/mode/diskusage.pm | 8 +-- .../nutanix/snmp/mode/hypervisorusage.pm | 4 +- .../nutanix/snmp/mode/storagepoolusage.pm | 4 +- src/cloud/nutanix/snmp/mode/vmusage.pm | 4 +- src/cloud/outscale/mode/clientgateways.pm | 6 +- src/cloud/outscale/mode/internetservices.pm | 6 +- src/cloud/outscale/mode/loadbalancers.pm | 6 +- src/cloud/outscale/mode/natservices.pm | 6 +- src/cloud/outscale/mode/nets.pm | 6 +- src/cloud/outscale/mode/quotas.pm | 6 +- src/cloud/outscale/mode/subnets.pm | 6 +- src/cloud/outscale/mode/virtualgateways.pm | 6 +- src/cloud/outscale/mode/vms.pm | 6 +- src/cloud/outscale/mode/volumes.pm | 6 +- src/cloud/outscale/mode/vpnconnections.pm | 6 +- src/cloud/ovh/restapi/mode/quotausage.pm | 4 +- src/cloud/ovh/restapi/mode/sms.pm | 4 +- .../direct/kubernetes/mode/containerstatus.pm | 8 +-- .../direct/kubernetes/mode/daemonsetstatus.pm | 4 +- .../kubernetes/mode/deploymentstatus.pm | 4 +- .../direct/kubernetes/mode/namespacestatus.pm | 4 +- .../direct/kubernetes/mode/nodestatus.pm | 8 +-- .../mode/connections.pm | 4 +- .../nginxingresscontroller/mode/requests.pm | 4 +- .../prometheus/exporters/cadvisor/mode/cpu.pm | 4 +- .../exporters/cadvisor/mode/load.pm | 4 +- .../exporters/cadvisor/mode/memory.pm | 4 +- .../exporters/cadvisor/mode/storage.pm | 4 +- .../exporters/cadvisor/mode/taskstate.pm | 4 +- .../exporters/nodeexporter/mode/cpu.pm | 4 +- .../nodeexporter/mode/cpudetailed.pm | 4 +- .../exporters/nodeexporter/mode/load.pm | 4 +- .../exporters/nodeexporter/mode/memory.pm | 4 +- .../exporters/nodeexporter/mode/storage.pm | 4 +- .../prometheus/restapi/mode/expression.pm | 4 +- .../prometheus/restapi/mode/targetstatus.pm | 8 +-- src/cloud/talend/tmc/mode/remoteengines.pm | 6 +- .../velocloud/restapi/mode/edgestatus.pm | 6 +- .../velocloud/restapi/mode/linkstatus.pm | 2 +- src/database/couchdb/restapi/custom/api.pm | 4 +- src/database/couchdb/restapi/mode/server.pm | 12 ++-- src/database/db2/mode/tablespaces.pm | 6 +- .../restapi/mode/clusterstatistics.pm | 8 +-- .../restapi/mode/indicestatistics.pm | 8 +-- .../elasticsearch/restapi/mode/license.pm | 4 +- .../restapi/mode/nodestatistics.pm | 4 +- src/database/firebird/mode/longqueries.pm | 4 +- src/database/firebird/mode/memory.pm | 4 +- src/database/firebird/mode/pages.pm | 4 +- src/database/firebird/mode/queries.pm | 4 +- src/database/firebird/mode/users.pm | 4 +- src/database/influxdb/custom/api.pm | 4 +- src/database/influxdb/mode/connectiontime.pm | 4 +- .../influxdb/mode/databasestatistics.pm | 4 +- .../influxdb/mode/httpserverstatistics.pm | 4 +- src/database/influxdb/mode/query.pm | 4 +- src/database/influxdb/mode/writestatistics.pm | 4 +- .../informix/snmp/mode/archivelevel0.pm | 4 +- .../informix/snmp/mode/chunkstatus.pm | 6 +- .../informix/snmp/mode/dbspaceusage.pm | 4 +- src/database/informix/snmp/mode/lockstats.pm | 4 +- .../informix/snmp/mode/logfileusage.pm | 4 +- src/database/informix/snmp/mode/sessions.pm | 4 +- .../informix/sql/mode/archivelevel0.pm | 4 +- src/database/informix/sql/mode/checkpoints.pm | 16 ++--- src/database/informix/sql/mode/chunkstates.pm | 4 +- .../informix/sql/mode/dbspacesusage.pm | 4 +- .../informix/sql/mode/lockoverflow.pm | 4 +- .../informix/sql/mode/logfilesusage.pm | 4 +- src/database/informix/sql/mode/longtxs.pm | 4 +- src/database/informix/sql/mode/sessions.pm | 4 +- src/database/informix/sql/mode/tablelocks.pm | 16 ++--- .../mongodb/mode/collectionstatistics.pm | 8 +-- src/database/mongodb/mode/connections.pm | 12 ++-- src/database/mongodb/mode/connectiontime.pm | 4 +- .../mongodb/mode/databasestatistics.pm | 8 +-- src/database/mongodb/mode/queries.pm | 8 +-- .../mongodb/mode/replicationstatus.pm | 4 +- src/database/mssql/mode/blockedprocesses.pm | 8 +-- src/database/mssql/mode/cachehitratio.pm | 4 +- src/database/mssql/mode/connectedusers.pm | 4 +- src/database/mssql/mode/deadlocks.pm | 4 +- src/database/mssql/mode/failedjobs.pm | 4 +- src/database/mssql/mode/lockswaits.pm | 4 +- src/database/mssql/mode/pagelifeexpectancy.pm | 4 +- src/database/mysql/mode/backup.pm | 6 +- .../mysql/mode/innodbbufferpoolhitrate.pm | 4 +- src/database/mysql/mode/longqueries.pm | 4 +- .../mysql/mode/myisamkeycachehitrate.pm | 4 +- src/database/mysql/mode/openfiles.pm | 4 +- src/database/mysql/mode/opentables.pm | 4 +- src/database/mysql/mode/passwordexpiration.pm | 4 +- src/database/mysql/mode/qcachehitrate.pm | 4 +- src/database/mysql/mode/queries.pm | 4 +- src/database/mysql/mode/replication.pm | 12 ++-- src/database/mysql/mode/uptime.pm | 4 +- src/database/oracle/mode/asmdiskgroupusage.pm | 14 ++-- src/database/oracle/mode/connectedusers.pm | 4 +- src/database/oracle/mode/corruptedblocks.pm | 4 +- src/database/oracle/mode/datacachehitratio.pm | 4 +- src/database/oracle/mode/datafilesstatus.pm | 4 +- src/database/oracle/mode/dataguard.pm | 6 +- src/database/oracle/mode/eventwaitsusage.pm | 4 +- src/database/oracle/mode/invalidobject.pm | 4 +- src/database/oracle/mode/longqueries.pm | 4 +- .../oracle/mode/passwordexpiration.pm | 4 +- src/database/oracle/mode/processusage.pm | 4 +- src/database/oracle/mode/rmanbackupage.pm | 4 +- .../oracle/mode/rmanonlinebackupage.pm | 4 +- .../oracle/mode/rollbacksegmentusage.pm | 4 +- src/database/oracle/mode/sessionusage.pm | 4 +- src/database/oracle/mode/tablespaceusage.pm | 4 +- src/database/postgres/mode/backends.pm | 4 +- src/database/postgres/mode/connectiontime.pm | 4 +- src/database/postgres/mode/databasesize.pm | 4 +- src/database/postgres/mode/hitratio.pm | 4 +- src/database/postgres/mode/locks.pm | 4 +- src/database/postgres/mode/querytime.pm | 4 +- src/database/postgres/mode/statistics.pm | 4 +- src/database/postgres/mode/timesync.pm | 4 +- src/database/postgres/mode/vacuum.pm | 4 +- src/database/redis/mode/persistence.pm | 8 +-- src/database/redis/mode/replication.pm | 8 +-- .../sap/hana/mode/blockedtransactions.pm | 4 +- src/database/sap/hana/mode/connectedusers.pm | 4 +- src/database/sap/hana/mode/diskusage.pm | 4 +- src/database/sap/hana/mode/hostcpu.pm | 4 +- src/database/sap/hana/mode/hostmemory.pm | 4 +- src/database/sap/hana/mode/volumeusage.pm | 4 +- src/database/sybase/mode/blockedprocesses.pm | 4 +- src/database/sybase/mode/connectedusers.pm | 4 +- src/database/sybase/mode/databasessize.pm | 4 +- .../warp10/sensision/mode/fetchstatistics.pm | 4 +- .../warp10/sensision/mode/scriptstatistics.pm | 4 +- src/example/mode/getvalue.pm | 4 +- src/hardware/ats/apc/snmp/mode/inputlines.pm | 4 +- src/hardware/ats/apc/snmp/mode/outputlines.pm | 8 +-- .../ats/eaton/snmp/mode/inputlines.pm | 2 +- .../ats/eaton/snmp/mode/outputline.pm | 2 +- src/hardware/ats/eaton/snmp/mode/system.pm | 10 +-- .../abb/cms700/snmp/mode/mainsmeasurements.pm | 2 +- .../cms700/snmp/mode/sensorsmeasurements.pm | 2 +- .../devices/aeg/acm/snmp/mode/acstatus.pm | 4 +- .../aeg/acm/snmp/mode/batterystatus.pm | 8 +-- .../devices/aeg/acm/snmp/mode/loadstatus.pm | 4 +- .../aeg/acm/snmp/mode/rectifierstatus.pm | 8 +-- .../cisco/ces/restapi/mode/diagnostics.pm | 4 +- .../cisco/cts/snmp/mode/peripherals.pm | 4 +- .../devices/eltek/enexus/snmp/mode/alarms.pm | 6 +- .../devices/eltek/enexus/snmp/mode/battery.pm | 6 +- .../devices/eltek/enexus/snmp/mode/load.pm | 6 +- .../devices/eltek/enexus/snmp/mode/outputs.pm | 6 +- .../gorgy/ntpserver/snmp/mode/globalstatus.pm | 12 ++-- .../devices/hikvision/nvr/isapi/mode/disks.pm | 6 +- .../hikvision/nvr/isapi/mode/protocols.pm | 6 +- .../hikvision/nvr/isapi/mode/uptime.pm | 4 +- .../devices/hikvision/nvr/snmp/mode/disks.pm | 6 +- .../devices/hikvision/nvr/snmp/mode/uptime.pm | 4 +- .../devices/hms/ewon/snmp/mode/tags.pm | 6 +- .../ntp100gps/snmp/mode/gpsstatus.pm | 4 +- .../ntp100gps/snmp/mode/ntpperformance.pm | 8 +-- .../infinity/managementapi/mode/alarms.pm | 4 +- .../devices/polycom/dma/snmp/mode/alerts.pm | 4 +- .../polycom/trio/restapi/mode/device.pm | 4 +- .../polycom/trio/restapi/mode/registration.pm | 4 +- .../tms6001/snmp/mode/antenna.pm | 6 +- .../timelinkmicro/tms6001/snmp/mode/gnss.pm | 6 +- .../video/appeartv/snmp/mode/alarms.pm | 4 +- .../kvm/adder/aim/snmp/mode/deviceusage.pm | 8 +-- .../kvm/adder/aim/snmp/mode/serverusage.pm | 4 +- .../avocent/acs/8000/snmp/mode/serialports.pm | 6 +- src/hardware/pdu/apc/snmp/mode/load.pm | 12 ++-- src/hardware/pdu/apc/snmp/mode/outlet.pm | 6 +- src/hardware/pdu/clever/snmp/mode/psusage.pm | 4 +- src/hardware/pdu/cyberpower/snmp/mode/load.pm | 12 ++-- .../pdu/cyberpower/snmp/mode/outlets.pm | 6 +- .../pdu/eaton/snmp/mode/environment.pm | 12 ++-- src/hardware/pdu/eaton/snmp/mode/group.pm | 4 +- src/hardware/pdu/eaton/snmp/mode/outlet.pm | 4 +- .../pdu/emerson/snmp/mode/globalstatus.pm | 4 +- src/hardware/pdu/emerson/snmp/mode/psusage.pm | 4 +- .../pdu/emerson/snmp/mode/receptacles.pm | 6 +- .../pdu/gude/epc/snmp/mode/powerchannels.pm | 2 +- .../pdu/gude/epc/snmp/mode/sppowerchannels.pm | 2 +- .../standard/rfc3805/mode/coverstatus.pm | 6 +- .../standard/rfc3805/mode/markerimpression.pm | 4 +- .../standard/rfc3805/mode/markersupply.pm | 4 +- .../standard/rfc3805/mode/papertray.pm | 4 +- .../sensors/comet/p8000/snmp/mode/sensors.pm | 4 +- .../server/cisco/ucs/snmp/mode/auditlogs.pm | 4 +- .../server/cisco/ucs/snmp/mode/faults.pm | 4 +- .../cisco/ucs/snmp/mode/mgmtentities.pm | 6 +- .../cisco/ucs/snmp/mode/serviceprofile.pm | 4 +- .../dell/idrac/snmp/mode/globalstatus.pm | 12 ++-- .../server/dell/vxm/restapi/mode/chassis.pm | 6 +- .../server/dell/vxm/restapi/mode/hosts.pm | 12 ++-- .../hp/oneview/restapi/mode/storagepools.pm | 6 +- .../ibm/mgmt_cards/imm/snmp/mode/eventlog.pm | 4 +- .../telephony/avaya/aes/snmp/mode/services.pm | 12 ++-- .../telephony/avaya/cm/snmp/mode/trunks.pm | 6 +- .../snmp/mode/controllerstatus.pm | 6 +- .../ups/alpha/snmp/mode/batterystatus.pm | 10 +-- .../ups/apc/snmp/mode/batterystatus.pm | 18 ++--- src/hardware/ups/apc/snmp/mode/inputlines.pm | 4 +- src/hardware/ups/apc/snmp/mode/outputlines.pm | 6 +- src/hardware/ups/himoinsa/snmp/mode/uptime.pm | 4 +- .../ups/hp/snmp/mode/batterystatus.pm | 6 +- src/hardware/ups/hp/snmp/mode/outputlines.pm | 6 +- .../ups/mge/snmp/mode/batterystatus.pm | 4 +- src/hardware/ups/mge/snmp/mode/environment.pm | 4 +- src/hardware/ups/mge/snmp/mode/inputlines.pm | 8 +-- src/hardware/ups/mge/snmp/mode/outputlines.pm | 4 +- .../ups/powerware/snmp/mode/batterystatus.pm | 6 +- .../ups/powerware/snmp/mode/outputlines.pm | 4 +- src/hardware/ups/riello/snmp/mode/battery.pm | 6 +- .../ups/riello/snmp/mode/outputlines.pm | 6 +- .../socomec/netvision/snmp/mode/battery.pm | 6 +- .../netvision/snmp/mode/outputlines.pm | 6 +- .../rfc1628/snmp/mode/batterystatus.pm | 6 +- .../standard/rfc1628/snmp/mode/outputlines.pm | 8 +-- .../rfc1628/snmp/mode/outputsource.pm | 6 +- src/network/3com/snmp/mode/cpu.pm | 4 +- src/network/3com/snmp/mode/memory.pm | 4 +- src/network/a10/ax/snmp/mode/cpu.pm | 4 +- src/network/a10/ax/snmp/mode/disk.pm | 4 +- src/network/a10/ax/snmp/mode/globalstats.pm | 4 +- src/network/a10/ax/snmp/mode/memory.pm | 4 +- src/network/a10/ax/snmp/mode/vserverusage.pm | 8 +-- .../acmepacket/snmp/mode/realmusage.pm | 4 +- src/network/acmepacket/snmp/mode/sipusage.pm | 8 +-- .../acmepacket/snmp/mode/systemusage.pm | 8 +-- src/network/adva/fsp150/snmp/mode/alarms.pm | 4 +- src/network/adva/fsp3000/snmp/mode/alarms.pm | 4 +- .../adva/fsp3000/snmp/mode/interfaces.pm | 10 +-- .../adva/fsp3000/snmp/mode/listinterfaces.pm | 6 +- .../aerohive/snmp/mode/connectedusers.pm | 4 +- src/network/alcatel/isam/snmp/mode/cpu.pm | 4 +- .../alcatel/isam/snmp/mode/hubsapusage.pm | 4 +- src/network/alcatel/isam/snmp/mode/memory.pm | 4 +- .../alcatel/omniswitch/snmp/mode/cpu.pm | 4 +- .../omniswitch/snmp/mode/flashmemory.pm | 4 +- .../alcatel/omniswitch/snmp/mode/memory.pm | 4 +- .../omniswitch/snmp/mode/virtualchassis.pm | 6 +- src/network/alcatel/oxe/snmp/mode/domains.pm | 4 +- src/network/alcatel/oxe/snmp/mode/trunks.pm | 8 +-- .../alcatel/pss/1830/snmp/mode/sapqosstats.pm | 4 +- .../breezeaccess/snmp/mode/radiostatus.pm | 4 +- src/network/aruba/aoscx/restapi/mode/vsx.pm | 18 ++--- src/network/aruba/aoscx/snmp/mode/vsf.pm | 12 ++-- src/network/aruba/aoscx/snmp/mode/vsx.pm | 18 ++--- .../aruba/cppm/snmp/mode/interfaces.pm | 10 +-- .../aruba/instant/snmp/mode/apusage.pm | 4 +- .../aruba/instant/snmp/mode/ssidstatus.pm | 4 +- .../aruba/orchestrator/restapi/mode/alarms.pm | 4 +- .../orchestrator/restapi/mode/appliances.pm | 6 +- .../epc/snmp/mode/interfacesdiameter.pm | 12 ++-- .../athonet/epc/snmp/mode/interfacesga.pm | 6 +- .../athonet/epc/snmp/mode/interfacesgtpc.pm | 6 +- .../athonet/epc/snmp/mode/interfaceslte.pm | 6 +- src/network/athonet/epc/snmp/mode/license.pm | 4 +- src/network/atrica/snmp/mode/connections.pm | 10 +-- .../atrica/snmp/mode/listconnections.pm | 6 +- .../atto/fibrebridge/snmp/mode/fcportusage.pm | 4 +- src/network/audiocodes/snmp/mode/cpu.pm | 4 +- src/network/audiocodes/snmp/mode/memory.pm | 4 +- .../audiocodes/snmp/mode/trunkstatus.pm | 8 +-- .../cloudgen/snmp/mode/boxservice.pm | 4 +- .../cloudgen/snmp/mode/serverservice.pm | 4 +- .../barracuda/cloudgen/snmp/mode/vpnstatus.pm | 4 +- .../beeware/snmp/mode/reverseproxyusage.pm | 8 +-- .../bluecoat/snmp/mode/clientconnections.pm | 4 +- .../bluecoat/snmp/mode/clientrequests.pm | 4 +- .../bluecoat/snmp/mode/clienttraffic.pm | 8 +-- src/network/bluecoat/snmp/mode/cpu.pm | 4 +- src/network/bluecoat/snmp/mode/disk.pm | 4 +- src/network/bluecoat/snmp/mode/memory.pm | 4 +- .../bluecoat/snmp/mode/serverconnections.pm | 4 +- src/network/brocade/snmp/mode/cpu.pm | 4 +- src/network/brocade/snmp/mode/interfaces.pm | 10 +-- .../brocade/snmp/mode/listinterfaces.pm | 6 +- src/network/brocade/snmp/mode/memory.pm | 4 +- .../cnpilot/snmp/mode/connectionstatus.pm | 4 +- .../cambium/cnpilot/snmp/mode/interfaces.pm | 10 +-- .../cambium/cnpilot/snmp/mode/radios.pm | 4 +- .../cambium/epmp/snmp/mode/interfaces.pm | 10 +-- src/network/cambium/epmp/snmp/mode/license.pm | 6 +- src/network/cambium/epmp/snmp/mode/uptime.pm | 4 +- src/network/checkpoint/snmp/mode/rausers.pm | 4 +- src/network/checkpoint/snmp/mode/vpnstatus.pm | 4 +- src/network/cisco/WaaS/mode/sessions.pm | 4 +- src/network/cisco/asa/snmp/mode/failover.pm | 8 +-- .../cisco/callmanager/snmp/mode/ccmusage.pm | 4 +- .../cisco/callmanager/snmp/mode/ctiusage.pm | 4 +- .../callmanager/snmp/mode/gatewayusage.pm | 8 +-- .../callmanager/snmp/mode/mediadeviceusage.pm | 8 +-- .../cisco/callmanager/snmp/mode/phoneusage.pm | 4 +- .../callmanager/snmp/mode/voicemailusage.pm | 4 +- .../cisco/callmanager/sxml/mode/services.pm | 6 +- .../firepower/fmc/restapi/mode/devices.pm | 6 +- .../cisco/firepower/fxos/snmp/mode/faults.pm | 4 +- .../cloudcontroller/restapi/mode/devices.pm | 18 ++--- .../cloudcontroller/snmp/mode/deviceusage.pm | 8 +-- .../cisco/prime/restapi/mode/apusage.pm | 8 +-- .../cisco/standard/ssh/mode/voicedialpeer.pm | 6 +- .../cisco/umbrella/snmp/mode/appliance.pm | 4 +- .../cisco/umbrella/snmp/mode/connectivity.pm | 4 +- .../cisco/umbrella/snmp/mode/cpudetailed.pm | 4 +- src/network/cisco/umbrella/snmp/mode/load.pm | 4 +- .../cisco/vcs/restapi/mode/httpproxystats.pm | 4 +- src/network/cisco/vcs/restapi/mode/zones.pm | 4 +- src/network/cisco/wap/snmp/mode/cpu.pm | 4 +- .../wap/snmp/mode/virtualaccesspoints.pm | 6 +- .../citrix/appacceleration/snmp/mode/cpu.pm | 4 +- .../snmp/mode/serviceclassusage.pm | 4 +- .../netscaler/snmp/mode/certificatesexpire.pm | 4 +- .../citrix/netscaler/snmp/mode/connections.pm | 4 +- src/network/citrix/netscaler/snmp/mode/cpu.pm | 4 +- .../citrix/netscaler/snmp/mode/hastate.pm | 12 ++-- .../citrix/netscaler/snmp/mode/memory.pm | 4 +- .../citrix/netscaler/snmp/mode/storage.pm | 4 +- .../netscaler/snmp/mode/vserverstatus.pm | 4 +- src/network/citrix/sdx/snmp/mode/diskusage.pm | 4 +- src/network/citrix/sdx/snmp/mode/srusage.pm | 8 +-- src/network/citrix/sdx/snmp/mode/xenusage.pm | 4 +- src/network/colubris/snmp/mode/apusage.pm | 8 +-- src/network/colubris/snmp/mode/cpu.pm | 4 +- src/network/colubris/snmp/mode/load.pm | 4 +- src/network/colubris/snmp/mode/memory.pm | 4 +- src/network/colubris/snmp/mode/storage.pm | 4 +- src/network/cyberoam/snmp/mode/cpu.pm | 4 +- src/network/cyberoam/snmp/mode/storage.pm | 4 +- .../dell/nseries/snmp/mode/interfaces.pm | 10 +-- src/network/dell/nseries/snmp/mode/uptime.pm | 4 +- src/network/denyall/snmp/mode/reverseproxy.pm | 6 +- src/network/digi/anywhereusb/snmp/mode/cpu.pm | 4 +- .../digi/anywhereusb/snmp/mode/memory.pm | 4 +- .../digi/portserverts/snmp/mode/cpu.pm | 4 +- .../digi/portserverts/snmp/mode/memory.pm | 4 +- src/network/digi/sarian/snmp/mode/cpu.pm | 4 +- src/network/digi/sarian/snmp/mode/gprs.pm | 8 +-- src/network/digi/sarian/snmp/mode/memory.pm | 4 +- .../digi/sarian/snmp/mode/temperature.pm | 4 +- src/network/dlink/dgs3100/snmp/mode/cpu.pm | 4 +- .../dlink/standard/snmp/mode/interfaces.pm | 10 +-- src/network/dlink/standard/snmp/mode/stack.pm | 12 ++-- .../efficientip/snmp/mode/dhcpusage.pm | 4 +- src/network/efficientip/snmp/mode/dnsusage.pm | 4 +- src/network/efficientip/snmp/mode/status.pm | 4 +- src/network/enterasys/snmp/mode/interfaces.pm | 10 +-- src/network/enterasys/snmp/mode/uptime.pm | 4 +- src/network/extreme/snmp/mode/cpu.pm | 4 +- src/network/extreme/snmp/mode/interfaces.pm | 10 +-- src/network/extreme/snmp/mode/memory.pm | 4 +- src/network/extreme/snmp/mode/stack.pm | 12 ++-- src/network/f5/bigip/snmp/mode/connections.pm | 4 +- src/network/f5/bigip/snmp/mode/nodestatus.pm | 6 +- src/network/f5/bigip/snmp/mode/poolstatus.pm | 12 ++-- src/network/f5/bigip/snmp/mode/tmmusage.pm | 4 +- src/network/f5/bigip/snmp/mode/trunks.pm | 12 ++-- .../f5/bigip/snmp/mode/virtualserverstatus.pm | 6 +- .../fortinet/fortiadc/snmp/mode/interfaces.pm | 10 +-- .../fortinet/fortiadc/snmp/mode/security.pm | 4 +- .../fortinet/fortiadc/snmp/mode/uptime.pm | 4 +- .../fortiadc/snmp/mode/virtualservers.pm | 6 +- .../fortiauthenticator/snmp/mode/cpu.pm | 4 +- .../fortiauthenticator/snmp/mode/ha.pm | 4 +- .../fortinet/fortigate/restapi/mode/health.pm | 6 +- .../fortigate/restapi/mode/licenses.pm | 4 +- .../fortinet/fortimanager/snmp/mode/cpu.pm | 4 +- .../fortinet/fortimanager/snmp/mode/disk.pm | 4 +- .../fortinet/fortimanager/snmp/mode/memory.pm | 4 +- .../fortiswitch/snmp/mode/interfaces.pm | 10 +-- .../fortinet/fortiswitch/snmp/mode/uptime.pm | 4 +- .../fortinet/fortiweb/snmp/mode/system.pm | 4 +- src/network/fritzbox/upnp/mode/system.pm | 4 +- .../standard/snmp/mode/configuration.pm | 4 +- .../hp/moonshot/snmp/mode/interfaces.pm | 10 +-- src/network/hp/procurve/snmp/mode/cpu.pm | 4 +- .../hp/procurve/snmp/mode/interfaces.pm | 12 ++-- src/network/hp/procurve/snmp/mode/memory.pm | 4 +- .../hp/procurve/snmp/mode/virtualchassis.pm | 18 ++--- src/network/huawei/snmp/mode/cpu.pm | 4 +- src/network/huawei/snmp/mode/interfaces.pm | 10 +-- src/network/huawei/snmp/mode/memory.pm | 4 +- src/network/infoblox/snmp/mode/dhcpusage.pm | 4 +- src/network/infoblox/snmp/mode/dnsusage.pm | 4 +- src/network/infoblox/snmp/mode/system.pm | 4 +- src/network/juniper/common/ive/mode/cpu.pm | 4 +- src/network/juniper/common/ive/mode/disk.pm | 4 +- .../juniper/common/ive/mode/logfile.pm | 4 +- .../juniper/common/junos/mode/cpsessions.pm | 4 +- .../common/junos/mode/cpuforwarding.pm | 4 +- .../juniper/common/junos/mode/flowsessions.pm | 4 +- .../juniper/common/junos/mode/interfaces.pm | 10 +-- .../juniper/common/junos/mode/ipsectunnel.pm | 6 +- .../common/junos/mode/ldpsessionstatus.pm | 8 +-- .../juniper/common/junos/mode/lspstatus.pm | 8 +-- .../common/junos/mode/memoryforwarding.pm | 4 +- .../common/junos/mode/rsvpsessionstatus.pm | 4 +- .../juniper/common/junos/mode/stack.pm | 12 ++-- .../juniper/common/screenos/snmp/mode/cpu.pm | 4 +- .../common/screenos/snmp/mode/memory.pm | 4 +- .../juniper/common/screenos/snmp/mode/nsrp.pm | 8 +-- .../common/screenos/snmp/mode/sessions.pm | 4 +- .../common/screenos/snmp/mode/vpnstatus.pm | 8 +-- .../common/screenos/snmp/mode/vpnusage.pm | 4 +- src/network/juniper/ggsn/mode/apnstats.pm | 4 +- src/network/juniper/ggsn/mode/globalstats.pm | 4 +- .../juniper/mag/mode/bladetemperature.pm | 4 +- .../juniper/trapeze/snmp/mode/apstatus.pm | 4 +- src/network/juniper/trapeze/snmp/mode/cpu.pm | 4 +- .../juniper/trapeze/snmp/mode/memory.pm | 4 +- src/network/kemp/snmp/mode/hastatus.pm | 8 +-- src/network/kemp/snmp/mode/rsstatus.pm | 8 +-- src/network/kemp/snmp/mode/vsstatus.pm | 8 +-- .../keysight/nvos/restapi/mode/hardware.pm | 12 ++-- .../keysight/nvos/restapi/mode/ports.pm | 12 ++-- .../keysight/nvos/restapi/mode/time.pm | 16 +++-- .../keysight/nvos/restapi/mode/uptime.pm | 4 +- .../lenovo/rackswitch/snmp/mode/hardware.pm | 6 +- .../lenovo/rackswitch/snmp/mode/interfaces.pm | 10 +-- .../lenovo/rackswitch/snmp/mode/uptime.pm | 4 +- src/network/libraesva/snmp/mode/interfaces.pm | 10 +-- src/network/libraesva/snmp/mode/load.pm | 4 +- src/network/libraesva/snmp/mode/storage.pm | 8 +-- src/network/libraesva/snmp/mode/system.pm | 6 +- .../microsens/g6/snmp/mode/cpudetailed.pm | 4 +- .../microsens/g6/snmp/mode/interfaces.pm | 10 +-- src/network/microsens/g6/snmp/mode/load.pm | 4 +- src/network/microsens/g6/snmp/mode/sfp.pm | 4 +- src/network/microsens/g6/snmp/mode/uptime.pm | 4 +- src/network/mikrotik/snmp/mode/disk.pm | 4 +- src/network/mikrotik/snmp/mode/firmware.pm | 4 +- src/network/mikrotik/snmp/mode/interfaces.pm | 10 +-- src/network/mikrotik/snmp/mode/memory.pm | 4 +- .../mitel/3300icp/snmp/mode/licenses.pm | 4 +- .../mitel/3300icp/snmp/mode/zapbandwidth.pm | 4 +- .../mitel/3300icp/snmp/mode/zapcalls.pm | 4 +- .../mrv/optiswitch/snmp/mode/interfaces.pm | 10 +-- .../optiswitch/snmp/mode/listinterfaces.pm | 6 +- .../mrv/optiswitch/snmp/mode/memory.pm | 4 +- src/network/netgear/mseries/snmp/mode/cpu.pm | 4 +- .../netgear/mseries/snmp/mode/memory.pm | 4 +- .../netgear/sseries/snmp/mode/interfaces.pm | 10 +-- src/network/nokia/timos/snmp/mode/bgpusage.pm | 8 +-- src/network/nokia/timos/snmp/mode/cpu.pm | 4 +- .../nokia/timos/snmp/mode/isisusage.pm | 8 +-- .../nokia/timos/snmp/mode/l2tpusage.pm | 8 +-- src/network/nokia/timos/snmp/mode/ldpusage.pm | 8 +-- src/network/nokia/timos/snmp/mode/memory.pm | 4 +- src/network/nokia/timos/snmp/mode/sapusage.pm | 8 +-- .../nortel/standard/snmp/mode/interfaces.pm | 10 +-- .../nortel/standard/snmp/mode/stack.pm | 6 +- src/network/oneaccess/snmp/mode/cellsradio.pm | 6 +- src/network/oneaccess/snmp/mode/cpu.pm | 4 +- src/network/oneaccess/snmp/mode/interfaces.pm | 10 +-- src/network/oneaccess/snmp/mode/memory.pm | 4 +- src/network/oneaccess/snmp/mode/rttprobes.pm | 6 +- src/network/opengear/snmp/mode/cpudetailed.pm | 4 +- src/network/opengear/snmp/mode/interfaces.pm | 10 +-- src/network/opengear/snmp/mode/load.pm | 4 +- src/network/opengear/snmp/mode/uptime.pm | 4 +- .../infiniband/snmp/mode/infinibandusage.pm | 4 +- .../oracle/otd/snmp/mode/vserverusage.pm | 4 +- src/network/paloalto/snmp/mode/memory.pm | 4 +- src/network/paloalto/snmp/mode/panorama.pm | 4 +- src/network/paloalto/ssh/mode/ha.pm | 18 ++--- src/network/paloalto/ssh/mode/interfaces.pm | 6 +- src/network/paloalto/ssh/mode/ipsec.pm | 6 +- src/network/paloalto/ssh/mode/licenses.pm | 4 +- src/network/paloalto/ssh/mode/system.pm | 4 +- src/network/peplink/balance/snmp/mode/cpu.pm | 4 +- .../peplink/balance/snmp/mode/memory.pm | 4 +- src/network/peplink/pepwave/snmp/mode/cpu.pm | 4 +- .../peplink/pepwave/snmp/mode/memory.pm | 4 +- .../peplink/pepwave/snmp/mode/wanusage.pm | 8 +-- src/network/perle/ids/snmp/mode/alarms.pm | 4 +- .../rmx/snmp/mode/videoconferencingusage.pm | 4 +- src/network/rad/airmux/snmp/mode/alarms.pm | 4 +- .../rad/airmux/snmp/mode/radiostatus.pm | 4 +- src/network/radware/alteon/snmp/mode/cpu.pm | 4 +- .../radware/alteon/snmp/mode/memory.pm | 4 +- .../radware/alteon/snmp/mode/vserverstatus.pm | 8 +-- src/network/raisecom/snmp/mode/cpu.pm | 4 +- src/network/raisecom/snmp/mode/interfaces.pm | 10 +-- src/network/redback/snmp/mode/cpu.pm | 4 +- src/network/redback/snmp/mode/disk.pm | 4 +- src/network/redback/snmp/mode/memory.pm | 4 +- .../snmp/mode/neighborconnections.pm | 4 +- src/network/ruckus/ap/snmp/mode/cpu.pm | 4 +- src/network/ruckus/ap/snmp/mode/memory.pm | 4 +- src/network/ruckus/ap/snmp/mode/users.pm | 4 +- src/network/ruckus/scg/snmp/mode/apstatus.pm | 4 +- src/network/ruckus/scg/snmp/mode/apusage.pm | 4 +- src/network/ruckus/scg/snmp/mode/ssidusage.pm | 4 +- .../ruckus/scg/snmp/mode/systemstats.pm | 4 +- .../smartzone/snmp/mode/accesspoints.pm | 6 +- .../zonedirector/snmp/mode/accesspoints.pm | 6 +- .../ruckus/zonedirector/snmp/mode/system.pm | 6 +- src/network/ruggedcom/mode/memory.pm | 4 +- src/network/ruggedcom/mode/temperature.pm | 4 +- src/network/securactive/mode/bca.pm | 4 +- src/network/silverpeak/snmp/mode/alarms.pm | 4 +- src/network/silverpeak/snmp/mode/uptime.pm | 4 +- .../sonicwall/snmp/mode/connections.pm | 4 +- src/network/sonicwall/snmp/mode/cpu.pm | 4 +- src/network/sonicwall/snmp/mode/memory.pm | 4 +- src/network/sonicwall/snmp/mode/vpn.pm | 4 +- src/network/sonus/sbc/snmp/mode/channels.pm | 4 +- .../sonus/sbc/snmp/mode/cpudetailed.pm | 4 +- src/network/sonus/sbc/snmp/mode/dspstats.pm | 4 +- src/network/sonus/sbc/snmp/mode/interfaces.pm | 10 +-- src/network/sonus/sbc/snmp/mode/load.pm | 4 +- src/network/sonus/sbc/snmp/mode/storage.pm | 8 +-- .../stonesoft/snmp/mode/clusterstate.pm | 6 +- .../stonesoft/snmp/mode/connections.pm | 4 +- src/network/stonesoft/snmp/mode/cpu.pm | 4 +- .../stonesoft/snmp/mode/droppedpackets.pm | 4 +- src/network/stonesoft/snmp/mode/memory.pm | 8 +-- .../stonesoft/snmp/mode/rejectedpackets.pm | 4 +- src/network/stonesoft/snmp/mode/storage.pm | 4 +- src/network/stormshield/api/mode/ha.pm | 18 ++--- src/network/stormshield/api/mode/health.pm | 6 +- .../stormshield/api/mode/interfaces.pm | 6 +- .../stormshield/snmp/mode/connections.pm | 4 +- src/network/stormshield/snmp/mode/health.pm | 6 +- .../stormshield/snmp/mode/vpnstatus.pm | 6 +- src/network/teltonika/snmp/mode/system.pm | 4 +- .../ubiquiti/airfiber/snmp/mode/radios.pm | 6 +- .../unifi/snmp/mode/virtualaccesspoints.pm | 6 +- src/network/ucopia/wlc/snmp/mode/system.pm | 8 +-- src/network/vectra/restapi/mode/disk.pm | 6 +- src/network/vectra/restapi/mode/interfaces.pm | 6 +- src/network/vectra/restapi/mode/memory.pm | 6 +- src/network/vectra/restapi/mode/sensors.pm | 24 +++---- .../versa/director/restapi/mode/devices.pm | 6 +- src/network/versa/snmp/mode/bgppeers.pm | 6 +- .../viptela/snmp/mode/controlconnections.pm | 6 +- src/network/viptela/snmp/mode/gretunnels.pm | 6 +- src/network/viptela/snmp/mode/interfaces.pm | 10 +-- src/network/viptela/snmp/mode/uptime.pm | 4 +- src/network/watchguard/snmp/mode/cluster.pm | 12 ++-- src/network/watchguard/snmp/mode/cpu.pm | 2 +- .../watchguard/snmp/mode/policyusage.pm | 4 +- src/network/zyxel/snmp/mode/cpu.pm | 4 +- src/network/zyxel/snmp/mode/memory.pm | 4 +- src/network/zyxel/snmp/mode/sessions.pm | 4 +- src/network/zyxel/snmp/mode/vpnstatus.pm | 8 +-- src/os/aix/local/mode/inodes.pm | 4 +- src/os/aix/local/mode/lvsync.pm | 6 +- src/os/aix/local/mode/process.pm | 4 +- src/os/aix/snmp/mode/swap.pm | 12 ++-- src/os/as400/connector/mode/command.pm | 6 +- src/os/as400/connector/mode/disks.pm | 6 +- src/os/as400/connector/mode/jobqueues.pm | 6 +- src/os/as400/connector/mode/subsystems.pm | 6 +- src/os/freebsd/snmp/mode/memory.pm | 8 +-- src/os/hpux/local/mode/inodes.pm | 4 +- src/os/hpux/local/mode/storage.pm | 4 +- src/os/hpux/snmp/mode/cpu.pm | 4 +- src/os/hpux/snmp/mode/load.pm | 4 +- src/os/hpux/snmp/mode/memory.pm | 4 +- src/os/hpux/snmp/mode/process.pm | 4 +- src/os/hpux/snmp/mode/storage.pm | 4 +- src/os/linux/local/mode/checkplugin.pm | 10 +-- src/os/linux/local/mode/connections.pm | 4 +- src/os/linux/local/mode/cpudetailed.pm | 4 +- src/os/linux/local/mode/directlvmusage.pm | 4 +- src/os/linux/local/mode/filesdate.pm | 4 +- src/os/linux/local/mode/filessize.pm | 8 +-- src/os/linux/local/mode/inodes.pm | 4 +- src/os/linux/local/mode/loadaverage.pm | 4 +- src/os/linux/local/mode/mountpoint.pm | 4 +- src/os/linux/local/mode/ntp.pm | 18 ++--- src/os/linux/local/mode/packeterrors.pm | 4 +- src/os/linux/local/mode/paging.pm | 4 +- src/os/linux/local/mode/pendingupdates.pm | 8 +-- src/os/linux/local/mode/storage.pm | 4 +- src/os/linux/local/mode/systemdscstatus.pm | 4 +- src/os/linux/local/mode/traffic.pm | 14 ++-- src/os/linux/local/mode/uptime.pm | 4 +- src/os/mac/snmp/mode/memory.pm | 8 +-- src/os/picos/snmp/mode/cpu.pm | 8 +-- src/os/picos/snmp/mode/interfaces.pm | 10 +-- src/os/picos/snmp/mode/listinterfaces.pm | 6 +- src/os/picos/snmp/mode/temperature.pm | 12 ++-- src/os/solaris/local/mode/analyzedisks.pm | 4 +- src/os/solaris/local/mode/cpu.pm | 4 +- src/os/solaris/local/mode/fcconnected.pm | 4 +- src/os/solaris/local/mode/fmadm.pm | 4 +- src/os/solaris/local/mode/hwraidctl.pm | 4 +- src/os/solaris/local/mode/svmdisks.pm | 4 +- src/os/solaris/local/mode/vxdisks.pm | 4 +- src/os/windows/local/mode/cmdreturn.pm | 4 +- src/os/windows/local/mode/ntp.pm | 4 +- src/os/windows/local/mode/pendingreboot.pm | 4 +- src/os/windows/snmp/mode/memory.pm | 4 +- src/os/windows/snmp/mode/service.pm | 4 +- src/os/windows/snmp/mode/swap.pm | 4 +- src/os/windows/wsman/mode/filesdate.pm | 4 +- src/os/windows/wsman/mode/filessize.pm | 8 +-- src/os/windows/wsman/mode/pendingreboot.pm | 4 +- src/os/windows/wsman/mode/processes.pm | 4 +- src/os/windows/wsman/mode/uptime.pm | 4 +- src/snmp_standard/mode/cpudetailed.pm | 4 +- src/snmp_standard/mode/diskio.pm | 4 +- src/snmp_standard/mode/inodes.pm | 4 +- src/snmp_standard/mode/interfaces.pm | 10 +-- src/snmp_standard/mode/isdnusage.pm | 4 +- src/snmp_standard/mode/listinterfaces.pm | 6 +- src/snmp_standard/mode/loadaverage.pm | 4 +- src/snmp_standard/mode/mtausage.pm | 4 +- src/snmp_standard/mode/numericvalue.pm | 4 +- src/snmp_standard/mode/printererror.pm | 8 +-- src/snmp_standard/mode/processcount.pm | 20 +++--- src/snmp_standard/mode/spanningtree.pm | 4 +- src/snmp_standard/mode/storage.pm | 8 +-- src/snmp_standard/mode/tcpcon.pm | 4 +- src/snmp_standard/mode/udpcon.pm | 4 +- src/snmp_standard/mode/uptime.pm | 4 +- src/snmp_standard/mode/vrrp.pm | 4 +- .../avid/isis/snmp/mode/performance.pm | 4 +- src/storage/avid/isis/snmp/mode/status.pm | 8 +-- src/storage/avid/isis/snmp/mode/usage.pm | 4 +- .../terastation/snmp/mode/arrayusage.pm | 4 +- .../dell/compellent/local/mode/hbausage.pm | 4 +- .../dell/compellent/local/mode/volumeusage.pm | 4 +- .../dell/compellent/snmp/mode/globalstatus.pm | 6 +- .../dell/equallogic/snmp/mode/arrayusage.pm | 4 +- .../dell/equallogic/snmp/mode/diskusage.pm | 6 +- .../dell/equallogic/snmp/mode/poolusage.pm | 4 +- .../dell/fluidfs/snmp/mode/volumeusage.pm | 4 +- .../dell/me4/restapi/mode/interfaces.pm | 6 +- .../dell/powerstore/restapi/mode/alerts.pm | 4 +- src/storage/emc/DataDomain/mode/filesystem.pm | 4 +- .../emc/DataDomain/mode/replication.pm | 6 +- .../emc/isilon/snmp/mode/clusterusage.pm | 8 +-- .../ssh/mode/monitoredparameters.pm | 4 +- .../emc/unisphere/restapi/mode/pools.pm | 6 +- .../unisphere/restapi/mode/replications.pm | 12 ++-- .../restapi/mode/storageresources.pm | 6 +- .../restapi/mode/clustercommunication.pm | 4 +- .../emc/vplex/restapi/mode/clusterdevices.pm | 4 +- .../emc/vplex/restapi/mode/directors.pm | 20 +++--- .../vplex/restapi/mode/distributeddevices.pm | 12 ++-- src/storage/emc/vplex/restapi/mode/fans.pm | 8 +-- src/storage/emc/vplex/restapi/mode/psus.pm | 8 +-- .../emc/vplex/restapi/mode/storagevolumes.pm | 4 +- src/storage/emc/xtremio/restapi/mode/dpg.pm | 6 +- .../emc/xtremio/restapi/mode/ssdiops.pm | 2 +- .../restapi/mode/storagecontrollers.pm | 6 +- src/storage/exagrid/snmp/mode/serverusage.pm | 4 +- .../fujitsu/eternus/dx/ssh/mode/cpu.pm | 4 +- .../fujitsu/eternus/dx/ssh/mode/portstats.pm | 4 +- .../fujitsu/eternus/dx/ssh/mode/raidgroups.pm | 4 +- src/storage/hitachi/hcp/snmp/mode/nodes.pm | 24 +++---- src/storage/hitachi/hcp/snmp/mode/volumes.pm | 6 +- src/storage/hp/3par/ssh/mode/afc.pm | 20 ++++-- src/storage/hp/3par/ssh/mode/cages.pm | 70 +++++++++++-------- src/storage/hp/3par/ssh/mode/diskusage.pm | 6 +- src/storage/hp/3par/ssh/mode/nodes.pm | 6 +- src/storage/hp/3par/ssh/mode/psu.pm | 6 +- src/storage/hp/eva/cli/mode/storageusage.pm | 4 +- .../hp/lefthand/snmp/mode/volumeusage.pm | 8 +-- .../hp/p2000/xmlapi/mode/controllers.pm | 30 ++++---- src/storage/hp/p2000/xmlapi/mode/ntp.pm | 4 +- src/storage/hp/p2000/xmlapi/mode/vdisks.pm | 6 +- .../hp/p2000/xmlapi/mode/volumesstats.pm | 4 +- .../storeonce/3/restapi/mode/clusterusage.pm | 8 +-- .../hp/storeonce/3/restapi/mode/fcsusage.pm | 8 +-- .../hp/storeonce/3/restapi/mode/nasusage.pm | 8 +-- .../3/restapi/mode/servicesetusage.pm | 8 +-- .../hp/storeonce/4/restapi/mode/appliances.pm | 6 +- .../hp/storeonce/4/restapi/mode/stores.pm | 6 +- .../huawei/oceanstor/snmp/mode/controllers.pm | 6 +- .../oceanstor/snmp/mode/storagepools.pm | 6 +- .../ibm/fs900/snmp/mode/arraysstatus.pm | 8 +-- .../ibm/fs900/snmp/mode/arraysusage.pm | 4 +- src/storage/ibm/fs900/snmp/mode/fcusage.pm | 4 +- src/storage/ibm/storwize/ssh/mode/eventlog.pm | 4 +- .../ibm/storwize/ssh/mode/poolusage.pm | 4 +- .../ibm/storwize/ssh/mode/replication.pm | 4 +- .../kaminario/restapi/mode/systemusage.pm | 4 +- .../kaminario/restapi/mode/volumeusage.pm | 4 +- .../lenovo/iomega/snmp/mode/interfaces.pm | 10 +-- .../oncommandapi/mode/aggregateraidstatus.pm | 4 +- .../oncommandapi/mode/aggregatestatus.pm | 4 +- .../ontap/oncommandapi/mode/aggregateusage.pm | 4 +- .../ontap/oncommandapi/mode/clusterio.pm | 4 +- .../ontap/oncommandapi/mode/clusterstatus.pm | 4 +- .../ontap/oncommandapi/mode/clusterusage.pm | 4 +- .../ontap/oncommandapi/mode/diskfailed.pm | 4 +- .../ontap/oncommandapi/mode/diskspare.pm | 4 +- .../ontap/oncommandapi/mode/fcportstatus.pm | 4 +- .../ontap/oncommandapi/mode/lunalignment.pm | 4 +- .../ontap/oncommandapi/mode/lunonline.pm | 4 +- .../ontap/oncommandapi/mode/lunusage.pm | 4 +- .../oncommandapi/mode/nodefailoverstatus.pm | 4 +- .../oncommandapi/mode/nodehardwarestatus.pm | 8 +-- .../ontap/oncommandapi/mode/qtreestatus.pm | 4 +- .../oncommandapi/mode/snapmirrorstatus.pm | 4 +- .../oncommandapi/mode/snapmirrorusage.pm | 4 +- .../netapp/ontap/oncommandapi/mode/volumes.pm | 6 +- .../netapp/ontap/restapi/mode/aggregates.pm | 6 +- .../netapp/ontap/restapi/mode/cluster.pm | 6 +- src/storage/netapp/ontap/restapi/mode/luns.pm | 6 +- .../netapp/ontap/restapi/mode/snapmirrors.pm | 6 +- .../netapp/ontap/restapi/mode/volumes.pm | 6 +- .../netapp/ontap/snmp/mode/aggregates.pm | 6 +- .../netapp/ontap/snmp/mode/cacheage.pm | 4 +- .../netapp/ontap/snmp/mode/clusternodes.pm | 24 +++---- .../netapp/ontap/snmp/mode/cpstatistics.pm | 4 +- src/storage/netapp/ontap/snmp/mode/cpuload.pm | 4 +- .../netapp/ontap/snmp/mode/failover.pm | 12 ++-- src/storage/netapp/ontap/snmp/mode/filesys.pm | 10 +-- .../netapp/ontap/snmp/mode/ndmpsessions.pm | 4 +- src/storage/netapp/ontap/snmp/mode/plexes.pm | 6 +- .../netapp/ontap/snmp/mode/sharecalls.pm | 4 +- src/storage/netapp/ontap/snmp/mode/sis.pm | 6 +- .../netapp/ontap/snmp/mode/snapmirrorlag.pm | 10 +-- .../netapp/ontap/snmp/mode/snapshotage.pm | 4 +- .../netapp/ontap/snmp/mode/snapvaultusage.pm | 8 +-- .../netapp/ontap/snmp/mode/volumeoptions.pm | 12 ++-- .../restapi/mode/storagecontrollers.pm | 6 +- .../santricity/restapi/mode/storagepools.pm | 6 +- .../santricity/restapi/mode/storagesystems.pm | 6 +- .../santricity/restapi/mode/storagevolumes.pm | 6 +- src/storage/nimble/restapi/mode/arrays.pm | 6 +- src/storage/nimble/restapi/mode/volumes.pm | 6 +- src/storage/nimble/snmp/mode/globalstats.pm | 4 +- src/storage/nimble/snmp/mode/volumeusage.pm | 4 +- src/storage/oracle/zs/restapi/mode/pools.pm | 6 +- src/storage/oracle/zs/snmp/mode/shareusage.pm | 4 +- src/storage/panzura/snmp/mode/cpucloud.pm | 4 +- .../panzura/snmp/mode/diskusagelocal.pm | 4 +- src/storage/panzura/snmp/mode/memory.pm | 4 +- src/storage/panzura/snmp/mode/ratios.pm | 4 +- .../flasharray/legacy/restapi/mode/alarms.pm | 4 +- .../legacy/restapi/mode/pgroupreplication.pm | 4 +- .../legacy/restapi/mode/volumeusage.pm | 4 +- .../flasharray/v2/restapi/mode/alerts.pm | 4 +- .../flashblade/v2/restapi/mode/alerts.pm | 4 +- src/storage/purestorage/snmp/mode/stats.pm | 4 +- src/storage/qnap/snmp/mode/pools.pm | 6 +- src/storage/qnap/snmp/mode/upgrade.pm | 4 +- src/storage/qnap/snmp/mode/volumes.pm | 6 +- .../quantum/dxi/ssh/mode/compaction.pm | 4 +- src/storage/quantum/dxi/ssh/mode/dedupnas.pm | 4 +- src/storage/quantum/dxi/ssh/mode/dedupvtl.pm | 4 +- src/storage/quantum/dxi/ssh/mode/health.pm | 4 +- .../dxi/ssh/mode/hostbusadapterstatus.pm | 4 +- src/storage/quantum/dxi/ssh/mode/memory.pm | 4 +- src/storage/quantum/dxi/ssh/mode/network.pm | 4 +- .../quantum/dxi/ssh/mode/reclamation.pm | 4 +- .../dxi/ssh/mode/storagearraystatus.pm | 4 +- .../quantum/dxi/ssh/mode/systemstatus.pm | 4 +- src/storage/synology/snmp/mode/ha.pm | 6 +- src/storage/synology/snmp/mode/temperature.pm | 4 +- src/storage/synology/snmp/mode/upgrade.pm | 4 +- src/storage/wd/nas/snmp/mode/hardware.pm | 4 +- 1216 files changed, 3568 insertions(+), 3544 deletions(-) diff --git a/doc/en/developer/guide.md b/doc/en/developer/guide.md index 9e3b11e5e..9328a795f 100644 --- a/doc/en/developer/guide.md +++ b/doc/en/developer/guide.md @@ -1727,11 +1727,11 @@ Add a description of the mode options: =item B<--warning> - Threshold warning for dropped packets in packets per second. + Warning threshold for dropped packets in packets per second. =item B<--critical> - Threshold critical for dropped packets in packets per second. + Critical threshold for dropped packets in packets per second. =back diff --git a/doc/fr/developer/guide.rst b/doc/fr/developer/guide.rst index 3ff5b8c41..bd5bf4d1e 100644 --- a/doc/fr/developer/guide.rst +++ b/doc/fr/developer/guide.rst @@ -1743,11 +1743,11 @@ Ajouter une description aux options du mode : =item B<--warning> - Threshold warning for dropped packets in packets per second. + Warning threshold for dropped packets in packets per second. =item B<--critical> - Threshold critical for dropped packets in packets per second. + Critical threshold for dropped packets in packets per second. =back diff --git a/src/apps/antivirus/clamav/local/mode/updatestatus.pm b/src/apps/antivirus/clamav/local/mode/updatestatus.pm index fff4ca340..8e22b6812 100644 --- a/src/apps/antivirus/clamav/local/mode/updatestatus.pm +++ b/src/apps/antivirus/clamav/local/mode/updatestatus.pm @@ -247,32 +247,32 @@ Antivirus daily.cvd file (Default: '/var/lib/clamav/daily.cvd'). =item B<--warning-engine-status> -Set warning threshold for status (Default: '') +Define the conditions to match for the status to be WARNING (Default: '') You can use the following variables: %{last_engine_version}, %{current_engine_version} =item B<--critical-engine-status> -Set critical threshold for status (Default: '%{last_engine_version} ne %{current_engine_version}'). +Define the conditions to match for the status to be CRITICAL (Default: '%{last_engine_version} ne %{current_engine_version}'). You can use the following variables: %{last_engine_version}, %{current_engine_version} =item B<--warning-maindb-status> -Set warning threshold for status (Default: '') +Define the conditions to match for the status to be WARNING (Default: '') You can use the following variables: %{last_maindb_version}, %{current_maindb_version}, %{current_maindb_timediff} =item B<--critical-maindb-status> -Set critical threshold for status (Default: '%{last_maindb_version} ne %{current_maindb_version}'). +Define the conditions to match for the status to be CRITICAL (Default: '%{last_maindb_version} ne %{current_maindb_version}'). You can use the following variables: %{last_maindb_version}, %{current_maindb_version}, %{current_maindb_timediff} =item B<--warning-dailydb-status> -Set warning threshold for status (Default: '') +Define the conditions to match for the status to be WARNING (Default: '') You can use the following variables: %{last_dailydb_version}, %{current_dailydb_version}, %{current_dailydb_timediff} =item B<--critical-dailydb-status> -Set critical threshold for status (Default: '%{last_dailydb_version} ne %{current_dailydb_version} || %{current_dailydb_timediff} > 432000'). +Define the conditions to match for the status to be CRITICAL (Default: '%{last_dailydb_version} ne %{current_dailydb_version} || %{current_dailydb_timediff} > 432000'). You can use the following variables: %{last_dailydb_version}, %{current_dailydb_version}, %{current_dailydb_timediff} =back diff --git a/src/apps/antivirus/kaspersky/snmp/mode/deployment.pm b/src/apps/antivirus/kaspersky/snmp/mode/deployment.pm index 6fbc8642e..fac38cfa6 100644 --- a/src/apps/antivirus/kaspersky/snmp/mode/deployment.pm +++ b/src/apps/antivirus/kaspersky/snmp/mode/deployment.pm @@ -297,22 +297,22 @@ Check antivirus software deployment status. =item B<--warning-status> -Set warning threshold for status. (Default: '%{status} =~ /Warning/i'). +Define the conditions to match for the status to be WARNING. (Default: '%{status} =~ /Warning/i'). Can use special variables like: %{status} =item B<--critical-status> -Set critical threshold for status. (Default: '%{status} =~ /Critical/i'). +Define the conditions to match for the status to be CRITICAL. (Default: '%{status} =~ /Critical/i'). Can use special variables like: %{status} =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'progress' (counter or %), 'failed', 'expiring', 'expired'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'progress' (counter or %), 'failed', 'expiring', 'expired'. =item B<--percent> diff --git a/src/apps/antivirus/kaspersky/snmp/mode/events.pm b/src/apps/antivirus/kaspersky/snmp/mode/events.pm index 9dbbcb7ed..65730ee8b 100644 --- a/src/apps/antivirus/kaspersky/snmp/mode/events.pm +++ b/src/apps/antivirus/kaspersky/snmp/mode/events.pm @@ -120,22 +120,22 @@ Check events status. =item B<--warning-status> -Set warning threshold for status. (Default: '%{status} =~ /Warning/i'). +Define the conditions to match for the status to be WARNING. (Default: '%{status} =~ /Warning/i'). Can use special variables like: %{status} =item B<--critical-status> -Set critical threshold for status. (Default: '%{status} =~ /Critical/i'). +Define the conditions to match for the status to be CRITICAL. (Default: '%{status} =~ /Critical/i'). Can use special variables like: %{status} =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'events'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'events'. =back diff --git a/src/apps/antivirus/kaspersky/snmp/mode/fullscan.pm b/src/apps/antivirus/kaspersky/snmp/mode/fullscan.pm index 40a1d693a..fb7d7878e 100644 --- a/src/apps/antivirus/kaspersky/snmp/mode/fullscan.pm +++ b/src/apps/antivirus/kaspersky/snmp/mode/fullscan.pm @@ -118,22 +118,22 @@ Check full scan status. =item B<--warning-status> -Set warning threshold for status. (Default: '%{status} =~ /Warning/i'). +Define the conditions to match for the status to be WARNING. (Default: '%{status} =~ /Warning/i'). Can use special variables like: %{status} =item B<--critical-status> -Set critical threshold for status. (Default: '%{status} =~ /Critical/i'). +Define the conditions to match for the status to be CRITICAL. (Default: '%{status} =~ /Critical/i'). Can use special variables like: %{status} =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'not-scanned'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'not-scanned'. =back diff --git a/src/apps/antivirus/kaspersky/snmp/mode/logicalnetwork.pm b/src/apps/antivirus/kaspersky/snmp/mode/logicalnetwork.pm index 1e6cd28fe..57464fd75 100644 --- a/src/apps/antivirus/kaspersky/snmp/mode/logicalnetwork.pm +++ b/src/apps/antivirus/kaspersky/snmp/mode/logicalnetwork.pm @@ -152,23 +152,23 @@ Check logical network status. =item B<--warning-status> -Set warning threshold for status. (Default: '%{status} =~ /Warning/i'). +Define the conditions to match for the status to be WARNING. (Default: '%{status} =~ /Warning/i'). Can use special variables like: %{status} =item B<--critical-status> -Set critical threshold for status. (Default: '%{status} =~ /Critical/i'). +Define the conditions to match for the status to be CRITICAL. (Default: '%{status} =~ /Critical/i'). Can use special variables like: %{status} =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'new-hosts', 'groups', 'not-connected-long-time', 'not-controlled'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'new-hosts', 'groups', 'not-connected-long-time', 'not-controlled'. diff --git a/src/apps/antivirus/kaspersky/snmp/mode/protection.pm b/src/apps/antivirus/kaspersky/snmp/mode/protection.pm index 9aca57eb6..2dae3e613 100644 --- a/src/apps/antivirus/kaspersky/snmp/mode/protection.pm +++ b/src/apps/antivirus/kaspersky/snmp/mode/protection.pm @@ -162,23 +162,23 @@ Check protection status. =item B<--warning-status> -Set warning threshold for status. (Default: '%{status} =~ /Warning/i'). +Define the conditions to match for the status to be WARNING. (Default: '%{status} =~ /Warning/i'). Can use special variables like: %{status} =item B<--critical-status> -Set critical threshold for status. (Default: '%{status} =~ /Critical/i'). +Define the conditions to match for the status to be CRITICAL. (Default: '%{status} =~ /Critical/i'). Can use special variables like: %{status} =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'no-antivirus', 'no-real-time', 'not-acceptable-level', 'not-cured-objects', 'too-many-threats'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'no-antivirus', 'no-real-time', 'not-acceptable-level', 'not-cured-objects', 'too-many-threats'. diff --git a/src/apps/antivirus/kaspersky/snmp/mode/updates.pm b/src/apps/antivirus/kaspersky/snmp/mode/updates.pm index e30981253..7449cf5d5 100644 --- a/src/apps/antivirus/kaspersky/snmp/mode/updates.pm +++ b/src/apps/antivirus/kaspersky/snmp/mode/updates.pm @@ -197,22 +197,22 @@ Check updates status. =item B<--warning-status> -Set warning threshold for status. (Default: '%{status} =~ /Warning/i'). +Define the conditions to match for the status to be WARNING. (Default: '%{status} =~ /Warning/i'). Can use special variables like: %{status} =item B<--critical-status> -Set critical threshold for status. (Default: '%{status} =~ /Critical/i'). +Define the conditions to match for the status to be CRITICAL. (Default: '%{status} =~ /Critical/i'). Can use special variables like: %{status} =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'last-server-update', 'not-updated'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'last-server-update', 'not-updated'. =item B<--timezone> diff --git a/src/apps/antivirus/mcafee/webgateway/snmp/mode/clients.pm b/src/apps/antivirus/mcafee/webgateway/snmp/mode/clients.pm index 6b19bf19f..881901e25 100644 --- a/src/apps/antivirus/mcafee/webgateway/snmp/mode/clients.pm +++ b/src/apps/antivirus/mcafee/webgateway/snmp/mode/clients.pm @@ -98,12 +98,12 @@ Only display some counters (regexp can be used). =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'clients', 'sockets'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'clients', 'sockets'. =back diff --git a/src/apps/antivirus/mcafee/webgateway/snmp/mode/connections.pm b/src/apps/antivirus/mcafee/webgateway/snmp/mode/connections.pm index c2972543a..bdb280b61 100644 --- a/src/apps/antivirus/mcafee/webgateway/snmp/mode/connections.pm +++ b/src/apps/antivirus/mcafee/webgateway/snmp/mode/connections.pm @@ -142,13 +142,13 @@ Only display some counters (regexp can be used). =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'legitimate', 'blocked', 'blocked-by-am', 'blocked-by-mf', 'blocked-by-uf'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'legitimate', 'blocked', 'blocked-by-am', 'blocked-by-mf', 'blocked-by-uf'. diff --git a/src/apps/antivirus/mcafee/webgateway/snmp/mode/detections.pm b/src/apps/antivirus/mcafee/webgateway/snmp/mode/detections.pm index cb949784e..f7cf03053 100644 --- a/src/apps/antivirus/mcafee/webgateway/snmp/mode/detections.pm +++ b/src/apps/antivirus/mcafee/webgateway/snmp/mode/detections.pm @@ -144,12 +144,12 @@ Only display some counters (regexp can be used). =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'malware-detected', 'category' =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'malware-detected', 'category' =back diff --git a/src/apps/antivirus/mcafee/webgateway/snmp/mode/ftpstatistics.pm b/src/apps/antivirus/mcafee/webgateway/snmp/mode/ftpstatistics.pm index 10a1ca154..d6245aaf2 100644 --- a/src/apps/antivirus/mcafee/webgateway/snmp/mode/ftpstatistics.pm +++ b/src/apps/antivirus/mcafee/webgateway/snmp/mode/ftpstatistics.pm @@ -135,13 +135,13 @@ Only display some counters (regexp can be used). =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'client-to-proxy', 'server-to-proxy', 'proxy-to-client', 'proxy-to-server'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'client-to-proxy', 'server-to-proxy', 'proxy-to-client', 'proxy-to-server'. diff --git a/src/apps/antivirus/mcafee/webgateway/snmp/mode/httpsstatistics.pm b/src/apps/antivirus/mcafee/webgateway/snmp/mode/httpsstatistics.pm index 3d9d4c318..1d25437f4 100644 --- a/src/apps/antivirus/mcafee/webgateway/snmp/mode/httpsstatistics.pm +++ b/src/apps/antivirus/mcafee/webgateway/snmp/mode/httpsstatistics.pm @@ -151,13 +151,13 @@ Only display some counters (regexp can be used). =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'request', 'client-to-proxy', 'server-to-proxy', 'proxy-to-client', 'proxy-to-server'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'request', 'client-to-proxy', 'server-to-proxy', 'proxy-to-client', 'proxy-to-server'. diff --git a/src/apps/antivirus/mcafee/webgateway/snmp/mode/httpstatistics.pm b/src/apps/antivirus/mcafee/webgateway/snmp/mode/httpstatistics.pm index 4cca9c808..917ac60e0 100644 --- a/src/apps/antivirus/mcafee/webgateway/snmp/mode/httpstatistics.pm +++ b/src/apps/antivirus/mcafee/webgateway/snmp/mode/httpstatistics.pm @@ -152,13 +152,13 @@ Only display some counters (regexp can be used). =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'request', 'client-to-proxy', 'server-to-proxy', 'proxy-to-client', 'proxy-to-server'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'request', 'client-to-proxy', 'server-to-proxy', 'proxy-to-client', 'proxy-to-server'. diff --git a/src/apps/antivirus/mcafee/webgateway/snmp/mode/versions.pm b/src/apps/antivirus/mcafee/webgateway/snmp/mode/versions.pm index 77dbb4202..a1b4d8d50 100644 --- a/src/apps/antivirus/mcafee/webgateway/snmp/mode/versions.pm +++ b/src/apps/antivirus/mcafee/webgateway/snmp/mode/versions.pm @@ -169,12 +169,12 @@ Only display some counters (regexp can be used). =item B<--warning-*> -Threshold warning on last update. +Warning threshold on last update. Can be: 'dat-version', 'tsdb-version', 'proactive-version'. =item B<--critical-*> -Threshold critical on last update. +Critical threshold on last update. Can be: 'dat-version', 'tsdb-version', 'proactive-version'. =back diff --git a/src/apps/apache/serverstatus/mode/responsetime.pm b/src/apps/apache/serverstatus/mode/responsetime.pm index feb8932b7..74d203c9d 100644 --- a/src/apps/apache/serverstatus/mode/responsetime.pm +++ b/src/apps/apache/serverstatus/mode/responsetime.pm @@ -148,23 +148,23 @@ Set HTTP headers (Multiple option) =item B<--unknown-status> -Threshold warning for http response code +Warning threshold for http response code =item B<--warning-status> -Threshold warning for http response code +Warning threshold for http response code =item B<--critical-status> -Threshold critical for http response code (Default: '%{http_code} < 200 or %{http_code} >= 300') +Critical threshold for http response code (Default: '%{http_code} < 200 or %{http_code} >= 300') =item B<--warning> -Threshold warning in seconds (server-status page response time) +Warning threshold in seconds (server-status page response time) =item B<--critical> -Threshold critical in seconds (server-status page response time) +Critical threshold in seconds (server-status page response time) =back diff --git a/src/apps/automation/ansible/tower/mode/hosts.pm b/src/apps/automation/ansible/tower/mode/hosts.pm index 265ac0e6b..de9492696 100644 --- a/src/apps/automation/ansible/tower/mode/hosts.pm +++ b/src/apps/automation/ansible/tower/mode/hosts.pm @@ -145,17 +145,17 @@ Display failed hosts list in verbose output. =item B<--unknown-job-status> -Set unknown threshold for status (Default: '%{last_job_status} =~ /default/'). +Define the conditions to match for the status to be UNKNOWN (Default: '%{last_job_status} =~ /default/'). You can use the following variables: %{last_job_status}, %{display} =item B<--warning-job-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{last_job_status}, %{display} =item B<--critical-job-status> -Set critical threshold for status (Default: '%{last_job_status} =~ /failed/'). +Define the conditions to match for the status to be CRITICAL (Default: '%{last_job_status} =~ /failed/'). You can use the following variables: %{last_job_status}, %{display} =item B<--warning-*> B<--critical-*> diff --git a/src/apps/automation/ansible/tower/mode/jobtemplates.pm b/src/apps/automation/ansible/tower/mode/jobtemplates.pm index 0d82a5103..997120e90 100644 --- a/src/apps/automation/ansible/tower/mode/jobtemplates.pm +++ b/src/apps/automation/ansible/tower/mode/jobtemplates.pm @@ -215,17 +215,17 @@ Number of seconds between retries (Default : 10). =item B<--unknown-job-status> -Set unknown threshold for status (Default: '%{last_job_status} =~ /default/'). +Define the conditions to match for the status to be UNKNOWN (Default: '%{last_job_status} =~ /default/'). You can use the following variables: %{last_job_status}, %{display} =item B<--warning-job-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{last_job_status}, %{display} =item B<--critical-job-status> -Set critical threshold for status (Default: '%{last_job_status} =~ /failed/'). +Define the conditions to match for the status to be CRITICAL (Default: '%{last_job_status} =~ /failed/'). You can use the following variables: %{last_job_status}, %{display} =item B<--warning-*> B<--critical-*> diff --git a/src/apps/automation/ansible/tower/mode/schedules.pm b/src/apps/automation/ansible/tower/mode/schedules.pm index c57c678f9..9548051a4 100644 --- a/src/apps/automation/ansible/tower/mode/schedules.pm +++ b/src/apps/automation/ansible/tower/mode/schedules.pm @@ -166,17 +166,17 @@ Filter schedule name (Can use regexp). =item B<--unknown-job-status> -Set unknown threshold for status (Default: '%{last_job_status} =~ /default/'). +Define the conditions to match for the status to be UNKNOWN (Default: '%{last_job_status} =~ /default/'). You can use the following variables: %{last_job_status}, %{display} =item B<--warning-job-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{last_job_status}, %{display} =item B<--critical-job-status> -Set critical threshold for status (Default: '%{last_job_status} =~ /failed/'). +Define the conditions to match for the status to be CRITICAL (Default: '%{last_job_status} =~ /failed/'). You can use the following variables: %{last_job_status}, %{display} =item B<--warning-*> B<--critical-*> diff --git a/src/apps/backup/arcserve/udp/mssql/mode/jobstatus.pm b/src/apps/backup/arcserve/udp/mssql/mode/jobstatus.pm index 629bdbe25..f48511f01 100644 --- a/src/apps/backup/arcserve/udp/mssql/mode/jobstatus.pm +++ b/src/apps/backup/arcserve/udp/mssql/mode/jobstatus.pm @@ -230,17 +230,17 @@ Timezone of mssql server (If not set, we use current server execution timezone). =item B<--ok-status> -Set ok threshold for status (Default: '%{status} == 1') +Define the conditions to match for the status to be OK (Default: '%{status} == 1') You can use the following variables: %{display}, %{status} =item B<--warning-status> -Set warning threshold for status (Default: '%{status} == 1') +Define the conditions to match for the status to be WARNING (Default: '%{status} == 1') You can use the following variables: %{display}, %{status}, %{type} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} != 1'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} != 1'). You can use the following variables: %{display}, %{status}, %{type} =item B<--warning-total> diff --git a/src/apps/backup/backupexec/local/mode/alerts.pm b/src/apps/backup/backupexec/local/mode/alerts.pm index 329efdb48..7a52e24b4 100644 --- a/src/apps/backup/backupexec/local/mode/alerts.pm +++ b/src/apps/backup/backupexec/local/mode/alerts.pm @@ -277,12 +277,12 @@ Only get alerts by severity (can be a regexp). =item B<--warning-status> -Set warning threshold for status (Default: '%{severity} =~ /warning/i') +Define the conditions to match for the status to be WARNING (Default: '%{severity} =~ /warning/i') You can use the following variables: %{name}, %{severity}, %{source}, %{category}, %{timeraised}, %{message} =item B<--critical-status> -Set critical threshold for status (Default: '%{severity} =~ /error/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{severity} =~ /error/i'). You can use the following variables: %{name}, %{severity}, %{source}, %{category}, %{timeraised}, %{message} =item B<--warning-*> B<--critical-*> diff --git a/src/apps/backup/backupexec/local/mode/disks.pm b/src/apps/backup/backupexec/local/mode/disks.pm index c32524720..70dfcb332 100644 --- a/src/apps/backup/backupexec/local/mode/disks.pm +++ b/src/apps/backup/backupexec/local/mode/disks.pm @@ -304,12 +304,12 @@ Filter disks by type (can be a regexp). =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{status}, %{name}, %{type}. =item B<--critical-status> -Set critical threshold for status. +Define the conditions to match for the status to be CRITICAL. You can use the following variables: %{status}, %{name}, %{type}. =item B<--warning-*> B<--critical-*> diff --git a/src/apps/backup/backupexec/local/mode/jobs.pm b/src/apps/backup/backupexec/local/mode/jobs.pm index 3a1c8804b..4fea883e5 100644 --- a/src/apps/backup/backupexec/local/mode/jobs.pm +++ b/src/apps/backup/backupexec/local/mode/jobs.pm @@ -307,12 +307,12 @@ Filter job with end time greater than current time less value in seconds (Defaul =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{name}, %{status}, %{subStatus}, %{type}, %{isActive}. =item B<--critical-status> -Set critical threshold for status (Default: 'not %{status} =~ /succeeded/i'). +Define the conditions to match for the status to be CRITICAL (Default: 'not %{status} =~ /succeeded/i'). You can use the following variables: %{name}, %{status}, %{subStatus}, %{type}, %{isActive}. =item B<--warning-long> diff --git a/src/apps/backup/commvault/commserve/restapi/mode/alerts.pm b/src/apps/backup/commvault/commserve/restapi/mode/alerts.pm index 6b4ac6166..c11e0d2ba 100644 --- a/src/apps/backup/commvault/commserve/restapi/mode/alerts.pm +++ b/src/apps/backup/commvault/commserve/restapi/mode/alerts.pm @@ -211,12 +211,12 @@ Filter alerts by type (can be a regexp). =item B<--warning-status> -Set warning threshold for status (Default: '%{severity} =~ /warning/') +Define the conditions to match for the status to be WARNING (Default: '%{severity} =~ /warning/') You can use the following variables: %{severity}, %{status}, %{type}, %{name}, %{since} =item B<--critical-status> -Set critical threshold for status (Default: '%{severity} =~ /critical/'). +Define the conditions to match for the status to be CRITICAL (Default: '%{severity} =~ /critical/'). You can use the following variables: %{severity}, %{status}, %{type}, %{name}, %{since} =item B<--memory> diff --git a/src/apps/backup/commvault/commserve/restapi/mode/jobs.pm b/src/apps/backup/commvault/commserve/restapi/mode/jobs.pm index f343dc15b..5a5ff6074 100644 --- a/src/apps/backup/commvault/commserve/restapi/mode/jobs.pm +++ b/src/apps/backup/commvault/commserve/restapi/mode/jobs.pm @@ -265,12 +265,12 @@ Set timeframe in seconds (E.g '3600' to check last 60 minutes). =item B<--warning-status> -Set warning threshold for status (Default: '%{status} =~ /abnormal/i') +Define the conditions to match for the status to be WARNING (Default: '%{status} =~ /abnormal/i') You can use the following variables: %{display}, %{status}, %{type} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} =~ /errors|failed/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} =~ /errors|failed/i'). You can use the following variables: %{display}, %{status}, %{type} =item B<--warning-long> diff --git a/src/apps/backup/commvault/commserve/restapi/mode/mediaagents.pm b/src/apps/backup/commvault/commserve/restapi/mode/mediaagents.pm index 2ef21ad6c..5e5092701 100644 --- a/src/apps/backup/commvault/commserve/restapi/mode/mediaagents.pm +++ b/src/apps/backup/commvault/commserve/restapi/mode/mediaagents.pm @@ -177,17 +177,17 @@ Filter media agents by name (Can be a regexp). =item B<--unknown-device-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{status}, %{name} =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{status}, %{is_maintenance}, %{offline_reason}, %{name} =item B<--critical-status> -Set critical threshold for status (Default: '%{is_maintenance} eq "no" and %{status} eq "offline"'). +Define the conditions to match for the status to be CRITICAL (Default: '%{is_maintenance} eq "no" and %{status} eq "offline"'). You can use the following variables: %{status}, %{is_maintenance}, %{offline_reason}, %{name} =item B<--warning-*> B<--critical-*> diff --git a/src/apps/backup/commvault/commserve/restapi/mode/storagepools.pm b/src/apps/backup/commvault/commserve/restapi/mode/storagepools.pm index 0705458aa..87a50cc03 100644 --- a/src/apps/backup/commvault/commserve/restapi/mode/storagepools.pm +++ b/src/apps/backup/commvault/commserve/restapi/mode/storagepools.pm @@ -166,17 +166,17 @@ Filter storage pools by name (can be a regexp). =item B<--unknown-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{status}, %{display} =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{status}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} !~ /online/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} !~ /online/i'). You can use the following variables: %{status}, %{display} =item B<--warning-*> B<--critical-*> diff --git a/src/apps/backup/netapp/snapcenter/restapi/mode/jobs.pm b/src/apps/backup/netapp/snapcenter/restapi/mode/jobs.pm index f7d072bfb..9c2a03ee9 100644 --- a/src/apps/backup/netapp/snapcenter/restapi/mode/jobs.pm +++ b/src/apps/backup/netapp/snapcenter/restapi/mode/jobs.pm @@ -251,17 +251,17 @@ Set timezone (If not set, we use current server execution timezone). =item B<--unknown-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{display}, %{status}, %{type} =item B<--warning-status> -Set warning threshold for status (Default: '%{status} =~ /warning/i'). +Define the conditions to match for the status to be WARNING (Default: '%{status} =~ /warning/i'). You can use the following variables: %{display}, %{status}, %{type} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} =~ /failed/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} =~ /failed/i'). You can use the following variables: %{display}, %{status}, %{type} =item B<--warning-total> diff --git a/src/apps/backup/netbackup/local/mode/dedupstatus.pm b/src/apps/backup/netbackup/local/mode/dedupstatus.pm index 1dab88953..6055c9a2b 100644 --- a/src/apps/backup/netbackup/local/mode/dedupstatus.pm +++ b/src/apps/backup/netbackup/local/mode/dedupstatus.pm @@ -206,12 +206,12 @@ Set critical threshold in percent. =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{display}, %{status} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} !~ /up/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} !~ /up/i'). You can use the following variables: %{display}, %{status} =back diff --git a/src/apps/backup/netbackup/local/mode/drivecleaning.pm b/src/apps/backup/netbackup/local/mode/drivecleaning.pm index 3b790a326..8f6dce3ca 100644 --- a/src/apps/backup/netbackup/local/mode/drivecleaning.pm +++ b/src/apps/backup/netbackup/local/mode/drivecleaning.pm @@ -126,12 +126,12 @@ Filter drive name (can be a regexp). =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'cleaning'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'cleaning'. =back diff --git a/src/apps/backup/netbackup/local/mode/drivestatus.pm b/src/apps/backup/netbackup/local/mode/drivestatus.pm index 097c47b95..c903a2afb 100644 --- a/src/apps/backup/netbackup/local/mode/drivestatus.pm +++ b/src/apps/backup/netbackup/local/mode/drivestatus.pm @@ -132,12 +132,12 @@ Filter drive name (can be a regexp). =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{display}, %{status} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} !~ /up/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} !~ /up/i'). You can use the following variables: %{display}, %{status} =back diff --git a/src/apps/backup/netbackup/local/mode/jobstatus.pm b/src/apps/backup/netbackup/local/mode/jobstatus.pm index 40575db83..6ab026f75 100644 --- a/src/apps/backup/netbackup/local/mode/jobstatus.pm +++ b/src/apps/backup/netbackup/local/mode/jobstatus.pm @@ -335,17 +335,17 @@ Filter job with end time greater than current time less value in seconds (Defaul =item B<--ok-status> -Set ok threshold for status (Default: '%{status} == 0') +Define the conditions to match for the status to be OK (Default: '%{status} == 0') You can use the following variables: %{display}, %{status} =item B<--warning-status> -Set warning threshold for status (Default: '%{status} == 1') +Define the conditions to match for the status to be WARNING (Default: '%{status} == 1') You can use the following variables: %{display}, %{status}, %{type} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} > 1'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} > 1'). You can use the following variables: %{display}, %{status}, %{type} =item B<--warning-long> diff --git a/src/apps/backup/netbackup/local/mode/tapeusage.pm b/src/apps/backup/netbackup/local/mode/tapeusage.pm index 9dbda2b4c..46e089c67 100644 --- a/src/apps/backup/netbackup/local/mode/tapeusage.pm +++ b/src/apps/backup/netbackup/local/mode/tapeusage.pm @@ -200,12 +200,12 @@ Thresholds are on free tape left. =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'usage'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'usage'. =back diff --git a/src/apps/backup/quadstor/local/mode/vtldiskusage.pm b/src/apps/backup/quadstor/local/mode/vtldiskusage.pm index 955f14c0c..f66ce28a9 100644 --- a/src/apps/backup/quadstor/local/mode/vtldiskusage.pm +++ b/src/apps/backup/quadstor/local/mode/vtldiskusage.pm @@ -225,22 +225,22 @@ Thresholds are on free tape left. =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{status}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} !~ /active/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} !~ /active/i'). You can use the following variables: %{status}, %{display} =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'usage'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'usage'. =back diff --git a/src/apps/backup/quadstor/local/mode/vtljobstatus.pm b/src/apps/backup/quadstor/local/mode/vtljobstatus.pm index ec34cca57..409f9e68d 100644 --- a/src/apps/backup/quadstor/local/mode/vtljobstatus.pm +++ b/src/apps/backup/quadstor/local/mode/vtljobstatus.pm @@ -176,12 +176,12 @@ Command used: '/quadstorvtl/bin/impexp -l' =item B<--warning-status> -Set warning threshold for status (Default: none) +Define the conditions to match for the status to be WARNING (Default: none) You can use the following variables: %{display}, %{status} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} =~ /error/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} =~ /error/i'). You can use the following variables: %{display}, %{status} =item B<--warning-long> diff --git a/src/apps/backup/quadstor/local/mode/vtltapeusage.pm b/src/apps/backup/quadstor/local/mode/vtltapeusage.pm index f5aeae453..f5950950d 100644 --- a/src/apps/backup/quadstor/local/mode/vtltapeusage.pm +++ b/src/apps/backup/quadstor/local/mode/vtltapeusage.pm @@ -251,12 +251,12 @@ Thresholds are on free tape left. =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{status}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} !~ /active/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} !~ /active/i'). You can use the following variables: %{status}, %{display} =item B<--warning-*> B<--critical-*> diff --git a/src/apps/backup/rapidrecovery/snmp/mode/agent.pm b/src/apps/backup/rapidrecovery/snmp/mode/agent.pm index 90525aaa2..5a9f6b07c 100644 --- a/src/apps/backup/rapidrecovery/snmp/mode/agent.pm +++ b/src/apps/backup/rapidrecovery/snmp/mode/agent.pm @@ -157,17 +157,17 @@ Check agents. =item B<--unknown-status> -Set unknown threshold for status (Default: '%{status} =~ /unreachable/i'). +Define the conditions to match for the status to be UNKNOWN (Default: '%{status} =~ /unreachable/i'). You can use the following variables: %{status}, %{display} =item B<--warning-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{status}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} =~ /failed|authenticationError/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} =~ /failed|authenticationError/i'). You can use the following variables: %{status}, %{display} =item B<--warning-*> B<--critical-*> diff --git a/src/apps/backup/rapidrecovery/snmp/mode/repository.pm b/src/apps/backup/rapidrecovery/snmp/mode/repository.pm index dffb5be76..898644695 100644 --- a/src/apps/backup/rapidrecovery/snmp/mode/repository.pm +++ b/src/apps/backup/rapidrecovery/snmp/mode/repository.pm @@ -187,17 +187,17 @@ Check repositories. =item B<--unknown-status> -Set unknown threshold for status (Default: '%{status} =~ /unknown/i'). +Define the conditions to match for the status to be UNKNOWN (Default: '%{status} =~ /unknown/i'). You can use the following variables: %{status}, %{display} =item B<--warning-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{status}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} =~ /error/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} =~ /error/i'). You can use the following variables: %{status}, %{display} =item B<--warning-*> B<--critical-*> diff --git a/src/apps/backup/rubrik/restapi/mode/cluster.pm b/src/apps/backup/rubrik/restapi/mode/cluster.pm index 915b0f6a7..c44a0f563 100644 --- a/src/apps/backup/rubrik/restapi/mode/cluster.pm +++ b/src/apps/backup/rubrik/restapi/mode/cluster.pm @@ -173,17 +173,17 @@ Which cluster to check (Default: 'me'). =item B<--unknown-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{status}, %{name} =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{status}, %{name} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} !~ /ok/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} !~ /ok/i'). You can use the following variables: %{status}, %{name} =item B<--warning-*> B<--critical-*> diff --git a/src/apps/backup/rubrik/restapi/mode/disks.pm b/src/apps/backup/rubrik/restapi/mode/disks.pm index ebbaf6eb8..4d6022c3b 100644 --- a/src/apps/backup/rubrik/restapi/mode/disks.pm +++ b/src/apps/backup/rubrik/restapi/mode/disks.pm @@ -177,17 +177,17 @@ Filter disks by disk id (can be a regexp). =item B<--unknown-disks-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{status}, %{id} =item B<--warning-disk-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{status}, %{id} =item B<--critical-disk-status> -Set critical threshold for status (Default: '%{status} !~ /active/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} !~ /active/i'). You can use the following variables: %{status}, %{id} =item B<--warning-*> B<--critical-*> diff --git a/src/apps/backup/rubrik/restapi/mode/nodes.pm b/src/apps/backup/rubrik/restapi/mode/nodes.pm index eeb9f1c2b..7268012ee 100644 --- a/src/apps/backup/rubrik/restapi/mode/nodes.pm +++ b/src/apps/backup/rubrik/restapi/mode/nodes.pm @@ -182,17 +182,17 @@ Filter nodes by node id (can be a regexp). =item B<--unknown-node-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{status}, %{ip_address}, %{id} =item B<--warning-node-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{status}, %{ip_address}, %{id} =item B<--critical-node-status> -Set critical threshold for status (Default: '%{status} !~ /ok/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} !~ /ok/i'). You can use the following variables: %{status}, %{ip_address}, %{id} =item B<--warning-*> B<--critical-*> diff --git a/src/apps/backup/tsm/local/mode/actlog.pm b/src/apps/backup/tsm/local/mode/actlog.pm index 21ee83654..851ea91e2 100644 --- a/src/apps/backup/tsm/local/mode/actlog.pm +++ b/src/apps/backup/tsm/local/mode/actlog.pm @@ -158,12 +158,12 @@ Get activity log more recent than X hour(s) (default: '1'). =item B<--warning-status> -Set warning threshold for status (Default: '%{severity} =~ /warning/') +Define the conditions to match for the status to be WARNING (Default: '%{severity} =~ /warning/') You can use the following variables: %{message}, %{severity}, %{since} =item B<--critical-status> -Set critical threshold for status (Default: '%{severity} =~ /error|severe/'). +Define the conditions to match for the status to be CRITICAL (Default: '%{severity} =~ /error|severe/'). You can use the following variables: %{message}, %{severity}, %{since} =item B<--timezone> diff --git a/src/apps/backup/tsm/local/mode/sessions.pm b/src/apps/backup/tsm/local/mode/sessions.pm index 0e13aa9b8..ba9dd4fe2 100644 --- a/src/apps/backup/tsm/local/mode/sessions.pm +++ b/src/apps/backup/tsm/local/mode/sessions.pm @@ -181,12 +181,12 @@ Filter by session type. =item B<--warning-status> -Set warning threshold for status (Default: '') +Define the conditions to match for the status to be WARNING (Default: '') You can use the following variables: %{client_name}, %{state}, %{session_type}, %{since} =item B<--critical-status> -Set critical threshold for status (Default: ''). +Define the conditions to match for the status to be CRITICAL (Default: ''). You can use the following variables: %{client_name}, %{state}, %{session_type}, %{since} =item B<--warning-*> diff --git a/src/apps/backup/veeam/local/mode/jobstatus.pm b/src/apps/backup/veeam/local/mode/jobstatus.pm index f84953bea..9a4c3f09b 100644 --- a/src/apps/backup/veeam/local/mode/jobstatus.pm +++ b/src/apps/backup/veeam/local/mode/jobstatus.pm @@ -318,17 +318,17 @@ Filter job with end time greater than current time less value in seconds (Defaul =item B<--ok-status> -Set ok threshold for status. +Define the conditions to match for the status to be OK. You can use the following variables: %{display}, %{status}, %{type}, %{is_running}, %{scheduled}. =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{display}, %{status}, %{type}, %{is_running}, %{scheduled}. =item B<--critical-status> -Set critical threshold for status (Default: '%{is_running} == 0 and not %{status} =~ /Success/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{is_running} == 0 and not %{status} =~ /Success/i'). You can use the following variables: %{display}, %{status}, %{type}, %{is_running}, %{scheduled}. =item B<--warning-long> diff --git a/src/apps/backup/veeam/local/mode/licenses.pm b/src/apps/backup/veeam/local/mode/licenses.pm index 1f4acdaa3..84adb57f6 100644 --- a/src/apps/backup/veeam/local/mode/licenses.pm +++ b/src/apps/backup/veeam/local/mode/licenses.pm @@ -337,12 +337,12 @@ Filter licenses by status (can be a regexp). =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{to}, %{status}, %{type}. =item B<--critical-status> -Set critical threshold for status (Default: '%{status} =~ /expired|invalid/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} =~ /expired|invalid/i'). You can use the following variables: %{to}, %{status}, %{type}. =item B<--unit> diff --git a/src/apps/backup/veeam/local/mode/repositories.pm b/src/apps/backup/veeam/local/mode/repositories.pm index de9ac9a73..5eaed8138 100644 --- a/src/apps/backup/veeam/local/mode/repositories.pm +++ b/src/apps/backup/veeam/local/mode/repositories.pm @@ -301,12 +301,12 @@ Filter repositories by type (can be a regexp). =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{status}, %{name}, %{type}. =item B<--critical-status> -Set critical threshold for status (Default: 'not %{status} =~ /ordinal|maintenance/i'). +Define the conditions to match for the status to be CRITICAL (Default: 'not %{status} =~ /ordinal|maintenance/i'). You can use the following variables: %{status}, %{name}, %{type}. =item B<--warning-*> B<--critical-*> diff --git a/src/apps/backup/veeam/local/mode/tapejobs.pm b/src/apps/backup/veeam/local/mode/tapejobs.pm index b75663413..3aba0ddd4 100644 --- a/src/apps/backup/veeam/local/mode/tapejobs.pm +++ b/src/apps/backup/veeam/local/mode/tapejobs.pm @@ -254,17 +254,17 @@ Filter job type (can be a regexp). =item B<--unknown-status> -Set unknown threshold for status (Default: '') +Define the conditions to match for the status to be UNKNOWN (Default: '') You can use the following variables: %{display}, %{enabled}, %{type}, %{last_result}, %{last_state}. =item B<--warning-status> -Set warning threshold for status (Default: '') +Define the conditions to match for the status to be WARNING (Default: '') You can use the following variables: %{display}, %{enabled}, %{type}, %{last_result}, %{last_state}. =item B<--critical-status> -Set critical threshold for status (Default: '%{enabled} == 1 and not %{last_result} =~ /Success|None/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{enabled} == 1 and not %{last_result} =~ /Success|None/i'). You can use the following variables: %{display}, %{enabled}, %{type}, %{last_result}, %{last_state}. =item B<--warning-total> diff --git a/src/apps/backup/veeam/local/mode/vsbjobs.pm b/src/apps/backup/veeam/local/mode/vsbjobs.pm index 8c699725b..c48313aa4 100644 --- a/src/apps/backup/veeam/local/mode/vsbjobs.pm +++ b/src/apps/backup/veeam/local/mode/vsbjobs.pm @@ -290,17 +290,17 @@ Filter job type (can be a regexp). =item B<--unknown-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{name}, %{type}, %{status}, %{duration}. =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{name}, %{type}, %{status}, %{duration}. =item B<--critical-status> -Set critical threshold for status (Default: 'not %{status} =~ /success/i'). +Define the conditions to match for the status to be CRITICAL (Default: 'not %{status} =~ /success/i'). You can use the following variables: %{name}, %{type}, %{status}, %{duration}. =item B<--warning-*> B<--critical-*> diff --git a/src/apps/bind9/web/mode/memoryusage.pm b/src/apps/bind9/web/mode/memoryusage.pm index 3119abbca..ceef51bea 100644 --- a/src/apps/bind9/web/mode/memoryusage.pm +++ b/src/apps/bind9/web/mode/memoryusage.pm @@ -118,11 +118,11 @@ Check bind memory usage. =item B<--warning-usage> -Threshold warning. +Warning threshold. =item B<--critical-usage> -Threshold critical. +Critical threshold. =back diff --git a/src/apps/biztalk/sql/mode/rlocationdisabled.pm b/src/apps/biztalk/sql/mode/rlocationdisabled.pm index 813ef6346..690a37cbc 100644 --- a/src/apps/biztalk/sql/mode/rlocationdisabled.pm +++ b/src/apps/biztalk/sql/mode/rlocationdisabled.pm @@ -112,11 +112,11 @@ The mode should be used with mssql plugin and dyn-mode option. =item B<--warning> -Threshold warning. +Warning threshold. =item B<--critical> -Threshold critical. +Critical threshold. =item B<--filter-location> diff --git a/src/apps/centreon/local/mode/brokerstats.pm b/src/apps/centreon/local/mode/brokerstats.pm index 17d65ebb4..b6f8704b2 100644 --- a/src/apps/centreon/local/mode/brokerstats.pm +++ b/src/apps/centreon/local/mode/brokerstats.pm @@ -244,12 +244,12 @@ Can be: 'speed-events', 'queued-events', 'unacknowledged-events'. =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{queue_file_enabled}, %{state}, %{status}, %{type}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: '%{type} eq "output" and %{queue_file_enabled} =~ /yes/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{type} eq "output" and %{queue_file_enabled} =~ /yes/i'). You can use the following variables: %{queue_file_enabled}, %{state}, %{status}, %{type}, %{display} =back diff --git a/src/apps/centreon/local/mode/centreonpluginsversion.pm b/src/apps/centreon/local/mode/centreonpluginsversion.pm index f68c64b54..7cac3d01a 100644 --- a/src/apps/centreon/local/mode/centreonpluginsversion.pm +++ b/src/apps/centreon/local/mode/centreonpluginsversion.pm @@ -81,11 +81,11 @@ The version is an integer increasing (format: YYYYMMDD of the release). =item B<--warning> -Threshold warning. +Warning threshold. =item B<--critical> -Threshold critical. +Critical threshold. =back diff --git a/src/apps/centreon/map/jmx/mode/brokerstats.pm b/src/apps/centreon/map/jmx/mode/brokerstats.pm index b3804083e..82d11ec9b 100644 --- a/src/apps/centreon/map/jmx/mode/brokerstats.pm +++ b/src/apps/centreon/map/jmx/mode/brokerstats.pm @@ -144,22 +144,22 @@ Only display some counters (regexp can be used). =item B<--warning-status> -Set warning threshold for status. (Default: ''). +Define the conditions to match for the status to be WARNING. (Default: ''). Can use special variables like: %{processed_packets}, %{received_packets}, %{diff_packets}. =item B<--critical-status> -Set critical threshold for status. (Default: '%{processed_packets} < %{received_packets}'). +Define the conditions to match for the status to be CRITICAL. (Default: '%{processed_packets} < %{received_packets}'). Can use special variables like: %{processed_packets}, %{received_packets}, %{diff_packets}. =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'received-packets-rate', 'processed-packets-rate'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'received-packets-rate', 'processed-packets-rate'. =back diff --git a/src/apps/centreon/map/jmx/mode/enginestats.pm b/src/apps/centreon/map/jmx/mode/enginestats.pm index 4c8f800b8..4afcae856 100644 --- a/src/apps/centreon/map/jmx/mode/enginestats.pm +++ b/src/apps/centreon/map/jmx/mode/enginestats.pm @@ -134,13 +134,13 @@ Only display some counters (regexp can be used). =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: ''drilldown-candidates-queue', 'cutback-computation-rate', 'minimal-computation-rate', 'recursive-computation-rate'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: ''drilldown-candidates-queue', 'cutback-computation-rate', 'minimal-computation-rate', 'recursive-computation-rate'. diff --git a/src/apps/centreon/map/jmx/mode/events.pm b/src/apps/centreon/map/jmx/mode/events.pm index c46ea0364..60bf19500 100644 --- a/src/apps/centreon/map/jmx/mode/events.pm +++ b/src/apps/centreon/map/jmx/mode/events.pm @@ -118,7 +118,7 @@ Only display some counters (regexp can be used). =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'open-gate-rate', 'close-gate-rate', 'add-resource-rate', 'poller-restart-rate', 'update-resource-rate', 'session-expired-rate', 'update-acl-children-rate', 'sync-children-rate', 'remove-child-rate', 'update-status-resource-rate', 'remove-resource-rate', 'update-status-inherited-rate', 'add-child-rate', @@ -128,7 +128,7 @@ Can be: 'open-gate-rate', 'close-gate-rate', 'add-resource-rate', 'poller-restar =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'open-gate-rate', 'close-gate-rate', 'add-resource-rate', 'poller-restart-rate', 'update-resource-rate', 'session-expired-rate', 'update-acl-children-rate', 'sync-children-rate', 'remove-child-rate', 'update-status-resource-rate', 'remove-resource-rate', 'update-status-inherited-rate', 'add-child-rate', diff --git a/src/apps/centreon/map/jmx/mode/openviews.pm b/src/apps/centreon/map/jmx/mode/openviews.pm index 26b814cbc..ac7be31e6 100644 --- a/src/apps/centreon/map/jmx/mode/openviews.pm +++ b/src/apps/centreon/map/jmx/mode/openviews.pm @@ -95,12 +95,12 @@ perl centreon_plugins.pl --plugin=apps::centreon::map::jmx::plugin --custommode= =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'open-views'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'open-views'. =back diff --git a/src/apps/centreon/map/jmx/mode/sessions.pm b/src/apps/centreon/map/jmx/mode/sessions.pm index 98b551fc5..f36368236 100644 --- a/src/apps/centreon/map/jmx/mode/sessions.pm +++ b/src/apps/centreon/map/jmx/mode/sessions.pm @@ -111,12 +111,12 @@ Only display some counters (regexp can be used). =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'active-session', 'queue-size'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'active-session', 'queue-size'. =back diff --git a/src/apps/centreon/map/jmx/mode/syncstats.pm b/src/apps/centreon/map/jmx/mode/syncstats.pm index c0a2051bb..cb5bc1eec 100644 --- a/src/apps/centreon/map/jmx/mode/syncstats.pm +++ b/src/apps/centreon/map/jmx/mode/syncstats.pm @@ -243,21 +243,21 @@ Only display some counters (regexp can be used). =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'map-synchronization-centreon-count', 'map-synchronization-centreon-duration-average-milliseconds', 'map-synchronization-centreon-duration-max-milliseconds'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'map-synchronization-centreon-count', 'map-synchronization-centreon-duration-average-milliseconds', 'map-synchronization-centreon-duration-max-milliseconds'. =item B<--warning-instance-*> -Threshold warning. +Warning threshold. Can be: 'map-synchronization-acl-count', 'map-synchronization-acl-duration-average-milliseconds', 'map-synchronization-acl-duration-max-milliseconds', 'map-synchronization-resource-count', 'map-synchronization-resource-duration-average-milliseconds', @@ -265,7 +265,7 @@ Can be: 'map-synchronization-acl-count', 'map-synchronization-acl-duration-avera =item B<--critical-instance-*> -Threshold critical. +Critical threshold. Can be: 'map-synchronization-acl-count', 'map-synchronization-acl-duration-average-milliseconds', 'map-synchronization-acl-duration-max-milliseconds', 'map-synchronization-resource-count', 'map-synchronization-resource-duration-average-milliseconds', diff --git a/src/apps/centreon/sql/mode/countnotifications.pm b/src/apps/centreon/sql/mode/countnotifications.pm index 4c0425912..b1e1914c9 100644 --- a/src/apps/centreon/sql/mode/countnotifications.pm +++ b/src/apps/centreon/sql/mode/countnotifications.pm @@ -120,11 +120,11 @@ Centreon storage database name (default: 'centreon_storage'). =item B<--warning> -Threshold warning. +Warning threshold. =item B<--critical> -Threshold critical. +Critical threshold. =back diff --git a/src/apps/centreon/sql/mode/countproblems.pm b/src/apps/centreon/sql/mode/countproblems.pm index 39bacce6c..28e0c87bb 100644 --- a/src/apps/centreon/sql/mode/countproblems.pm +++ b/src/apps/centreon/sql/mode/countproblems.pm @@ -164,11 +164,11 @@ Centreon storage database name (default: 'centreon_storage'). =item B<--warning> -Threshold warning. +Warning threshold. =item B<--critical> -Threshold critical. +Critical threshold. =back diff --git a/src/apps/centreon/sql/mode/dsmqueue.pm b/src/apps/centreon/sql/mode/dsmqueue.pm index aebfcd1eb..8065872c8 100644 --- a/src/apps/centreon/sql/mode/dsmqueue.pm +++ b/src/apps/centreon/sql/mode/dsmqueue.pm @@ -146,12 +146,12 @@ Example: --filter-counters='^total-queue-cache$' =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: Can be: 'total-queue-cache', 'total-queue-lock', 'host-queue-cache'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: Can be: 'total-queue-cache', 'total-queue-lock', 'host-queue-cache'. =item B<--filter-host-queue> diff --git a/src/apps/centreon/sql/mode/partitioning.pm b/src/apps/centreon/sql/mode/partitioning.pm index a0afe2edb..2428b7a1c 100644 --- a/src/apps/centreon/sql/mode/partitioning.pm +++ b/src/apps/centreon/sql/mode/partitioning.pm @@ -126,11 +126,11 @@ Example: centreon_storage.data_bin =item B<--warning> -Threshold warning (number of retention forward days) +Warning threshold (number of retention forward days) =item B<--critical> -Threshold critical (number of retention forward days) +Critical threshold (number of retention forward days) =item B<--timezone> diff --git a/src/apps/centreon/sql/mode/pollerdelay.pm b/src/apps/centreon/sql/mode/pollerdelay.pm index ffc132ce6..33eb4a1f2 100644 --- a/src/apps/centreon/sql/mode/pollerdelay.pm +++ b/src/apps/centreon/sql/mode/pollerdelay.pm @@ -111,11 +111,11 @@ Filter by poller name (can be a regexp). =item B<--warning-delay> -Threshold warning in seconds. +Warning threshold in seconds. =item B<--critical-delay> -Threshold critical in seconds. +Critical threshold in seconds. =back diff --git a/src/apps/ceph/restapi/mode/health.pm b/src/apps/ceph/restapi/mode/health.pm index 8ceefde9c..346622b1b 100644 --- a/src/apps/ceph/restapi/mode/health.pm +++ b/src/apps/ceph/restapi/mode/health.pm @@ -100,12 +100,12 @@ Check overall cluster status. =item B<--warning-status> -Set warning threshold for status (Default: '%{status} =~ /warn/i') +Define the conditions to match for the status to be WARNING (Default: '%{status} =~ /warn/i') You can use the following variables: %{status}, %{message} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} =~ /error/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} =~ /error/i'). You can use the following variables: %{status}, %{message} =back diff --git a/src/apps/cisco/cms/restapi/mode/alarms.pm b/src/apps/cisco/cms/restapi/mode/alarms.pm index 9e6cc8ead..2b951327d 100644 --- a/src/apps/cisco/cms/restapi/mode/alarms.pm +++ b/src/apps/cisco/cms/restapi/mode/alarms.pm @@ -144,12 +144,12 @@ Filter by type (can be a regexp). =item B<--warning-status> -Set warning threshold for status (Default: '') +Define the conditions to match for the status to be WARNING (Default: '') You can use the following variables: %{type}, %{active_time} =item B<--critical-status> -Set critical threshold for status (Default: ''). +Define the conditions to match for the status to be CRITICAL (Default: ''). You can use the following variables: %{type}, %{active_time} =item B<--memory> diff --git a/src/apps/cisco/cms/restapi/mode/calls.pm b/src/apps/cisco/cms/restapi/mode/calls.pm index 71aeaa53f..713cd0ec5 100644 --- a/src/apps/cisco/cms/restapi/mode/calls.pm +++ b/src/apps/cisco/cms/restapi/mode/calls.pm @@ -124,13 +124,13 @@ Only display some counters (regexp can be used). =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'active-calls', 'local-participants', 'remote-participants', 'call-legs'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'active-calls', 'local-participants', 'remote-participants', 'call-legs'. diff --git a/src/apps/cisco/cms/restapi/mode/databasestatus.pm b/src/apps/cisco/cms/restapi/mode/databasestatus.pm index 185536a4d..8ba6a77bc 100644 --- a/src/apps/cisco/cms/restapi/mode/databasestatus.pm +++ b/src/apps/cisco/cms/restapi/mode/databasestatus.pm @@ -130,12 +130,12 @@ Check database status. =item B<--warning-status> -Set warning threshold for status. (Default: ''). +Define the conditions to match for the status to be WARNING. (Default: ''). Can use special variables like: %{hostname}, %{master}, %{up}, %{sync_behind} =item B<--critical-status> -Set critical threshold for status. (Default: '%{up} !~ /true/i'). +Define the conditions to match for the status to be CRITICAL. (Default: '%{up} !~ /true/i'). Can use special variables like: %{hostname}, %{master}, %{up}, %{sync_behind} =back diff --git a/src/apps/cisco/cms/restapi/mode/licenses.pm b/src/apps/cisco/cms/restapi/mode/licenses.pm index f3b3fefbe..f206f22e4 100644 --- a/src/apps/cisco/cms/restapi/mode/licenses.pm +++ b/src/apps/cisco/cms/restapi/mode/licenses.pm @@ -132,12 +132,12 @@ Check features licensing. =item B<--warning-status> -Set warning threshold for status. (Default: '%{status} eq "activated" && %{expiry_days} < 60'). +Define the conditions to match for the status to be WARNING. (Default: '%{status} eq "activated" && %{expiry_days} < 60'). Can use special variables like: %{status}, %{expiry_days}, %{feature} =item B<--critical-status> -Set critical threshold for status. (Default: '%{status} eq "activated" && %{expiry_days} < 30'). +Define the conditions to match for the status to be CRITICAL. (Default: '%{status} eq "activated" && %{expiry_days} < 30'). Can use special variables like: %{status}, %{expiry_days}, %{feature} =back diff --git a/src/apps/cisco/cms/restapi/mode/systemstatus.pm b/src/apps/cisco/cms/restapi/mode/systemstatus.pm index b8bcd3668..049adb01f 100644 --- a/src/apps/cisco/cms/restapi/mode/systemstatus.pm +++ b/src/apps/cisco/cms/restapi/mode/systemstatus.pm @@ -201,23 +201,23 @@ Only display some counters (regexp can be used). =item B<--warning-status> -Set warning threshold for status. (Default: ''). +Define the conditions to match for the status to be WARNING. (Default: ''). Can use special variables like: %{activated}, %{cluster_enabled} =item B<--critical-status> -Set critical threshold for status. (Default: '%{activated} !~ /true/i'). +Define the conditions to match for the status to be CRITICAL. (Default: '%{activated} !~ /true/i'). Can use special variables like: %{activated}, %{cluster_enabled} =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'active-legs', 'completed-legs', 'audio-outgoing-rate', 'audio-incoming-rate', 'video-outgoing-rate', 'video-incoming-rate'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'active-legs', 'completed-legs', 'audio-outgoing-rate', 'audio-incoming-rate', 'video-outgoing-rate', 'video-incoming-rate'. diff --git a/src/apps/cisco/ise/restapi/mode/session.pm b/src/apps/cisco/ise/restapi/mode/session.pm index c43f7b67e..28ebba974 100644 --- a/src/apps/cisco/ise/restapi/mode/session.pm +++ b/src/apps/cisco/ise/restapi/mode/session.pm @@ -104,12 +104,12 @@ Only display some counters (regexp can be used). =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'active-sessions', 'postured-endpoints', 'profiler-service-sessions'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'active-sessions', 'postured-endpoints', 'profiler-service-sessions'. =back diff --git a/src/apps/cisco/ssms/restapi/mode/licenses.pm b/src/apps/cisco/ssms/restapi/mode/licenses.pm index 751f7d592..3ff4a0f78 100644 --- a/src/apps/cisco/ssms/restapi/mode/licenses.pm +++ b/src/apps/cisco/ssms/restapi/mode/licenses.pm @@ -198,17 +198,17 @@ Filter license name (can be a regexp). =item B<--unknown-license-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{status}, %{display} =item B<--warning-license-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{status}, %{display} =item B<--critical-license-status> -Set critical threshold for status (Default: '%{status} !~ /in compliance/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} !~ /in compliance/i'). You can use the following variables: %{status}, %{display} =item B<--warning-*> B<--critical-*> diff --git a/src/apps/citrix/local/mode/folder.pm b/src/apps/citrix/local/mode/folder.pm index 0130a149a..81b821f6b 100644 --- a/src/apps/citrix/local/mode/folder.pm +++ b/src/apps/citrix/local/mode/folder.pm @@ -122,11 +122,11 @@ Check Citrix servers per folder. =item B<--warning> -Threshold warning of servers per folder. +Warning threshold of servers per folder. =item B<--critical> -Threshold critical of servers per folder. +Critical threshold of servers per folder. =item B<--folder> diff --git a/src/apps/citrix/local/mode/session.pm b/src/apps/citrix/local/mode/session.pm index 4c9fc4f1c..3f9ef1cd9 100644 --- a/src/apps/citrix/local/mode/session.pm +++ b/src/apps/citrix/local/mode/session.pm @@ -157,11 +157,11 @@ Check Citrix sessions. =item B<--warning> -Threshold warning of active sessions. +Warning threshold of active sessions. =item B<--critical> -Threshold critical of active sessions. +Critical threshold of active sessions. =item B<--domain> diff --git a/src/apps/citrix/local/mode/zone.pm b/src/apps/citrix/local/mode/zone.pm index 945b14ea6..6a4eb86d4 100644 --- a/src/apps/citrix/local/mode/zone.pm +++ b/src/apps/citrix/local/mode/zone.pm @@ -118,11 +118,11 @@ Check Citrix servers per zone. =item B<--warning> -Threshold warning of servers per zone. +Warning threshold of servers per zone. =item B<--critical> -Threshold critical of servers per zone. +Critical threshold of servers per zone. =item B<--zone> diff --git a/src/apps/controlm/restapi/mode/jobs.pm b/src/apps/controlm/restapi/mode/jobs.pm index 0953d7b7d..f279443fb 100644 --- a/src/apps/controlm/restapi/mode/jobs.pm +++ b/src/apps/controlm/restapi/mode/jobs.pm @@ -303,12 +303,12 @@ Can use format: 'Europe/London' or '+0100'. =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{name}, %{status}, %{application}, %{folder}, %{type} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} =~ /ended not ok/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} =~ /ended not ok/i'). You can use the following variables: %{name}, %{status}, %{application}, %{folder}, %{type} =item B<--warning-long> diff --git a/src/apps/emc/ppma/restapi/mode/hosts.pm b/src/apps/emc/ppma/restapi/mode/hosts.pm index c4eb225e1..59f37a0d7 100644 --- a/src/apps/emc/ppma/restapi/mode/hosts.pm +++ b/src/apps/emc/ppma/restapi/mode/hosts.pm @@ -198,17 +198,17 @@ Filter hosts by host name (can be a regexp). =item B<--unknown-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{status}, %{name} =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{status}, %{name} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} !~ /powerPathManaged/'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} !~ /powerPathManaged/'). You can use the following variables: %{status}, %{name} =item B<--warning-*> B<--critical-*> diff --git a/src/apps/github/mode/issues.pm b/src/apps/github/mode/issues.pm index cbc01a01f..a8629c9b6 100644 --- a/src/apps/github/mode/issues.pm +++ b/src/apps/github/mode/issues.pm @@ -149,11 +149,11 @@ Threshold for HTTP timeout (Default: 5) =item B<--warning> -Threshold warning. +Warning threshold. =item B<--critical> -Threshold critical. +Critical threshold. =item B<--owner> diff --git a/src/apps/github/mode/pullrequests.pm b/src/apps/github/mode/pullrequests.pm index a1cadcc70..77952af08 100644 --- a/src/apps/github/mode/pullrequests.pm +++ b/src/apps/github/mode/pullrequests.pm @@ -134,11 +134,11 @@ Threshold for HTTP timeout (Default: 5) =item B<--warning> -Threshold warning. +Warning threshold. =item B<--critical> -Threshold critical. +Critical threshold. =item B<--owner> diff --git a/src/apps/grafana/api/mode/health.pm b/src/apps/grafana/api/mode/health.pm index 4013481ba..c2e5ffda6 100644 --- a/src/apps/grafana/api/mode/health.pm +++ b/src/apps/grafana/api/mode/health.pm @@ -87,12 +87,12 @@ Check health. =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{state}, %{version} =item B<--critical-status> -Set critical threshold for status (Default: '%{state} ne "ok"'). +Define the conditions to match for the status to be CRITICAL (Default: '%{state} ne "ok"'). You can use the following variables: %{state}, %{version} =back diff --git a/src/apps/haproxy/snmp/mode/backendusage.pm b/src/apps/haproxy/snmp/mode/backendusage.pm index 7e87a50c5..b2a485004 100644 --- a/src/apps/haproxy/snmp/mode/backendusage.pm +++ b/src/apps/haproxy/snmp/mode/backendusage.pm @@ -234,12 +234,12 @@ Filter backend name (can be a regexp). =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{status}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} !~ /UP/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} !~ /UP/i'). You can use the following variables: %{status}, %{display} =item B<--warning-*> B<--critical-*> diff --git a/src/apps/haproxy/snmp/mode/frontendusage.pm b/src/apps/haproxy/snmp/mode/frontendusage.pm index 430607b23..6680f84af 100644 --- a/src/apps/haproxy/snmp/mode/frontendusage.pm +++ b/src/apps/haproxy/snmp/mode/frontendusage.pm @@ -225,12 +225,12 @@ Filter backend name (can be a regexp). =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{status}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} !~ /OPEN/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} !~ /OPEN/i'). You can use the following variables: %{status}, %{display} =item B<--warning-*> B<--critical-*> diff --git a/src/apps/hddtemp/mode/temperatures.pm b/src/apps/hddtemp/mode/temperatures.pm index 46bc5dd64..e19cc4572 100644 --- a/src/apps/hddtemp/mode/temperatures.pm +++ b/src/apps/hddtemp/mode/temperatures.pm @@ -146,17 +146,17 @@ Filter drive name (Can use regexp). =item B<--unknown-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{status}, %{display} =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{status}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} !~ /ok/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} !~ /ok/i'). You can use the following variables: %{status}, %{display} =item B<--warning-*> B<--critical-*> diff --git a/src/apps/ibm/tsamp/local/mode/resourcegroups.pm b/src/apps/ibm/tsamp/local/mode/resourcegroups.pm index 3aaa561f3..3191683fe 100644 --- a/src/apps/ibm/tsamp/local/mode/resourcegroups.pm +++ b/src/apps/ibm/tsamp/local/mode/resourcegroups.pm @@ -170,17 +170,17 @@ Exclude resource groups by name (can be a regexp). =item B<--unknown-status> -Set unknown threshold for status (Default: '%{opState} =~ /unknown/i'). +Define the conditions to match for the status to be UNKNOWN (Default: '%{opState} =~ /unknown/i'). You can use the following variables: %{opState}, %{nominalState}, %{name} =item B<--warning-status> -Set warning threshold for status (Default: '%{opState} =~ /pending/i'). +Define the conditions to match for the status to be WARNING (Default: '%{opState} =~ /pending/i'). You can use the following variables: %{opState}, %{nominalState}, %{name} =item B<--critical-status> -Set critical threshold for status (Default: '%{opState} =~ /failed offline|stuck online/i || %{opState} ne %{nominalState}'). +Define the conditions to match for the status to be CRITICAL (Default: '%{opState} =~ /failed offline|stuck online/i || %{opState} ne %{nominalState}'). You can use the following variables: %{opState}, %{nominalState}, %{name} =item B<--warning-*> B<--critical-*> diff --git a/src/apps/inin/ig/snmp/mode/spanusage.pm b/src/apps/inin/ig/snmp/mode/spanusage.pm index fff598de8..44059257f 100644 --- a/src/apps/inin/ig/snmp/mode/spanusage.pm +++ b/src/apps/inin/ig/snmp/mode/spanusage.pm @@ -157,22 +157,22 @@ Filter span name (can be a regexp). =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{status}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} !~ /closed|ready/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} !~ /closed|ready/i'). You can use the following variables: %{status}, %{display} =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'active-channels'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'active-channels'. =back diff --git a/src/apps/inin/ig/snmp/mode/stats.pm b/src/apps/inin/ig/snmp/mode/stats.pm index 53916d7a8..f76f6503c 100644 --- a/src/apps/inin/ig/snmp/mode/stats.pm +++ b/src/apps/inin/ig/snmp/mode/stats.pm @@ -141,13 +141,13 @@ Filter channel group name (can be a regexp). =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'sip-active-calls', 'tdm-active-calls', 'channel-group-active-calls'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'sip-active-calls', 'tdm-active-calls', 'channel-group-active-calls'. diff --git a/src/apps/inin/mediaserver/snmp/mode/audioengineusage.pm b/src/apps/inin/mediaserver/snmp/mode/audioengineusage.pm index 5be885776..07e894e19 100644 --- a/src/apps/inin/mediaserver/snmp/mode/audioengineusage.pm +++ b/src/apps/inin/mediaserver/snmp/mode/audioengineusage.pm @@ -132,12 +132,12 @@ Filter location name (can be a regexp). =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'elem-count', 'avg-load'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'elem-count', 'avg-load'. =back diff --git a/src/apps/inin/mediaserver/snmp/mode/cmdsrvusage.pm b/src/apps/inin/mediaserver/snmp/mode/cmdsrvusage.pm index 9f6696f7e..831faedc1 100644 --- a/src/apps/inin/mediaserver/snmp/mode/cmdsrvusage.pm +++ b/src/apps/inin/mediaserver/snmp/mode/cmdsrvusage.pm @@ -241,22 +241,22 @@ Filter client name (can be a regexp). =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{accept_sessions}, %{status}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} !~ /^ready/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} !~ /^ready/i'). You can use the following variables: %{accept_sessions}, %{status}, %{display} =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'usage', 'resource-count'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'usage', 'resource-count'. =item B<--units> diff --git a/src/apps/inin/mediaserver/snmp/mode/diskusage.pm b/src/apps/inin/mediaserver/snmp/mode/diskusage.pm index 26f80bf0a..122d08732 100644 --- a/src/apps/inin/mediaserver/snmp/mode/diskusage.pm +++ b/src/apps/inin/mediaserver/snmp/mode/diskusage.pm @@ -169,12 +169,12 @@ Check disk usages. =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'httpcache-usage', 'tracelog-usage'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'httpcache-usage', 'tracelog-usage'. =item B<--units> diff --git a/src/apps/inin/mediaserver/snmp/mode/memoryusage.pm b/src/apps/inin/mediaserver/snmp/mode/memoryusage.pm index 7bf8fc294..0644b8706 100644 --- a/src/apps/inin/mediaserver/snmp/mode/memoryusage.pm +++ b/src/apps/inin/mediaserver/snmp/mode/memoryusage.pm @@ -81,12 +81,12 @@ Check memory. =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'usage' (B). =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'usage' (B). =back diff --git a/src/apps/ipfabric/mode/pathverification.pm b/src/apps/ipfabric/mode/pathverification.pm index a399124a7..3ad182c2d 100644 --- a/src/apps/ipfabric/mode/pathverification.pm +++ b/src/apps/ipfabric/mode/pathverification.pm @@ -235,7 +235,7 @@ Filter paths by destionation port (regexp can be used). =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. Can use special variables like: %{state}, %{expected_state} For example, if you want a warning alert when the path state is in 'error' then @@ -244,7 +244,7 @@ the option would be: =item B<--critical-status> -Set critical threshold for status. (Default: '%{expected_state} ne %{state}'). +Define the conditions to match for the status to be CRITICAL. (Default: '%{expected_state} ne %{state}'). Can use special variables like: %{state}, %{expected_state} For example, if you want a critical alert when the path state is in 'error' then diff --git a/src/apps/java/awa/jmx/mode/agent.pm b/src/apps/java/awa/jmx/mode/agent.pm index e236c430b..44da418d2 100644 --- a/src/apps/java/awa/jmx/mode/agent.pm +++ b/src/apps/java/awa/jmx/mode/agent.pm @@ -167,12 +167,12 @@ Filter agent name (can be a regexp). =item B<--warning-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{since}, %{display}, %{ipaddress}, %{active} =item B<--critical-status> -Set critical threshold for status (Default: ''). +Define the conditions to match for the status to be CRITICAL (Default: ''). You can use the following variables: %{since}, %{display}, %{ipaddress}, %{active} =item B<--timezone> diff --git a/src/apps/java/awa/jmx/mode/queue.pm b/src/apps/java/awa/jmx/mode/queue.pm index bb1d1b343..918305af7 100644 --- a/src/apps/java/awa/jmx/mode/queue.pm +++ b/src/apps/java/awa/jmx/mode/queue.pm @@ -138,12 +138,12 @@ Filter queue name (can be a regexp). =item B<--warning-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{display}, %{status} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} !~ /GREEN/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} !~ /GREEN/i'). You can use the following variables: %{display}, %{status} =back diff --git a/src/apps/java/awa/jmx/mode/server.pm b/src/apps/java/awa/jmx/mode/server.pm index a202f72e6..63327e364 100644 --- a/src/apps/java/awa/jmx/mode/server.pm +++ b/src/apps/java/awa/jmx/mode/server.pm @@ -142,12 +142,12 @@ Filter server name (can be a regexp). =item B<--warning-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{display}, %{ipaddress}, %{active} =item B<--critical-status> -Set critical threshold for status (Default: ''). +Define the conditions to match for the status to be CRITICAL (Default: ''). You can use the following variables: %{display}, %{ipaddress}, %{active} =back diff --git a/src/apps/java/hibernate/jmx/mode/stats.pm b/src/apps/java/hibernate/jmx/mode/stats.pm index de6c814df..26cf0a3b5 100644 --- a/src/apps/java/hibernate/jmx/mode/stats.pm +++ b/src/apps/java/hibernate/jmx/mode/stats.pm @@ -173,13 +173,13 @@ Filter application name (can be a regexp). =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'connect-count', 'query-count', 'insert-count', 'update-count' 'close-count'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'connect-count', 'query-count', 'insert-count', 'update-count' 'close-count'. diff --git a/src/apps/java/jboss/jmx/mode/datasourceusage.pm b/src/apps/java/jboss/jmx/mode/datasourceusage.pm index 5708f67a1..8aab93db9 100644 --- a/src/apps/java/jboss/jmx/mode/datasourceusage.pm +++ b/src/apps/java/jboss/jmx/mode/datasourceusage.pm @@ -149,12 +149,12 @@ Filter datasource name (can be a regexp). =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'active-con', 'available-con', 'created-con', 'in-use-con'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'active-con', 'available-con', 'created-con', 'in-use-con'. =back diff --git a/src/apps/java/jvm/actuator/mode/cpuload.pm b/src/apps/java/jvm/actuator/mode/cpuload.pm index 010d65f10..1bdfd7c62 100644 --- a/src/apps/java/jvm/actuator/mode/cpuload.pm +++ b/src/apps/java/jvm/actuator/mode/cpuload.pm @@ -86,19 +86,19 @@ WARN : Probably not work for java -version < 7. =item B<--warning-system> -Threshold warning of System cpuload +Warning threshold of System cpuload =item B<--critical-system> -Threshold critical of System cpuload +Critical threshold of System cpuload =item B<--warning-process> -Threshold warning of Process cpuload +Warning threshold of Process cpuload =item B<--critical-process> -Threshold critical of Process cpuload +Critical threshold of Process cpuload =back diff --git a/src/apps/java/jvm/actuator/mode/memory.pm b/src/apps/java/jvm/actuator/mode/memory.pm index 471b62819..56a6878f7 100644 --- a/src/apps/java/jvm/actuator/mode/memory.pm +++ b/src/apps/java/jvm/actuator/mode/memory.pm @@ -175,19 +175,19 @@ Check Java Heap and NonHeap memory usage. =item B<--warning-heap> -Threshold warning of Heap memory usage +Warning threshold of Heap memory usage =item B<--critical-heap> -Threshold critical of Heap memory usage +Critical threshold of Heap memory usage =item B<--warning-nonheap> -Threshold warning of NonHeap memory usage +Warning threshold of NonHeap memory usage =item B<--critical-nonheap> -Threshold critical of NonHeap memory usage +Critical threshold of NonHeap memory usage =item B<--units> diff --git a/src/apps/java/jvm/actuator/mode/memorydetailed.pm b/src/apps/java/jvm/actuator/mode/memorydetailed.pm index d0602a8dc..8898897a4 100644 --- a/src/apps/java/jvm/actuator/mode/memorydetailed.pm +++ b/src/apps/java/jvm/actuator/mode/memorydetailed.pm @@ -231,43 +231,43 @@ Code Cache (non-heap) (-code) : The HotSpot Java VM also includes =item B<--warning-eden> -Threshold warning of Heap 'Eden Space' memory usage +Warning threshold of Heap 'Eden Space' memory usage =item B<--critical-eden> -Threshold critical of Heap 'Survivor Space' memory usage +Critical threshold of Heap 'Survivor Space' memory usage =item B<--warning-tenured> -Threshold warning of Heap 'Tenured Generation' memory usage +Warning threshold of Heap 'Tenured Generation' memory usage =item B<--critical-tenured> -Threshold critical of Heap 'Tenured Generation' memory usage +Critical threshold of Heap 'Tenured Generation' memory usage =item B<--warning-survivor> -Threshold warning of Heap 'Survivor Space' memory usage +Warning threshold of Heap 'Survivor Space' memory usage =item B<--critical-survivor> -Threshold critical of Heap 'Survivor Space' memory usage +Critical threshold of Heap 'Survivor Space' memory usage =item B<--warning-permanent> -Threshold warning of NonHeap 'Permanent Generation' memory usage +Warning threshold of NonHeap 'Permanent Generation' memory usage =item B<--critical-permanent> -Threshold critical of NonHeap 'Permanent Generation' memory usage +Critical threshold of NonHeap 'Permanent Generation' memory usage =item B<--warning-code> -Threshold warning of NonHeap 'Code Cache' memory usage +Warning threshold of NonHeap 'Code Cache' memory usage =item B<--critical-code> -Threshold critical of NonHeap 'Code Cache' memory usage +Critical threshold of NonHeap 'Code Cache' memory usage =item B<--units> diff --git a/src/apps/java/jvm/actuator/mode/threads.pm b/src/apps/java/jvm/actuator/mode/threads.pm index 0e64761a0..ecdf8b3e0 100644 --- a/src/apps/java/jvm/actuator/mode/threads.pm +++ b/src/apps/java/jvm/actuator/mode/threads.pm @@ -91,12 +91,12 @@ Check threads. =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'active', 'daemon'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'active', 'daemon'. =back diff --git a/src/apps/java/kafka/jmx/mode/globalstats.pm b/src/apps/java/kafka/jmx/mode/globalstats.pm index 412b988e9..668eb29fd 100644 --- a/src/apps/java/kafka/jmx/mode/globalstats.pm +++ b/src/apps/java/kafka/jmx/mode/globalstats.pm @@ -174,13 +174,13 @@ Example: --filter-counters='^traffic-in$' =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'under-replicated-partitions', 'offline-partitions-count', 'partition-count', 'leader-count', 'active-controller-count', 'unclean-leader-elections', 'traffic-in', 'traffic-out', 'total-fetch-requests'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'under-replicated-partitions', 'offline-partitions-count', 'partition-count', 'leader-count', 'active-controller-count', 'unclean-leader-elections', 'traffic-in', 'traffic-out', 'total-fetch-requests'. diff --git a/src/apps/java/peoplesoft/jmx/mode/queuelength.pm b/src/apps/java/peoplesoft/jmx/mode/queuelength.pm index 57a621a99..b1f8b901f 100644 --- a/src/apps/java/peoplesoft/jmx/mode/queuelength.pm +++ b/src/apps/java/peoplesoft/jmx/mode/queuelength.pm @@ -89,11 +89,11 @@ Check queue length. =item B<--warning> -Threshold warning +Warning threshold =item B<--critical> -Threshold critical +Critical threshold =back diff --git a/src/apps/java/peoplesoft/jmx/mode/sessions.pm b/src/apps/java/peoplesoft/jmx/mode/sessions.pm index dca8d3624..6a1bff012 100644 --- a/src/apps/java/peoplesoft/jmx/mode/sessions.pm +++ b/src/apps/java/peoplesoft/jmx/mode/sessions.pm @@ -89,11 +89,11 @@ Check current open sessions. =item B<--warning> -Threshold warning +Warning threshold =item B<--critical> -Threshold critical +Critical threshold =back diff --git a/src/apps/java/solr/jmx/mode/cacheusage.pm b/src/apps/java/solr/jmx/mode/cacheusage.pm index 0f0576d82..79472b344 100644 --- a/src/apps/java/solr/jmx/mode/cacheusage.pm +++ b/src/apps/java/solr/jmx/mode/cacheusage.pm @@ -156,13 +156,13 @@ Filter cache name (can be a regexp). =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'evictions-count', 'lookups-count', 'inserts-count', 'hits-count'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'evictions-count', 'lookups-count', 'inserts-count', 'hits-count'. diff --git a/src/apps/java/solr/jmx/mode/requesthandlerusage.pm b/src/apps/java/solr/jmx/mode/requesthandlerusage.pm index 35a8bc7f9..03af5ecd5 100644 --- a/src/apps/java/solr/jmx/mode/requesthandlerusage.pm +++ b/src/apps/java/solr/jmx/mode/requesthandlerusage.pm @@ -153,13 +153,13 @@ Default: '(/select|/update)$'. =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'requests-count', 'avg-requests', 'avg-time', '15min-rate-requests'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'requests-count', 'avg-requests', 'avg-time', '15min-rate-requests'. diff --git a/src/apps/java/weblogic/jmx/mode/workmanager.pm b/src/apps/java/weblogic/jmx/mode/workmanager.pm index 51e9bc6c4..47c02fabf 100644 --- a/src/apps/java/weblogic/jmx/mode/workmanager.pm +++ b/src/apps/java/weblogic/jmx/mode/workmanager.pm @@ -235,12 +235,12 @@ Check WebLogic WorkManagers. =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'thread-stuck', 'request-completed', 'request-pending'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'thread-stuck', 'request-completed', 'request-pending'. =item B<--filter-application> diff --git a/src/apps/java/zookeeper/jmx/mode/stats.pm b/src/apps/java/zookeeper/jmx/mode/stats.pm index add8b830f..67a0669a3 100644 --- a/src/apps/java/zookeeper/jmx/mode/stats.pm +++ b/src/apps/java/zookeeper/jmx/mode/stats.pm @@ -161,13 +161,13 @@ Example: --filter-counters='^avg-request-latency$' =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'avg-request-latency', 'max-request-latency', 'outstanding-requests', 'packets-received' 'packets-sent', 'num-connections'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'avg-request-latency', 'max-request-latency', 'outstanding-requests', 'packets-received' 'packets-sent', 'num-connections'. diff --git a/src/apps/jmeter/mode/scenario.pm b/src/apps/jmeter/mode/scenario.pm index 280c81a28..2ec10e300 100644 --- a/src/apps/jmeter/mode/scenario.pm +++ b/src/apps/jmeter/mode/scenario.pm @@ -234,11 +234,11 @@ Scenario used by JMeter (without extension). =item B<--warning> -Threshold warning in seconds (scenario execution time). +Warning threshold in seconds (scenario execution time). =item B<--critical> -Threshold critical in seconds (scenario execution time). +Critical threshold in seconds (scenario execution time). =back diff --git a/src/apps/keepalived/snmp/mode/vrrpstatus.pm b/src/apps/keepalived/snmp/mode/vrrpstatus.pm index a820eaf58..a5b0ef3bb 100644 --- a/src/apps/keepalived/snmp/mode/vrrpstatus.pm +++ b/src/apps/keepalived/snmp/mode/vrrpstatus.pm @@ -143,12 +143,12 @@ Check VRRP instances status. =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{instanceWantedState}, %{instanceStateLast}, %{instanceState}, %{instancePrimaryInterface} =item B<--critical-status> -Set critical threshold for status (Default: '%{instanceState} ne %{instanceWantedState} or %{instanceState} ne %{instanceStateLast}'). +Define the conditions to match for the status to be CRITICAL (Default: '%{instanceState} ne %{instanceWantedState} or %{instanceState} ne %{instanceStateLast}'). You can use the following variables: %{instanceWantedState}, %{instanceStateLast}, %{instanceState}, %{instancePrimaryInterface} =back diff --git a/src/apps/lotus/snmp/mode/mailstate.pm b/src/apps/lotus/snmp/mode/mailstate.pm index 07d2f2742..ee91590a2 100644 --- a/src/apps/lotus/snmp/mode/mailstate.pm +++ b/src/apps/lotus/snmp/mode/mailstate.pm @@ -112,19 +112,19 @@ Check the number of dead and wainting mail on the lotus server (NOTES-MIB.mib) =item B<--warning-dead> -Threshold warning in percent. +Warning threshold in percent. =item B<--critical-dead> -Threshold critical in percent. +Critical threshold in percent. =item B<--warning-waiting> -Threshold warning in percent. +Warning threshold in percent. =item B<--critical-waiting> -Threshold critical in percent. +Critical threshold in percent. =back diff --git a/src/apps/lotus/snmp/mode/mailtime.pm b/src/apps/lotus/snmp/mode/mailtime.pm index 2b8db0eb6..841c0301d 100644 --- a/src/apps/lotus/snmp/mode/mailtime.pm +++ b/src/apps/lotus/snmp/mode/mailtime.pm @@ -93,11 +93,11 @@ Check the mail average delivery time (print min and max for info)(NOTES-MIB.mib) =item B<--warning> -Threshold warning in seconds. +Warning threshold in seconds. =item B<--critical> -Threshold critical in seconds. +Critical threshold in seconds. =back diff --git a/src/apps/lotus/snmp/mode/serveravailability.pm b/src/apps/lotus/snmp/mode/serveravailability.pm index 19e6a200f..39513b941 100644 --- a/src/apps/lotus/snmp/mode/serveravailability.pm +++ b/src/apps/lotus/snmp/mode/serveravailability.pm @@ -86,11 +86,11 @@ Check the mail server global availability percentage (NOTES-MIB.mib) =item B<--warning> -Threshold warning in percent. +Warning threshold in percent. =item B<--critical> -Threshold critical in percent. +Critical threshold in percent. =back diff --git a/src/apps/lotus/snmp/mode/servertransactions.pm b/src/apps/lotus/snmp/mode/servertransactions.pm index 29d3a4359..c60d41ed3 100644 --- a/src/apps/lotus/snmp/mode/servertransactions.pm +++ b/src/apps/lotus/snmp/mode/servertransactions.pm @@ -86,11 +86,11 @@ Check the avg number of transactions per minute since the server was started (NO =item B<--warning> -Threshold warning in number of transactions per minutes. +Warning threshold in number of transactions per minutes. =item B<--critical> -Threshold critical in number of transactions per minute. +Critical threshold in number of transactions per minute. =back diff --git a/src/apps/lotus/snmp/mode/usersessions.pm b/src/apps/lotus/snmp/mode/usersessions.pm index 1cb323c54..a0942583d 100644 --- a/src/apps/lotus/snmp/mode/usersessions.pm +++ b/src/apps/lotus/snmp/mode/usersessions.pm @@ -86,11 +86,11 @@ Check the number of user connections (NOTES-MIB.mib) =item B<--warning> -Threshold warning in users. +Warning threshold in users. =item B<--critical> -Threshold critical in users. +Critical threshold in users. =back diff --git a/src/apps/microsoft/activedirectory/local/mode/dfsrbacklog.pm b/src/apps/microsoft/activedirectory/local/mode/dfsrbacklog.pm index ae11c37a3..1e51c44c9 100644 --- a/src/apps/microsoft/activedirectory/local/mode/dfsrbacklog.pm +++ b/src/apps/microsoft/activedirectory/local/mode/dfsrbacklog.pm @@ -141,11 +141,11 @@ Timeout in seconds for the command (Default: 30). =item B<--warning-backlog> -Threshold warning. +Warning threshold. =item B<--critical-backlog> -Threshold critical. +Critical threshold. =back diff --git a/src/apps/microsoft/dhcp/snmp/mode/subnets.pm b/src/apps/microsoft/dhcp/snmp/mode/subnets.pm index e99ce1933..2ab32628d 100644 --- a/src/apps/microsoft/dhcp/snmp/mode/subnets.pm +++ b/src/apps/microsoft/dhcp/snmp/mode/subnets.pm @@ -201,17 +201,17 @@ Filter subnets by address (can be a regexp). =item B<--unknown-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{status}, %{name} =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{status}, %{name} =item B<--critical-status> -Set critical threshold for status. +Define the conditions to match for the status to be CRITICAL. You can use the following variables: %{status}, %{name} =item B<--warning-*> B<--critical-*> diff --git a/src/apps/microsoft/hyperv/2012/local/mode/nodeintegrationservice.pm b/src/apps/microsoft/hyperv/2012/local/mode/nodeintegrationservice.pm index 34f70a6ed..6599b6c75 100644 --- a/src/apps/microsoft/hyperv/2012/local/mode/nodeintegrationservice.pm +++ b/src/apps/microsoft/hyperv/2012/local/mode/nodeintegrationservice.pm @@ -306,24 +306,24 @@ Filter virtual machine status (can be a regexp) (Default: 'running'). =item B<--warning-global-status> -Set warning threshold for status (Default: '%{integration_service_state} =~ /Update required/i'). +Define the conditions to match for the status to be WARNING (Default: '%{integration_service_state} =~ /Update required/i'). You can use the following variables: %{vm}, %{integration_service_state}, %{integration_service_version}, %{state} =item B<--critical-global-status> -Set critical threshold for status (Default: ''). +Define the conditions to match for the status to be CRITICAL (Default: ''). You can use the following variables: %{vm}, %{integration_service_state}, %{integration_service_version}, %{state} =item B<--warning-service-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{vm}, %{service}, %{primary_status}, %{secondary_status}, %{enabled} =item B<--critical-service-status> -Set critical threshold for status (Default: '%{primary_status} !~ /Ok/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{primary_status} !~ /Ok/i'). You can use the following variables: %{vm}, %{service}, %{primary_status}, %{secondary_status}, %{enabled} =back diff --git a/src/apps/microsoft/hyperv/2012/local/mode/nodereplication.pm b/src/apps/microsoft/hyperv/2012/local/mode/nodereplication.pm index 7054ad854..47d4a7cd8 100644 --- a/src/apps/microsoft/hyperv/2012/local/mode/nodereplication.pm +++ b/src/apps/microsoft/hyperv/2012/local/mode/nodereplication.pm @@ -212,12 +212,12 @@ Filter virtual machines (can be a regexp). =item B<--warning-status> -Set warning threshold for status (Default: '%{health} =~ /Warning/i'). +Define the conditions to match for the status to be WARNING (Default: '%{health} =~ /Warning/i'). You can use the following variables: %{vm}, %{state}, %{health} =item B<--critical-status> -Set critical threshold for status (Default: '%{health} =~ /Critical/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{health} =~ /Critical/i'). You can use the following variables: %{vm}, %{state}, %{health} =back diff --git a/src/apps/microsoft/hyperv/2012/local/mode/nodesnapshot.pm b/src/apps/microsoft/hyperv/2012/local/mode/nodesnapshot.pm index 74cb1c1f6..041c5eb88 100644 --- a/src/apps/microsoft/hyperv/2012/local/mode/nodesnapshot.pm +++ b/src/apps/microsoft/hyperv/2012/local/mode/nodesnapshot.pm @@ -261,12 +261,12 @@ Filter by VM notes (can be a regexp). =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'snapshot' (in seconds), 'backing' (in seconds). =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'snapshot' (in seconds), 'backing' (in seconds). =back diff --git a/src/apps/microsoft/hyperv/2012/local/mode/nodevmstatus.pm b/src/apps/microsoft/hyperv/2012/local/mode/nodevmstatus.pm index 5bdd800af..cd329b727 100644 --- a/src/apps/microsoft/hyperv/2012/local/mode/nodevmstatus.pm +++ b/src/apps/microsoft/hyperv/2012/local/mode/nodevmstatus.pm @@ -225,12 +225,12 @@ Filter by VM notes (can be a regexp). =item B<--warning-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{vm}, %{state}, %{status}, %{is_clustered} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} !~ /Operating normally/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} !~ /Operating normally/i'). You can use the following variables: %{vm}, %{state}, %{status}, %{is_clustered} =back diff --git a/src/apps/microsoft/hyperv/2012/local/mode/scvmmintegrationservice.pm b/src/apps/microsoft/hyperv/2012/local/mode/scvmmintegrationservice.pm index d54b9719c..670ac96e9 100644 --- a/src/apps/microsoft/hyperv/2012/local/mode/scvmmintegrationservice.pm +++ b/src/apps/microsoft/hyperv/2012/local/mode/scvmmintegrationservice.pm @@ -354,12 +354,12 @@ Filter hostgroup (can be a regexp). =item B<--warning-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{vm}, %{vmaddition}, %{status} =item B<--critical-status> -Set critical threshold for status (Default: '%{vmaddition} =~ /not detected/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{vmaddition} =~ /not detected/i'). You can use the following variables: %{vm}, %{vmaddition}, %{status} =back diff --git a/src/apps/microsoft/hyperv/2012/local/mode/scvmmsnapshot.pm b/src/apps/microsoft/hyperv/2012/local/mode/scvmmsnapshot.pm index 53c17522e..1a8ceb978 100644 --- a/src/apps/microsoft/hyperv/2012/local/mode/scvmmsnapshot.pm +++ b/src/apps/microsoft/hyperv/2012/local/mode/scvmmsnapshot.pm @@ -273,12 +273,12 @@ Filter hostgroup (can be a regexp). =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'snapshot' (in seconds). =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'snapshot' (in seconds). =back diff --git a/src/apps/microsoft/hyperv/2012/local/mode/scvmmvmstatus.pm b/src/apps/microsoft/hyperv/2012/local/mode/scvmmvmstatus.pm index b9bcaf0c3..d853d3288 100644 --- a/src/apps/microsoft/hyperv/2012/local/mode/scvmmvmstatus.pm +++ b/src/apps/microsoft/hyperv/2012/local/mode/scvmmvmstatus.pm @@ -265,12 +265,12 @@ Filter by description (can be a regexp). =item B<--warning-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{vm}, %{status}, %{hostgroup} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} !~ /Running|Stopped/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} !~ /Running|Stopped/i'). You can use the following variables: %{vm}, %{status}, %{hostgroup} =back diff --git a/src/apps/microsoft/iis/local/mode/applicationpoolstate.pm b/src/apps/microsoft/iis/local/mode/applicationpoolstate.pm index f15c334e8..6406a2f62 100644 --- a/src/apps/microsoft/iis/local/mode/applicationpoolstate.pm +++ b/src/apps/microsoft/iis/local/mode/applicationpoolstate.pm @@ -142,17 +142,17 @@ Filter application pool name (can be a regexp). =item B<--unknown-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{name}, %{state}, %{auto_start}. =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{name}, %{state}, %{auto_start}. =item B<--critical-status> -Set critical threshold for status (Default: '%{auto_start} eq "on" and not %{state} =~ /started|starting/'). +Define the conditions to match for the status to be CRITICAL (Default: '%{auto_start} eq "on" and not %{state} =~ /started|starting/'). You can use the following variables: %{name}, %{state}, %{auto_start}. =back diff --git a/src/apps/microsoft/iis/restapi/mode/applicationpools.pm b/src/apps/microsoft/iis/restapi/mode/applicationpools.pm index 2dafcec80..60c758cbe 100644 --- a/src/apps/microsoft/iis/restapi/mode/applicationpools.pm +++ b/src/apps/microsoft/iis/restapi/mode/applicationpools.pm @@ -132,17 +132,17 @@ Filter application pool name (can be a regexp). =item B<--unknown-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{status}, %{auto_start}, %{display} =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{status}, %{auto_start}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: '%{auto_start} eq "true" and %{status} !~ /starting|started/'). +Define the conditions to match for the status to be CRITICAL (Default: '%{auto_start} eq "true" and %{status} !~ /starting|started/'). You can use the following variables: %{status}, %{auto_start}, %{display} =item B<--warning-*> B<--critical-*> diff --git a/src/apps/microsoft/iis/restapi/mode/websites.pm b/src/apps/microsoft/iis/restapi/mode/websites.pm index f1fc3b756..208487de6 100644 --- a/src/apps/microsoft/iis/restapi/mode/websites.pm +++ b/src/apps/microsoft/iis/restapi/mode/websites.pm @@ -168,17 +168,17 @@ Filter website name (can be a regexp). =item B<--unknown-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{status}, %{display} =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{status}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} !~ /starting|started/'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} !~ /starting|started/'). You can use the following variables: %{status}, %{display} =item B<--warning-*> B<--critical-*> diff --git a/src/apps/microsoft/iis/wsman/mode/applicationpools.pm b/src/apps/microsoft/iis/wsman/mode/applicationpools.pm index 22747f285..4ec07e542 100644 --- a/src/apps/microsoft/iis/wsman/mode/applicationpools.pm +++ b/src/apps/microsoft/iis/wsman/mode/applicationpools.pm @@ -138,17 +138,17 @@ Filter application pool name (can be a regexp). =item B<--unknown-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{name}, %{state}, %{auto_start}. =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{name}, %{state}, %{auto_start}. =item B<--critical-status> -Set critical threshold for status (Default: '%{auto_start} eq "on" and not %{state} =~ /started|starting/'). +Define the conditions to match for the status to be CRITICAL (Default: '%{auto_start} eq "on" and not %{state} =~ /started|starting/'). You can use the following variables: %{name}, %{state}, %{auto_start}. =item B<--warning-*> B<--critical-*> diff --git a/src/apps/microsoft/mscs/local/mode/networkstatus.pm b/src/apps/microsoft/mscs/local/mode/networkstatus.pm index 0ee5d4ee2..187001040 100644 --- a/src/apps/microsoft/mscs/local/mode/networkstatus.pm +++ b/src/apps/microsoft/mscs/local/mode/networkstatus.pm @@ -127,17 +127,17 @@ Filter interface name (can be a regexp). =item B<--unknown-status> -Set unknown threshold for status (Default: '%{state} =~ /unknown/'). +Define the conditions to match for the status to be UNKNOWN (Default: '%{state} =~ /unknown/'). You can use the following variables: %{state}, %{display} =item B<--warning-status> -Set warning threshold for status (Default: none). +Define the conditions to match for the status to be WARNING (Default: none). You can use the following variables: %{state}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: '%{state} =~ /down|partitioned|unavailable/'). +Define the conditions to match for the status to be CRITICAL (Default: '%{state} =~ /down|partitioned|unavailable/'). You can use the following variables: %{state}, %{display} =back diff --git a/src/apps/microsoft/mscs/local/mode/nodestatus.pm b/src/apps/microsoft/mscs/local/mode/nodestatus.pm index c2eaae7b3..5b96b0136 100644 --- a/src/apps/microsoft/mscs/local/mode/nodestatus.pm +++ b/src/apps/microsoft/mscs/local/mode/nodestatus.pm @@ -126,17 +126,17 @@ Filter node name (can be a regexp). =item B<--unknown-status> -Set unknown threshold for status (Default: '%{state} =~ /unknown/'). +Define the conditions to match for the status to be UNKNOWN (Default: '%{state} =~ /unknown/'). You can use the following variables: %{state}, %{display} =item B<--warning-status> -Set warning threshold for status (Default: '%{state} =~ /pause|joining/'). +Define the conditions to match for the status to be WARNING (Default: '%{state} =~ /pause|joining/'). You can use the following variables: %{state}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: '%{state} =~ /down/'). +Define the conditions to match for the status to be CRITICAL (Default: '%{state} =~ /down/'). You can use the following variables: %{state}, %{display} =back diff --git a/src/apps/microsoft/mscs/local/mode/resourcegroupstatus.pm b/src/apps/microsoft/mscs/local/mode/resourcegroupstatus.pm index 40d64f724..503a43f1b 100644 --- a/src/apps/microsoft/mscs/local/mode/resourcegroupstatus.pm +++ b/src/apps/microsoft/mscs/local/mode/resourcegroupstatus.pm @@ -195,17 +195,17 @@ Filter resource group name (can be a regexp). =item B<--unknown-status> -Set unknown threshold for status (Default: '%{state} =~ /unknown/'). +Define the conditions to match for the status to be UNKNOWN (Default: '%{state} =~ /unknown/'). You can use the following variables: %{state}, %{display}, %{owner_node} =item B<--warning-status> -Set warning threshold for status (Default: '%{is_preferred_node} == 0'). +Define the conditions to match for the status to be WARNING (Default: '%{is_preferred_node} == 0'). You can use the following variables: %{state}, %{display}, %{owner_node} =item B<--critical-status> -Set critical threshold for status (Default: '%{state} =~ /failed|offline/'). +Define the conditions to match for the status to be CRITICAL (Default: '%{state} =~ /failed|offline/'). You can use the following variables: %{state}, %{display}, %{owner_node} =back diff --git a/src/apps/microsoft/mscs/local/mode/resourcestatus.pm b/src/apps/microsoft/mscs/local/mode/resourcestatus.pm index af823040a..ef43988e9 100644 --- a/src/apps/microsoft/mscs/local/mode/resourcestatus.pm +++ b/src/apps/microsoft/mscs/local/mode/resourcestatus.pm @@ -131,17 +131,17 @@ Filter resource name (can be a regexp). =item B<--unknown-status> -Set unknown threshold for status (Default: '%{state} =~ /unknown/'). +Define the conditions to match for the status to be UNKNOWN (Default: '%{state} =~ /unknown/'). You can use the following variables: %{state}, %{display} =item B<--warning-status> -Set warning threshold for status (Default: none). +Define the conditions to match for the status to be WARNING (Default: none). You can use the following variables: %{state}, %{display}, %{owner_node} =item B<--critical-status> -Set critical threshold for status (Default: '%{state} =~ /failed|offline/'). +Define the conditions to match for the status to be CRITICAL (Default: '%{state} =~ /failed|offline/'). You can use the following variables: %{state}, %{display}, %{owner_node} =back diff --git a/src/apps/monitoring/dynatrace/restapi/mode/events.pm b/src/apps/monitoring/dynatrace/restapi/mode/events.pm index 98b745cb5..d73b3fe19 100644 --- a/src/apps/monitoring/dynatrace/restapi/mode/events.pm +++ b/src/apps/monitoring/dynatrace/restapi/mode/events.pm @@ -200,17 +200,17 @@ Filter events by entity/name (can be a regexp). =item B<--unknown-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. Can use special variables like: %{status}, %{managementZone}, %{entityName}, %{entityId}, %{eventType}, %{startTime}, %{endTime}, %{time} =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. Can use special variables like: %{status}, %{managementZone}, %{entityName}, %{entityId}, %{eventType}, %{startTime}, %{endTime}, %{time} =item B<--critical-status> -Set critical threshold for status. +Define the conditions to match for the status to be CRITICAL. Can use special variables like: %{status}, %{managementZone}, %{entityName}, %{entityId}, %{eventType}, %{startTime}, %{endTime}, %{time} =item B<--warning-*> B<--critical-*> diff --git a/src/apps/monitoring/dynatrace/restapi/mode/problems.pm b/src/apps/monitoring/dynatrace/restapi/mode/problems.pm index 9daa3cbb0..831bb421f 100644 --- a/src/apps/monitoring/dynatrace/restapi/mode/problems.pm +++ b/src/apps/monitoring/dynatrace/restapi/mode/problems.pm @@ -197,17 +197,17 @@ Example: --entity='entity1,entity2' =item B<--unknown-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. Can use special variables like: %{status}, %{impactLevel}, %{severityLevel}, %{managementZone}, %{entityName}, %{entityId}, %{startTime}, %{endTime}, %{time} =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. Can use special variables like: %{status}, %{impactLevel}, %{severityLevel}, %{managementZone}, %{entityName}, %{entityId}, %{startTime}, %{endTime}, %{time} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} eq "OPEN"'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} eq "OPEN"'). Can use special variables like: %{status}, %{impactLevel}, %{severityLevel}, %{managementZone}, %{entityName}, %{entityId}, %{startTime}, %{endTime}, %{time} =item B<--warning-*> B<--critical-*> diff --git a/src/apps/monitoring/iplabel/datametrie/restapi/mode/kpi.pm b/src/apps/monitoring/iplabel/datametrie/restapi/mode/kpi.pm index e8b4e0005..521240913 100644 --- a/src/apps/monitoring/iplabel/datametrie/restapi/mode/kpi.pm +++ b/src/apps/monitoring/iplabel/datametrie/restapi/mode/kpi.pm @@ -178,17 +178,17 @@ Filter by monitor name (can be a regexp). =item B<--unknown-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{status}, %{display} =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{status}, %{display} =item B<--critical-status> -Set critical threshold for status. +Define the conditions to match for the status to be CRITICAL. You can use the following variables: %{status}, %{display} =item B<--warning-*> B<--critical-*> diff --git a/src/apps/monitoring/mip/restapi/mode/scenarios.pm b/src/apps/monitoring/mip/restapi/mode/scenarios.pm index 2a765bfed..d864ea542 100644 --- a/src/apps/monitoring/mip/restapi/mode/scenarios.pm +++ b/src/apps/monitoring/mip/restapi/mode/scenarios.pm @@ -330,17 +330,17 @@ Only check new result entries for scenarios. =item B<--unknown-status> -Set unknown threshold for status (Default: '%{status} =~ /unknown/i'). +Define the conditions to match for the status to be UNKNOWN (Default: '%{status} =~ /unknown/i'). You can use the following variables: %{status}, %{display} =item B<--warning-status> -Set warning threshold for status (Default: '%{status} =~ /warning/i'). +Define the conditions to match for the status to be WARNING (Default: '%{status} =~ /warning/i'). You can use the following variables: %{status}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} =~ /critical/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} =~ /critical/i'). You can use the following variables: %{status}, %{display} =back diff --git a/src/apps/monitoring/nodeexporter/linux/mode/cpu.pm b/src/apps/monitoring/nodeexporter/linux/mode/cpu.pm index b5d3f3e9b..0ac6600f4 100644 --- a/src/apps/monitoring/nodeexporter/linux/mode/cpu.pm +++ b/src/apps/monitoring/nodeexporter/linux/mode/cpu.pm @@ -235,14 +235,14 @@ Check CPU based on node exporter metrics. =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'average', 'idle', 'iowait', 'nice', 'irq' 'softirq', 'steal', 'system', 'user' =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'average', 'idle', 'iowait', 'nice', 'irq' 'softirq', 'steal', 'system', 'user' diff --git a/src/apps/monitoring/nodeexporter/linux/mode/load.pm b/src/apps/monitoring/nodeexporter/linux/mode/load.pm index a79699348..2d3b32501 100644 --- a/src/apps/monitoring/nodeexporter/linux/mode/load.pm +++ b/src/apps/monitoring/nodeexporter/linux/mode/load.pm @@ -113,12 +113,12 @@ Check node load based on node exporter metrics. =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'load1', 'load5', 'load15'. =item B<--critical-*> -Threshold warning. +Warning threshold. Can be: 'load1', 'load5', 'load15'. \ No newline at end of file diff --git a/src/apps/monitoring/nodeexporter/linux/mode/memory.pm b/src/apps/monitoring/nodeexporter/linux/mode/memory.pm index 7da6fc7b9..6bbfcc370 100644 --- a/src/apps/monitoring/nodeexporter/linux/mode/memory.pm +++ b/src/apps/monitoring/nodeexporter/linux/mode/memory.pm @@ -178,13 +178,13 @@ Default: '%' =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'usage', 'buffer', 'cached'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'usage', 'buffer', 'cached'. diff --git a/src/apps/monitoring/nodeexporter/linux/mode/storage.pm b/src/apps/monitoring/nodeexporter/linux/mode/storage.pm index 8f530c6b6..f275468cf 100644 --- a/src/apps/monitoring/nodeexporter/linux/mode/storage.pm +++ b/src/apps/monitoring/nodeexporter/linux/mode/storage.pm @@ -201,11 +201,11 @@ Default: '%' =item B<--warning-usage> -Threshold warning. +Warning threshold. =item B<--critical-usage> -Threshold critical. +Critical threshold. =back diff --git a/src/apps/monitoring/nodeexporter/windows/mode/cpu.pm b/src/apps/monitoring/nodeexporter/windows/mode/cpu.pm index 3562a6d02..5fda31b4f 100644 --- a/src/apps/monitoring/nodeexporter/windows/mode/cpu.pm +++ b/src/apps/monitoring/nodeexporter/windows/mode/cpu.pm @@ -201,13 +201,13 @@ Check CPU based on node exporter metrics. =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'average', 'idle', 'dpc', 'user', 'interrupt', 'privileged' =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'average', 'idle', 'dpc', 'user', 'interrupt', 'privileged' diff --git a/src/apps/monitoring/nodeexporter/windows/mode/services.pm b/src/apps/monitoring/nodeexporter/windows/mode/services.pm index 1e18deeba..e21c79a64 100644 --- a/src/apps/monitoring/nodeexporter/windows/mode/services.pm +++ b/src/apps/monitoring/nodeexporter/windows/mode/services.pm @@ -118,12 +118,12 @@ Default: all services are monitored. =item B<--warning-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{status}, %{start_mode} =item B<--critical-status> -Set critical threshold for status (Default: '%{start_mode} =~ /auto/ && %{status} !~ /^running$/'). +Define the conditions to match for the status to be CRITICAL (Default: '%{start_mode} =~ /auto/ && %{status} !~ /^running$/'). You can use the following variables: %{status}, %{start_mode} diff --git a/src/apps/monitoring/nodeexporter/windows/mode/storage.pm b/src/apps/monitoring/nodeexporter/windows/mode/storage.pm index 3e026ea74..0aa1dc27e 100644 --- a/src/apps/monitoring/nodeexporter/windows/mode/storage.pm +++ b/src/apps/monitoring/nodeexporter/windows/mode/storage.pm @@ -195,11 +195,11 @@ Default: '%' =item B<--warning-usage> -Threshold warning. +Warning threshold. =item B<--critical-usage> -Threshold critical. +Critical threshold. =back diff --git a/src/apps/monitoring/ntopng/restapi/mode/alerts.pm b/src/apps/monitoring/ntopng/restapi/mode/alerts.pm index 9b78f3cc1..5005418f6 100644 --- a/src/apps/monitoring/ntopng/restapi/mode/alerts.pm +++ b/src/apps/monitoring/ntopng/restapi/mode/alerts.pm @@ -214,12 +214,12 @@ Can be: 'last-5mns' (default), 'last-hour' =item B<--warning-status> -Set warning threshold for status (Default: '%{severity} =~ /minor/i') +Define the conditions to match for the status to be WARNING (Default: '%{severity} =~ /minor/i') You can use the following variables: %{severity}, %{type}, %{timeraised} =item B<--critical-status> -Set critical threshold for status (Default: '%{severity} =~ /major|critical/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{severity} =~ /major|critical/i'). You can use the following variables: %{severity}, %{type}, %{timeraised} =item B<--warning-*> B<--critical-*> diff --git a/src/apps/monitoring/scom/restapi/mode/alerts.pm b/src/apps/monitoring/scom/restapi/mode/alerts.pm index a2220dbe0..c93af4f0a 100644 --- a/src/apps/monitoring/scom/restapi/mode/alerts.pm +++ b/src/apps/monitoring/scom/restapi/mode/alerts.pm @@ -168,12 +168,12 @@ Filter by host name (can be a regexp). =item B<--warning-status> -Set warning threshold for status (Default: '%{severity} =~ /warning/i') +Define the conditions to match for the status to be WARNING (Default: '%{severity} =~ /warning/i') You can use the following variables: %{severity}, %{host}, %{name}, %{timeraised} =item B<--critical-status> -Set critical threshold for status (Default: '%{severity} =~ /critical/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{severity} =~ /critical/i'). You can use the following variables: %{severity}, %{host}, %{name}, %{timeraised} =item B<--warning-*> B<--critical-*> diff --git a/src/apps/mq/activemq/jmx/mode/brokers.pm b/src/apps/mq/activemq/jmx/mode/brokers.pm index 463db4b03..2ee848c59 100644 --- a/src/apps/mq/activemq/jmx/mode/brokers.pm +++ b/src/apps/mq/activemq/jmx/mode/brokers.pm @@ -320,12 +320,12 @@ Filter destination type (Can be a regexp). =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{status}, %{name} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} !~ /Good/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} !~ /Good/i'). You can use the following variables: %{status}, %{name} =item B<--warning-*> B<--critical-*> diff --git a/src/apps/mq/ibmmq/mqi/mode/channels.pm b/src/apps/mq/ibmmq/mqi/mode/channels.pm index 4f23da6d7..0b0a7a507 100644 --- a/src/apps/mq/ibmmq/mqi/mode/channels.pm +++ b/src/apps/mq/ibmmq/mqi/mode/channels.pm @@ -211,17 +211,17 @@ MQTT - Telemetry =item B<--unknown-status> -Set unknown threshold for status (Default: ''). +Define the conditions to match for the status to be UNKNOWN (Default: ''). You can use the following variables: %{channel_status}, %{mca_status} =item B<--warning-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{channel_status}, %{mca_status} =item B<--critical-status> -Set critical threshold for status (Default: '%{channel_status} !~ /running|idle/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{channel_status} !~ /running|idle/i'). You can use the following variables: %{channel_status}, %{mca_status} =item B<--warning-*> B<--critical-*> diff --git a/src/apps/mq/ibmmq/mqi/mode/queuemanager.pm b/src/apps/mq/ibmmq/mqi/mode/queuemanager.pm index de1c4f3f6..10c72fbad 100644 --- a/src/apps/mq/ibmmq/mqi/mode/queuemanager.pm +++ b/src/apps/mq/ibmmq/mqi/mode/queuemanager.pm @@ -134,17 +134,17 @@ Check queue manager. =item B<--unknown-status> -Set unknown threshold for status (Default: ''). +Define the conditions to match for the status to be UNKNOWN (Default: ''). You can use the following variables: %{mgr_status}, %{channel_initiator_status}, %{command_server_status} =item B<--warning-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{mgr_status}, %{channel_initiator_status}, %{command_server_status} =item B<--critical-status> -Set critical threshold for status (Default: '%{mgr_status} !~ /running/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{mgr_status} !~ /running/i'). You can use the following variables: %{mgr_status}, %{channel_initiator_status}, %{command_server_status} =item B<--warning-*> B<--critical-*> diff --git a/src/apps/mq/ibmmq/restapi/mode/queuemanagers.pm b/src/apps/mq/ibmmq/restapi/mode/queuemanagers.pm index 4c41bd1fd..0862eca15 100644 --- a/src/apps/mq/ibmmq/restapi/mode/queuemanagers.pm +++ b/src/apps/mq/ibmmq/restapi/mode/queuemanagers.pm @@ -146,17 +146,17 @@ Filter queue managers by name (can be a regexp). =item B<--unknown-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{mgr_status}, %{channel_initiator_status} =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{mgr_status}, %{channel_initiator_status} =item B<--critical-status> -Set critical threshold for status (Default: '%{mgr_status} !~ /running/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{mgr_status} !~ /running/i'). You can use the following variables: %{mgr_status}, %{channel_initiator_status} =item B<--warning-*> B<--critical-*> diff --git a/src/apps/mq/rabbitmq/restapi/mode/nodeusage.pm b/src/apps/mq/rabbitmq/restapi/mode/nodeusage.pm index 2b34328d3..bdbcfe751 100644 --- a/src/apps/mq/rabbitmq/restapi/mode/nodeusage.pm +++ b/src/apps/mq/rabbitmq/restapi/mode/nodeusage.pm @@ -141,12 +141,12 @@ Filter node name (Can use regexp). =item B<--warning-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{status}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} ne "running"'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} ne "running"'). You can use the following variables: %{status}, %{display} =item B<--warning-*> B<--critical-*> diff --git a/src/apps/mq/rabbitmq/restapi/mode/queueusage.pm b/src/apps/mq/rabbitmq/restapi/mode/queueusage.pm index 1d65c7da9..49e35b537 100644 --- a/src/apps/mq/rabbitmq/restapi/mode/queueusage.pm +++ b/src/apps/mq/rabbitmq/restapi/mode/queueusage.pm @@ -142,12 +142,12 @@ Filter queue name (Can use regexp). =item B<--warning-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{state}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: '%{state} ne "running"'). +Define the conditions to match for the status to be CRITICAL (Default: '%{state} ne "running"'). You can use the following variables: %{state}, %{display} =item B<--warning-*> B<--critical-*> diff --git a/src/apps/mq/rabbitmq/restapi/mode/vhostusage.pm b/src/apps/mq/rabbitmq/restapi/mode/vhostusage.pm index cba8eec37..19864d0eb 100644 --- a/src/apps/mq/rabbitmq/restapi/mode/vhostusage.pm +++ b/src/apps/mq/rabbitmq/restapi/mode/vhostusage.pm @@ -141,12 +141,12 @@ Filter vhost name (Can use regexp). =item B<--warning-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{status}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} ne "ok"'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} ne "ok"'). You can use the following variables: %{status}, %{display} =item B<--warning-*> B<--critical-*> diff --git a/src/apps/mq/vernemq/restapi/mode/clusters.pm b/src/apps/mq/vernemq/restapi/mode/clusters.pm index 848e8b5e5..85b42590a 100644 --- a/src/apps/mq/vernemq/restapi/mode/clusters.pm +++ b/src/apps/mq/vernemq/restapi/mode/clusters.pm @@ -142,17 +142,17 @@ Filter cluster name (can be a regexp). =item B<--unknown-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{status}, %{display} =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{status}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} eq "notRunning"'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} eq "notRunning"'). You can use the following variables: %{status}, %{display} =item B<--warning-*> B<--critical-*> diff --git a/src/apps/mq/vernemq/restapi/mode/listeners.pm b/src/apps/mq/vernemq/restapi/mode/listeners.pm index 6db20a18d..d59477d4a 100644 --- a/src/apps/mq/vernemq/restapi/mode/listeners.pm +++ b/src/apps/mq/vernemq/restapi/mode/listeners.pm @@ -142,17 +142,17 @@ Filter listener type (can be a regexp). =item B<--unknown-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{status}, %{display} =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{status}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} ne "running"'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} ne "running"'). You can use the following variables: %{status}, %{display} =item B<--warning-*> B<--critical-*> diff --git a/src/apps/mulesoft/restapi/mode/applications.pm b/src/apps/mulesoft/restapi/mode/applications.pm index 297124c55..cc7957d30 100644 --- a/src/apps/mulesoft/restapi/mode/applications.pm +++ b/src/apps/mulesoft/restapi/mode/applications.pm @@ -167,13 +167,13 @@ Example: --filter-name='^application1$' =item B<--warning-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). Threshold can be matched on %{name}, %{id} or %{status} and Regexp can be used. Typical syntax: --warning-status='%{status} ne "STARTED"' =item B<--critical-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). Threshold can be matched on %{name}, %{id} or %{status} and Regexp can be used. Typical syntax: --critical-status='%{status} =~ m/FAILED/' diff --git a/src/apps/mulesoft/restapi/mode/clusters.pm b/src/apps/mulesoft/restapi/mode/clusters.pm index f04c73597..541c9b623 100644 --- a/src/apps/mulesoft/restapi/mode/clusters.pm +++ b/src/apps/mulesoft/restapi/mode/clusters.pm @@ -159,13 +159,13 @@ Example: --filter-name='^cluster1$' =item B<--warning-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). Threshold can be matched on %{name}, %{id} or %{status} and Regexp can be used. Typical syntax: --warning-status='%{status} ne "RUNNING"' =item B<--critical-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). Threshold can be matched on %{name}, %{id} or %{status} and Regexp can be used. Typical syntax: --critical-status='%{status} =~ m/DISCONNECTED/' diff --git a/src/apps/mulesoft/restapi/mode/servers.pm b/src/apps/mulesoft/restapi/mode/servers.pm index 99575e8e7..fd29b2d5c 100644 --- a/src/apps/mulesoft/restapi/mode/servers.pm +++ b/src/apps/mulesoft/restapi/mode/servers.pm @@ -161,13 +161,13 @@ Example: --filter-name='^server1$' =item B<--warning-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). Threshold can be matched on %{name}, %{id} or %{status} and Regexp can be used. Typical syntax: --warning-status='%{status} ne "RUNNING"' =item B<--critical-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). Threshold can be matched on %{name}, %{id} or %{status} and Regexp can be used. Typical syntax: --critical-status='%{status} =~ m/DISCONNECTED/' diff --git a/src/apps/nsclient/restapi/mode/query.pm b/src/apps/nsclient/restapi/mode/query.pm index e58d758fe..4836edbb4 100644 --- a/src/apps/nsclient/restapi/mode/query.pm +++ b/src/apps/nsclient/restapi/mode/query.pm @@ -254,16 +254,16 @@ Set arguments (Multiple option. Example: --arg='arg1') =item B<--unknown-status> -Threshold warning for http response code. +Warning threshold for http response code. (Default: '%{http_code} < 200 or %{http_code} >= 300') =item B<--warning-status> -Threshold warning for http response code. +Warning threshold for http response code. =item B<--critical-status> -Threshold critical for http response code. +Critical threshold for http response code. =back diff --git a/src/apps/oracle/gg/local/mode/processes.pm b/src/apps/oracle/gg/local/mode/processes.pm index 459527a2e..c43bea582 100644 --- a/src/apps/oracle/gg/local/mode/processes.pm +++ b/src/apps/oracle/gg/local/mode/processes.pm @@ -186,17 +186,17 @@ Filter processes by type (can be a regexp). =item B<--unknown-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{status}, %{name}, %{group}, %{type} =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{status}, %{name}, %{group}, %{type} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} =~ /ABENDED/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} =~ /ABENDED/i'). You can use the following variables: %{status}, %{name}, %{group}, %{type} =item B<--warning-*> B<--critical-*> diff --git a/src/apps/oracle/ovm/api/mode/manager.pm b/src/apps/oracle/ovm/api/mode/manager.pm index 582c1ba22..d4c6493eb 100644 --- a/src/apps/oracle/ovm/api/mode/manager.pm +++ b/src/apps/oracle/ovm/api/mode/manager.pm @@ -136,17 +136,17 @@ Example: --filter-counters='status' =item B<--unknown-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{status}, %{name} =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{status}, %{name} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} !~ /running/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} !~ /running/i'). You can use the following variables: %{status}, %{name} =item B<--warning-*> B<--critical-*> diff --git a/src/apps/oracle/ovm/api/mode/servers.pm b/src/apps/oracle/ovm/api/mode/servers.pm index 2444ac2ff..ee6219637 100644 --- a/src/apps/oracle/ovm/api/mode/servers.pm +++ b/src/apps/oracle/ovm/api/mode/servers.pm @@ -205,17 +205,17 @@ Filter servers by name (can be a regexp). =item B<--unknown-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{running_status}, %{is_maintenance}, %{up2date}, %{name} =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{running_status}, %{is_maintenance}, %{up2date}, %{name} =item B<--critical-status> -Set critical threshold for status. +Define the conditions to match for the status to be CRITICAL. You can use the following variables: %{running_status}, %{is_maintenance}, %{up2date}, %{name} =item B<--warning-*> B<--critical-*> diff --git a/src/apps/oracle/ovm/api/mode/vm.pm b/src/apps/oracle/ovm/api/mode/vm.pm index 53d113c44..4441215bb 100644 --- a/src/apps/oracle/ovm/api/mode/vm.pm +++ b/src/apps/oracle/ovm/api/mode/vm.pm @@ -154,17 +154,17 @@ Filter virtual machines by name (can be a regexp). =item B<--unknown-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{running_status}, %{name} =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{running_status}, %{name} =item B<--critical-status> -Set critical threshold for status. +Define the conditions to match for the status to be CRITICAL. You can use the following variables: %{running_status}, %{name} =item B<--warning-*> B<--critical-*> diff --git a/src/apps/pacemaker/local/mode/clustat.pm b/src/apps/pacemaker/local/mode/clustat.pm index ad9af9918..b5820c9cc 100644 --- a/src/apps/pacemaker/local/mode/clustat.pm +++ b/src/apps/pacemaker/local/mode/clustat.pm @@ -149,12 +149,12 @@ Command used: /usr/sbin/clustat -x 2>&1 =item B<--warning-*> Can be ('group','node') -Warning threshold for status. +Define the conditions to match for the status to be WARNING. =item B<--critical-*> Can be ('group','node') -Critical threshold for status. (Default: --critical-node '%{state} !~ /up|clean/' --critical-group '%{state} !~ /started|starting/') +Define the conditions to match for the status to be CRITICAL. (Default: --critical-node '%{state} !~ /up|clean/' --critical-group '%{state} !~ /started|starting/') =back diff --git a/src/apps/pacemaker/local/mode/crm.pm b/src/apps/pacemaker/local/mode/crm.pm index d322d9f95..47a0bc44e 100644 --- a/src/apps/pacemaker/local/mode/crm.pm +++ b/src/apps/pacemaker/local/mode/crm.pm @@ -469,42 +469,42 @@ Filter resource (also clone resource) by name (can be a regexp). =item B<--warning-connection-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{connection_status}, %{connection_error} =item B<--critical-connection-status> -Set critical threshold for status (Default: '%{connection_status} =~ /failed/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{connection_status} =~ /failed/i'). You can use the following variables: %{connection_status}, %{connection_error} =item B<--warning-quorum-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{quorum_status} =item B<--critical-quorum-status> -Set critical threshold for status (Default: '%{quorum_status} =~ /noQuorum/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{quorum_status} =~ /noQuorum/i'). You can use the following variables: %{quorum_status} =item B<--warning-resource-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{name}, %{status}, %{node}, %{is_unmanaged} =item B<--critical-resource-status> -Set critical threshold for status (Default: '%{status} =~ /stopped|failed/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} =~ /stopped|failed/i'). You can use the following variables: %{name}, %{status}, %{node}, %{is_unmanaged} =item B<--warning-clone-resource-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{name}, %{status}, %{masters_nodes_name}, %{slaves_nodes_name}, %{is_unmanaged} =item B<--critical-clone-resource-status> -Set critical threshold for status (Default: '%{status} =~ /failed/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} =~ /failed/i'). You can use the following variables: %{name}, %{status}, %{masters_nodes_name}, %{slaves_nodes_name}, %{is_unmanaged} =item B<--ignore-failed-actions> diff --git a/src/apps/pfsense/fauxapi/mode/gateways.pm b/src/apps/pfsense/fauxapi/mode/gateways.pm index e2fa8bffd..786b3036a 100644 --- a/src/apps/pfsense/fauxapi/mode/gateways.pm +++ b/src/apps/pfsense/fauxapi/mode/gateways.pm @@ -146,17 +146,17 @@ Filter gateway name (can be a regexp). =item B<--unknown-status> -Set unknon threshold for status (Default: ''). +Define the conditions to match for the status to be UNKNOWN (Default: ''). You can use the following variables: %{status}, %{display} =item B<--warning-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{status}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} !~ /none/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} !~ /none/i'). You can use the following variables: %{status}, %{display} =item B<--warning-*> B<--critical-*> diff --git a/src/apps/pfsense/snmp/mode/packetstats.pm b/src/apps/pfsense/snmp/mode/packetstats.pm index dca9bc165..a697f9c00 100644 --- a/src/apps/pfsense/snmp/mode/packetstats.pm +++ b/src/apps/pfsense/snmp/mode/packetstats.pm @@ -138,13 +138,13 @@ Example: --filter-counters='^match$' =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'match', 'badoffset', 'fragment', 'short', 'normalize', 'memdrop'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'match', 'badoffset', 'fragment', 'short', 'normalize', 'memdrop'. diff --git a/src/apps/pfsense/snmp/mode/pfinterfaces.pm b/src/apps/pfsense/snmp/mode/pfinterfaces.pm index d301c9ea7..dcd932486 100644 --- a/src/apps/pfsense/snmp/mode/pfinterfaces.pm +++ b/src/apps/pfsense/snmp/mode/pfinterfaces.pm @@ -167,12 +167,12 @@ Check pfInterfaces. =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'traffic-in-pass', 'traffic-out-pass', 'traffic-in-block', 'traffic-out-block'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'traffic-in-pass', 'traffic-out-pass', 'traffic-in-block', 'traffic-out-block'. =item B<--filter-name> diff --git a/src/apps/pfsense/snmp/mode/runtime.pm b/src/apps/pfsense/snmp/mode/runtime.pm index 8075b9244..fdf287e97 100644 --- a/src/apps/pfsense/snmp/mode/runtime.pm +++ b/src/apps/pfsense/snmp/mode/runtime.pm @@ -114,11 +114,11 @@ Check pfSense runtime. =item B<--warning> -Threshold warning in seconds. +Warning threshold in seconds. =item B<--critical> -Threshold critical in seconds. +Critical threshold in seconds. =back diff --git a/src/apps/php/apc/web/mode/filecache.pm b/src/apps/php/apc/web/mode/filecache.pm index 3920674bc..a1b9d481b 100644 --- a/src/apps/php/apc/web/mode/filecache.pm +++ b/src/apps/php/apc/web/mode/filecache.pm @@ -292,7 +292,7 @@ Threshold for HTTP timeout (Default: 30) =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'request-rate', 'request-rate-now', 'hit-rate', 'hit-rate-now', 'miss-rate', 'miss-rate-now', 'hit-percent', 'hit-percent-now'. @@ -300,7 +300,7 @@ Can be: 'request-rate', 'request-rate-now', =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'request-rate', 'request-rate-now', 'hit-rate', 'hit-rate-now', 'miss-rate', 'miss-rate-now', 'hit-percent', 'hit-percent-now'. diff --git a/src/apps/php/apc/web/mode/memory.pm b/src/apps/php/apc/web/mode/memory.pm index 6ce343a75..56604e539 100644 --- a/src/apps/php/apc/web/mode/memory.pm +++ b/src/apps/php/apc/web/mode/memory.pm @@ -191,12 +191,12 @@ Threshold for HTTP timeout (Default: 30) =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'used' (in percent), 'fragmentation' (in percent). =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'used' (in percent), 'fragmentation' (in percent). =back diff --git a/src/apps/pineapp/securemail/snmp/mode/system.pm b/src/apps/pineapp/securemail/snmp/mode/system.pm index 53ddd7001..aaf6774f4 100644 --- a/src/apps/pineapp/securemail/snmp/mode/system.pm +++ b/src/apps/pineapp/securemail/snmp/mode/system.pm @@ -233,32 +233,32 @@ Check system usage. =item B<--unknown-service-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{status}, %{display} =item B<--warning-service-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{status}, %{display} =item B<--critical-service-status> -Set critical threshold for status (Default: '%{status} !~ /running/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} !~ /running/i'). You can use the following variables: %{status}, %{display} =item B<--unknown-storage-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{status} =item B<--warning-storage-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{status} =item B<--critical-storage-status> -Set critical threshold for status (Default: '%{status} !~ /ok/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} !~ /ok/i'). You can use the following variables: %{status} =item B<--warning-*> B<--critical-*> diff --git a/src/apps/protocols/cifs/mode/connection.pm b/src/apps/protocols/cifs/mode/connection.pm index 07eb70022..360744b94 100644 --- a/src/apps/protocols/cifs/mode/connection.pm +++ b/src/apps/protocols/cifs/mode/connection.pm @@ -108,21 +108,21 @@ Set the share directory. =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{status}, %{message} =item B<--critical-status> -Set critical threshold for status (Default: '%{message} !~ /authentication succeeded/i' +Define the conditions to match for the status to be CRITICAL (Default: '%{message} !~ /authentication succeeded/i' You can use the following variables: %{status}, %{message} =item B<--warning-time> -Threshold warning in seconds. +Warning threshold in seconds. =item B<--critical-time> -Threshold critical in seconds. +Critical threshold in seconds. =back diff --git a/src/apps/protocols/cifs/mode/scenario.pm b/src/apps/protocols/cifs/mode/scenario.pm index 95aa74224..80242e06f 100644 --- a/src/apps/protocols/cifs/mode/scenario.pm +++ b/src/apps/protocols/cifs/mode/scenario.pm @@ -302,22 +302,22 @@ Can be a file or json content. =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{status} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} ne "success"') +Define the conditions to match for the status to be CRITICAL (Default: '%{status} ne "success"') You can use the following variables: %{status} =item B<--warning-step-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{status}, %{message} =item B<--critical-step-status> -Set critical threshold for status. +Define the conditions to match for the status to be CRITICAL. You can use the following variables: %{status}, %{message} =item B<--warning-*> B<--critical-*> diff --git a/src/apps/protocols/dns/mode/request.pm b/src/apps/protocols/dns/mode/request.pm index 858f31061..a0552ae1f 100644 --- a/src/apps/protocols/dns/mode/request.pm +++ b/src/apps/protocols/dns/mode/request.pm @@ -200,11 +200,11 @@ Critical threshold if the answer changed between two checks. =item B<--warning> -Threshold warning in seconds. +Warning threshold in seconds. =item B<--critical> -Threshold critical in seconds. +Critical threshold in seconds. =back diff --git a/src/apps/protocols/ftp/mode/commands.pm b/src/apps/protocols/ftp/mode/commands.pm index a0556ba6a..5e213c788 100644 --- a/src/apps/protocols/ftp/mode/commands.pm +++ b/src/apps/protocols/ftp/mode/commands.pm @@ -172,11 +172,11 @@ Connection timeout in seconds (Default: 30) =item B<--warning> -Threshold warning in seconds +Warning threshold in seconds =item B<--critical> -Threshold critical in seconds +Critical threshold in seconds =item B<--ftp-command> diff --git a/src/apps/protocols/ftp/mode/date.pm b/src/apps/protocols/ftp/mode/date.pm index 5de100da2..137b67e48 100644 --- a/src/apps/protocols/ftp/mode/date.pm +++ b/src/apps/protocols/ftp/mode/date.pm @@ -202,11 +202,11 @@ Connection timeout in seconds (Default: 30) =item B<--warning> -Threshold warning in seconds for each files (diff time) +Warning threshold in seconds for each files (diff time) =item B<--critical> -Threshold critical in seconds for each files (diff time) +Critical threshold in seconds for each files (diff time) =item B<--directory> diff --git a/src/apps/protocols/ftp/mode/filescount.pm b/src/apps/protocols/ftp/mode/filescount.pm index 4db98280e..63b3b5a59 100644 --- a/src/apps/protocols/ftp/mode/filescount.pm +++ b/src/apps/protocols/ftp/mode/filescount.pm @@ -198,11 +198,11 @@ Connection timeout in seconds (Default: 30) =item B<--warning> -Threshold warning (number of files) +Warning threshold (number of files) =item B<--critical> -Threshold critical (number of files) +Critical threshold (number of files) =item B<--directory> diff --git a/src/apps/protocols/ftp/mode/login.pm b/src/apps/protocols/ftp/mode/login.pm index 2c498c31f..0c8d4e8ab 100644 --- a/src/apps/protocols/ftp/mode/login.pm +++ b/src/apps/protocols/ftp/mode/login.pm @@ -131,11 +131,11 @@ Connection timeout in seconds (Default: 30) =item B<--warning> -Threshold warning in seconds +Warning threshold in seconds =item B<--critical> -Threshold critical in seconds +Critical threshold in seconds =back diff --git a/src/apps/protocols/http/mode/expectedcontent.pm b/src/apps/protocols/http/mode/expectedcontent.pm index 6601f6e0b..e5ad830b3 100644 --- a/src/apps/protocols/http/mode/expectedcontent.pm +++ b/src/apps/protocols/http/mode/expectedcontent.pm @@ -320,39 +320,39 @@ Recommend to use directly --critical-content. =item B<--unknown-status> -Threshold warning for http response code (Default: '%{http_code} < 200 or %{http_code} >= 300') +Warning threshold for http response code (Default: '%{http_code} < 200 or %{http_code} >= 300') =item B<--warning-status> -Threshold warning for http response code +Warning threshold for http response code =item B<--critical-status> -Threshold critical for http response code +Critical threshold for http response code =item B<--warning-time> -Threshold warning in seconds (Webpage response time) +Warning threshold in seconds (Webpage response time) =item B<--critical-time> -Threshold critical in seconds (Webpage response time) +Critical threshold in seconds (Webpage response time) =item B<--warning-size> -Threshold warning for content size +Warning threshold for content size =item B<--critical-size> -Threshold critical for content size +Critical threshold for content size =item B<--warning-extracted> -Threshold warning for extracted value +Warning threshold for extracted value =item B<--critical-extracted> -Threshold critical for extracted value +Critical threshold for extracted value =item B<--unknown-content> @@ -361,7 +361,7 @@ You can use the following variables: %{content}, %{header}, %{first_header}, %{c =item B<--warning-content> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{content}, %{header}, %{first_header}, %{code} =item B<--critical-content> diff --git a/src/apps/protocols/http/mode/jsoncontent.pm b/src/apps/protocols/http/mode/jsoncontent.pm index 5c9c82032..aa09287b6 100644 --- a/src/apps/protocols/http/mode/jsoncontent.pm +++ b/src/apps/protocols/http/mode/jsoncontent.pm @@ -448,11 +448,11 @@ THRESHOLD OPTIONS: =item B<--warning-numeric> -Threshold warning (Default: on total matching elements) +Warning threshold (Default: on total matching elements) =item B<--critical-numeric> -Threshold critical (Default: on total matching elements) +Critical threshold (Default: on total matching elements) =item B<--threshold-value> @@ -461,11 +461,11 @@ Can be: 'values' (only check numeric values) =item B<--warning-string> -Threshold warning if the string match +Warning threshold if the string match =item B<--critical-string> -Threshold critical if the string match +Critical threshold if the string match =item B<--unknown-string> @@ -473,11 +473,11 @@ Threshold unknown if the string match =item B<--warning-time> -Threshold warning in seconds of webservice response time +Warning threshold in seconds of webservice response time =item B<--critical-time> -Threshold critical in seconds of webservice response time +Critical threshold in seconds of webservice response time =back @@ -559,15 +559,15 @@ Set HTTP headers (Multiple option. Example: --header='Content-Type: xxxxx') =item B<--unknown-status> -Threshold warning for http response code (Default: '%{http_code} < 200 or %{http_code} >= 300') +Warning threshold for http response code (Default: '%{http_code} < 200 or %{http_code} >= 300') =item B<--warning-status> -Threshold warning for http response code +Warning threshold for http response code =item B<--critical-status> -Threshold critical for http response code +Critical threshold for http response code =back diff --git a/src/apps/protocols/http/mode/response.pm b/src/apps/protocols/http/mode/response.pm index 1120b2653..aeee15b23 100644 --- a/src/apps/protocols/http/mode/response.pm +++ b/src/apps/protocols/http/mode/response.pm @@ -292,15 +292,15 @@ Save cookies in a file (Example: '/tmp/lwp_cookies.dat') =item B<--unknown-status> -Threshold warning for http response code +Warning threshold for http response code =item B<--warning-status> -Threshold warning for http response code +Warning threshold for http response code =item B<--critical-status> -Threshold critical for http response code (Default: '%{http_code} < 200 or %{http_code} >= 300') +Critical threshold for http response code (Default: '%{http_code} < 200 or %{http_code} >= 300') =item B<--extra-stats> diff --git a/src/apps/protocols/http/mode/soapcontent.pm b/src/apps/protocols/http/mode/soapcontent.pm index 334fed7da..3b2f2b86a 100644 --- a/src/apps/protocols/http/mode/soapcontent.pm +++ b/src/apps/protocols/http/mode/soapcontent.pm @@ -375,11 +375,11 @@ THRESHOLD OPTIONS: =item B<--warning-numeric> -Threshold warning (Default: on total matching elements) +Warning threshold (Default: on total matching elements) =item B<--critical-numeric> -Threshold critical (Default: on total matching elements) +Critical threshold (Default: on total matching elements) =item B<--threshold-value> @@ -388,19 +388,19 @@ Can be: 'values' (only check numeric values) =item B<--warning-string> -Threshold warning if the string match +Warning threshold if the string match =item B<--critical-string> -Threshold critical if the string match +Critical threshold if the string match =item B<--warning-time> -Threshold warning in seconds of webservice response time +Warning threshold in seconds of webservice response time =item B<--critical-time> -Threshold critical in seconds of webservice response time +Critical threshold in seconds of webservice response time =back @@ -482,11 +482,11 @@ Threshold unknown for http response code (Default: '%{http_code} < 200 or %{http =item B<--warning-status> -Threshold warning for http response code +Warning threshold for http response code =item B<--critical-status> -Threshold critical for http response code +Critical threshold for http response code =back diff --git a/src/apps/protocols/imap/mode/login.pm b/src/apps/protocols/imap/mode/login.pm index 032a4fbd6..56e5fb971 100644 --- a/src/apps/protocols/imap/mode/login.pm +++ b/src/apps/protocols/imap/mode/login.pm @@ -93,11 +93,11 @@ Check connection (also login) to an IMAP Server. =item B<--warning> -Threshold warning in seconds +Warning threshold in seconds =item B<--critical> -Threshold critical in seconds +Critical threshold in seconds =back diff --git a/src/apps/protocols/imap/mode/searchmessage.pm b/src/apps/protocols/imap/mode/searchmessage.pm index 734efd148..823d548ac 100644 --- a/src/apps/protocols/imap/mode/searchmessage.pm +++ b/src/apps/protocols/imap/mode/searchmessage.pm @@ -115,11 +115,11 @@ Set IMAP folder (Default: 'INBOX') =item B<--warning> -Threshold warning of number messages found +Warning threshold of number messages found =item B<--critical> -Threshold critical of number message found +Critical threshold of number message found =back diff --git a/src/apps/protocols/jmx/mode/numericvalue.pm b/src/apps/protocols/jmx/mode/numericvalue.pm index de7a2a221..c7ece8387 100644 --- a/src/apps/protocols/jmx/mode/numericvalue.pm +++ b/src/apps/protocols/jmx/mode/numericvalue.pm @@ -267,11 +267,11 @@ See: http://goessner.net/articles/JsonPath/ =item B<--warning> -Threshold warning. +Warning threshold. =item B<--critical> -Threshold critical. +Critical threshold. =item B<--type> diff --git a/src/apps/protocols/ldap/mode/login.pm b/src/apps/protocols/ldap/mode/login.pm index df99e22df..5da80f45e 100644 --- a/src/apps/protocols/ldap/mode/login.pm +++ b/src/apps/protocols/ldap/mode/login.pm @@ -172,11 +172,11 @@ Connection timeout in seconds (Default: 30) =item B<--warning> -Threshold warning in seconds +Warning threshold in seconds =item B<--critical> -Threshold critical in seconds +Critical threshold in seconds =back diff --git a/src/apps/protocols/ldap/mode/search.pm b/src/apps/protocols/ldap/mode/search.pm index ceb4fd393..06a0c7bcb 100644 --- a/src/apps/protocols/ldap/mode/search.pm +++ b/src/apps/protocols/ldap/mode/search.pm @@ -254,19 +254,19 @@ Connection timeout in seconds (Default: 30) =item B<--warning-time> -Threshold warning in seconds +Warning threshold in seconds =item B<--critical-time> -Threshold critical in seconds +Critical threshold in seconds =item B<--warning-entries> -Threshold warning (number of results) +Warning threshold (number of results) =item B<--critical-entries> -Threshold critical (number of results) +Critical threshold (number of results) =back diff --git a/src/apps/protocols/nrpe/custom/nsclient.pm b/src/apps/protocols/nrpe/custom/nsclient.pm index f901839e6..8b922a174 100644 --- a/src/apps/protocols/nrpe/custom/nsclient.pm +++ b/src/apps/protocols/nrpe/custom/nsclient.pm @@ -294,16 +294,16 @@ Set timeout in seconds (Default: 50). =item B<--unknown-status> -Threshold warning for http response code. +Warning threshold for http response code. (Default: '%{http_code} < 200 or %{http_code} >= 300') =item B<--warning-status> -Threshold warning for http response code. +Warning threshold for http response code. =item B<--critical-status> -Threshold critical for http response code. +Critical threshold for http response code. =back diff --git a/src/apps/protocols/ntp/mode/offset.pm b/src/apps/protocols/ntp/mode/offset.pm index 4086c84f8..0dc63222f 100644 --- a/src/apps/protocols/ntp/mode/offset.pm +++ b/src/apps/protocols/ntp/mode/offset.pm @@ -117,11 +117,11 @@ Threshold for NTP timeout =item B<--warning> -Threshold warning in seconds +Warning threshold in seconds =item B<--critical> -Threshold critical in seconds (e.g @10:10 means CRITICAL if offset is not between -10 and +10 seconds) +Critical threshold in seconds (e.g @10:10 means CRITICAL if offset is not between -10 and +10 seconds) =back diff --git a/src/apps/protocols/ntp/mode/responsetime.pm b/src/apps/protocols/ntp/mode/responsetime.pm index df9879869..5b95ffb19 100644 --- a/src/apps/protocols/ntp/mode/responsetime.pm +++ b/src/apps/protocols/ntp/mode/responsetime.pm @@ -117,11 +117,11 @@ Threshold for NTP timeout =item B<--warning> -Threshold warning in seconds +Warning threshold in seconds =item B<--critical> -Threshold critical in seconds +Critical threshold in seconds =back diff --git a/src/apps/protocols/ospf/snmp/mode/neighbor.pm b/src/apps/protocols/ospf/snmp/mode/neighbor.pm index 7d5cb9d45..e72dbf190 100644 --- a/src/apps/protocols/ospf/snmp/mode/neighbor.pm +++ b/src/apps/protocols/ospf/snmp/mode/neighbor.pm @@ -168,12 +168,12 @@ Example: --filter-counters='^status$' =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{NbrState}, %{NbrRtrId}, %{NbrIpAddr} =item B<--critical-status> -Set critical threshold for status (Default: '%{NbrState} =~ /down/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{NbrState} =~ /down/i'). You can use the following variables: %{NbrState}, %{NbrRtrId}, %{NbrIpAddr} =item B<--warning-total-change> @@ -188,12 +188,12 @@ Example: %{TotalLast} != %{Total} =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'total'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'total'. =back diff --git a/src/apps/protocols/radius/mode/login.pm b/src/apps/protocols/radius/mode/login.pm index 99eb24d75..7fa74f020 100644 --- a/src/apps/protocols/radius/mode/login.pm +++ b/src/apps/protocols/radius/mode/login.pm @@ -267,21 +267,21 @@ Set radius-dictionary file (mandatory with --radius-attribute) (multiple option) =item B<--warning-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{status}, %{error_msg}, %{attributes}. =item B<--critical-status> -Set critical threshold for status (Default: '%{status} ne "accepted"'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} ne "accepted"'). You can use the following variables: %{status}, %{error_msg}, %{attributes}. =item B<--warning-time> -Threshold warning in seconds +Warning threshold in seconds =item B<--critical-time> -Threshold critical in seconds +Critical threshold in seconds =back diff --git a/src/apps/protocols/sftp/mode/connection.pm b/src/apps/protocols/sftp/mode/connection.pm index f17dde925..4dc17b502 100644 --- a/src/apps/protocols/sftp/mode/connection.pm +++ b/src/apps/protocols/sftp/mode/connection.pm @@ -98,21 +98,21 @@ Check sftp connection. =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{status}, %{message} =item B<--critical-status> -Set critical threshold for status (Default: '%{message} !~ /authentication succeeded/i' +Define the conditions to match for the status to be CRITICAL (Default: '%{message} !~ /authentication succeeded/i' You can use the following variables: %{status}, %{message} =item B<--warning-time> -Threshold warning in seconds. +Warning threshold in seconds. =item B<--critical-time> -Threshold critical in seconds. +Critical threshold in seconds. =back diff --git a/src/apps/protocols/sftp/mode/scenario.pm b/src/apps/protocols/sftp/mode/scenario.pm index 47edf2c3d..4671678d5 100644 --- a/src/apps/protocols/sftp/mode/scenario.pm +++ b/src/apps/protocols/sftp/mode/scenario.pm @@ -309,22 +309,22 @@ Can be a file or json content. =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{status} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} ne "success"') +Define the conditions to match for the status to be CRITICAL (Default: '%{status} ne "success"') You can use the following variables: %{status} =item B<--warning-step-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{status}, %{message} =item B<--critical-step-status> -Set critical threshold for status. +Define the conditions to match for the status to be CRITICAL. You can use the following variables: %{status}, %{message} =item B<--warning-*> B<--critical-*> diff --git a/src/apps/protocols/smtp/mode/login.pm b/src/apps/protocols/smtp/mode/login.pm index 0dae38569..0612cccc9 100644 --- a/src/apps/protocols/smtp/mode/login.pm +++ b/src/apps/protocols/smtp/mode/login.pm @@ -125,11 +125,11 @@ Connection timeout in seconds (Default: 30) =item B<--warning> -Threshold warning in seconds +Warning threshold in seconds =item B<--critical> -Threshold critical in seconds +Critical threshold in seconds =back diff --git a/src/apps/protocols/smtp/mode/message.pm b/src/apps/protocols/smtp/mode/message.pm index 26321bbe6..ec167019f 100644 --- a/src/apps/protocols/smtp/mode/message.pm +++ b/src/apps/protocols/smtp/mode/message.pm @@ -150,11 +150,11 @@ Connection timeout in seconds (Default: 30) =item B<--warning> -Threshold warning in seconds +Warning threshold in seconds =item B<--critical> -Threshold critical in seconds +Critical threshold in seconds =back diff --git a/src/apps/protocols/ssh/mode/login.pm b/src/apps/protocols/ssh/mode/login.pm index e6fc1a9d8..827181d8a 100644 --- a/src/apps/protocols/ssh/mode/login.pm +++ b/src/apps/protocols/ssh/mode/login.pm @@ -94,21 +94,21 @@ Check SSH connection. =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{status}, %{message} =item B<--critical-status> -Set critical threshold for status (Default: '%{message} !~ /authentication succeeded/i' +Define the conditions to match for the status to be CRITICAL (Default: '%{message} !~ /authentication succeeded/i' You can use the following variables: %{status}, %{message} =item B<--warning-time> -Threshold warning in seconds. +Warning threshold in seconds. =item B<--critical-time> -Threshold critical in seconds. +Critical threshold in seconds. =back diff --git a/src/apps/protocols/tcp/mode/connectionstatus.pm b/src/apps/protocols/tcp/mode/connectionstatus.pm index 3e72de159..2b9efa1d3 100644 --- a/src/apps/protocols/tcp/mode/connectionstatus.pm +++ b/src/apps/protocols/tcp/mode/connectionstatus.pm @@ -181,26 +181,26 @@ Connection timeout in seconds (Default: 3) =item B<--unknown-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{status}, %{port}, %{error_message} =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{status}, %{port}, %{error_message} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} eq "failed"'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} eq "failed"'). You can use the following variables: %{status}, %{port}, %{error_message} =item B<--warning-time> -Threshold warning in seconds +Warning threshold in seconds =item B<--critical-time> -Threshold critical in seconds +Critical threshold in seconds =back diff --git a/src/apps/protocols/telnet/mode/scenario.pm b/src/apps/protocols/telnet/mode/scenario.pm index ac2ddb37f..083b69da7 100644 --- a/src/apps/protocols/telnet/mode/scenario.pm +++ b/src/apps/protocols/telnet/mode/scenario.pm @@ -193,11 +193,11 @@ Could be used if you want to use the same scenario for X hosts. =item B<--warning> -Threshold warning in seconds (Scenario execution time) +Warning threshold in seconds (Scenario execution time) =item B<--critical> -Threshold critical in seconds (Scenario execution time) +Critical threshold in seconds (Scenario execution time) =back diff --git a/src/apps/protocols/tftp/mode/commands.pm b/src/apps/protocols/tftp/mode/commands.pm index 0d2c412c7..9d1f26169 100644 --- a/src/apps/protocols/tftp/mode/commands.pm +++ b/src/apps/protocols/tftp/mode/commands.pm @@ -235,21 +235,21 @@ Example: --filter-counters='^status$' =item B<--warning-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{status}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} ne "ok"'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} ne "ok"'). You can use the following variables: %{status}, %{display} =item B<--warning-time> -Threshold warning. +Warning threshold. =item B<--critical-time> -Threshold critical. +Critical threshold. =item B<--command> diff --git a/src/apps/protocols/whois/mode/domain.pm b/src/apps/protocols/whois/mode/domain.pm index 81f9b0e06..1efff7673 100644 --- a/src/apps/protocols/whois/mode/domain.pm +++ b/src/apps/protocols/whois/mode/domain.pm @@ -429,17 +429,17 @@ Set your domain expiration date timezone (default: 'UTC'). =item B<--unknown-status> -Set critical threshold for status (Default: '%{status} =~ /checkError/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} =~ /checkError/i'). You can use the following variables: %{status}, %{domain} =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{status}, %{domain} =item B<--critical-status> -Set critical threshold for status. +Define the conditions to match for the status to be CRITICAL. You can use the following variables: %{status}, %{domain} =item B<--unit> diff --git a/src/apps/protocols/x509/mode/certificate.pm b/src/apps/protocols/x509/mode/certificate.pm index 2070ced3c..a21700998 100644 --- a/src/apps/protocols/x509/mode/certificate.pm +++ b/src/apps/protocols/x509/mode/certificate.pm @@ -126,12 +126,12 @@ Check X509's certificate validity (for SMTPS, POPS, IMAPS, HTTPS) =item B<--warning-status> -Set warning threshold for status. (Default: '%{expiration} < 60'). +Define the conditions to match for the status to be WARNING. (Default: '%{expiration} < 60'). Can use special variables like: %{expiration}, %{subject}, %{issuer}, %{alt_subjects}. =item B<--critical-status> -Set critical threshold for status. (Default: '%{expiration} < 30'). +Define the conditions to match for the status to be CRITICAL. (Default: '%{expiration} < 30'). Can use special variables like: %{expiration}, %{subject}, %{issuer}, %{alt_subjects}. Examples : diff --git a/src/apps/proxmox/ve/restapi/mode/nodeusage.pm b/src/apps/proxmox/ve/restapi/mode/nodeusage.pm index aa402c88a..562db3ed6 100644 --- a/src/apps/proxmox/ve/restapi/mode/nodeusage.pm +++ b/src/apps/proxmox/ve/restapi/mode/nodeusage.pm @@ -368,12 +368,12 @@ Can be: 'cpu' (%), 'memory' (%), 'swap' (%), 'fs' (%). =item B<--warning-node-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{name}, %{state}. =item B<--critical-node-status> -Set critical threshold for status. +Define the conditions to match for the status to be CRITICAL. You can use the following variables: %{name}, %{state}. =back diff --git a/src/apps/proxmox/ve/restapi/mode/storageusage.pm b/src/apps/proxmox/ve/restapi/mode/storageusage.pm index f7dfccfad..7ec8219e4 100644 --- a/src/apps/proxmox/ve/restapi/mode/storageusage.pm +++ b/src/apps/proxmox/ve/restapi/mode/storageusage.pm @@ -236,12 +236,12 @@ Exact node name. =item B<--warning-storage-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{name}, %{state}. =item B<--critical-storage-status> -Set critical threshold for status. +Define the conditions to match for the status to be CRITICAL. You can use the following variables: %{name}, %{state}. =item B<--warning-*> B<--critical-*> diff --git a/src/apps/proxmox/ve/restapi/mode/vmusage.pm b/src/apps/proxmox/ve/restapi/mode/vmusage.pm index 29f134231..5f65427af 100644 --- a/src/apps/proxmox/ve/restapi/mode/vmusage.pm +++ b/src/apps/proxmox/ve/restapi/mode/vmusage.pm @@ -337,24 +337,24 @@ Example: --filter-counters='^vm-status$' =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'read-iops', 'write-iops', 'traffic-in', 'traffic-out', 'cpu' (%), 'memory' (%), 'swap' (%). =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'read-iops', 'write-iops', 'traffic-in', 'traffic-out', 'cpu' (%), 'memory' (%), 'swap' (%). =item B<--warning-vm-status> -Set warning threshold for status (Default: -) +Define the conditions to match for the status to be WARNING (Default: -) You can use the following variables: %{name}, %{state}. =item B<--critical-vm-status> -Set critical threshold for status (Default: -). +Define the conditions to match for the status to be CRITICAL (Default: -). You can use the following variables: %{name}, %{state}. =back diff --git a/src/apps/pvx/restapi/mode/httphits.pm b/src/apps/pvx/restapi/mode/httphits.pm index 899390104..49820d178 100644 --- a/src/apps/pvx/restapi/mode/httphits.pm +++ b/src/apps/pvx/restapi/mode/httphits.pm @@ -174,12 +174,12 @@ Only search for the top X results (top is made on 'hits_error'). =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'ratio', 'hits-error' (hits/s), 'hits' (hits/s). =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'ratio', 'hits-error' (hits/s), 'hits' (hits/s). =item B<--filter-counters> diff --git a/src/apps/pvx/restapi/mode/networkconnection.pm b/src/apps/pvx/restapi/mode/networkconnection.pm index 9a15d2173..e3cf305b3 100644 --- a/src/apps/pvx/restapi/mode/networkconnection.pm +++ b/src/apps/pvx/restapi/mode/networkconnection.pm @@ -184,12 +184,12 @@ Only search for the top X results (top is made on 'ratio'). =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'ratio', 'attempt' (conn/s), 'successful' (conn/s), 'connection-time' (ms). =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'ratio', 'attempt' (conn/s), 'successful' (conn/s), 'connection-time' (ms). =item B<--filter-counters> diff --git a/src/apps/pvx/restapi/mode/networktraffic.pm b/src/apps/pvx/restapi/mode/networktraffic.pm index e84d24444..2d4d410f4 100644 --- a/src/apps/pvx/restapi/mode/networktraffic.pm +++ b/src/apps/pvx/restapi/mode/networktraffic.pm @@ -215,13 +215,13 @@ Only search for the top X results (top is made on 'traffic'). =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'total-traffic', 'total-client-traffic', 'total-server-traffic', 'traffic', 'client-traffic', 'server-traffic'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'total-traffic', 'total-client-traffic', 'total-server-traffic', 'traffic', 'client-traffic', 'server-traffic'. diff --git a/src/apps/pvx/restapi/mode/networkuserexperience.pm b/src/apps/pvx/restapi/mode/networkuserexperience.pm index ac3f54252..0062c98e9 100644 --- a/src/apps/pvx/restapi/mode/networkuserexperience.pm +++ b/src/apps/pvx/restapi/mode/networkuserexperience.pm @@ -153,11 +153,11 @@ Only search for the top X results. =item B<--warning-time> -Threshold warning (s). +Warning threshold (s). =item B<--critical-time> -Threshold critical (s). +Critical threshold (s). =back diff --git a/src/apps/redis/rlec/restapi/mode/clusterstats.pm b/src/apps/redis/rlec/restapi/mode/clusterstats.pm index adbd54256..5bab03675 100644 --- a/src/apps/redis/rlec/restapi/mode/clusterstats.pm +++ b/src/apps/redis/rlec/restapi/mode/clusterstats.pm @@ -306,7 +306,7 @@ Thresholds are on free space left. =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'cpu-system', 'cpu-user', 'requests', 'memory', 'flash-storage', 'persistent-storage', 'ephemeral-storage', @@ -315,7 +315,7 @@ Can be: 'cpu-system', 'cpu-user', =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'cpu-system', 'cpu-user', 'requests', 'memory', 'flash-storage', 'persistent-storage', 'ephemeral-storage', diff --git a/src/apps/redis/rlec/restapi/mode/databasesstats.pm b/src/apps/redis/rlec/restapi/mode/databasesstats.pm index 437ce0ef8..f98fb019a 100644 --- a/src/apps/redis/rlec/restapi/mode/databasesstats.pm +++ b/src/apps/redis/rlec/restapi/mode/databasesstats.pm @@ -528,7 +528,7 @@ Example: --filter-counters='rate|latency' =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{status}, %{type}, %{backup_status}, %{export_status}, %{shard_list}. 'status' can be: 'pending', 'active', 'active-change-pending', @@ -541,7 +541,7 @@ You can use the following variables: %{status}, %{type}, =item B<--critical-status> -Set critical threshold for status (Default: '%{status} =~ /creation-failed/i | +Define the conditions to match for the status to be CRITICAL (Default: '%{status} =~ /creation-failed/i | %{backup_status} =~ /failed/i | %{export_status} =~ /failed/i | %{import_status} =~ /failed/i'). You can use the following variables: %{status}, %{type}, @@ -556,7 +556,7 @@ You can use the following variables: %{status}, %{type}, =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'total-cpu', 'fork-cpu', 'main-thread-cpu', 'memory', 'mem-frag-ratio', 'connections', 'total-rates', 'latency', 'other-rates', 'other-latency', @@ -567,7 +567,7 @@ Can be: 'total-cpu', 'fork-cpu', 'main-thread-cpu', =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'total-cpu', 'fork-cpu', 'main-thread-cpu', 'memory', 'mem-frag-ratio', 'connections', 'total-rates', 'latency', 'other-rates', 'other-latency', diff --git a/src/apps/redis/rlec/restapi/mode/nodesstats.pm b/src/apps/redis/rlec/restapi/mode/nodesstats.pm index 26d602395..df3e11fb9 100644 --- a/src/apps/redis/rlec/restapi/mode/nodesstats.pm +++ b/src/apps/redis/rlec/restapi/mode/nodesstats.pm @@ -360,7 +360,7 @@ Thresholds are on free space left. =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{status}, %{shard_list}, %{int_addr}, %{ext_addr}. 'status' can be: 'active', 'going_offline', 'offline', @@ -368,7 +368,7 @@ You can use the following variables: %{status}, %{shard_list}, =item B<--critical-status> -Set critical threshold for status (Default: '%{status} =~ /down/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} =~ /down/i'). You can use the following variables: %{status}, %{shard_list}, %{int_addr}, %{ext_addr}. 'status' can be: 'active', 'going_offline', 'offline', @@ -376,7 +376,7 @@ You can use the following variables: %{status}, %{shard_list}, =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'cpu-system', 'cpu-user', 'requests', 'memory', 'flash-storage', 'persistent-storage', 'ephemeral-storage', @@ -385,7 +385,7 @@ Can be: 'cpu-system', 'cpu-user', =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'cpu-system', 'cpu-user', 'requests', 'memory', 'flash-storage', 'persistent-storage', 'ephemeral-storage', diff --git a/src/apps/redis/rlec/restapi/mode/shardsstats.pm b/src/apps/redis/rlec/restapi/mode/shardsstats.pm index 2322cc6f4..b17b0f951 100644 --- a/src/apps/redis/rlec/restapi/mode/shardsstats.pm +++ b/src/apps/redis/rlec/restapi/mode/shardsstats.pm @@ -373,7 +373,7 @@ Example: --filter-counters='clients' =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{status}, %{detailed_status}, %{role}, %{loading}, %{sync}, %{backup}. 'status' can be: 'active', 'inactive', 'trimming'. @@ -386,7 +386,7 @@ You can use the following variables: %{status}, %{detailed_status}, =item B<--critical-status> -Set critical threshold for status (Default: '%{status} =~ /inactive/i || +Define the conditions to match for the status to be CRITICAL (Default: '%{status} =~ /inactive/i || %{backup} =~ /failed/i || %{sync} =~ /link_down/i'). You can use the following variables: %{status}, %{detailed_status}, %{role}, %{loading}, %{sync}, %{backup}. @@ -400,7 +400,7 @@ You can use the following variables: %{status}, %{detailed_status}, =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'total-cpu', 'fork-cpu', 'main-thread-cpu', 'memory', 'mem-frag-ratio', 'connected-clients', 'blocked-clients', @@ -411,7 +411,7 @@ Can be: 'total-cpu', 'fork-cpu', 'main-thread-cpu', =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'total-cpu', 'fork-cpu', 'main-thread-cpu', 'memory', 'mem-frag-ratio', 'connected-clients', 'blocked-clients', diff --git a/src/apps/redis/sentinel/mode/redisclusters.pm b/src/apps/redis/sentinel/mode/redisclusters.pm index 4fe01198b..2fc6ed332 100644 --- a/src/apps/redis/sentinel/mode/redisclusters.pm +++ b/src/apps/redis/sentinel/mode/redisclusters.pm @@ -239,17 +239,17 @@ Filter clusters by name (Can be a regexp). =item B<--unknown-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{status}, %{role}, %{address}, %{port}, %{cluster_name} =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{status}, %{role}, %{address}, %{port}, %{cluster_name} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} =~ /o_down|s_down|master_down|disconnected/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} =~ /o_down|s_down|master_down|disconnected/i'). You can use the following variables: %{status}, %{role}, %{address}, %{port}, %{cluster_name} =item B<--warning-*> B<--critical-*> diff --git a/src/apps/redis/sentinel/mode/sentinelclusters.pm b/src/apps/redis/sentinel/mode/sentinelclusters.pm index d00b47ad3..e3705047a 100644 --- a/src/apps/redis/sentinel/mode/sentinelclusters.pm +++ b/src/apps/redis/sentinel/mode/sentinelclusters.pm @@ -218,22 +218,22 @@ Filter clusters by name (Can be a regexp). =item B<--unknown-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{status}, %{address}, %{port}, %{cluster_name} =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{status}, %{address}, %{port}, %{cluster_name} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} =~ /o_down|s_down|master_down|disconnected/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} =~ /o_down|s_down|master_down|disconnected/i'). You can use the following variables: %{status}, %{address}, %{port}, %{cluster_name} =item B<--unknown-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{status}, %{address}, %{port}, %{cluster_name} =item B<--warning-quorum-status> diff --git a/src/apps/rudder/restapi/mode/globalcompliance.pm b/src/apps/rudder/restapi/mode/globalcompliance.pm index 769d30b50..233c5d077 100644 --- a/src/apps/rudder/restapi/mode/globalcompliance.pm +++ b/src/apps/rudder/restapi/mode/globalcompliance.pm @@ -147,12 +147,12 @@ Set critical threshold on global compliance. =item B<--warning-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{detail}, %{value} =item B<--critical-status> -Set critical threshold for status (Default: ''). +Define the conditions to match for the status to be CRITICAL (Default: ''). You can use the following variables: %{detail}, %{value} Example : diff --git a/src/apps/rudder/restapi/mode/nodecompliance.pm b/src/apps/rudder/restapi/mode/nodecompliance.pm index 8402c7965..afaf3f3bd 100644 --- a/src/apps/rudder/restapi/mode/nodecompliance.pm +++ b/src/apps/rudder/restapi/mode/nodecompliance.pm @@ -175,12 +175,12 @@ Set critical threshold on node compliance. =item B<--warning-status> -Set warning threshold for status of rule compliance (Default: ''). +Define the conditions to match for the status to be WARNING of rule compliance (Default: ''). You can use the following variables: %{rule}, %{compliance} =item B<--critical-status> -Set critical threshold for status of rule compliance (Default: ''). +Define the conditions to match for the status to be CRITICAL of rule compliance (Default: ''). You can use the following variables: %{rule}, %{compliance} Example : diff --git a/src/apps/rudder/restapi/mode/nodesoverallcompliance.pm b/src/apps/rudder/restapi/mode/nodesoverallcompliance.pm index 97f210f11..de427608b 100644 --- a/src/apps/rudder/restapi/mode/nodesoverallcompliance.pm +++ b/src/apps/rudder/restapi/mode/nodesoverallcompliance.pm @@ -171,12 +171,12 @@ Check nodes count by overall compliance. =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'perfect', 'good', 'average', 'poor'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'perfect', 'good', 'average', 'poor'. =item B<--units> diff --git a/src/apps/rudder/restapi/mode/rulecompliance.pm b/src/apps/rudder/restapi/mode/rulecompliance.pm index aee7dba4f..f2a569da2 100644 --- a/src/apps/rudder/restapi/mode/rulecompliance.pm +++ b/src/apps/rudder/restapi/mode/rulecompliance.pm @@ -181,12 +181,12 @@ Set critical threshold on rule compliance. =item B<--warning-status> -Set warning threshold for status of directive compliance (Default: ''). +Define the conditions to match for the status to be WARNING of directive compliance (Default: ''). You can use the following variables: %{directive}, %{compliance} =item B<--critical-status> -Set critical threshold for status of directive compliance (Default: ''). +Define the conditions to match for the status to be CRITICAL of directive compliance (Default: ''). You can use the following variables: %{directive}, %{compliance} Example : diff --git a/src/apps/rudder/restapi/mode/statistics.pm b/src/apps/rudder/restapi/mode/statistics.pm index b4dfed314..9c32178b5 100644 --- a/src/apps/rudder/restapi/mode/statistics.pm +++ b/src/apps/rudder/restapi/mode/statistics.pm @@ -137,13 +137,13 @@ Check statistics (objects count). =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'nodes', 'pending-nodes', 'rules', 'directives', 'groups', 'techniques'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'nodes', 'pending-nodes', 'rules', 'directives', 'groups', 'techniques'. diff --git a/src/apps/sahipro/restapi/mode/scenario.pm b/src/apps/sahipro/restapi/mode/scenario.pm index 238354f08..d164c1fdd 100644 --- a/src/apps/sahipro/restapi/mode/scenario.pm +++ b/src/apps/sahipro/restapi/mode/scenario.pm @@ -516,11 +516,11 @@ Threshold unknown for running scenario rest api response. =item B<--warning-run-status> -Threshold warning for running scenario rest api response. +Warning threshold for running scenario rest api response. =item B<--critical-run-status> -Threshold critical for running scenario rest api response. +Critical threshold for running scenario rest api response. =item B<--warning-status> diff --git a/src/apps/selenium/mode/scenario.pm b/src/apps/selenium/mode/scenario.pm index c17988724..d37e8dc30 100644 --- a/src/apps/selenium/mode/scenario.pm +++ b/src/apps/selenium/mode/scenario.pm @@ -244,11 +244,11 @@ Set global execution timeout (Default: 50) =item B<--warning> -Threshold warning in seconds (Scenario execution time) +Warning threshold in seconds (Scenario execution time) =item B<--critical> -Threshold critical in seconds (Scenario execution response time) +Critical threshold in seconds (Scenario execution response time) =back diff --git a/src/apps/selenium/mode/scenariokatalon.pm b/src/apps/selenium/mode/scenariokatalon.pm index 415ca709b..b1f325f5c 100644 --- a/src/apps/selenium/mode/scenariokatalon.pm +++ b/src/apps/selenium/mode/scenariokatalon.pm @@ -352,41 +352,41 @@ Set action execution timeout in second (Default: 10). =item B<--warning-*> -Threshold warning for steps state count +Warning threshold for steps state count (Can be: 'failed', 'successful'). =item B<--critical-*> -Threshold critical for steps state count +Critical threshold for steps state count (Can be: 'failed', 'successful'). =item B<--warning-time-scenario> -Threshold warning in milliseconds +Warning threshold in milliseconds for scenario execution time. =item B<--critical-time-scenario> -Threshold critical in milliseconds +Critical threshold in milliseconds for scenario execution time. =item B<--warning-time-step> -Threshold warning in milliseconds +Warning threshold in milliseconds for step execution time. =item B<--critical-time-step> -Threshold critical in milliseconds +Critical threshold in milliseconds for step execution time. =item B<--warning-state> -Threshold warning for step state. +Warning threshold for step state. =item B<--critical-state> -Threshold critical for step state +Critical threshold for step state (Default: '%{state} !~ /OK/i'). =back diff --git a/src/apps/slack/restapi/mode/countchannels.pm b/src/apps/slack/restapi/mode/countchannels.pm index fde590dfc..35df48aff 100644 --- a/src/apps/slack/restapi/mode/countchannels.pm +++ b/src/apps/slack/restapi/mode/countchannels.pm @@ -124,19 +124,19 @@ Filter channels by channel name (can be a regexp). =item B<--warning-count> -Threshold warning for channels count. +Warning threshold for channels count. =item B<--critical-count> -Threshold critical for channels count. +Critical threshold for channels count. =item B<--warning-members> -Threshold warning for members count per channel. +Warning threshold for members count per channel. =item B<--critical-members> -Threshold critical for members count per channel. +Critical threshold for members count per channel. =back diff --git a/src/apps/slack/restapi/mode/countmembers.pm b/src/apps/slack/restapi/mode/countmembers.pm index efc8ee10d..0b24fd595 100644 --- a/src/apps/slack/restapi/mode/countmembers.pm +++ b/src/apps/slack/restapi/mode/countmembers.pm @@ -113,11 +113,11 @@ Scope: 'users.read' =item B<--warning-count> -Threshold warning for members count. +Warning threshold for members count. =item B<--critical-count> -Threshold critical for members count. +Critical threshold for members count. =back diff --git a/src/apps/smartermail/restapi/mode/licenses.pm b/src/apps/smartermail/restapi/mode/licenses.pm index c113bc51a..ccc0efeaf 100644 --- a/src/apps/smartermail/restapi/mode/licenses.pm +++ b/src/apps/smartermail/restapi/mode/licenses.pm @@ -91,17 +91,17 @@ Check licenses. =item B<--unknown-upgrade-protection-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{upgrade_protection_status} =item B<--warning-upgrade-protection-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{upgrade_protection_status} =item B<--critical-upgrade-protection-status> -Set critical threshold for status (Default: '%{upgrade_protection_status} =~ /expired/'). +Define the conditions to match for the status to be CRITICAL (Default: '%{upgrade_protection_status} =~ /expired/'). You can use the following variables: %{upgrade_protection_status} =item B<--warning-*> B<--critical-*> diff --git a/src/apps/smartermail/restapi/mode/services.pm b/src/apps/smartermail/restapi/mode/services.pm index 82e836edd..07f5914aa 100644 --- a/src/apps/smartermail/restapi/mode/services.pm +++ b/src/apps/smartermail/restapi/mode/services.pm @@ -107,17 +107,17 @@ Only display some counters (regexp can be used). =item B<--unknown-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{state}, %{display} =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{state}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: '%{state} !~ /running/'). +Define the conditions to match for the status to be CRITICAL (Default: '%{state} !~ /running/'). You can use the following variables: %{state}, %{display} =back diff --git a/src/apps/squid/snmp/mode/cacheusage.pm b/src/apps/squid/snmp/mode/cacheusage.pm index 40dc26f28..ba3db7424 100644 --- a/src/apps/squid/snmp/mode/cacheusage.pm +++ b/src/apps/squid/snmp/mode/cacheusage.pm @@ -117,12 +117,12 @@ Example: --filter-counters='^(cpu)$' =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'cpu', 'memory', 'fd', 'object'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'cpu', 'memory', 'fd', 'object'. =back diff --git a/src/apps/squid/snmp/mode/protocolstats.pm b/src/apps/squid/snmp/mode/protocolstats.pm index 60817b757..f0987466a 100644 --- a/src/apps/squid/snmp/mode/protocolstats.pm +++ b/src/apps/squid/snmp/mode/protocolstats.pm @@ -223,14 +223,14 @@ Example: --filter-counters='http' =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'http-hits-rate', 'http-errors', 'http-traffic-in', 'http-traffic-out', 'icp-traffic-in', 'icp-traffic-out', 'server-traffic-in', 'server-traffic-out', 'clients'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'http-hits-rate', 'http-errors', 'http-traffic-in', 'http-traffic-out', 'icp-traffic-in', 'icp-traffic-out', 'server-traffic-in', 'server-traffic-out', 'clients'. diff --git a/src/apps/thales/mistral/vs9/restapi/mode/clusters.pm b/src/apps/thales/mistral/vs9/restapi/mode/clusters.pm index 5d63ea28f..1a3eedb9c 100644 --- a/src/apps/thales/mistral/vs9/restapi/mode/clusters.pm +++ b/src/apps/thales/mistral/vs9/restapi/mode/clusters.pm @@ -290,32 +290,32 @@ Filter clusters by name. =item B<--unknown-cluster-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{gatewaysClusterStatus}, %{availableForSwitching}, %{clusterName} =item B<--warning-cluster-status> -Set warning threshold for status (Default: '%{gatewaysClusterStatus} =~ /HAC_FAILOVER/i'). +Define the conditions to match for the status to be WARNING (Default: '%{gatewaysClusterStatus} =~ /HAC_FAILOVER/i'). You can use the following variables: %{gatewaysClusterStatus}, %{availableForSwitching}, %{clusterName} =item B<--critical-cluster-status> -Set critical threshold for status (Default: '%{gatewaysClusterStatus} =~ /HAC_FAILURE|HAC_DOWN|HAC_BACKUP_FAILURE/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{gatewaysClusterStatus} =~ /HAC_FAILURE|HAC_DOWN|HAC_BACKUP_FAILURE/i'). You can use the following variables: %{gatewaysClusterStatus}, %{availableForSwitching}, %{clusterName} =item B<--unknown-member-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{connectedStatus}, %{role}, %{memberName} =item B<--warning-member-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{connectedStatus}, %{role}, %{memberName} =item B<--critical-member-status> -Set critical threshold for status. +Define the conditions to match for the status to be CRITICAL. You can use the following variables: %{connectedStatus}, %{role}, %{memberName} =item B<--time-contact-unit> diff --git a/src/apps/thales/mistral/vs9/restapi/mode/devices.pm b/src/apps/thales/mistral/vs9/restapi/mode/devices.pm index ac69c7712..3c9eb6a2d 100644 --- a/src/apps/thales/mistral/vs9/restapi/mode/devices.pm +++ b/src/apps/thales/mistral/vs9/restapi/mode/devices.pm @@ -956,122 +956,122 @@ Check tunnels. =item B<--unknown-certificate-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{revoked}, %{sn}, %{certSn}, %{subjectCommonName}, %{issuerCommonName} =item B<--warning-certificate-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{revoked}, %{sn}, %{certSn}, %{subjectCommonName}, %{issuerCommonName} =item B<--critical-certificate-status> -Set critical threshold for status. +Define the conditions to match for the status to be CRITICAL. You can use the following variables: %{revoked}, %{sn}, %{certSn}, %{subjectCommonName}, %{issuerCommonName} =item B<--unknown-connection-status> -Set unknown threshold for status (Default: '%{connectionStatus} =~ /unknown/i'). +Define the conditions to match for the status to be UNKNOWN (Default: '%{connectionStatus} =~ /unknown/i'). You can use the following variables: %{sn}, %{connectionStatus} =item B<--warning-connection-status> -Set warning threshold for status (Default: '%{connectionStatus} =~ /disconnected|unpaired/i'). +Define the conditions to match for the status to be WARNING (Default: '%{connectionStatus} =~ /disconnected|unpaired/i'). You can use the following variables: %{sn}, %{connectionStatus} =item B<--critical-connection-status> -Set critical threshold for status. +Define the conditions to match for the status to be CRITICAL. You can use the following variables: %{sn}, %{connectionStatus} =item B<--unknown-operating-state> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{sn}, %{operatingState} =item B<--warning-operating-state> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{sn}, %{operatingState} =item B<--critical-operating-state> -Set critical threshold for status (Default: '%{operatingState} !~ /operating/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{operatingState} !~ /operating/i'). You can use the following variables: %{sn}, %{operatingState} =item B<--unknown-autotest-state> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{sn}, %{name}, %{state} =item B<--warning-autotest-state> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{sn}, %{name}, %{state} =item B<--critical-autotest-state> -Set critical threshold for status (Default: '%{state} !~ /success/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{state} !~ /success/i'). You can use the following variables: %{sn}, %{name}, %{state} =item B<--unknown-interface-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{sn}, %{name}, %{operatingStatus} =item B<--warning-interface-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{sn}, %{name}, %{operatingStatus} =item B<--critical-interface-status> -Set critical threshold for status (Default: '%{operatingStatus} !~ /up/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{operatingStatus} !~ /up/i'). You can use the following variables: %{sn}, %{name}, %{operatingStatus} =item B<--unknown-vpn-ike-service-state> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{sn}, %{state} =item B<--warning-vpn-ike-service-state> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{sn}, %{state} =item B<--critical-vpn-ike-service-state> -Set critical threshold for status (Default: '%{state} =~ /stopped/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{state} =~ /stopped/i'). You can use the following variables: %{sn}, %{state} =item B<--unknown-vpn-ike-sa-state> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{sn}, %{name}, %{state} =item B<--warning-vpn-ike-sa-state> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{sn}, %{name}, %{state} =item B<--critical-vpn-ike-sa-state> -Set critical threshold for status (Default: '%{state} =~ /down/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{state} =~ /down/i'). You can use the following variables: %{sn}, %{name}, %{state} =item B<--unknown-vpn-sa-state> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{sn}, %{name}, %{state} =item B<--warning-vpn-sa-state> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{sn}, %{name}, %{state} =item B<--critical-vpn-sa-state> -Set critical threshold for status (Default: '%{state} =~ /down/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{state} =~ /down/i'). You can use the following variables: %{sn}, %{name}, %{state} =item B<--ntp-hostname> diff --git a/src/apps/thales/mistral/vs9/restapi/mode/mmccertificates.pm b/src/apps/thales/mistral/vs9/restapi/mode/mmccertificates.pm index ae1b25a58..d45bef329 100644 --- a/src/apps/thales/mistral/vs9/restapi/mode/mmccertificates.pm +++ b/src/apps/thales/mistral/vs9/restapi/mode/mmccertificates.pm @@ -228,17 +228,17 @@ Skip revoked certificates. =item B<--unknown-certificate-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{active}, %{revoked}, %{sn}, %{subjectCommonName}, %{issuerCommonName} =item B<--warning-certificate-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{active}, %{revoked}, %{sn}, %{subjectCommonName}, %{issuerCommonName} =item B<--critical-certificate-status> -Set critical threshold for status. +Define the conditions to match for the status to be CRITICAL. You can use the following variables: %{active}, %{revoked}, %{sn}, %{subjectCommonName}, %{issuerCommonName} =item B<--warning-*> B<--critical-*> diff --git a/src/apps/thales/mistral/vs9/restapi/mode/mmccluster.pm b/src/apps/thales/mistral/vs9/restapi/mode/mmccluster.pm index ba58e35db..a2dc8b9b1 100644 --- a/src/apps/thales/mistral/vs9/restapi/mode/mmccluster.pm +++ b/src/apps/thales/mistral/vs9/restapi/mode/mmccluster.pm @@ -140,32 +140,32 @@ Check MMC cluster status. =item B<--unknown-cluster-status> -Set unknown threshold for status (Default: '%{replicationStatus} =~ /unknown/i'). +Define the conditions to match for the status to be UNKNOWN (Default: '%{replicationStatus} =~ /unknown/i'). You can use the following variables: %{enabled}, %{replicationStatus} =item B<--warning-cluster-status> -Set warning threshold for status (Default: '%{replicationStatus} =~ /not_synchronized/i'). +Define the conditions to match for the status to be WARNING (Default: '%{replicationStatus} =~ /not_synchronized/i'). You can use the following variables: %{enabled}, %{replicationStatus} =item B<--critical-cluster-status> -Set critical threshold for status. +Define the conditions to match for the status to be CRITICAL. You can use the following variables: %{status}, %{name} =item B<--unknown-node-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{status}, %{name} =item B<--warning-node-status> -Set warning threshold for status (Default: '%{status} =~ /disconnected/i'). +Define the conditions to match for the status to be WARNING (Default: '%{status} =~ /disconnected/i'). You can use the following variables: %{status}, %{name} =item B<--critical-node-status> -Set critical threshold for status. +Define the conditions to match for the status to be CRITICAL. You can use the following variables: %{status}, %{name} =item B<--warning-*> B<--critical-*> diff --git a/src/apps/tomcat/jmx/mode/connectorusage.pm b/src/apps/tomcat/jmx/mode/connectorusage.pm index bbb0aa4be..ae86233ce 100644 --- a/src/apps/tomcat/jmx/mode/connectorusage.pm +++ b/src/apps/tomcat/jmx/mode/connectorusage.pm @@ -228,12 +228,12 @@ Filter connector name (can be a regexp). =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'threads-count', 'threads-busy', 'request-count', 'traffic-in', 'traffic-out'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'threads-count', 'threads-busy', 'request-count', 'traffic-in', 'traffic-out'. =item B<--units> diff --git a/src/apps/tomcat/jmx/mode/datasourceusage.pm b/src/apps/tomcat/jmx/mode/datasourceusage.pm index 6ad80d10f..729d975f8 100644 --- a/src/apps/tomcat/jmx/mode/datasourceusage.pm +++ b/src/apps/tomcat/jmx/mode/datasourceusage.pm @@ -215,12 +215,12 @@ Filter datasource name (can be a regexp). =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'num-active', 'num-idle'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'num-active', 'num-idle'. =item B<--units> diff --git a/src/apps/tomcat/jmx/mode/webappssessions.pm b/src/apps/tomcat/jmx/mode/webappssessions.pm index 0d21bc597..222958896 100644 --- a/src/apps/tomcat/jmx/mode/webappssessions.pm +++ b/src/apps/tomcat/jmx/mode/webappssessions.pm @@ -200,12 +200,12 @@ Filter webapps name (can be a regexp). =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'sessions-count', 'sessions-active'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'sessions-count', 'sessions-active'. =item B<--units> diff --git a/src/apps/tomcat/web/mode/applications.pm b/src/apps/tomcat/web/mode/applications.pm index c73930244..7980a5c7d 100644 --- a/src/apps/tomcat/web/mode/applications.pm +++ b/src/apps/tomcat/web/mode/applications.pm @@ -197,25 +197,25 @@ Threshold unknown for http response code (Default: '%{http_code} < 200 or %{http =item B<--warning-http-status> -Threshold warning for http response code +Warning threshold for http response code =item B<--critical-http-status> -Threshold critical for http response code +Critical threshold for http response code =item B<--unknown-status> -Set unknown threshold for status (Default: '%{state} ne "running"'). +Define the conditions to match for the status to be UNKNOWN (Default: '%{state} ne "running"'). You can use the following variables: %{state}, %{display} =item B<--warning-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{state}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: '%{state} eq "stopped"'). +Define the conditions to match for the status to be CRITICAL (Default: '%{state} eq "stopped"'). You can use the following variables: %{state}, %{display} =item B<--warning-*> B<--critical-*> diff --git a/src/apps/toshiba/storemate/sql/mode/maintenanceplan.pm b/src/apps/toshiba/storemate/sql/mode/maintenanceplan.pm index 5d1d3dcd0..fcf36c6ea 100644 --- a/src/apps/toshiba/storemate/sql/mode/maintenanceplan.pm +++ b/src/apps/toshiba/storemate/sql/mode/maintenanceplan.pm @@ -157,12 +157,12 @@ Database name (default: 'Framework'). =item B<--warning-status> -Set warning threshold for status (Default: '') +Define the conditions to match for the status to be WARNING (Default: '') You can use the following variables: %{description}, %{workstation_id}, %{since} =item B<--critical-status> -Set critical threshold for status (Default: '1 == 1'. We match all errors). +Define the conditions to match for the status to be CRITICAL (Default: '1 == 1'. We match all errors). You can use the following variables: %{description}, %{workstation_id}, %{since} =item B<--timezone> diff --git a/src/apps/toshiba/storemate/sql/mode/posstatus.pm b/src/apps/toshiba/storemate/sql/mode/posstatus.pm index 7e0867d99..a38cb4496 100644 --- a/src/apps/toshiba/storemate/sql/mode/posstatus.pm +++ b/src/apps/toshiba/storemate/sql/mode/posstatus.pm @@ -276,14 +276,14 @@ Database name (default: 'Framework'). =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'online, offline, state-unknown, state-signoff, state-signon, state-closed, state-paused, merchandise-rep-unknown, merchandise-rep-ok, merchandise-rep-suspended, merchandise-rep-error, transaction-rep-unknown, transaction-rep-ok, transaction-rep-suspended, transaction-rep-error'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'online, offline, state-unknown, state-signoff, state-signon, state-closed, state-paused, merchandise-rep-unknown, merchandise-rep-ok, merchandise-rep-suspended, merchandise-rep-error, transaction-rep-unknown, transaction-rep-ok, transaction-rep-suspended, transaction-rep-error'. diff --git a/src/apps/video/openheadend/snmp/mode/nodeusage.pm b/src/apps/video/openheadend/snmp/mode/nodeusage.pm index 74396fad9..b1668b52d 100644 --- a/src/apps/video/openheadend/snmp/mode/nodeusage.pm +++ b/src/apps/video/openheadend/snmp/mode/nodeusage.pm @@ -168,22 +168,22 @@ Filter node name (can be a regexp). =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{dep_status}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: '%{dep_status} =~ /false/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{dep_status} =~ /false/i'). You can use the following variables: %{dep_status}, %{display} =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'bitrate'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'bitrate'. =back diff --git a/src/apps/video/openheadend/snmp/mode/operationstatus.pm b/src/apps/video/openheadend/snmp/mode/operationstatus.pm index 3b8490a86..19a6079ce 100644 --- a/src/apps/video/openheadend/snmp/mode/operationstatus.pm +++ b/src/apps/video/openheadend/snmp/mode/operationstatus.pm @@ -165,12 +165,12 @@ Filter by operation type (can be a regexp). =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{status}, %{dep_status}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: '%{dep_status} =~ /false/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{dep_status} =~ /false/i'). You can use the following variables: %{status}, %{dep_status}, %{display} =back diff --git a/src/apps/video/zixi/restapi/mode/broadcasterinputusage.pm b/src/apps/video/zixi/restapi/mode/broadcasterinputusage.pm index 74d2f75a2..79b16308a 100644 --- a/src/apps/video/zixi/restapi/mode/broadcasterinputusage.pm +++ b/src/apps/video/zixi/restapi/mode/broadcasterinputusage.pm @@ -180,22 +180,22 @@ Example: --filter-counters='^status$' =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'traffic-in', 'traffic-out'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'traffic-in', 'traffic-out'. =item B<--warning-status> -Set warning threshold for status (Default: -) +Define the conditions to match for the status to be WARNING (Default: -) You can use the following variables: %{source}, %{status}, %{error}. =item B<--critical-status> -Set critical threshold for status (Default: '%{status} !~ /Connecting|Connected/i || %{error} !~ /none/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} !~ /Connecting|Connected/i || %{error} !~ /none/i'). You can use the following variables: %{source}, %{status}, %{error}. =back diff --git a/src/apps/video/zixi/restapi/mode/broadcasterlicenseusage.pm b/src/apps/video/zixi/restapi/mode/broadcasterlicenseusage.pm index 7ff845ef0..54ab36801 100644 --- a/src/apps/video/zixi/restapi/mode/broadcasterlicenseusage.pm +++ b/src/apps/video/zixi/restapi/mode/broadcasterlicenseusage.pm @@ -237,12 +237,12 @@ Example: --filter-counters='^status$' =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'usage', 'days'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'usage', 'days'. =item B<--units> @@ -255,12 +255,12 @@ Thresholds are on free license left. =item B<--warning-status> -Set warning threshold for status (Default: -) +Define the conditions to match for the status to be WARNING (Default: -) You can use the following variables: %{name}, %{error}, %{info}. =item B<--critical-status> -Set critical threshold for status (Default: -). +Define the conditions to match for the status to be CRITICAL (Default: -). You can use the following variables: %{name}, %{error}, %{info}. =back diff --git a/src/apps/video/zixi/restapi/mode/broadcasteroutputusage.pm b/src/apps/video/zixi/restapi/mode/broadcasteroutputusage.pm index 420fae687..e1c57bf7e 100644 --- a/src/apps/video/zixi/restapi/mode/broadcasteroutputusage.pm +++ b/src/apps/video/zixi/restapi/mode/broadcasteroutputusage.pm @@ -191,22 +191,22 @@ Example: --filter-counters='^status$' =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'traffic-in', 'traffic-out', 'dropped-in'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'traffic-in', 'traffic-out', 'dropped-in'. =item B<--warning-status> -Set warning threshold for status (Default: -) +Define the conditions to match for the status to be WARNING (Default: -) You can use the following variables: %{name}, %{status}, %{error}. =item B<--critical-status> -Set critical threshold for status (Default: '%{status} !~ /Connecting|Connected/i || %{error} !~ /none/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} !~ /Connecting|Connected/i || %{error} !~ /none/i'). You can use the following variables: %{name}, %{status}, %{error}. =back diff --git a/src/apps/video/zixi/restapi/mode/broadcastersystemusage.pm b/src/apps/video/zixi/restapi/mode/broadcastersystemusage.pm index 5ff2fe0d3..dae842421 100644 --- a/src/apps/video/zixi/restapi/mode/broadcastersystemusage.pm +++ b/src/apps/video/zixi/restapi/mode/broadcastersystemusage.pm @@ -99,12 +99,12 @@ Example: --filter-counters='^disk-usage$' =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'disk-usage' (%), 'memory-usage' (%), 'cpu-load' (%). =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'disk-usage' (%), 'memory-usage' (%), 'cpu-load' (%). =back diff --git a/src/apps/video/zixi/restapi/mode/feederinputusage.pm b/src/apps/video/zixi/restapi/mode/feederinputusage.pm index 6142ee311..01d8a0021 100644 --- a/src/apps/video/zixi/restapi/mode/feederinputusage.pm +++ b/src/apps/video/zixi/restapi/mode/feederinputusage.pm @@ -151,22 +151,22 @@ Example: --filter-counters='^status$' =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'traffic-in'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'traffic-in'. =item B<--warning-status> -Set warning threshold for status (Default: -) +Define the conditions to match for the status to be WARNING (Default: -) You can use the following variables: %{name}, %{active}, %{error}. =item B<--critical-status> -Set critical threshold for status (Default: -). +Define the conditions to match for the status to be CRITICAL (Default: -). You can use the following variables: %{name}, %{active}, %{error}. =back diff --git a/src/apps/video/zixi/restapi/mode/feederoutputusage.pm b/src/apps/video/zixi/restapi/mode/feederoutputusage.pm index 11be3515a..75c85295c 100644 --- a/src/apps/video/zixi/restapi/mode/feederoutputusage.pm +++ b/src/apps/video/zixi/restapi/mode/feederoutputusage.pm @@ -151,22 +151,22 @@ Example: --filter-counters='^status$' =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'current-birate'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'current-birate'. =item B<--warning-status> -Set warning threshold for status (Default: -) +Define the conditions to match for the status to be WARNING (Default: -) You can use the following variables: %{name}, %{active}, %{error}, %{con_stat}. =item B<--critical-status> -Set critical threshold for status (Default: -). +Define the conditions to match for the status to be CRITICAL (Default: -). You can use the following variables: %{name}, %{active}, %{error}, %{con_stat}. =back diff --git a/src/apps/virtualization/hpe/simplivity/restapi/mode/hosts.pm b/src/apps/virtualization/hpe/simplivity/restapi/mode/hosts.pm index 68f9a94af..a8c8bb7d7 100644 --- a/src/apps/virtualization/hpe/simplivity/restapi/mode/hosts.pm +++ b/src/apps/virtualization/hpe/simplivity/restapi/mode/hosts.pm @@ -256,17 +256,17 @@ Filter hosts by name. =item B<--unknown-host-status> -Set unknown threshold for status (Default: '%{status} =~ /unknown/'). +Define the conditions to match for the status to be UNKNOWN (Default: '%{status} =~ /unknown/'). You can use the following variables: %{status}, %{name} =item B<--warning-host-status> -Set warning threshold for status (Default: '%{status} =~ /suspected/'). +Define the conditions to match for the status to be WARNING (Default: '%{status} =~ /suspected/'). You can use the following variables: %{status}, %{name} =item B<--critical-host-status> -Set critical threshold for status (Default: '%{status} =~ /faulty/'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} =~ /faulty/'). You can use the following variables: %{status}, %{name} =item B<--unknown-raid-status> diff --git a/src/apps/virtualization/hpe/simplivity/restapi/mode/virtualmachines.pm b/src/apps/virtualization/hpe/simplivity/restapi/mode/virtualmachines.pm index 82a2c7402..ab6f5af91 100644 --- a/src/apps/virtualization/hpe/simplivity/restapi/mode/virtualmachines.pm +++ b/src/apps/virtualization/hpe/simplivity/restapi/mode/virtualmachines.pm @@ -172,17 +172,17 @@ Filter virtual machines by virtual machine name. =item B<--unknown-ha-status> -Set unknown threshold for status (Default: '%{status} =~ /unknown/'). +Define the conditions to match for the status to be UNKNOWN (Default: '%{status} =~ /unknown/'). You can use the following variables: %{ha_status}, %{vm_name} =item B<--warning-ha-status> -Set warning threshold for status (Default: '%{status} =~ /degraded/'). +Define the conditions to match for the status to be WARNING (Default: '%{status} =~ /degraded/'). You can use the following variables: %{ha_status}, %{vm_name} =item B<--critical-ha-status> -Set critical threshold for status. +Define the conditions to match for the status to be CRITICAL. You can use the following variables: %{ha_status}, %{vm_name} =item B<--warning-*> B<--critical-*> diff --git a/src/apps/virtualization/ovirt/mode/cpuhost.pm b/src/apps/virtualization/ovirt/mode/cpuhost.pm index bff0de46c..0d1ac4b54 100644 --- a/src/apps/virtualization/ovirt/mode/cpuhost.pm +++ b/src/apps/virtualization/ovirt/mode/cpuhost.pm @@ -125,12 +125,12 @@ Filter host id (Can be a regexp). =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'host-cpu-user-utilization-percentage', 'host-cpu-system-utilization-percentage'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'host-cpu-user-utilization-percentage', 'host-cpu-system-utilization-percentage'. =back diff --git a/src/apps/vmware/connector/mode/alarmdatacenter.pm b/src/apps/vmware/connector/mode/alarmdatacenter.pm index ab677e6e3..d8f360a52 100644 --- a/src/apps/vmware/connector/mode/alarmdatacenter.pm +++ b/src/apps/vmware/connector/mode/alarmdatacenter.pm @@ -296,22 +296,22 @@ Check new alarms only. =item B<--warning-status> -Set warning threshold for status (Default: '%{status} =~ /yellow/i). +Define the conditions to match for the status to be WARNING (Default: '%{status} =~ /yellow/i). You can use the following variables: %{status}, %{name}, %{entity}, %{type}. =item B<--critical-status> -Set critical threshold for status (Default: '%{status} =~ /red/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} =~ /red/i'). You can use the following variables: %{status}, %{name}, %{entity}, %{type}. =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'total-alarm-warning', 'total-alarm-critical'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'total-alarm-warning', 'total-alarm-critical'. =back diff --git a/src/apps/vmware/connector/mode/alarmhost.pm b/src/apps/vmware/connector/mode/alarmhost.pm index e7fe5c547..c4879e3f5 100644 --- a/src/apps/vmware/connector/mode/alarmhost.pm +++ b/src/apps/vmware/connector/mode/alarmhost.pm @@ -287,22 +287,22 @@ Check new alarms only. =item B<--warning-status> -Set warning threshold for status (Default: '%{status} =~ /yellow/i). +Define the conditions to match for the status to be WARNING (Default: '%{status} =~ /yellow/i). You can use the following variables: %{status}, %{name}, %{entity}, %{type}. =item B<--critical-status> -Set critical threshold for status (Default: '%{status} =~ /red/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} =~ /red/i'). You can use the following variables: %{status}, %{name}, %{entity}, %{type}. =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'total-alarm-warning', 'total-alarm-critical'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'total-alarm-warning', 'total-alarm-critical'. =back diff --git a/src/apps/vmware/connector/mode/countvmhost.pm b/src/apps/vmware/connector/mode/countvmhost.pm index 4a9af9833..23684ea71 100644 --- a/src/apps/vmware/connector/mode/countvmhost.pm +++ b/src/apps/vmware/connector/mode/countvmhost.pm @@ -190,28 +190,28 @@ Search in following cluster(s) (can be a regexp). =item B<--unknown-status> -Set unknown threshold for status (Default: '%{status} !~ /^connected$/i'). +Define the conditions to match for the status to be UNKNOWN (Default: '%{status} !~ /^connected$/i'). You can use the following variables: %{status} =item B<--warning-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{status} =item B<--critical-status> -Set critical threshold for status (Default: ''). +Define the conditions to match for the status to be CRITICAL (Default: ''). You can use the following variables: %{status} =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'total-on', 'total-off', 'total-suspended', 'on', 'off', 'suspended'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'total-on', 'total-off', 'total-suspended', 'on', 'off', 'suspended'. diff --git a/src/apps/vmware/connector/mode/cpuhost.pm b/src/apps/vmware/connector/mode/cpuhost.pm index 337c11699..864f2e2d3 100644 --- a/src/apps/vmware/connector/mode/cpuhost.pm +++ b/src/apps/vmware/connector/mode/cpuhost.pm @@ -196,27 +196,27 @@ Search in following cluster(s) (can be a regexp). =item B<--unknown-status> -Set unknown threshold for status (Default: '%{status} !~ /^connected$/i'). +Define the conditions to match for the status to be UNKNOWN (Default: '%{status} !~ /^connected$/i'). You can use the following variables: %{status} =item B<--warning-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{status} =item B<--critical-status> -Set critical threshold for status (Default: ''). +Define the conditions to match for the status to be CRITICAL (Default: ''). You can use the following variables: %{status} =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'total-cpu', 'total-cpu-mhz', 'cpu'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'total-cpu', 'total-cpu-mhz', 'cpu'. =back diff --git a/src/apps/vmware/connector/mode/cpuvm.pm b/src/apps/vmware/connector/mode/cpuvm.pm index cc2009549..aabe71022 100644 --- a/src/apps/vmware/connector/mode/cpuvm.pm +++ b/src/apps/vmware/connector/mode/cpuvm.pm @@ -232,27 +232,27 @@ Search in following host(s) (can be a regexp). =item B<--unknown-status> -Set unknown threshold for status (Default: '%{connection_state} !~ /^connected$/i or %{power_state} !~ /^poweredOn$/i'). +Define the conditions to match for the status to be UNKNOWN (Default: '%{connection_state} !~ /^connected$/i or %{power_state} !~ /^poweredOn$/i'). You can use the following variables: %{connection_state}, %{power_state} =item B<--warning-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{connection_state}, %{power_state} =item B<--critical-status> -Set critical threshold for status (Default: ''). +Define the conditions to match for the status to be CRITICAL (Default: ''). You can use the following variables: %{connection_state}, %{power_state} =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'total-cpu', 'total-cpu-mhz', 'cpu-ready', 'cpu'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'total-cpu', 'total-cpu-mhz', 'cpu-ready', 'cpu'. =back diff --git a/src/apps/vmware/connector/mode/datastorecountvm.pm b/src/apps/vmware/connector/mode/datastorecountvm.pm index 89b81baf8..ff243088c 100644 --- a/src/apps/vmware/connector/mode/datastorecountvm.pm +++ b/src/apps/vmware/connector/mode/datastorecountvm.pm @@ -183,28 +183,28 @@ Search in following datacenter(s) (can be a regexp). =item B<--unknown-status> -Set unknown threshold for status (Default: '%{accessible} !~ /^true|1$/i'). +Define the conditions to match for the status to be UNKNOWN (Default: '%{accessible} !~ /^true|1$/i'). You can use the following variables: %{accessible} =item B<--warning-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{accessible} =item B<--critical-status> -Set critical threshold for status (Default: ''). +Define the conditions to match for the status to be CRITICAL (Default: ''). You can use the following variables: %{accessible} =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'total-on', 'total-off', 'total-suspended', 'on', 'off', 'suspended'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'total-on', 'total-off', 'total-suspended', 'on', 'off', 'suspended'. diff --git a/src/apps/vmware/connector/mode/datastorehost.pm b/src/apps/vmware/connector/mode/datastorehost.pm index 7da8da310..f3ed330d5 100644 --- a/src/apps/vmware/connector/mode/datastorehost.pm +++ b/src/apps/vmware/connector/mode/datastorehost.pm @@ -188,27 +188,27 @@ Datastore name is a regexp. =item B<--unknown-status> -Set unknown threshold for status (Default: '%{status} !~ /^connected$/i'). +Define the conditions to match for the status to be UNKNOWN (Default: '%{status} !~ /^connected$/i'). You can use the following variables: %{status} =item B<--warning-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{status} =item B<--critical-status> -Set critical threshold for status (Default: ''). +Define the conditions to match for the status to be CRITICAL (Default: ''). You can use the following variables: %{status} =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'read-latency', 'write-latency'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'read-latency', 'write-latency'. =back diff --git a/src/apps/vmware/connector/mode/datastoreio.pm b/src/apps/vmware/connector/mode/datastoreio.pm index 47ec07e1b..0aab8f515 100644 --- a/src/apps/vmware/connector/mode/datastoreio.pm +++ b/src/apps/vmware/connector/mode/datastoreio.pm @@ -163,27 +163,27 @@ Search in following datacenter(s) (can be a regexp). =item B<--unknown-status> -Set unknown threshold for status (Default: '%{accessible} !~ /^true|1$/i'). +Define the conditions to match for the status to be UNKNOWN (Default: '%{accessible} !~ /^true|1$/i'). You can use the following variables: %{accessible} =item B<--warning-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{accessible} =item B<--critical-status> -Set critical threshold for status (Default: ''). +Define the conditions to match for the status to be CRITICAL (Default: ''). You can use the following variables: %{accessible} =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'total-read', 'total-write', 'read', 'write'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'total-read', 'total-write', 'read', 'write'. =back diff --git a/src/apps/vmware/connector/mode/datastoreiops.pm b/src/apps/vmware/connector/mode/datastoreiops.pm index 501e74bc9..9eafcda8f 100644 --- a/src/apps/vmware/connector/mode/datastoreiops.pm +++ b/src/apps/vmware/connector/mode/datastoreiops.pm @@ -241,17 +241,17 @@ Only display VMs with iops higher value (default: 50). =item B<--unknown-status> -Set unknown threshold for status (Default: '%{accessible} !~ /^true|1$/i'). +Define the conditions to match for the status to be UNKNOWN (Default: '%{accessible} !~ /^true|1$/i'). You can use the following variables: %{accessible} =item B<--warning-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{accessible} =item B<--critical-status> -Set critical threshold for status (Default: ''). +Define the conditions to match for the status to be CRITICAL (Default: ''). You can use the following variables: %{accessible} =item B<--warning-*> B<--critical-*> diff --git a/src/apps/vmware/connector/mode/datastoresnapshot.pm b/src/apps/vmware/connector/mode/datastoresnapshot.pm index 1e3d14e06..7a92c2c06 100644 --- a/src/apps/vmware/connector/mode/datastoresnapshot.pm +++ b/src/apps/vmware/connector/mode/datastoresnapshot.pm @@ -172,27 +172,27 @@ Search in following datacenter(s) (can be a regexp). =item B<--unknown-status> -Set unknown threshold for status (Default: '%{accessible} !~ /^true|1$/i'). +Define the conditions to match for the status to be UNKNOWN (Default: '%{accessible} !~ /^true|1$/i'). You can use the following variables: %{accessible} =item B<--warning-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{accessible} =item B<--critical-status> -Set critical threshold for status (Default: ''). +Define the conditions to match for the status to be CRITICAL (Default: ''). You can use the following variables: %{accessible} =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'total', 'snapshot'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'total', 'snapshot'. =back diff --git a/src/apps/vmware/connector/mode/datastoreusage.pm b/src/apps/vmware/connector/mode/datastoreusage.pm index 8bb9f857a..fe4e6214d 100644 --- a/src/apps/vmware/connector/mode/datastoreusage.pm +++ b/src/apps/vmware/connector/mode/datastoreusage.pm @@ -266,17 +266,17 @@ Explicitly ask vmware to refreshes free-space and capacity values (slower). =item B<--unknown-status> -Set unknown threshold for status (Default: '%{accessible} !~ /^true|1$/i'). +Define the conditions to match for the status to be UNKNOWN (Default: '%{accessible} !~ /^true|1$/i'). You can use the following variables: %{accessible} =item B<--warning-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{accessible} =item B<--critical-status> -Set critical threshold for status (Default: ''). +Define the conditions to match for the status to be CRITICAL (Default: ''). You can use the following variables: %{accessible} =item B<--warning-*> B<--critical-*> diff --git a/src/apps/vmware/connector/mode/datastorevm.pm b/src/apps/vmware/connector/mode/datastorevm.pm index 224584297..13e94c2a3 100644 --- a/src/apps/vmware/connector/mode/datastorevm.pm +++ b/src/apps/vmware/connector/mode/datastorevm.pm @@ -242,17 +242,17 @@ Display virtual machine description. =item B<--unknown-status> -Set unknown threshold for status (Default: '%{connection_state} !~ /^connected$/i or %{power_state} !~ /^poweredOn$/i'). +Define the conditions to match for the status to be UNKNOWN (Default: '%{connection_state} !~ /^connected$/i or %{power_state} !~ /^poweredOn$/i'). You can use the following variables: %{connection_state}, %{power_state} =item B<--warning-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{connection_state}, %{power_state} =item B<--critical-status> -Set critical threshold for status (Default: ''). +Define the conditions to match for the status to be CRITICAL (Default: ''). You can use the following variables: %{connection_state}, %{power_state} =item B<--warning-*> B<--critical-*> diff --git a/src/apps/vmware/connector/mode/devicevm.pm b/src/apps/vmware/connector/mode/devicevm.pm index 088c7816e..54f64a1f3 100644 --- a/src/apps/vmware/connector/mode/devicevm.pm +++ b/src/apps/vmware/connector/mode/devicevm.pm @@ -199,27 +199,27 @@ Device to check (Required) (Example: --device='VirtualCdrom'). =item B<--unknown-status> -Set unknown threshold for status (Default: '%{connection_state} !~ /^connected$/i'). +Define the conditions to match for the status to be UNKNOWN (Default: '%{connection_state} !~ /^connected$/i'). You can use the following variables: %{connection_state} =item B<--warning-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{connection_state} =item B<--critical-status> -Set critical threshold for status (Default: ''). +Define the conditions to match for the status to be CRITICAL (Default: ''). You can use the following variables: %{connection_state} =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'total-device-connected', 'device-connected'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'total-device-connected', 'device-connected'. =back diff --git a/src/apps/vmware/connector/mode/healthhost.pm b/src/apps/vmware/connector/mode/healthhost.pm index f0831bc58..33061cda3 100644 --- a/src/apps/vmware/connector/mode/healthhost.pm +++ b/src/apps/vmware/connector/mode/healthhost.pm @@ -328,17 +328,17 @@ Check storage(s) status. =item B<--unknown-status> -Set unknown threshold for status (Default: '%{status} !~ /^connected$/i'). +Define the conditions to match for the status to be UNKNOWN (Default: '%{status} !~ /^connected$/i'). You can use the following variables: %{status} =item B<--warning-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{status} =item B<--critical-status> -Set critical threshold for status (Default: ''). +Define the conditions to match for the status to be CRITICAL (Default: ''). You can use the following variables: %{status} =item B<--warning-*> B<--critical-*> diff --git a/src/apps/vmware/connector/mode/limitvm.pm b/src/apps/vmware/connector/mode/limitvm.pm index 48c49c335..94b569bf4 100644 --- a/src/apps/vmware/connector/mode/limitvm.pm +++ b/src/apps/vmware/connector/mode/limitvm.pm @@ -241,32 +241,32 @@ Check disk limits (since vsphere 5.0). =item B<--warning-disk-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{connection_state}, %{power_state}, %{limit} =item B<--critical-disk-status> -Set critical threshold for status (Default: '%{connection_state} !~ /^connected$/i || %{limit} != -1'). +Define the conditions to match for the status to be CRITICAL (Default: '%{connection_state} !~ /^connected$/i || %{limit} != -1'). You can use the following variables: %{connection_state}, %{power_state}, %{limit} =item B<--warning-cpu-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{connection_state}, %{power_state}, %{limit} =item B<--critical-cpu-status> -Set critical threshold for status (Default: '%{connection_state} !~ /^connected$/i || %{limit} != -1'). +Define the conditions to match for the status to be CRITICAL (Default: '%{connection_state} !~ /^connected$/i || %{limit} != -1'). You can use the following variables: %{connection_state}, %{power_state}, %{limit} =item B<--warning-memory-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{connection_state}, %{power_state}, %{limit} =item B<--critical-memory-status> -Set critical threshold for status (Default: '%{connection_state} !~ /^connected$/i || %{limit} != -1'). +Define the conditions to match for the status to be CRITICAL (Default: '%{connection_state} !~ /^connected$/i || %{limit} != -1'). You can use the following variables: %{connection_state}, %{power_state}, %{limit} =back diff --git a/src/apps/vmware/connector/mode/maintenancehost.pm b/src/apps/vmware/connector/mode/maintenancehost.pm index 4fd992339..3c28198f5 100644 --- a/src/apps/vmware/connector/mode/maintenancehost.pm +++ b/src/apps/vmware/connector/mode/maintenancehost.pm @@ -144,27 +144,27 @@ Search in following cluster(s) (can be a regexp). =item B<--unknown-status> -Set unknown threshold for status (Default: '%{status} !~ /^connected$/i'). +Define the conditions to match for the status to be UNKNOWN (Default: '%{status} !~ /^connected$/i'). You can use the following variables: %{status} =item B<--warning-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{status} =item B<--critical-status> -Set critical threshold for status (Default: ''). +Define the conditions to match for the status to be CRITICAL (Default: ''). You can use the following variables: %{status} =item B<--warning-maintenance-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{maintenance} =item B<--critical-maintenance-status> -Set critical threshold for status (Default: '%{maintenance} !~ /false/'). +Define the conditions to match for the status to be CRITICAL (Default: '%{maintenance} !~ /false/'). You can use the following variables: %{maintenance} diff --git a/src/apps/vmware/connector/mode/memoryhost.pm b/src/apps/vmware/connector/mode/memoryhost.pm index 58ed61bca..2f0ae30a8 100644 --- a/src/apps/vmware/connector/mode/memoryhost.pm +++ b/src/apps/vmware/connector/mode/memoryhost.pm @@ -261,26 +261,26 @@ Thresholds are on free space left. =item B<--unknown-status> -Set unknown threshold for status (Default: '%{status} !~ /^connected$/i'). +Define the conditions to match for the status to be UNKNOWN (Default: '%{status} !~ /^connected$/i'). You can use the following variables: %{status} =item B<--warning-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{status} =item B<--critical-status> -Set critical threshold for status (Default: ''). +Define the conditions to match for the status to be CRITICAL (Default: ''). You can use the following variables: %{status} =item B<--warning-consumed-memory> -Threshold warning (can use unit option). +Warning threshold (can use unit option). =item B<--critical-consumed-memory> -Threshold critical (can use unit option). +Critical threshold (can use unit option). =item B<--warning-overhead-memory> @@ -288,15 +288,15 @@ Threshold overhead. =item B<--critical-overhead-memory> -Threshold critical. +Critical threshold. =item B<--warning-state-memory> -Threshold warning. For state != 'high': --warning-state=0 +Warning threshold. For state != 'high': --warning-state=0 =item B<--critical-state-memory> -Threshold critical. For state != 'high': --warning-state=0 +Critical threshold. For state != 'high': --warning-state=0 =item B<--no-memory-state> diff --git a/src/apps/vmware/connector/mode/memoryvm.pm b/src/apps/vmware/connector/mode/memoryvm.pm index 8ebffb00c..dfacbeea7 100644 --- a/src/apps/vmware/connector/mode/memoryvm.pm +++ b/src/apps/vmware/connector/mode/memoryvm.pm @@ -339,17 +339,17 @@ Display virtual machine description. =item B<--unknown-status> -Set unknown threshold for status (Default: '%{connection_state} !~ /^connected$/i or %{power_state} !~ /^poweredOn$/i'). +Define the conditions to match for the status to be UNKNOWN (Default: '%{connection_state} !~ /^connected$/i or %{power_state} !~ /^poweredOn$/i'). You can use the following variables: %{connection_state}, %{power_state} =item B<--warning-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{connection_state}, %{power_state} =item B<--critical-status> -Set critical threshold for status (Default: ''). +Define the conditions to match for the status to be CRITICAL (Default: ''). You can use the following variables: %{connection_state}, %{power_state} =item B<--units> @@ -362,12 +362,12 @@ Thresholds are on free space left. =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'consumed', 'active', 'overhead', 'ballooning', 'shared'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'consumed', 'active', 'overhead', 'ballooning', 'shared'. =back diff --git a/src/apps/vmware/connector/mode/nethost.pm b/src/apps/vmware/connector/mode/nethost.pm index 09bb7a3dc..137e2f05c 100644 --- a/src/apps/vmware/connector/mode/nethost.pm +++ b/src/apps/vmware/connector/mode/nethost.pm @@ -390,32 +390,32 @@ It monitors only ESX nic that belongs to the filtered vswitches. =item B<--unknown-status> -Set unknown threshold for status (Default: '%{status} !~ /^connected$/i'). +Define the conditions to match for the status to be UNKNOWN (Default: '%{status} !~ /^connected$/i'). You can use the following variables: %{status} =item B<--warning-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{status} =item B<--critical-status> -Set critical threshold for status (Default: ''). +Define the conditions to match for the status to be CRITICAL (Default: ''). You can use the following variables: %{status} =item B<--unknown-link-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{link_status}, %{display} =item B<--warning-link-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{link_status}, %{display} =item B<--critical-link-status> -Set critical threshold for status (Default: '%{link_status} !~ /up/'). +Define the conditions to match for the status to be CRITICAL (Default: '%{link_status} !~ /up/'). You can use the following variables: %{link_status}, %{display} =item B<--warning-*> B<--critical-*> diff --git a/src/apps/vmware/connector/mode/netvm.pm b/src/apps/vmware/connector/mode/netvm.pm index e8e6b171b..ccc69b36f 100644 --- a/src/apps/vmware/connector/mode/netvm.pm +++ b/src/apps/vmware/connector/mode/netvm.pm @@ -322,17 +322,17 @@ Display virtual machine description. =item B<--unknown-status> -Set unknown threshold for status (Default: '%{connection_state} !~ /^connected$/i or %{power_state} !~ /^poweredOn$/i'). +Define the conditions to match for the status to be UNKNOWN (Default: '%{connection_state} !~ /^connected$/i or %{power_state} !~ /^poweredOn$/i'). You can use the following variables: %{connection_state}, %{power_state} =item B<--warning-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{connection_state}, %{power_state} =item B<--critical-status> -Set critical threshold for status (Default: ''). +Define the conditions to match for the status to be CRITICAL (Default: ''). You can use the following variables: %{connection_state}, %{power_state} =item B<--speed-in> @@ -349,12 +349,12 @@ Units of thresholds for the traffic (Default: '%') ('%', 'b/s'). =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'swap-in', 'swap-out'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'swap-in', 'swap-out'. =back diff --git a/src/apps/vmware/connector/mode/servicehost.pm b/src/apps/vmware/connector/mode/servicehost.pm index ed0c0db52..a4fa8e096 100644 --- a/src/apps/vmware/connector/mode/servicehost.pm +++ b/src/apps/vmware/connector/mode/servicehost.pm @@ -179,27 +179,27 @@ Filter services you want to check (can be a regexp). =item B<--unknown-status> -Set unknown threshold for status (Default: '%{status} !~ /^connected$/i && %{maintenance} =~ /false/i'). +Define the conditions to match for the status to be UNKNOWN (Default: '%{status} !~ /^connected$/i && %{maintenance} =~ /false/i'). You can use the following variables: %{status} =item B<--warning-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{status} =item B<--critical-status> -Set critical threshold for status (Default: ''). +Define the conditions to match for the status to be CRITICAL (Default: ''). You can use the following variables: %{status} =item B<--warning-service-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{running}, %{label}, %{policy} =item B<--critical-service-status> -Set critical threshold for status (Default: '%{policy} =~ /^on|automatic/i && !%{running}'). +Define the conditions to match for the status to be CRITICAL (Default: '%{policy} =~ /^on|automatic/i && !%{running}'). You can use the following variables: %{running}, %{label}, %{policy} =back diff --git a/src/apps/vmware/connector/mode/statconnectors.pm b/src/apps/vmware/connector/mode/statconnectors.pm index c6eaa747e..d61bc6f0e 100644 --- a/src/apps/vmware/connector/mode/statconnectors.pm +++ b/src/apps/vmware/connector/mode/statconnectors.pm @@ -108,12 +108,12 @@ Get number of requests for each connectors (information from daemon. Not VMWare) =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'total-requests', 'requests'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'total-requests', 'requests'. =back diff --git a/src/apps/vmware/connector/mode/statuscluster.pm b/src/apps/vmware/connector/mode/statuscluster.pm index c774f5ab3..41642bd40 100644 --- a/src/apps/vmware/connector/mode/statuscluster.pm +++ b/src/apps/vmware/connector/mode/statuscluster.pm @@ -131,17 +131,17 @@ Search in following datacenter(s) (can be a regexp). =item B<--unknown-status> -Set unknown threshold for status (Default: '%{overall_status} =~ /gray/i || %{vsan_status} =~ /gray/i'). +Define the conditions to match for the status to be UNKNOWN (Default: '%{overall_status} =~ /gray/i || %{vsan_status} =~ /gray/i'). You can use the following variables: %{overall_status}, %{vsan_status}, %{drs_enabled}, %{ha_enabled} =item B<--warning-status> -Set warning threshold for status (Default: '%{overall_status} =~ /yellow/i || %{vsan_status} =~ /yellow/i'). +Define the conditions to match for the status to be WARNING (Default: '%{overall_status} =~ /yellow/i || %{vsan_status} =~ /yellow/i'). You can use the following variables: %{overall_status}, %{vsan_status}, %{drs_enabled}, %{ha_enabled} =item B<--critical-status> -Set critical threshold for status (Default: '%{overall_status} =~ /red/i || %{vsan_status} =~ /red/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{overall_status} =~ /red/i || %{vsan_status} =~ /red/i'). You can use the following variables: %{overall_status}, %{vsan_status}, %{drs_enabled}, %{ha_enabled} =back diff --git a/src/apps/vmware/connector/mode/statushost.pm b/src/apps/vmware/connector/mode/statushost.pm index ecd7c09bc..3ec50fbf1 100644 --- a/src/apps/vmware/connector/mode/statushost.pm +++ b/src/apps/vmware/connector/mode/statushost.pm @@ -147,32 +147,32 @@ Search in following cluster(s) (can be a regexp). =item B<--unknown-status> -Set unknown threshold for status (Default: '%{status} !~ /^connected$/i'). +Define the conditions to match for the status to be UNKNOWN (Default: '%{status} !~ /^connected$/i'). You can use the following variables: %{status} =item B<--warning-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{status} =item B<--critical-status> -Set critical threshold for status (Default: ''). +Define the conditions to match for the status to be CRITICAL (Default: ''). You can use the following variables: %{status} =item B<--unknown-overall-status> -Set warning threshold for status (Default: '%{overall_status} =~ /gray/i'). +Define the conditions to match for the status to be WARNING (Default: '%{overall_status} =~ /gray/i'). You can use the following variables: %{overall_status} =item B<--warning-overall-status> -Set warning threshold for status (Default: '%{overall_status} =~ /yellow/i'). +Define the conditions to match for the status to be WARNING (Default: '%{overall_status} =~ /yellow/i'). You can use the following variables: %{overall_status} =item B<--critical-overall-status> -Set critical threshold for status (Default: '%{overall_status} =~ /red/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{overall_status} =~ /red/i'). You can use the following variables: %{overall_status} =back diff --git a/src/apps/vmware/connector/mode/statusvm.pm b/src/apps/vmware/connector/mode/statusvm.pm index 4a1bf2bee..195acf579 100644 --- a/src/apps/vmware/connector/mode/statusvm.pm +++ b/src/apps/vmware/connector/mode/statusvm.pm @@ -167,32 +167,32 @@ Search in following host(s) (can be a regexp). =item B<--unknown-status> -Set unknown threshold for status (Default: '%{connection_state} !~ /^connected$/i'). +Define the conditions to match for the status to be UNKNOWN (Default: '%{connection_state} !~ /^connected$/i'). You can use the following variables: %{connection_state}, %{power_state} =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{connection_state} =item B<--critical-status> -Set critical threshold for status. +Define the conditions to match for the status to be CRITICAL. You can use the following variables: %{connection_state}, %{power_state} =item B<--unknown-overall-status> -Set unknown threshold for status (Default: '%{overall_status} =~ /gray/i'). +Define the conditions to match for the status to be UNKNOWN (Default: '%{overall_status} =~ /gray/i'). You can use the following variables: %{overall_status} =item B<--warning-overall-status> -Set warning threshold for status (Default: '%{overall_status} =~ /yellow/i'). +Define the conditions to match for the status to be WARNING (Default: '%{overall_status} =~ /yellow/i'). You can use the following variables: %{overall_status} =item B<--critical-overall-status> -Set critical threshold for status (Default: '%{overall_status} =~ /red/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{overall_status} =~ /red/i'). You can use the following variables: %{overall_status} =back diff --git a/src/apps/vmware/connector/mode/storagehost.pm b/src/apps/vmware/connector/mode/storagehost.pm index dc7b5787b..788af975e 100644 --- a/src/apps/vmware/connector/mode/storagehost.pm +++ b/src/apps/vmware/connector/mode/storagehost.pm @@ -360,17 +360,17 @@ Filter paths by name (can be a regexp). =item B<--unknown-status> -Set unknown threshold for status (Default: '%{status} !~ /^connected$/i && %{maintenance} =~ /false/i'). +Define the conditions to match for the status to be UNKNOWN (Default: '%{status} !~ /^connected$/i && %{maintenance} =~ /false/i'). You can use the following variables: %{status}, %{maintenance} =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{status}, %{maintenance} =item B<--critical-status> -Set critical threshold for status. +Define the conditions to match for the status to be CRITICAL. You can use the following variables: %{status}, %{maintenance} =item B<--warning-adapter-status> diff --git a/src/apps/vmware/connector/mode/swaphost.pm b/src/apps/vmware/connector/mode/swaphost.pm index 8504c4415..553f024ec 100644 --- a/src/apps/vmware/connector/mode/swaphost.pm +++ b/src/apps/vmware/connector/mode/swaphost.pm @@ -150,27 +150,27 @@ Search in following cluster(s) (can be a regexp). =item B<--unknown-status> -Set unknown threshold for status (Default: '%{status} !~ /^connected$/i'). +Define the conditions to match for the status to be UNKNOWN (Default: '%{status} !~ /^connected$/i'). You can use the following variables: %{status} =item B<--warning-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{status} =item B<--critical-status> -Set critical threshold for status (Default: ''). +Define the conditions to match for the status to be CRITICAL (Default: ''). You can use the following variables: %{status} =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'swap-in', 'swap-out'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'swap-in', 'swap-out'. =back diff --git a/src/apps/vmware/connector/mode/swapvm.pm b/src/apps/vmware/connector/mode/swapvm.pm index bbc8968a5..28302ea2d 100644 --- a/src/apps/vmware/connector/mode/swapvm.pm +++ b/src/apps/vmware/connector/mode/swapvm.pm @@ -175,27 +175,27 @@ Display virtual machine description. =item B<--unknown-status> -Set unknown threshold for status (Default: '%{connection_state} !~ /^connected$/i or %{power_state} !~ /^poweredOn$/i'). +Define the conditions to match for the status to be UNKNOWN (Default: '%{connection_state} !~ /^connected$/i or %{power_state} !~ /^poweredOn$/i'). You can use the following variables: %{connection_state}, %{power_state} =item B<--warning-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{connection_state}, %{power_state} =item B<--critical-status> -Set critical threshold for status (Default: ''). +Define the conditions to match for the status to be CRITICAL (Default: ''). You can use the following variables: %{connection_state}, %{power_state} =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'swap-in', 'swap-out'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'swap-in', 'swap-out'. =back diff --git a/src/apps/vmware/connector/mode/timehost.pm b/src/apps/vmware/connector/mode/timehost.pm index 435ac8f37..5f1d0ce5b 100644 --- a/src/apps/vmware/connector/mode/timehost.pm +++ b/src/apps/vmware/connector/mode/timehost.pm @@ -156,26 +156,26 @@ Search in following cluster(s) (can be a regexp). =item B<--unknown-status> -Set unknown threshold for status (Default: '%{status} !~ /^connected$/i'). +Define the conditions to match for the status to be UNKNOWN (Default: '%{status} !~ /^connected$/i'). You can use the following variables: %{status} =item B<--warning-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{status} =item B<--critical-status> -Set critical threshold for status (Default: ''). +Define the conditions to match for the status to be CRITICAL (Default: ''). You can use the following variables: %{status} =item B<--warning-time> -Threshold warning in seconds. +Warning threshold in seconds. =item B<--critical-time> -Threshold critical in seconds. +Critical threshold in seconds. =back diff --git a/src/apps/vmware/connector/mode/uptimehost.pm b/src/apps/vmware/connector/mode/uptimehost.pm index e8e1f0c6f..dcac2675d 100644 --- a/src/apps/vmware/connector/mode/uptimehost.pm +++ b/src/apps/vmware/connector/mode/uptimehost.pm @@ -156,26 +156,26 @@ Search in following cluster(s) (can be a regexp). =item B<--unknown-status> -Set unknown threshold for status (Default: '%{status} !~ /^connected$/i'). +Define the conditions to match for the status to be UNKNOWN (Default: '%{status} !~ /^connected$/i'). You can use the following variables: %{status} =item B<--warning-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{status} =item B<--critical-status> -Set critical threshold for status (Default: ''). +Define the conditions to match for the status to be CRITICAL (Default: ''). You can use the following variables: %{status} =item B<--warning-time> -Threshold warning in seconds. +Warning threshold in seconds. =item B<--critical-time> -Threshold critical in seconds. +Critical threshold in seconds. =back diff --git a/src/apps/vmware/connector/mode/vmoperationcluster.pm b/src/apps/vmware/connector/mode/vmoperationcluster.pm index bfa3c3d38..c9a22df82 100644 --- a/src/apps/vmware/connector/mode/vmoperationcluster.pm +++ b/src/apps/vmware/connector/mode/vmoperationcluster.pm @@ -130,12 +130,12 @@ Search in following datacenter(s) (can be a regexp). =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: svmotion, vmotion, clone. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: svmotion, vmotion, clone. =back diff --git a/src/apps/vmware/vcsa/restapi/mode/health.pm b/src/apps/vmware/vcsa/restapi/mode/health.pm index bfa887a4e..fb38175e0 100644 --- a/src/apps/vmware/vcsa/restapi/mode/health.pm +++ b/src/apps/vmware/vcsa/restapi/mode/health.pm @@ -120,17 +120,17 @@ Filter service (can be a regexp). =item B<--unknown-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{health}, %{display} =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{health}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: '%{health} !~ /green/'). +Define the conditions to match for the status to be CRITICAL (Default: '%{health} !~ /green/'). You can use the following variables: %{health}, %{display} =back diff --git a/src/apps/vmware/vcsa/snmp/mode/interfaces.pm b/src/apps/vmware/vcsa/snmp/mode/interfaces.pm index 168a94c9d..f932cfd1b 100644 --- a/src/apps/vmware/vcsa/snmp/mode/interfaces.pm +++ b/src/apps/vmware/vcsa/snmp/mode/interfaces.pm @@ -93,12 +93,12 @@ If the expression is true, metrics are checked (Default: '%{opstatus} eq "up"'). =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{admstatus}, %{opstatus}, %{duplexstatus}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: '%{admstatus} eq "up" and %{opstatus} ne "up"'). +Define the conditions to match for the status to be CRITICAL (Default: '%{admstatus} eq "up" and %{opstatus} ne "up"'). You can use the following variables: %{admstatus}, %{opstatus}, %{duplexstatus}, %{display} =item B<--warning-*> B<--critical-*> @@ -127,7 +127,7 @@ Display traffic perfdata to be compatible with nagvis widget. =item B<--interface> -Set the interface (number expected) ex: 1,2,... (empty means 'check all interface'). +Set the interface (number expected) ex: 1,2,... (empty means 'check all interfaces'). =item B<--name> @@ -159,11 +159,11 @@ Time in minutes before reloading cache file (default: 180). =item B<--oid-filter> -Choose OID used to filter interface (default: ifDesc) (values: ifDesc, ifAlias, ifName, IpAddr). +Define the OID to be used to filter interfaces (default: ifDesc) (values: ifDesc, ifAlias, ifName, IpAddr). =item B<--oid-display> -Choose OID used to display interface (default: ifDesc) (values: ifDesc, ifAlias, ifName, IpAddr). +Define the OID that will be used to name the interfaces (default: ifDesc) (values: ifDesc, ifAlias, ifName, IpAddr). =item B<--oid-extra-display> diff --git a/src/apps/vmware/vcsa/snmp/mode/listinterfaces.pm b/src/apps/vmware/vcsa/snmp/mode/listinterfaces.pm index 1ba7dfbb9..ecc99bea1 100644 --- a/src/apps/vmware/vcsa/snmp/mode/listinterfaces.pm +++ b/src/apps/vmware/vcsa/snmp/mode/listinterfaces.pm @@ -55,7 +55,7 @@ __END__ =item B<--interface> -Set the interface (number expected) ex: 1,2,... (empty means 'check all interface'). +Set the interface (number expected) ex: 1,2,... (empty means 'check all interfaces'). =item B<--name> @@ -79,11 +79,11 @@ Display interfaces with AdminStatus 'up'. =item B<--oid-filter> -Choose OID used to filter interface (default: ifDesc) (values: ifDesc, ifAlias, ifName). +Define the OID to be used to filter interfaces (default: ifDesc) (values: ifDesc, ifAlias, ifName). =item B<--oid-display> -Choose OID used to display interface (default: ifDesc) (values: ifDesc, ifAlias, ifName). +Define the OID that will be used to name the interfaces (default: ifDesc) (values: ifDesc, ifAlias, ifName). =item B<--display-transform-src> diff --git a/src/apps/vmware/vcsa/snmp/mode/storage.pm b/src/apps/vmware/vcsa/snmp/mode/storage.pm index bbb13bd69..6ef2ccb3c 100644 --- a/src/apps/vmware/vcsa/snmp/mode/storage.pm +++ b/src/apps/vmware/vcsa/snmp/mode/storage.pm @@ -43,19 +43,19 @@ __END__ =item B<--warning-usage> -Threshold warning. +Warning threshold. =item B<--critical-usage> -Threshold critical. +Critical threshold. =item B<--warning-access> -Threshold warning. +Warning threshold. =item B<--critical-access> -Threshold critical. +Critical threshold. Check if storage is readOnly: --critical-access=readOnly =item B<--add-access> diff --git a/src/apps/vmware/vcsa/snmp/mode/uptime.pm b/src/apps/vmware/vcsa/snmp/mode/uptime.pm index 88e00fb21..50ba20d7b 100644 --- a/src/apps/vmware/vcsa/snmp/mode/uptime.pm +++ b/src/apps/vmware/vcsa/snmp/mode/uptime.pm @@ -45,11 +45,11 @@ Check system uptime. =item B<--warning-uptime> -Threshold warning. +Warning threshold. =item B<--critical-uptime> -Threshold critical. +Critical threshold. =item B<--add-sysdesc> diff --git a/src/apps/voip/3cx/restapi/custom/api.pm b/src/apps/voip/3cx/restapi/custom/api.pm index ba624cc08..de8a253f3 100644 --- a/src/apps/voip/3cx/restapi/custom/api.pm +++ b/src/apps/voip/3cx/restapi/custom/api.pm @@ -333,10 +333,10 @@ Threshold unknown for http response code. (Default: '%{http_code} < 200 or %{http_code} >= 300') =item B<--warning-http-status> -Threshold warning for http response code. +Warning threshold for http response code. =item B<--critical-http-status> -Threshold critical for http response code. +Critical threshold for http response code. =back diff --git a/src/apps/voip/3cx/restapi/mode/extension.pm b/src/apps/voip/3cx/restapi/mode/extension.pm index 5c6bfe6b9..3331f640b 100644 --- a/src/apps/voip/3cx/restapi/mode/extension.pm +++ b/src/apps/voip/3cx/restapi/mode/extension.pm @@ -164,17 +164,17 @@ Filter extension. =item B<--unknown-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{extension}, %{registered}, %{dnd}, %{profile}, %{status}, %{duration} =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{extension}, %{registered}, %{dnd}, %{profile}, %{status}, %{duration} =item B<--critical-status> -Set critical threshold for status. +Define the conditions to match for the status to be CRITICAL. You can use the following variables: %{extension}, %{registered}, %{dnd}, %{profile}, %{status}, %{duration} =item B<--warning-*> B<--critical-*> diff --git a/src/apps/voip/3cx/restapi/mode/system.pm b/src/apps/voip/3cx/restapi/mode/system.pm index 11e4183a0..010354104 100644 --- a/src/apps/voip/3cx/restapi/mode/system.pm +++ b/src/apps/voip/3cx/restapi/mode/system.pm @@ -189,17 +189,17 @@ Filter updates' category. =item B<--unknown-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{error}, %{service} =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{error}, %{service} =item B<--critical-status> -Set critical threshold for status (Default: '%{error} =~ /false/'). +Define the conditions to match for the status to be CRITICAL (Default: '%{error} =~ /false/'). You can use the following variables: %{error}, %{service} =item B<--warning-*> B<--critical-*> diff --git a/src/apps/voip/asterisk/ami/mode/channelusage.pm b/src/apps/voip/asterisk/ami/mode/channelusage.pm index 5b70c6d92..e783d59f8 100644 --- a/src/apps/voip/asterisk/ami/mode/channelusage.pm +++ b/src/apps/voip/asterisk/ami/mode/channelusage.pm @@ -116,13 +116,13 @@ Check channel usage: active calls, external calls. =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'channels-active', 'calls-active', 'extcalls-active', 'calls-count'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'channels-active', 'calls-active', 'extcalls-active', 'calls-count'. diff --git a/src/apps/voip/asterisk/ami/mode/dahdistatus.pm b/src/apps/voip/asterisk/ami/mode/dahdistatus.pm index 7216ea204..f62774bf3 100644 --- a/src/apps/voip/asterisk/ami/mode/dahdistatus.pm +++ b/src/apps/voip/asterisk/ami/mode/dahdistatus.pm @@ -125,12 +125,12 @@ Filter dahdi description (can be a regexp). =item B<--warning-status> -Set warning threshold for status (Default: '%{status} =~ /UNCONFIGURED|YEL|BLU/i'). +Define the conditions to match for the status to be WARNING (Default: '%{status} =~ /UNCONFIGURED|YEL|BLU/i'). You can use the following variables: %{description}, %{status} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} =~ /RED/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} =~ /RED/i'). You can use the following variables: %{description}, %{status} =back diff --git a/src/apps/voip/asterisk/ami/mode/sippeersusage.pm b/src/apps/voip/asterisk/ami/mode/sippeersusage.pm index f3e5f3d31..090b8223e 100644 --- a/src/apps/voip/asterisk/ami/mode/sippeersusage.pm +++ b/src/apps/voip/asterisk/ami/mode/sippeersusage.pm @@ -182,23 +182,23 @@ Filter sip peer name (can be a regexp). =item B<--warning-status> -Set warning threshold for status (Default: '%{status} =~ /LAGGED|UNKNOWN/i'). +Define the conditions to match for the status to be WARNING (Default: '%{status} =~ /LAGGED|UNKNOWN/i'). You can use the following variables: %{name}, %{status} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} =~ /UNREACHABLE/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} =~ /UNREACHABLE/i'). You can use the following variables: %{name}, %{status} =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'total-peers', 'monitor-online-peers', 'monitor-offline-peers', 'unmonitor-online-peers', 'unmonitor-offline-peers'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'total-peers', 'monitor-online-peers', 'monitor-offline-peers', 'unmonitor-online-peers', 'unmonitor-offline-peers'. diff --git a/src/apps/voip/asterisk/snmp/mode/channelusage.pm b/src/apps/voip/asterisk/snmp/mode/channelusage.pm index 29a745e78..2b70855eb 100644 --- a/src/apps/voip/asterisk/snmp/mode/channelusage.pm +++ b/src/apps/voip/asterisk/snmp/mode/channelusage.pm @@ -107,12 +107,12 @@ Example: --filter-counters='calls-active' =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'channels-active', 'calls-active', 'calls-count'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'channels-active', 'calls-active', 'calls-count'. =back diff --git a/src/apps/voip/cisco/meetingplace/mode/audiolicenses.pm b/src/apps/voip/cisco/meetingplace/mode/audiolicenses.pm index f8a316b0f..c27b9f1f2 100644 --- a/src/apps/voip/cisco/meetingplace/mode/audiolicenses.pm +++ b/src/apps/voip/cisco/meetingplace/mode/audiolicenses.pm @@ -108,11 +108,11 @@ Check the percentage of audio licenses used on this cisco meeting place platform =item B<--warning> -Threshold warning: Percentage value of audio licenses usage resulting in a warning state +Warning threshold: Percentage value of audio licenses usage resulting in a warning state =item B<--critical> -Threshold critical: Percentage value of audio licenses usage resulting in a critical state +Critical threshold: Percentage value of audio licenses usage resulting in a critical state =back diff --git a/src/apps/voip/cisco/meetingplace/mode/audioports.pm b/src/apps/voip/cisco/meetingplace/mode/audioports.pm index e5d0c4e91..950c07179 100644 --- a/src/apps/voip/cisco/meetingplace/mode/audioports.pm +++ b/src/apps/voip/cisco/meetingplace/mode/audioports.pm @@ -108,11 +108,11 @@ Check the percentage of audio ports used on this cisco meeting place platform. =item B<--warning> -Threshold warning: Percentage value of audio ports usage resulting in a warning state +Warning threshold: Percentage value of audio ports usage resulting in a warning state =item B<--critical> -Threshold critical: Percentage value of audio ports usage resulting in a critical state +Critical threshold: Percentage value of audio ports usage resulting in a critical state =back diff --git a/src/apps/voip/cisco/meetingplace/mode/videolicenses.pm b/src/apps/voip/cisco/meetingplace/mode/videolicenses.pm index 343d26436..f7d708ef4 100644 --- a/src/apps/voip/cisco/meetingplace/mode/videolicenses.pm +++ b/src/apps/voip/cisco/meetingplace/mode/videolicenses.pm @@ -108,11 +108,11 @@ Check the percentage of video licenses used on this cisco meeting place platform =item B<--warning> -Threshold warning: Percentage value of video licenses usage resulting in a warning state +Warning threshold: Percentage value of video licenses usage resulting in a warning state =item B<--critical> -Threshold critical: Percentage value of video licenses usage resulting in a critical state +Critical threshold: Percentage value of video licenses usage resulting in a critical state =back diff --git a/src/apps/voip/cisco/meetingplace/mode/videoports.pm b/src/apps/voip/cisco/meetingplace/mode/videoports.pm index f0866fb5c..f608d7b73 100644 --- a/src/apps/voip/cisco/meetingplace/mode/videoports.pm +++ b/src/apps/voip/cisco/meetingplace/mode/videoports.pm @@ -104,11 +104,11 @@ Check the percentage of video ports used on this cisco meeting place platform. =item B<--warning> -Threshold warning: Percentage value of video ports usage resulting in a warning state +Warning threshold: Percentage value of video ports usage resulting in a warning state =item B<--critical> -Threshold critical: Percentage value of video ports usage resulting in a critical state +Critical threshold: Percentage value of video ports usage resulting in a critical state =back diff --git a/src/apps/vtom/restapi/mode/jobs.pm b/src/apps/vtom/restapi/mode/jobs.pm index 492db6c0c..fd9e7a2d0 100644 --- a/src/apps/vtom/restapi/mode/jobs.pm +++ b/src/apps/vtom/restapi/mode/jobs.pm @@ -360,12 +360,12 @@ Can use format: 'Europe/London' or '+0100'. =item B<--warning-status> -Set warning threshold for status (Default: -) +Define the conditions to match for the status to be WARNING (Default: -) You can use the following variables: %{name}, %{status}, %{exit_code}, %{message}, %{environment}, %{application} =item B<--critical-status> -Set critical threshold for status (Default: '%{exit_code} =~ /Error/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{exit_code} =~ /Error/i'). You can use the following variables: %{name}, %{status}, %{exit_code}, %{message}, %{environment}, %{application} =item B<--warning-long> diff --git a/src/apps/wallix/bastion/snmp/mode/license.pm b/src/apps/wallix/bastion/snmp/mode/license.pm index 4b370259e..235a1fcad 100644 --- a/src/apps/wallix/bastion/snmp/mode/license.pm +++ b/src/apps/wallix/bastion/snmp/mode/license.pm @@ -315,12 +315,12 @@ Select the unit for the expired license threshold. May be 's' for seconds, 'm' f =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{status} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} eq "expired"'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} eq "expired"'). You can use the following variables: %{status} =item B<--warning-*> B<--critical-*> diff --git a/src/apps/wallix/bastion/snmp/mode/system.pm b/src/apps/wallix/bastion/snmp/mode/system.pm index fceb4a3bc..ae0fd4254 100644 --- a/src/apps/wallix/bastion/snmp/mode/system.pm +++ b/src/apps/wallix/bastion/snmp/mode/system.pm @@ -168,12 +168,12 @@ Example: --filter-counters='status' =item B<--warning-services-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{status} =item B<--critical-services-status> -Set critical threshold for status (Default: ''). +Define the conditions to match for the status to be CRITICAL (Default: ''). You can use the following variables: %{status} =item B<--warning-*> B<--critical-*> diff --git a/src/apps/wazuh/restapi/mode/agents.pm b/src/apps/wazuh/restapi/mode/agents.pm index 05493a13a..7269eed8e 100644 --- a/src/apps/wazuh/restapi/mode/agents.pm +++ b/src/apps/wazuh/restapi/mode/agents.pm @@ -147,12 +147,12 @@ Filter agent name (can be a regexp). =item B<--warning-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{status}, %{node_name}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: ''). +Define the conditions to match for the status to be CRITICAL (Default: ''). You can use the following variables: %{status}, %{node_name}, %{display} =item B<--warning-*> B<--critical-*> diff --git a/src/apps/wazuh/restapi/mode/manager.pm b/src/apps/wazuh/restapi/mode/manager.pm index a655fd3a4..0b7b7d982 100644 --- a/src/apps/wazuh/restapi/mode/manager.pm +++ b/src/apps/wazuh/restapi/mode/manager.pm @@ -199,12 +199,12 @@ Filter log name (can be a regexp). =item B<--warning-process-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{status}, %{display} =item B<--critical-process-status> -Set critical threshold for status (Default: ''). +Define the conditions to match for the status to be CRITICAL (Default: ''). You can use the following variables: %{status}, %{display} =item B<--warning-*> B<--critical-*> diff --git a/src/centreon/common/airespace/snmp/mode/apstatus.pm b/src/centreon/common/airespace/snmp/mode/apstatus.pm index fd263e09a..d79761eb2 100644 --- a/src/centreon/common/airespace/snmp/mode/apstatus.pm +++ b/src/centreon/common/airespace/snmp/mode/apstatus.pm @@ -320,22 +320,22 @@ Monitor radio interfaces channels utilization. =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{admstatus}, %{opstatus}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: '%{admstatus} eq "enable" and %{opstatus} !~ /associated|downloading/'). +Define the conditions to match for the status to be CRITICAL (Default: '%{admstatus} eq "enable" and %{opstatus} !~ /associated|downloading/'). You can use the following variables: %{admstatus}, %{opstatus}, %{display} =item B<--warning-radio-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{admstatus}, %{opstatus}, %{display} =item B<--critical-radio-status> -Set critical threshold for status (Default: '%{admstatus} eq "enable" and %{opstatus} eq "down"'). +Define the conditions to match for the status to be CRITICAL (Default: '%{admstatus} eq "enable" and %{opstatus} eq "down"'). You can use the following variables: %{admstatus}, %{opstatus}, %{display} =item B<--warning-*> B<--critical-*> diff --git a/src/centreon/common/airespace/snmp/mode/cpu.pm b/src/centreon/common/airespace/snmp/mode/cpu.pm index 58566495f..02def5bf0 100644 --- a/src/centreon/common/airespace/snmp/mode/cpu.pm +++ b/src/centreon/common/airespace/snmp/mode/cpu.pm @@ -79,11 +79,11 @@ Check cpu usage (AIRESPACE-SWITCHING-MIB). =item B<--warning-cpu-utilization> -Threshold warning in percent. +Warning threshold in percent. =item B<--critical-cpu-utilization> -Threshold critical in percent. +Critical threshold in percent. =back diff --git a/src/centreon/common/aruba/snmp/mode/apconnections.pm b/src/centreon/common/aruba/snmp/mode/apconnections.pm index c0bce49f2..930722301 100644 --- a/src/centreon/common/aruba/snmp/mode/apconnections.pm +++ b/src/centreon/common/aruba/snmp/mode/apconnections.pm @@ -215,12 +215,12 @@ Check AP connections (Deprecated). =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'total', 'total-time', 'inactive-time', 'channel-noise', 'snr'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'total', 'total-time', 'inactive-time', 'channel-noise', 'snr'. =item B<--filter-bssid> diff --git a/src/centreon/common/aruba/snmp/mode/apssidstatistics.pm b/src/centreon/common/aruba/snmp/mode/apssidstatistics.pm index 33111cdf1..753497e3d 100644 --- a/src/centreon/common/aruba/snmp/mode/apssidstatistics.pm +++ b/src/centreon/common/aruba/snmp/mode/apssidstatistics.pm @@ -244,13 +244,13 @@ Check AP ESSID and BSSID statistics (WLSX-WLAN-MIB, WLSX-SWITCH-MIB). =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'stations-associated' (ESSID and BSSID), 'channel-noise', 'signal-noise-ratio' (BSSID). =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'stations-associated' (ESSID and BSSID), 'channel-noise', 'signal-noise-ratio' (BSSID). diff --git a/src/centreon/common/aruba/snmp/mode/apusers.pm b/src/centreon/common/aruba/snmp/mode/apusers.pm index a340a9353..b333dbd80 100644 --- a/src/centreon/common/aruba/snmp/mode/apusers.pm +++ b/src/centreon/common/aruba/snmp/mode/apusers.pm @@ -268,14 +268,14 @@ Check total users connected (Deprecated). =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'total', 'total-none', 'total-other', 'total-web', 'total-dot1x', 'total-vpn', 'total-mac', 'avg-connection-time' (seconds), 'total-ap', 'total-essid'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'total', 'total-none', 'total-other', 'total-web', 'total-dot1x', 'total-vpn', 'total-mac', 'avg-connection-time' (seconds), 'total-ap', 'total-essid'. diff --git a/src/centreon/common/aruba/snmp/mode/controllerstatus.pm b/src/centreon/common/aruba/snmp/mode/controllerstatus.pm index 2b5d561d9..459660f55 100644 --- a/src/centreon/common/aruba/snmp/mode/controllerstatus.pm +++ b/src/centreon/common/aruba/snmp/mode/controllerstatus.pm @@ -198,14 +198,14 @@ Check controller status (WLSX-SYSTEMEXT-MIB). =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'connected-current' (global), 'status' (per controller). 'status' can use special variables like: %{name}, %{status}, %{ip}, %{role}, %{location} (Default: '') =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'connected-current' (global), 'status' (per controller). 'status' can use special variables like: %{name}, %{status}, %{ip}, %{role}, %{location} (Default: '%{status} !~ /active/i') diff --git a/src/centreon/common/aruba/snmp/mode/cpu.pm b/src/centreon/common/aruba/snmp/mode/cpu.pm index 22cf6ec0a..f786eb3b9 100644 --- a/src/centreon/common/aruba/snmp/mode/cpu.pm +++ b/src/centreon/common/aruba/snmp/mode/cpu.pm @@ -112,11 +112,11 @@ Check CPU usage (over the last minute) (WLSX-SYSTEMEXT-MIB). =item B<--warning-utilization> -Threshold warning in percent. +Warning threshold in percent. =item B<--critical-utilization> -Threshold critical in percent. +Critical threshold in percent. =back diff --git a/src/centreon/common/aruba/snmp/mode/license.pm b/src/centreon/common/aruba/snmp/mode/license.pm index 8152e8186..da689a4b9 100644 --- a/src/centreon/common/aruba/snmp/mode/license.pm +++ b/src/centreon/common/aruba/snmp/mode/license.pm @@ -170,13 +170,13 @@ Check license (WLSX-SYSTEMEXT-MIB). =item B<--warning-status> -Threshold warning. +Warning threshold. Can use special variables like:%{key}, %{service}, %{flag}, %{expires} (Default: '') =item B<--critical-status> -Threshold critical. +Critical threshold. Can use special variables like: %{key}, %{service}, %{flag}, %{expires} (Default: '%{flag} !~ /enabled/i || (%{expires} ne "Never" && %{expires} < 86400)') diff --git a/src/centreon/common/aruba/snmp/mode/memory.pm b/src/centreon/common/aruba/snmp/mode/memory.pm index 593641cbc..4a2e4df7a 100644 --- a/src/centreon/common/aruba/snmp/mode/memory.pm +++ b/src/centreon/common/aruba/snmp/mode/memory.pm @@ -162,11 +162,11 @@ Check memory usage (WLSX-SYSTEMEXT-MIB). =item B<--warning-usage> -Threshold warning in percent. +Warning threshold in percent. =item B<--critical-usage> -Threshold critical in percent. +Critical threshold in percent. =back diff --git a/src/centreon/common/aruba/snmp/mode/storage.pm b/src/centreon/common/aruba/snmp/mode/storage.pm index ca7590426..70d519302 100644 --- a/src/centreon/common/aruba/snmp/mode/storage.pm +++ b/src/centreon/common/aruba/snmp/mode/storage.pm @@ -183,11 +183,11 @@ Check storage device usage (WLSX-SYSTEMEXT-MIB). =item B<--warning-usage> -Threshold warning in percent. +Warning threshold in percent. =item B<--critical-usage> -Threshold critical in percent. +Critical threshold in percent. =item B<--filter-name> diff --git a/src/centreon/common/avaya/snmp/mode/cpu.pm b/src/centreon/common/avaya/snmp/mode/cpu.pm index 4c0ce74ba..2de06f2be 100644 --- a/src/centreon/common/avaya/snmp/mode/cpu.pm +++ b/src/centreon/common/avaya/snmp/mode/cpu.pm @@ -108,11 +108,11 @@ Check CPU usage. =item B<--warning-usage> -Threshold warning. +Warning threshold. =item B<--critical-usage> -Threshold critical. +Critical threshold. =back diff --git a/src/centreon/common/avaya/snmp/mode/memory.pm b/src/centreon/common/avaya/snmp/mode/memory.pm index 1bbc540b9..808a57c21 100644 --- a/src/centreon/common/avaya/snmp/mode/memory.pm +++ b/src/centreon/common/avaya/snmp/mode/memory.pm @@ -154,11 +154,11 @@ Check memory usages. =item B<--warning-usage> -Threshold warning (in percent). +Warning threshold (in percent). =item B<--critical-usage> -Threshold critical (in percent). +Critical threshold (in percent). =back diff --git a/src/centreon/common/bluearc/snmp/mode/clusterstatus.pm b/src/centreon/common/bluearc/snmp/mode/clusterstatus.pm index 940983872..8a002b030 100644 --- a/src/centreon/common/bluearc/snmp/mode/clusterstatus.pm +++ b/src/centreon/common/bluearc/snmp/mode/clusterstatus.pm @@ -130,17 +130,17 @@ Filter node name (can be a regexp). =item B<--unknown-status> -Set unknown threshold for status (Default: '%{state} =~ /unknown/'). +Define the conditions to match for the status to be UNKNOWN (Default: '%{state} =~ /unknown/'). You can use the following variables: %{state}, %{display} =item B<--warning-status> -Set warning threshold for status (Default: -). +Define the conditions to match for the status to be WARNING (Default: -). You can use the following variables: %{state}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: '%{state} =~ /offline/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{state} =~ /offline/i'). You can use the following variables: %{state}, %{display} =back diff --git a/src/centreon/common/bluearc/snmp/mode/interfaces.pm b/src/centreon/common/bluearc/snmp/mode/interfaces.pm index 4fc69ca8b..2b4d1b063 100644 --- a/src/centreon/common/bluearc/snmp/mode/interfaces.pm +++ b/src/centreon/common/bluearc/snmp/mode/interfaces.pm @@ -93,12 +93,12 @@ If the expression is true, metrics are checked (Default: '%{opstatus} eq "up"'). =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{admstatus}, %{opstatus}, %{duplexstatus}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: '%{admstatus} eq "up" and %{opstatus} ne "up"'). +Define the conditions to match for the status to be CRITICAL (Default: '%{admstatus} eq "up" and %{opstatus} ne "up"'). You can use the following variables: %{admstatus}, %{opstatus}, %{duplexstatus}, %{display} =item B<--warning-*> B<--critical-*> @@ -127,7 +127,7 @@ Display traffic perfdata to be compatible with nagvis widget. =item B<--interface> -Set the interface (number expected) ex: 1,2,... (empty means 'check all interface'). +Set the interface (number expected) ex: 1,2,... (empty means 'check all interfaces'). =item B<--name> @@ -167,11 +167,11 @@ Time in minutes before reloading cache file (default: 180). =item B<--oid-filter> -Choose OID used to filter interface (default: ifDesc) (values: ifDesc, ifAlias, ifName, IpAddr). +Define the OID to be used to filter interfaces (default: ifDesc) (values: ifDesc, ifAlias, ifName, IpAddr). =item B<--oid-display> -Choose OID used to display interface (default: ifDesc) (values: ifDesc, ifAlias, ifName, IpAddr). +Define the OID that will be used to name the interfaces (default: ifDesc) (values: ifDesc, ifAlias, ifName, IpAddr). =item B<--oid-extra-display> diff --git a/src/centreon/common/bluearc/snmp/mode/listinterfaces.pm b/src/centreon/common/bluearc/snmp/mode/listinterfaces.pm index 4328cd7e2..17bd62774 100644 --- a/src/centreon/common/bluearc/snmp/mode/listinterfaces.pm +++ b/src/centreon/common/bluearc/snmp/mode/listinterfaces.pm @@ -55,7 +55,7 @@ __END__ =item B<--interface> -Set the interface (number expected) ex: 1,2,... (empty means 'check all interface'). +Set the interface (number expected) ex: 1,2,... (empty means 'check all interfaces'). =item B<--name> @@ -79,11 +79,11 @@ Display interfaces with AdminStatus 'up'. =item B<--oid-filter> -Choose OID used to filter interface (default: ifDesc) (values: ifDesc, ifAlias, ifName). +Define the OID to be used to filter interfaces (default: ifDesc) (values: ifDesc, ifAlias, ifName). =item B<--oid-display> -Choose OID used to display interface (default: ifDesc) (values: ifDesc, ifAlias, ifName). +Define the OID that will be used to name the interfaces (default: ifDesc) (values: ifDesc, ifAlias, ifName). =item B<--display-transform-src> diff --git a/src/centreon/common/bluearc/snmp/mode/volumeusage.pm b/src/centreon/common/bluearc/snmp/mode/volumeusage.pm index 5ef8d67fb..a2f151686 100644 --- a/src/centreon/common/bluearc/snmp/mode/volumeusage.pm +++ b/src/centreon/common/bluearc/snmp/mode/volumeusage.pm @@ -220,12 +220,12 @@ Filter volume name (can be a regexp). =item B<--warning-status> -Set warning threshold for status (Default: '%{status} =~ /needsChecking/i'). +Define the conditions to match for the status to be WARNING (Default: '%{status} =~ /needsChecking/i'). You can use the following variables: %{status}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: -). +Define the conditions to match for the status to be CRITICAL (Default: -). You can use the following variables: %{status}, %{display} =item B<--warning-*> B<--critical-*> diff --git a/src/centreon/common/broadcom/fastpath/snmp/mode/cpu.pm b/src/centreon/common/broadcom/fastpath/snmp/mode/cpu.pm index b71a67240..7146aeb0f 100644 --- a/src/centreon/common/broadcom/fastpath/snmp/mode/cpu.pm +++ b/src/centreon/common/broadcom/fastpath/snmp/mode/cpu.pm @@ -104,12 +104,12 @@ Example: --filter-counters='5m' =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: '5s', '1m', '5m'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: '5s', '1m', '5m'. =back diff --git a/src/centreon/common/broadcom/fastpath/snmp/mode/memory.pm b/src/centreon/common/broadcom/fastpath/snmp/mode/memory.pm index 3bb21e8ed..af311a900 100644 --- a/src/centreon/common/broadcom/fastpath/snmp/mode/memory.pm +++ b/src/centreon/common/broadcom/fastpath/snmp/mode/memory.pm @@ -131,11 +131,11 @@ Check memory usage. =item B<--warning-usage> -Threshold warning (in percent). +Warning threshold (in percent). =item B<--critical-usage> -Threshold critical (in percent). +Critical threshold (in percent). =back diff --git a/src/centreon/common/cisco/ironport/snmp/mode/mailusage.pm b/src/centreon/common/cisco/ironport/snmp/mode/mailusage.pm index d88ba7da8..fb267a49d 100644 --- a/src/centreon/common/cisco/ironport/snmp/mode/mailusage.pm +++ b/src/centreon/common/cisco/ironport/snmp/mode/mailusage.pm @@ -251,17 +251,17 @@ Check email security usage. =item B<--unknown-status> -Set unknown threshold for status (Default: ''). +Define the conditions to match for the status to be UNKNOWN (Default: ''). You can use the following variables: %{queue_status}, %{resource_conservation} =item B<--warning-status> -Set warning threshold for status (Default: '%{resource_conservation} =~ /memoryShortage|queueSpaceShortage/i || %{queue_status} =~ /queueSpaceShortage/i'). +Define the conditions to match for the status to be WARNING (Default: '%{resource_conservation} =~ /memoryShortage|queueSpaceShortage/i || %{queue_status} =~ /queueSpaceShortage/i'). You can use the following variables: %{queue_status}, %{resource_conservation} =item B<--critical-status> -Set critical threshold for status (Default: '%{resource_conservation} =~ /queueFull/i || %{queue_status} =~ /queueFull/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{resource_conservation} =~ /queueFull/i || %{queue_status} =~ /queueFull/i'). You can use the following variables: %{queue_status}, %{resource_conservation} =item B<--warning-*> B<--critical-*> diff --git a/src/centreon/common/cisco/ironport/snmp/mode/memory.pm b/src/centreon/common/cisco/ironport/snmp/mode/memory.pm index 682ec6846..a9f4280e6 100644 --- a/src/centreon/common/cisco/ironport/snmp/mode/memory.pm +++ b/src/centreon/common/cisco/ironport/snmp/mode/memory.pm @@ -85,11 +85,11 @@ Check memory usage (ASYNCOS-MAIL-MIB). =item B<--warning> -Threshold warning in percent. +Warning threshold in percent. =item B<--critical> -Threshold critical in percent. +Critical threshold in percent. =back diff --git a/src/centreon/common/cisco/ironport/xmlapi/mode/systemusage.pm b/src/centreon/common/cisco/ironport/xmlapi/mode/systemusage.pm index 1ac03ce3f..02c1e3603 100644 --- a/src/centreon/common/cisco/ironport/xmlapi/mode/systemusage.pm +++ b/src/centreon/common/cisco/ironport/xmlapi/mode/systemusage.pm @@ -292,20 +292,20 @@ Threshold unknown for http response code (Default: '%{http_code} < 200 or %{http =item B<--warning-http-status> -Threshold warning for http response code +Warning threshold for http response code =item B<--critical-http-status> -Threshold critical for http response code +Critical threshold for http response code =item B<--warning-system-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{system_status} =item B<--critical-system-status> -Set critical threshold for status (Default: '%{system_status} !~ /online/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{system_status} !~ /online/i'). You can use the following variables: %{system_status} =item B<--warning-*> B<--critical-*> diff --git a/src/centreon/common/cisco/smallbusiness/snmp/mode/cpu.pm b/src/centreon/common/cisco/smallbusiness/snmp/mode/cpu.pm index b8d5bad81..86b00cdbe 100644 --- a/src/centreon/common/cisco/smallbusiness/snmp/mode/cpu.pm +++ b/src/centreon/common/cisco/smallbusiness/snmp/mode/cpu.pm @@ -132,11 +132,11 @@ Check cpu usage (CISCOSBmng.mib). =item B<--warning> -Threshold warning in percent (1s,1min,5min). +Warning threshold in percent (1s,1min,5min). =item B<--critical> -Threshold critical in percent (1s,1min,5min). +Critical threshold in percent (1s,1min,5min). =back diff --git a/src/centreon/common/cisco/standard/snmp/mode/aaaservers.pm b/src/centreon/common/cisco/standard/snmp/mode/aaaservers.pm index 74e2ef782..b3ef4b648 100644 --- a/src/centreon/common/cisco/standard/snmp/mode/aaaservers.pm +++ b/src/centreon/common/cisco/standard/snmp/mode/aaaservers.pm @@ -303,17 +303,17 @@ Filter AAA server by name (E.g.: 10.199.126.100:1812:1813. Format: [address]:[au =item B<--unknown-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{status}, %{name} =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{status}, %{name} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} =~ /dead/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} =~ /dead/i'). You can use the following variables: %{status}, %{name} =item B<--warning-*> B<--critical-*> diff --git a/src/centreon/common/cisco/standard/snmp/mode/bgp.pm b/src/centreon/common/cisco/standard/snmp/mode/bgp.pm index 1db282dc7..8d73ade94 100644 --- a/src/centreon/common/cisco/standard/snmp/mode/bgp.pm +++ b/src/centreon/common/cisco/standard/snmp/mode/bgp.pm @@ -263,17 +263,17 @@ Filter based on IP of peers (regexp allowed) =item B<--unknown-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{adminStatus}, %{state}, %{localAddr}, %{remoteAddr}, %{remoteAs} =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{adminStatus}, %{state}, %{localAddr}, %{remoteAddr}, %{remoteAs} =item B<--critical-status> -Set critical threshold for status (Default: '%{adminStatus} =~ /start/ && %{state} !~ /established/'). +Define the conditions to match for the status to be CRITICAL (Default: '%{adminStatus} =~ /start/ && %{state} !~ /established/'). You can use the following variables: %{adminStatus}, %{state}, %{localAddr}, %{remoteAddr}, %{remoteAs} =item B<--warning-*> B<--critical-*> diff --git a/src/centreon/common/cisco/standard/snmp/mode/configuration.pm b/src/centreon/common/cisco/standard/snmp/mode/configuration.pm index 90ace34b6..ab330ea5b 100644 --- a/src/centreon/common/cisco/standard/snmp/mode/configuration.pm +++ b/src/centreon/common/cisco/standard/snmp/mode/configuration.pm @@ -131,12 +131,12 @@ Check Cisco changed and saved configurations (CISCO-CONFIG-MAN-MIB). =item B<--warning-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{running_last_changed}, %{running_last_saved}, %{startup_last_changed} =item B<--critical-status> -Set critical threshold for status (Default: '%{running_last_changed} > %{running_last_saved}'). +Define the conditions to match for the status to be CRITICAL (Default: '%{running_last_changed} > %{running_last_saved}'). You can use the following variables: %{running_last_changed}, %{running_last_saved}, %{startup_last_changed} =back diff --git a/src/centreon/common/cisco/standard/snmp/mode/interfaces.pm b/src/centreon/common/cisco/standard/snmp/mode/interfaces.pm index 489c9e7b3..9fe4b3da7 100644 --- a/src/centreon/common/cisco/standard/snmp/mode/interfaces.pm +++ b/src/centreon/common/cisco/standard/snmp/mode/interfaces.pm @@ -375,12 +375,12 @@ If the expression is true, metrics are checked (Default: '%{opstatus} eq "up"'). =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{admstatus}, %{opstatus}, %{duplexstatus}, %{errdisable}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: '%{admstatus} eq "up" and %{opstatus} ne "up"'). +Define the conditions to match for the status to be CRITICAL (Default: '%{admstatus} eq "up" and %{opstatus} ne "up"'). You can use the following variables: %{admstatus}, %{opstatus}, %{duplexstatus}, %{errdisable}, %{display} =item B<--warning-*> B<--critical-*> @@ -410,7 +410,7 @@ Display traffic perfdata to be compatible with nagvis widget. =item B<--interface> -Set the interface (number expected) ex: 1,2,... (empty means 'check all interface'). +Set the interface (number expected) ex: 1,2,... (empty means 'check all interfaces'). =item B<--name> @@ -438,11 +438,11 @@ Time in minutes before reloading cache file (default: 180). =item B<--oid-filter> -Choose OID used to filter interface (default: ifName) (values: ifDesc, ifAlias, ifName, IpAddr). +Define the OID to be used to filter interfaces (default: ifName) (values: ifDesc, ifAlias, ifName, IpAddr). =item B<--oid-display> -Choose OID used to display interface (default: ifName) (values: ifDesc, ifAlias, ifName, IpAddr). +Define the OID that will be used to name the interfaces (default: ifName) (values: ifDesc, ifAlias, ifName, IpAddr). =item B<--oid-extra-display> diff --git a/src/centreon/common/cisco/standard/snmp/mode/ipsectunnel.pm b/src/centreon/common/cisco/standard/snmp/mode/ipsectunnel.pm index 8929c6c4d..6e953e5b7 100644 --- a/src/centreon/common/cisco/standard/snmp/mode/ipsectunnel.pm +++ b/src/centreon/common/cisco/standard/snmp/mode/ipsectunnel.pm @@ -410,13 +410,13 @@ Example: --filter-counters='^(tunnels-total)$' =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'tunnels-total', 'traffic-in', 'traffic-out', 'drop-in', 'drop-out', 'sa-total'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'tunnels-total', 'traffic-in', 'traffic-out', 'drop-in', 'drop-out', 'sa-total'. diff --git a/src/centreon/common/cisco/standard/snmp/mode/ipsla.pm b/src/centreon/common/cisco/standard/snmp/mode/ipsla.pm index b1235caf4..6e2d68b1f 100644 --- a/src/centreon/common/cisco/standard/snmp/mode/ipsla.pm +++ b/src/centreon/common/cisco/standard/snmp/mode/ipsla.pm @@ -959,7 +959,7 @@ Example: --threshold-overload='opersense,CRITICAL,^(?!(ok)$)' =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'CompletionTime', 'NumberOverThresholds', 'AverageDelaySD', 'AverageDelayDS', 'PacketLossRatio', 'PercentagePacketsPositiveJitter', 'AverageJitterPerPacketPositiveJitter', 'PercentagePacketsNegativeJitter', 'AverageJitterPerPacketNegativeJitter', 'AverageJitter', 'RTTStandardDeviation', 'DelaySource2DestinationStandardDeviation', 'DelayDestination2SourceStandardDeviation', @@ -967,7 +967,7 @@ Can be: 'CompletionTime', 'NumberOverThresholds', 'AverageDelaySD', 'AverageDela =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'CompletionTime', 'NumberOverThresholds', 'AverageDelaySD', 'AverageDelayDS', 'PacketLossRatio', 'PercentagePacketsPositiveJitter', 'AverageJitterPerPacketPositiveJitter', 'PercentagePacketsNegativeJitter', 'AverageJitterPerPacketNegativeJitter', 'AverageJitter', 'RTTStandardDeviation', 'DelaySource2DestinationStandardDeviation', 'DelayDestination2SourceStandardDeviation', diff --git a/src/centreon/common/cisco/standard/snmp/mode/memory.pm b/src/centreon/common/cisco/standard/snmp/mode/memory.pm index 7170e37c8..cf6d959d8 100644 --- a/src/centreon/common/cisco/standard/snmp/mode/memory.pm +++ b/src/centreon/common/cisco/standard/snmp/mode/memory.pm @@ -359,11 +359,11 @@ Check memory usage (CISCO-MEMORY-POOL-MIB, CISCO-ENHANCED-MEMPOOL-MIB, CISCO-PRO =item B<--warning-usage> -Threshold warning in percent. +Warning threshold in percent. =item B<--critical-usage> -Threshold critical in percent. +Critical threshold in percent. =item B<--filter-pool> diff --git a/src/centreon/common/cisco/standard/snmp/mode/memoryflash.pm b/src/centreon/common/cisco/standard/snmp/mode/memoryflash.pm index e3b600558..5aeba527c 100644 --- a/src/centreon/common/cisco/standard/snmp/mode/memoryflash.pm +++ b/src/centreon/common/cisco/standard/snmp/mode/memoryflash.pm @@ -194,17 +194,17 @@ Check memory flash usages. =item B<--unknown-status> -Set unknown threshold for status (Default: '%{status} =~ /readOnly/i'). +Define the conditions to match for the status to be UNKNOWN (Default: '%{status} =~ /readOnly/i'). You can use the following variables: %{status}, %{display} =item B<--warning-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{status}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: ''). +Define the conditions to match for the status to be CRITICAL (Default: ''). You can use the following variables: %{status}, %{display} =item B<--warning-*> B<--critical-*> diff --git a/src/centreon/common/cisco/standard/snmp/mode/qosusage.pm b/src/centreon/common/cisco/standard/snmp/mode/qosusage.pm index dddcb4df3..ca8cf405c 100644 --- a/src/centreon/common/cisco/standard/snmp/mode/qosusage.pm +++ b/src/centreon/common/cisco/standard/snmp/mode/qosusage.pm @@ -473,13 +473,13 @@ Example: --filter-counters='^(total-traffic)$' =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'int-cmap-traffic', 'int-cmap-drop', 'cmap-traffic', 'cmap-drop', 'total-traffic', 'total-drop'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'int-cmap-traffic', 'int-cmap-drop', 'cmap-traffic', 'cmap-drop', 'total-traffic', 'total-drop'. @@ -490,11 +490,11 @@ Only for --warning-int-traffic and --critical-int-traffic options. =item B<--oid-filter> -Choose OID used to filter interface (default: ifName) (values: ifDesc, ifAlias, ifName). +Define the OID to be used to filter interfaces (default: ifName) (values: ifDesc, ifAlias, ifName). =item B<--oid-display> -Choose OID used to display interface (default: ifName) (values: ifDesc, ifAlias, ifName). +Define the OID that will be used to name the interfaces (default: ifName) (values: ifDesc, ifAlias, ifName). =back diff --git a/src/centreon/common/cisco/standard/snmp/mode/sessions.pm b/src/centreon/common/cisco/standard/snmp/mode/sessions.pm index 367b89d18..434b14860 100644 --- a/src/centreon/common/cisco/standard/snmp/mode/sessions.pm +++ b/src/centreon/common/cisco/standard/snmp/mode/sessions.pm @@ -245,7 +245,7 @@ Check sessions. =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'connections-current', 'connections-1m', 'connections-5m', 'sessions-total', 'sessions-email-current', 'sessions-email-psec', 'sessions-ipsec-current', 'sessions-ipsec-psec', 'sessions-l2l-current', 'sessions-lb-psec' @@ -254,7 +254,7 @@ Can be: 'connections-current', 'connections-1m', 'connections-5m', =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'connections-current', 'connections-1m', 'connections-5m', 'sessions-total', 'sessions-email-current', 'sessions-email-psec', 'sessions-ipsec-current', 'sessions-ipsec-psec', 'sessions-l2l-current', 'sessions-lb-psec' diff --git a/src/centreon/common/cisco/standard/snmp/mode/vpc.pm b/src/centreon/common/cisco/standard/snmp/mode/vpc.pm index a28ce8fc1..bd0630ebd 100644 --- a/src/centreon/common/cisco/standard/snmp/mode/vpc.pm +++ b/src/centreon/common/cisco/standard/snmp/mode/vpc.pm @@ -344,47 +344,47 @@ Check virtual port-channel (vPC). =item B<--unknown-peer-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{role}, %{role_last}, %{domain_id} =item B<--warning-peer-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{role}, %{role_last}, %{domain_id} =item B<--critical-peer-status> -Set critical threshold for status (Default: '%{role} ne %{role_last}'). +Define the conditions to match for the status to be CRITICAL (Default: '%{role} ne %{role_last}'). You can use the following variables: %{role}, %{role_last}, %{domain_id} =item B<--unknown-keepalive-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{keepalive_status}, %{domain_id} =item B<--warning-keepalive-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{keepalive_status}, %{domain_id} =item B<--critical-keepalive-status> -Set critical threshold for status (Default: '%{keepalive_status} ne "alive"'). +Define the conditions to match for the status to be CRITICAL (Default: '%{keepalive_status} ne "alive"'). You can use the following variables: %{keepalive_status}, %{domain_id} =item B<--unknown-link-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{link_status}, %{display} =item B<--warning-link-status> -Set warning threshold for status (Default: '%{link_status} =~ /downStar/i') +Define the conditions to match for the status to be WARNING (Default: '%{link_status} =~ /downStar/i') You can use the following variables: %{link_status}, %{display} =item B<--critical-link-status> -Set critical threshold for status (Default: '%{link_status} eq "down"'). +Define the conditions to match for the status to be CRITICAL (Default: '%{link_status} eq "down"'). You can use the following variables: %{link_status}, %{display} =item B<--warning-*> B<--critical-*> diff --git a/src/centreon/common/cisco/standard/snmp/mode/vss.pm b/src/centreon/common/cisco/standard/snmp/mode/vss.pm index 60c2e7d60..99dfdad03 100644 --- a/src/centreon/common/cisco/standard/snmp/mode/vss.pm +++ b/src/centreon/common/cisco/standard/snmp/mode/vss.pm @@ -266,47 +266,47 @@ Check virtual switching system. =item B<--unknown-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{mode} =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{mode} =item B<--critical-status> -Set critical threshold for status. +Define the conditions to match for the status to be CRITICAL. You can use the following variables: %{mode} =item B<--unknown-member-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{role}, %{role_last}, %{switch_id} =item B<--warning-member-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{role}, %{role_last}, %{switch_id} =item B<--critical-member-status> -Set critical threshold for status (Default: '%{role} ne %{role_last}'). +Define the conditions to match for the status to be CRITICAL (Default: '%{role} ne %{role_last}'). You can use the following variables: %{role}, %{role_last}, %{switch_id} =item B<--unknown-link-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{link_status}, %{display} =item B<--warning-link-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{link_status}, %{display} =item B<--critical-link-status> -Set critical threshold for status (Default: '%{link_status} eq "down"'). +Define the conditions to match for the status to be CRITICAL (Default: '%{link_status} eq "down"'). You can use the following variables: %{link_status}, %{display} =item B<--warning-*> B<--critical-*> diff --git a/src/centreon/common/cisco/standard/snmp/mode/wan3g.pm b/src/centreon/common/cisco/standard/snmp/mode/wan3g.pm index b979af3e2..11aaa3a73 100644 --- a/src/centreon/common/cisco/standard/snmp/mode/wan3g.pm +++ b/src/centreon/common/cisco/standard/snmp/mode/wan3g.pm @@ -358,77 +358,77 @@ Filter by name (can be a regexp). =item B<--unknown-modem-status> -Set unknown threshold for status (Default: '%{modem_status} =~ /unknown/i'). +Define the conditions to match for the status to be UNKNOWN (Default: '%{modem_status} =~ /unknown/i'). You can use the following variables: %{modem_status}, %{display} =item B<--warning-modem-status> -Set warning threshold for status (Default: '%{modem_status} =~ /lowPowerMode/i'). +Define the conditions to match for the status to be WARNING (Default: '%{modem_status} =~ /lowPowerMode/i'). You can use the following variables: %{modem_status}, %{display} =item B<--critical-modem-status> -Set critical threshold for status (Default: '%{modem_status} =~ /offLine/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{modem_status} =~ /offLine/i'). You can use the following variables: %{modem_status}, %{display} =item B<--unknown-connection-status> -Set unknown threshold for status (Default: '%{connection_status} =~ /unknown/i'). +Define the conditions to match for the status to be UNKNOWN (Default: '%{connection_status} =~ /unknown/i'). You can use the following variables: %{connection_status}, %{display} =item B<--warning-connection-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{connection_status}, %{display} =item B<--critical-connection-status> -Set critical threshold for status (Default: '%{connection_status} =~ /inactive|idle|disconnected|error/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{connection_status} =~ /inactive|idle|disconnected|error/i'). You can use the following variables: %{connection_status}, %{display} =item B<--unknown-sim-status> -Set unknown threshold for status (Default: '%{sim_status} =~ /unknown/i'). +Define the conditions to match for the status to be UNKNOWN (Default: '%{sim_status} =~ /unknown/i'). You can use the following variables: %{sim_status}, %{display} =item B<--warning-sim-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{sim_status}, %{display} =item B<--critical-sim-status> -Set critical threshold for status (Default: '%{sim_status} !~ /ok|unknown/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{sim_status} !~ /ok|unknown/i'). You can use the following variables: %{sim_status}, %{display} =item B<--unknown-radio-status> -Set unknown threshold for status (Default: '%{current_band} =~ /unknown/i'). +Define the conditions to match for the status to be UNKNOWN (Default: '%{current_band} =~ /unknown/i'). You can use the following variables: %{current_band}, %{channel_number}, %{display} =item B<--warning-radio-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{current_band}, %{channel_number}, %{display} =item B<--critical-radio-status> -Set critical threshold for status (Default: '%{current_band} =~ /invalid|none/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{current_band} =~ /invalid|none/i'). You can use the following variables: %{current_band}, %{channel_number}, %{display} =item B<--unknown-network-status> -Set unknown threshold for status (Default: '%{service_status} =~ /unknown/i'). +Define the conditions to match for the status to be UNKNOWN (Default: '%{service_status} =~ /unknown/i'). You can use the following variables: %{service_status}, %{display} =item B<--warning-network-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{service_status}, %{display} =item B<--critical-network-status> -Set critical threshold for status (Default: '%{service_status} =~ /emergencyOnly|noService/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{service_status} =~ /emergencyOnly|noService/i'). You can use the following variables: %{service_status}, %{display} =item B<--warning-*> B<--critical-*> diff --git a/src/centreon/common/cps/ups/snmp/mode/batterystatus.pm b/src/centreon/common/cps/ups/snmp/mode/batterystatus.pm index 969f6a2c2..5e66b16f1 100644 --- a/src/centreon/common/cps/ups/snmp/mode/batterystatus.pm +++ b/src/centreon/common/cps/ups/snmp/mode/batterystatus.pm @@ -143,17 +143,17 @@ Check battery status and charge remaining. =item B<--unknown-status> -Set unknown threshold for status (Default: '%{status} =~ /unknown|notPresent/i'). +Define the conditions to match for the status to be UNKNOWN (Default: '%{status} =~ /unknown|notPresent/i'). You can use the following variables: %{status} =item B<--warning-status> -Set warning threshold for status (Default: '%{status} =~ /low/i'). +Define the conditions to match for the status to be WARNING (Default: '%{status} =~ /low/i'). You can use the following variables: %{status} =item B<--critical-status> -Set critical threshold for status (Default: ''). +Define the conditions to match for the status to be CRITICAL (Default: ''). You can use the following variables: %{status} =item B<--warning-*> B<--critical-*> diff --git a/src/centreon/common/cps/ups/snmp/mode/inputlines.pm b/src/centreon/common/cps/ups/snmp/mode/inputlines.pm index 0526ad6bb..0e7c55af1 100644 --- a/src/centreon/common/cps/ups/snmp/mode/inputlines.pm +++ b/src/centreon/common/cps/ups/snmp/mode/inputlines.pm @@ -131,17 +131,17 @@ Check INPUT lines metrics. =item B<--unknown-status> -Set unknown threshold for status (Default: ''). +Define the conditions to match for the status to be UNKNOWN (Default: ''). You can use the following variables: %{status} =item B<--warning-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{status} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} !~ /normal/'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} !~ /normal/'). You can use the following variables: %{status} =item B<--warning-*> B<--critical-*> diff --git a/src/centreon/common/cps/ups/snmp/mode/outputlines.pm b/src/centreon/common/cps/ups/snmp/mode/outputlines.pm index 972a69966..25b159bba 100644 --- a/src/centreon/common/cps/ups/snmp/mode/outputlines.pm +++ b/src/centreon/common/cps/ups/snmp/mode/outputlines.pm @@ -165,17 +165,17 @@ Check output lines metrics. =item B<--unknown-status> -Set unknown threshold for status (Default: '%{status} =~ /unknown/i'). +Define the conditions to match for the status to be UNKNOWN (Default: '%{status} =~ /unknown/i'). You can use the following variables: %{status} =item B<--warning-status> -Set warning threshold for status (Default: '%{status} =~ /rebooting|onBattery|onBypass/i'). +Define the conditions to match for the status to be WARNING (Default: '%{status} =~ /rebooting|onBattery|onBypass/i'). You can use the following variables: %{status} =item B<--critical-status> -Set critical threshold for status (Default: ''). +Define the conditions to match for the status to be CRITICAL (Default: ''). You can use the following variables: %{status} =item B<--warning-*> B<--critical-*> diff --git a/src/centreon/common/dell/fastpath/snmp/mode/cpu.pm b/src/centreon/common/dell/fastpath/snmp/mode/cpu.pm index 64329ff57..8efc2d93d 100644 --- a/src/centreon/common/dell/fastpath/snmp/mode/cpu.pm +++ b/src/centreon/common/dell/fastpath/snmp/mode/cpu.pm @@ -167,11 +167,11 @@ Check cpu usage (FASTPATH-SWITCHING-MIB). =item B<--warning> -Threshold warning in percent (5s,1min,5min). +Warning threshold in percent (5s,1min,5min). =item B<--critical> -Threshold critical in percent (5s,1min,5min). +Critical threshold in percent (5s,1min,5min). =back diff --git a/src/centreon/common/dell/fastpath/snmp/mode/memory.pm b/src/centreon/common/dell/fastpath/snmp/mode/memory.pm index 5c7d38442..864eeb44f 100644 --- a/src/centreon/common/dell/fastpath/snmp/mode/memory.pm +++ b/src/centreon/common/dell/fastpath/snmp/mode/memory.pm @@ -112,11 +112,11 @@ Check memory usage (FASTPATH-SWITCHING-MIB). =item B<--warning> -Threshold warning in percent. +Warning threshold in percent. =item B<--critical> -Threshold critical in percent. +Critical threshold in percent. =back diff --git a/src/centreon/common/emc/navisphere/mode/cache.pm b/src/centreon/common/emc/navisphere/mode/cache.pm index 0fa7b8b06..e0ca44267 100644 --- a/src/centreon/common/emc/navisphere/mode/cache.pm +++ b/src/centreon/common/emc/navisphere/mode/cache.pm @@ -203,11 +203,11 @@ Set option for cache command (Default: '-pdp -state -mirror'). =item B<--warning> -Threshold warning in percent (for dirty cache). +Warning threshold in percent (for dirty cache). =item B<--critical> -Threshold critical in percent (for dirty cache). +Critical threshold in percent (for dirty cache). =item B<--threshold-overload> diff --git a/src/centreon/common/emc/navisphere/mode/controller.pm b/src/centreon/common/emc/navisphere/mode/controller.pm index 008c27dd1..4d72abb6d 100644 --- a/src/centreon/common/emc/navisphere/mode/controller.pm +++ b/src/centreon/common/emc/navisphere/mode/controller.pm @@ -121,12 +121,12 @@ Check global controller (busy usage, iops). =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'busy', 'read-iops', 'write-iops'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'busy', 'read-iops', 'write-iops'. =back diff --git a/src/centreon/common/emc/navisphere/mode/disk.pm b/src/centreon/common/emc/navisphere/mode/disk.pm index 9322b9a23..8507e13d3 100644 --- a/src/centreon/common/emc/navisphere/mode/disk.pm +++ b/src/centreon/common/emc/navisphere/mode/disk.pm @@ -242,12 +242,12 @@ Check the status of the physical disks. =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'read-errors', 'write-errors', 'read-io', 'write-io', 'utils'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'read-errors', 'write-errors', 'read-io', 'write-io', 'utils'. =item B<--filter-disk> diff --git a/src/centreon/common/force10/snmp/mode/cpu.pm b/src/centreon/common/force10/snmp/mode/cpu.pm index dfc97c5ed..ba5d55ddd 100644 --- a/src/centreon/common/force10/snmp/mode/cpu.pm +++ b/src/centreon/common/force10/snmp/mode/cpu.pm @@ -183,12 +183,12 @@ Check cpu usages. =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: '5s', '1m', '5m'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: '5s', '1m', '5m'. =back diff --git a/src/centreon/common/force10/snmp/mode/memory.pm b/src/centreon/common/force10/snmp/mode/memory.pm index 28f31864a..5e9dc7187 100644 --- a/src/centreon/common/force10/snmp/mode/memory.pm +++ b/src/centreon/common/force10/snmp/mode/memory.pm @@ -157,11 +157,11 @@ Check memory usages. =item B<--warning-usage> -Threshold warning (in percent). +Warning threshold (in percent). =item B<--critical-usage> -Threshold critical (in percent). +Critical threshold (in percent). =back diff --git a/src/centreon/common/fortinet/fortigate/snmp/mode/apusage.pm b/src/centreon/common/fortinet/fortigate/snmp/mode/apusage.pm index 1d253cfd8..d19b43140 100644 --- a/src/centreon/common/fortinet/fortigate/snmp/mode/apusage.pm +++ b/src/centreon/common/fortinet/fortigate/snmp/mode/apusage.pm @@ -222,13 +222,13 @@ Check access point usage. =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'in-traffic', 'out-traffic', 'cpu' (%), 'memory' (%), 'clients'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'in-traffic', 'out-traffic', 'cpu' (%), 'memory' (%), 'clients'. @@ -238,17 +238,17 @@ Filter by access point name (can be a regexp). =item B<--unknown-status> -Set unknown threshold for status (Default: ''). +Define the conditions to match for the status to be UNKNOWN (Default: ''). You can use the following variables: %{admin}, %{status}, %{display} =item B<--warning-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{admin}, %{status}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: '%{admin} eq "enable" and %{status} !~ /online/i''). +Define the conditions to match for the status to be CRITICAL (Default: '%{admin} eq "enable" and %{status} !~ /online/i''). You can use the following variables: %{admin}, %{status}, %{display} =back diff --git a/src/centreon/common/fortinet/fortigate/snmp/mode/clusterstatus.pm b/src/centreon/common/fortinet/fortigate/snmp/mode/clusterstatus.pm index eacd6f2d7..ef7c882bf 100644 --- a/src/centreon/common/fortinet/fortigate/snmp/mode/clusterstatus.pm +++ b/src/centreon/common/fortinet/fortigate/snmp/mode/clusterstatus.pm @@ -270,12 +270,12 @@ Check cluster status. =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{serial}, %{hostname}, %{sync_status}, %{role}, %{roleLast} =item B<--critical-status> -Set critical threshold for status (Default: '%{role} ne %{roleLast} or %{sync_status} =~ /unsynchronized/'). +Define the conditions to match for the status to be CRITICAL (Default: '%{role} ne %{roleLast} or %{sync_status} =~ /unsynchronized/'). You can use the following variables: %{serial}, %{hostname}, %{sync_status}, %{role}, %{roleLast} =item B<--warning-*> B<--critical-*> diff --git a/src/centreon/common/fortinet/fortigate/snmp/mode/disk.pm b/src/centreon/common/fortinet/fortigate/snmp/mode/disk.pm index a922cd8fb..a2fa3b423 100644 --- a/src/centreon/common/fortinet/fortigate/snmp/mode/disk.pm +++ b/src/centreon/common/fortinet/fortigate/snmp/mode/disk.pm @@ -114,11 +114,11 @@ Check system disk usage (FORTINET-FORTIGATE). =item B<--warning> -Threshold warning in percent. +Warning threshold in percent. =item B<--critical> -Threshold critical in percent. +Critical threshold in percent. =back diff --git a/src/centreon/common/fortinet/fortigate/snmp/mode/interfaces.pm b/src/centreon/common/fortinet/fortigate/snmp/mode/interfaces.pm index b9fbd56e5..64189c1f6 100644 --- a/src/centreon/common/fortinet/fortigate/snmp/mode/interfaces.pm +++ b/src/centreon/common/fortinet/fortigate/snmp/mode/interfaces.pm @@ -104,12 +104,12 @@ If the expression is true, metrics are checked (Default: '%{opstatus} eq "up"'). =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{admstatus}, %{opstatus}, %{duplexstatus}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: '%{admstatus} eq "up" and %{opstatus} ne "up"'). +Define the conditions to match for the status to be CRITICAL (Default: '%{admstatus} eq "up" and %{opstatus} ne "up"'). You can use the following variables: %{admstatus}, %{opstatus}, %{duplexstatus}, %{display} =item B<--warning-*> B<--critical-*> @@ -138,7 +138,7 @@ Display traffic perfdata to be compatible with nagvis widget. =item B<--interface> -Set the interface (number expected) ex: 1,2,... (empty means 'check all interface'). +Set the interface (number expected) ex: 1,2,... (empty means 'check all interfaces'). =item B<--name> @@ -166,11 +166,11 @@ Time in minutes before reloading cache file (default: 180). =item B<--oid-filter> -Choose OID used to filter interface (default: ifName) (values: ifDesc, ifAlias, ifName, IpAddr, Vdom). +Define the OID to be used to filter interfaces (default: ifName) (values: ifDesc, ifAlias, ifName, IpAddr, Vdom). =item B<--oid-display> -Choose OID used to display interface (default: ifName) (values: ifDesc, ifAlias, ifName, IpAddr, Vdom). +Define the OID that will be used to name the interfaces (default: ifName) (values: ifDesc, ifAlias, ifName, IpAddr, Vdom). =item B<--oid-extra-display> diff --git a/src/centreon/common/fortinet/fortigate/snmp/mode/sdwan.pm b/src/centreon/common/fortinet/fortigate/snmp/mode/sdwan.pm index 3798222c4..660cf8455 100644 --- a/src/centreon/common/fortinet/fortigate/snmp/mode/sdwan.pm +++ b/src/centreon/common/fortinet/fortigate/snmp/mode/sdwan.pm @@ -364,17 +364,17 @@ Filter sd-wan links by vdom name (can be a regexp). =item B<--unknown-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{state}, %{vdom}, %{id}, %{name}, %{ifName} =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{state}, %{vdom}, %{id}, %{name}, %{ifName} =item B<--critical-status> -Set critical threshold for status (Default: '%{state} eq "down"'). +Define the conditions to match for the status to be CRITICAL (Default: '%{state} eq "down"'). You can use the following variables: %{state}, %{vdom}, %{id}, %{name}, %{ifName} =item B<--warning-*> B<--critical-*> diff --git a/src/centreon/common/fortinet/fortigate/snmp/mode/vdomusage.pm b/src/centreon/common/fortinet/fortigate/snmp/mode/vdomusage.pm index cb72b7ebf..7b5fa29c7 100644 --- a/src/centreon/common/fortinet/fortigate/snmp/mode/vdomusage.pm +++ b/src/centreon/common/fortinet/fortigate/snmp/mode/vdomusage.pm @@ -435,12 +435,12 @@ Time in minutes before reloading cache file (default: 60). =item B<--warning-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{op_mode}, %{ha_state} =item B<--critical-status> -Set critical threshold for status (Default: ''). +Define the conditions to match for the status to be CRITICAL (Default: ''). You can use the following variables: %{op_mode}, %{ha_state} =item B<--warning-*> B<--critical-*> diff --git a/src/centreon/common/fortinet/fortigate/snmp/mode/vpn.pm b/src/centreon/common/fortinet/fortigate/snmp/mode/vpn.pm index 1d674aff8..5d706f1cf 100644 --- a/src/centreon/common/fortinet/fortigate/snmp/mode/vpn.pm +++ b/src/centreon/common/fortinet/fortigate/snmp/mode/vpn.pm @@ -266,12 +266,12 @@ Warning on counters. Can be ('users', 'sessions', 'tunnels', 'traffic-in', 'traf =item B<--warning-status> -Set warning threshold for status. Use "%{state}" as a special variable. +Define the conditions to match for the status to be WARNING. Use "%{state}" as a special variable. Useful to be notified when tunnel is up "%{state} eq 'up'" =item B<--critical-status> -Set critical threshold for status. Use "%{state}" as a special variable. +Define the conditions to match for the status to be CRITICAL. Use "%{state}" as a special variable. Useful to be notified when tunnel is up "%{state} eq 'up'" =back diff --git a/src/centreon/common/h3c/snmp/mode/cpu.pm b/src/centreon/common/h3c/snmp/mode/cpu.pm index 2af9ced89..2d4bb8b58 100644 --- a/src/centreon/common/h3c/snmp/mode/cpu.pm +++ b/src/centreon/common/h3c/snmp/mode/cpu.pm @@ -184,11 +184,11 @@ Check CPU usages. =item B<--warning-usage> -Threshold warning. +Warning threshold. =item B<--critical-usage> -Threshold critical. +Critical threshold. =item B<--reload-cache-time> diff --git a/src/centreon/common/h3c/snmp/mode/interfaces.pm b/src/centreon/common/h3c/snmp/mode/interfaces.pm index 0d0ed26e2..497fe2b07 100644 --- a/src/centreon/common/h3c/snmp/mode/interfaces.pm +++ b/src/centreon/common/h3c/snmp/mode/interfaces.pm @@ -225,12 +225,12 @@ If the expression is true, metrics are checked (Default: '%{opstatus} eq "up"'). =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{admstatus}, %{opstatus}, %{duplexstatus}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: '%{admstatus} eq "up" and %{opstatus} ne "up"'). +Define the conditions to match for the status to be CRITICAL (Default: '%{admstatus} eq "up" and %{opstatus} ne "up"'). You can use the following variables: %{admstatus}, %{opstatus}, %{duplexstatus}, %{display} =item B<--warning-*> B<--critical-*> @@ -261,7 +261,7 @@ Display traffic perfdata to be compatible with nagvis widget. =item B<--interface> -Set the interface (number expected) ex: 1,2,... (empty means 'check all interface'). +Set the interface (number expected) ex: 1,2,... (empty means 'check all interfaces'). =item B<--name> @@ -289,11 +289,11 @@ Time in minutes before reloading cache file (default: 180). =item B<--oid-filter> -Choose OID used to filter interface (default: ifName) (values: ifDesc, ifAlias, ifName, IpAddr). +Define the OID to be used to filter interfaces (default: ifName) (values: ifDesc, ifAlias, ifName, IpAddr). =item B<--oid-display> -Choose OID used to display interface (default: ifName) (values: ifDesc, ifAlias, ifName, IpAddr). +Define the OID that will be used to name the interfaces (default: ifName) (values: ifDesc, ifAlias, ifName, IpAddr). =item B<--oid-extra-display> diff --git a/src/centreon/common/h3c/snmp/mode/memory.pm b/src/centreon/common/h3c/snmp/mode/memory.pm index 6a11ebb00..4ed0da687 100644 --- a/src/centreon/common/h3c/snmp/mode/memory.pm +++ b/src/centreon/common/h3c/snmp/mode/memory.pm @@ -263,11 +263,11 @@ Check memory usages. =item B<--warning-usage> -Threshold warning (in percent). +Warning threshold (in percent). =item B<--critical-usage> -Threshold critical (in percent). +Critical threshold (in percent). =item B<--reload-cache-time> diff --git a/src/centreon/common/ibm/nos/snmp/mode/disk.pm b/src/centreon/common/ibm/nos/snmp/mode/disk.pm index f1d3ee6d1..b051c8b64 100644 --- a/src/centreon/common/ibm/nos/snmp/mode/disk.pm +++ b/src/centreon/common/ibm/nos/snmp/mode/disk.pm @@ -57,11 +57,11 @@ Check disks. =item B<--warning-usage> -Threshold warning. +Warning threshold. =item B<--critical-usage> -Threshold critical. +Critical threshold. =item B<--units> diff --git a/src/centreon/common/ingrian/snmp/mode/connections.pm b/src/centreon/common/ingrian/snmp/mode/connections.pm index 05e91871f..6cf32f2fe 100644 --- a/src/centreon/common/ingrian/snmp/mode/connections.pm +++ b/src/centreon/common/ingrian/snmp/mode/connections.pm @@ -105,12 +105,12 @@ Check connections. =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'total', 'ssl', 'non-ssl'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'total', 'ssl', 'non-ssl'. =back diff --git a/src/centreon/common/ingrian/snmp/mode/cpu.pm b/src/centreon/common/ingrian/snmp/mode/cpu.pm index 06fa682c9..9ceda4cf1 100644 --- a/src/centreon/common/ingrian/snmp/mode/cpu.pm +++ b/src/centreon/common/ingrian/snmp/mode/cpu.pm @@ -124,12 +124,12 @@ Example: --filter-counters='^total$' =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'total', 'usage'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'total', 'usage'. =back diff --git a/src/centreon/common/ingrian/snmp/mode/disk.pm b/src/centreon/common/ingrian/snmp/mode/disk.pm index 3a1e048c8..dcf2f60b8 100644 --- a/src/centreon/common/ingrian/snmp/mode/disk.pm +++ b/src/centreon/common/ingrian/snmp/mode/disk.pm @@ -97,11 +97,11 @@ Check disk usages. =item B<--warning-usage> -Threshold warning (in percent). +Warning threshold (in percent). =item B<--critical-usage> -Threshold critical (in percent). +Critical threshold (in percent). =back diff --git a/src/centreon/common/ingrian/snmp/mode/memory.pm b/src/centreon/common/ingrian/snmp/mode/memory.pm index 4322e8562..c950625f5 100644 --- a/src/centreon/common/ingrian/snmp/mode/memory.pm +++ b/src/centreon/common/ingrian/snmp/mode/memory.pm @@ -123,11 +123,11 @@ Check memory usages. =item B<--warning-usage> -Threshold warning (in percent). +Warning threshold (in percent). =item B<--critical-usage> -Threshold critical (in percent). +Critical threshold (in percent). =back diff --git a/src/centreon/common/ingrian/snmp/mode/requeststats.pm b/src/centreon/common/ingrian/snmp/mode/requeststats.pm index 038b18536..27a4e0ae0 100644 --- a/src/centreon/common/ingrian/snmp/mode/requeststats.pm +++ b/src/centreon/common/ingrian/snmp/mode/requeststats.pm @@ -138,12 +138,12 @@ Filter by name (can be a regexp). =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'success', 'fail'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'success', 'fail'. =back diff --git a/src/centreon/common/jvm/mode/cpuload.pm b/src/centreon/common/jvm/mode/cpuload.pm index 5d90927dd..1d6b7bf95 100644 --- a/src/centreon/common/jvm/mode/cpuload.pm +++ b/src/centreon/common/jvm/mode/cpuload.pm @@ -94,19 +94,19 @@ perl centreon_plugins.pl --plugin=apps::tomcat::jmx::plugin --custommode=jolokia =item B<--warning-system> -Threshold warning of System cpuload +Warning threshold of System cpuload =item B<--critical-system> -Threshold critical of System cpuload +Critical threshold of System cpuload =item B<--warning-process> -Threshold warning of Process cpuload +Warning threshold of Process cpuload =item B<--critical-process> -Threshold critical of Process cpuload +Critical threshold of Process cpuload =back diff --git a/src/centreon/common/jvm/mode/gcusage.pm b/src/centreon/common/jvm/mode/gcusage.pm index ec5434d48..642703cd9 100644 --- a/src/centreon/common/jvm/mode/gcusage.pm +++ b/src/centreon/common/jvm/mode/gcusage.pm @@ -123,12 +123,12 @@ Filter garbage collector name (can be a regexp). =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'count', 'time' (ms). =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'count', 'time' (ms). =back diff --git a/src/centreon/common/jvm/mode/memory.pm b/src/centreon/common/jvm/mode/memory.pm index 9d82d2f8f..99fb29288 100644 --- a/src/centreon/common/jvm/mode/memory.pm +++ b/src/centreon/common/jvm/mode/memory.pm @@ -177,19 +177,19 @@ perl centreon_plugins.pl --plugin=apps::tomcat::jmx::plugin --custommode=jolokia =item B<--warning-heap> -Threshold warning of Heap memory usage +Warning threshold of Heap memory usage =item B<--critical-heap> -Threshold critical of Heap memory usage +Critical threshold of Heap memory usage =item B<--warning-nonheap> -Threshold warning of NonHeap memory usage +Warning threshold of NonHeap memory usage =item B<--critical-nonheap> -Threshold critical of NonHeap memory usage +Critical threshold of NonHeap memory usage =item B<--units> diff --git a/src/centreon/common/jvm/mode/memorydetailed.pm b/src/centreon/common/jvm/mode/memorydetailed.pm index dd0ccb5d0..d2a8eab02 100644 --- a/src/centreon/common/jvm/mode/memorydetailed.pm +++ b/src/centreon/common/jvm/mode/memorydetailed.pm @@ -239,43 +239,43 @@ perl centreon_plugins.pl --plugin=apps::tomcat::jmx::plugin --custommode=jolokia =item B<--warning-eden> -Threshold warning of Heap 'Eden Space' memory usage +Warning threshold of Heap 'Eden Space' memory usage =item B<--critical-eden> -Threshold critical of Heap 'Survivor Space' memory usage +Critical threshold of Heap 'Survivor Space' memory usage =item B<--warning-tenured> -Threshold warning of Heap 'Tenured Generation' memory usage +Warning threshold of Heap 'Tenured Generation' memory usage =item B<--critical-tenured> -Threshold critical of Heap 'Tenured Generation' memory usage +Critical threshold of Heap 'Tenured Generation' memory usage =item B<--warning-survivor> -Threshold warning of Heap 'Survivor Space' memory usage +Warning threshold of Heap 'Survivor Space' memory usage =item B<--critical-survivor> -Threshold critical of Heap 'Survivor Space' memory usage +Critical threshold of Heap 'Survivor Space' memory usage =item B<--warning-permanent> -Threshold warning of NonHeap 'Permanent Generation' memory usage +Warning threshold of NonHeap 'Permanent Generation' memory usage =item B<--critical-permanent> -Threshold critical of NonHeap 'Permanent Generation' memory usage +Critical threshold of NonHeap 'Permanent Generation' memory usage =item B<--warning-code> -Threshold warning of NonHeap 'Code Cache' memory usage +Warning threshold of NonHeap 'Code Cache' memory usage =item B<--critical-code> -Threshold critical of NonHeap 'Code Cache' memory usage +Critical threshold of NonHeap 'Code Cache' memory usage =item B<--units> diff --git a/src/centreon/common/jvm/mode/threads.pm b/src/centreon/common/jvm/mode/threads.pm index 577c70ebd..3e62d16e4 100644 --- a/src/centreon/common/jvm/mode/threads.pm +++ b/src/centreon/common/jvm/mode/threads.pm @@ -104,12 +104,12 @@ Check threads. =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'active', 'started', 'daemon'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'active', 'started', 'daemon'. =back diff --git a/src/centreon/common/polycom/endpoint/snmp/mode/videoconferencing.pm b/src/centreon/common/polycom/endpoint/snmp/mode/videoconferencing.pm index 1e9a0bd6d..a4a896bef 100644 --- a/src/centreon/common/polycom/endpoint/snmp/mode/videoconferencing.pm +++ b/src/centreon/common/polycom/endpoint/snmp/mode/videoconferencing.pm @@ -73,11 +73,11 @@ Check video conferencing usage. =item B<--warning-conferences-active> -Threshold warning. +Warning threshold. =item B<--critical-conferences-active> -Threshold critical. +Critical threshold. =back diff --git a/src/centreon/common/protocols/sql/mode/connectiontime.pm b/src/centreon/common/protocols/sql/mode/connectiontime.pm index 1287d7031..104b96a90 100644 --- a/src/centreon/common/protocols/sql/mode/connectiontime.pm +++ b/src/centreon/common/protocols/sql/mode/connectiontime.pm @@ -104,11 +104,11 @@ Check database connection time. =item B<--warning> -Threshold warning in milliseconds. +Warning threshold in milliseconds. =item B<--critical> -Threshold critical in milliseconds. +Critical threshold in milliseconds. =back diff --git a/src/centreon/common/protocols/sql/mode/sqlstring.pm b/src/centreon/common/protocols/sql/mode/sqlstring.pm index 97abe0f5d..1818b27bc 100644 --- a/src/centreon/common/protocols/sql/mode/sqlstring.pm +++ b/src/centreon/common/protocols/sql/mode/sqlstring.pm @@ -164,13 +164,13 @@ Specify scalar used to replace in printf =item B<--warning-string> -Set warning condition (if statement syntax) for status evaluation. +Define the conditions to match for the status to be WARNING. (Can be: %{key_field}, %{value_field}) e.g --warning-string '%{key_field} eq 'Central' && %{value_field} =~ /127.0.0.1/' =item B<--critical-string> -Set critical condition (if statement syntax) for status evaluation. +Define the conditions to match for the status to be CRITICAL (Can be: %{key_field} or %{value_field}) =item B<--dual-table> diff --git a/src/centreon/common/riverbed/steelhead/snmp/mode/bwoptimization.pm b/src/centreon/common/riverbed/steelhead/snmp/mode/bwoptimization.pm index 2d1240599..f6592e2cc 100644 --- a/src/centreon/common/riverbed/steelhead/snmp/mode/bwoptimization.pm +++ b/src/centreon/common/riverbed/steelhead/snmp/mode/bwoptimization.pm @@ -143,12 +143,12 @@ in bytes per second (STEELHEAD-MIB and STEELHEAD-EX-MIB). =item B<--warning-*> -Threshold warning (Can be: 'wan2lan-lan', 'wan2lan-wan', +Warning threshold (Can be: 'wan2lan-lan', 'wan2lan-wan', 'lan2wan-lan', 'lan2wan-wan') =item B<--critical-*> -Threshold critical (Can be: 'wan2lan-lan', 'wan2lan-wan', +Critical threshold (Can be: 'wan2lan-lan', 'wan2lan-wan', 'lan2wan-lan', 'lan2wan-wan') =over 8 diff --git a/src/centreon/common/riverbed/steelhead/snmp/mode/bwpassthrough.pm b/src/centreon/common/riverbed/steelhead/snmp/mode/bwpassthrough.pm index 8ae63a3e2..1dc8faaf0 100644 --- a/src/centreon/common/riverbed/steelhead/snmp/mode/bwpassthrough.pm +++ b/src/centreon/common/riverbed/steelhead/snmp/mode/bwpassthrough.pm @@ -120,11 +120,11 @@ Check passthrough bandwidth in both directions (STEELHEAD-MIB and STEELHEAD-EX-M =item B<--warning-traffic-*> -Threshold warning (Can be: 'in' (Wan2Lan), 'out' (Lan2Wan)) +Warning threshold (Can be: 'in' (Wan2Lan), 'out' (Lan2Wan)) =item B<--critical-traffic-*> -Threshold critical (Can be: 'in' (Wan2Lan), 'out' (Lan2Wan)) +Critical threshold (Can be: 'in' (Wan2Lan), 'out' (Lan2Wan)) =over 8 diff --git a/src/centreon/common/riverbed/steelhead/snmp/mode/diskutilization.pm b/src/centreon/common/riverbed/steelhead/snmp/mode/diskutilization.pm index 8bdf918f8..7c558ff87 100644 --- a/src/centreon/common/riverbed/steelhead/snmp/mode/diskutilization.pm +++ b/src/centreon/common/riverbed/steelhead/snmp/mode/diskutilization.pm @@ -130,13 +130,13 @@ Check disk utilization : usage, hits and misses. =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'usage' (%), 'hits' (/s), 'misses' (/s). =item B<--critical-usage> -Threshold critical. +Critical threshold. Can be: 'usage' (%), 'hits' (/s), 'misses' (/s). =back diff --git a/src/centreon/common/riverbed/steelhead/snmp/mode/status.pm b/src/centreon/common/riverbed/steelhead/snmp/mode/status.pm index 3c0a1f78e..d0c23d883 100644 --- a/src/centreon/common/riverbed/steelhead/snmp/mode/status.pm +++ b/src/centreon/common/riverbed/steelhead/snmp/mode/status.pm @@ -148,12 +148,12 @@ Check the current status of the optimization service. =item B<--warning-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{health}, %{status} =item B<--critical-status> -Set critical threshold for status (Default: '%{health} !~ /Healthy/ || %{status} !~ /running/'). +Define the conditions to match for the status to be CRITICAL (Default: '%{health} !~ /Healthy/ || %{status} !~ /running/'). You can use the following variables: %{health}, %{status} =item B<--warning-uptime> diff --git a/src/centreon/common/riverbed/steelhead/snmp/mode/temperature.pm b/src/centreon/common/riverbed/steelhead/snmp/mode/temperature.pm index 9eef0cba2..d6d882b41 100644 --- a/src/centreon/common/riverbed/steelhead/snmp/mode/temperature.pm +++ b/src/centreon/common/riverbed/steelhead/snmp/mode/temperature.pm @@ -104,11 +104,11 @@ Check the temperature of the system in Celcius (STEELHEAD-MIB and STEELHEAD-EX-M =item B<--warning-temperature> -Threshold warning for temperature in Celsius. +Warning threshold for temperature in Celsius. =item B<--critical-temperature> -Threshold critical for temperature in Celsius. +Critical threshold for temperature in Celsius. =back diff --git a/src/centreon/common/xppc/snmp/mode/batterystatus.pm b/src/centreon/common/xppc/snmp/mode/batterystatus.pm index 1f70006ad..481027410 100644 --- a/src/centreon/common/xppc/snmp/mode/batterystatus.pm +++ b/src/centreon/common/xppc/snmp/mode/batterystatus.pm @@ -145,17 +145,17 @@ Example: --filter-counters='status|current' =item B<--unknown-status> -Set unknown threshold for status (Default: '%{status} =~ /unknown/i'). +Define the conditions to match for the status to be UNKNOWN (Default: '%{status} =~ /unknown/i'). You can use the following variables: %{status}. =item B<--warning-status> -Set warning threshold for status (Default: '%{status} =~ /low/i'). +Define the conditions to match for the status to be WARNING (Default: '%{status} =~ /low/i'). You can use the following variables: %{status}. =item B<--critical-status> -Set critical threshold for status (Default: ''). +Define the conditions to match for the status to be CRITICAL (Default: ''). You can use the following variables: %{status}. =item B<--warning-*> B<--critical-*> diff --git a/src/centreon/common/xppc/snmp/mode/outputlines.pm b/src/centreon/common/xppc/snmp/mode/outputlines.pm index 9b0eb4b20..2b33f8a7a 100644 --- a/src/centreon/common/xppc/snmp/mode/outputlines.pm +++ b/src/centreon/common/xppc/snmp/mode/outputlines.pm @@ -139,17 +139,17 @@ Check output lines metrics. =item B<--unknown-status> -Set unknown threshold for status (Default: '%{status} =~ /unknown/i'). +Define the conditions to match for the status to be UNKNOWN (Default: '%{status} =~ /unknown/i'). You can use the following variables: %{status}. =item B<--warning-status> -Set warning threshold for status (Default: '%{status} =~ /rebooting|onBypass/i'). +Define the conditions to match for the status to be WARNING (Default: '%{status} =~ /rebooting|onBypass/i'). You can use the following variables: %{status}. =item B<--critical-status> -Set critical threshold for status (Default: '%{status} =~ /onBattery/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} =~ /onBattery/i'). You can use the following variables: %{status}. =item B<--warning-*> B<--critical-*> diff --git a/src/centreon/plugins/output.pm b/src/centreon/plugins/output.pm index 1b9afc7b7..3b89a98ff 100644 --- a/src/centreon/plugins/output.pm +++ b/src/centreon/plugins/output.pm @@ -1601,8 +1601,10 @@ instead of an UNKNOWN state. =item B<--range-perfdata> -Change perfdata range thresholds display: -1 = start value equals to '0' is removed, 2 = threshold range is not display. +Rewrite the ranges displayed in the perfdata. Accepted values: +0: nothing is changed. +1: if the lower value of the range is equal to 0, it is removed. +2: remove the thresholds from the perfdata. =item B<--filter-uom> diff --git a/src/centreon/plugins/templates/counter.pm b/src/centreon/plugins/templates/counter.pm index e1b925565..5a19367cd 100644 --- a/src/centreon/plugins/templates/counter.pm +++ b/src/centreon/plugins/templates/counter.pm @@ -784,12 +784,12 @@ Example to check SSL connections only : --filter-counters='^xxxx|yyyy$' =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'xxx', 'xxx'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'xxx', 'xxx'. =back diff --git a/src/cloud/aws/cloudwatch/mode/getalarms.pm b/src/cloud/aws/cloudwatch/mode/getalarms.pm index af5ee4af8..4fc3c35a4 100644 --- a/src/cloud/aws/cloudwatch/mode/getalarms.pm +++ b/src/cloud/aws/cloudwatch/mode/getalarms.pm @@ -163,12 +163,12 @@ Filter by alarm name (can be a regexp). =item B<--warning-status> -Set warning threshold for status (Default: '%{state_value} =~ /INSUFFICIENT_DATA/i') +Define the conditions to match for the status to be WARNING (Default: '%{state_value} =~ /INSUFFICIENT_DATA/i') You can use the following variables: %{alarm_name}, %{state_value}, %{metric_name}, %{last_update} =item B<--critical-status> -Set critical threshold for status (Default: '%{state_value} =~ /ALARM/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{state_value} =~ /ALARM/i'). You can use the following variables: %{alarm_name}, %{state_value}, %{metric_name}, %{last_update} =item B<--memory> diff --git a/src/cloud/aws/cloudwatch/mode/getmetrics.pm b/src/cloud/aws/cloudwatch/mode/getmetrics.pm index 96746522c..17c5d937c 100644 --- a/src/cloud/aws/cloudwatch/mode/getmetrics.pm +++ b/src/cloud/aws/cloudwatch/mode/getmetrics.pm @@ -215,11 +215,11 @@ Set cloudwatch metrics (Required). =item B<--warning-metric> -Threshold warning. +Warning threshold. =item B<--critical-metric> -Threshold critical. +Critical threshold. =back diff --git a/src/cloud/aws/cloudwatchlogs/mode/getlogs.pm b/src/cloud/aws/cloudwatchlogs/mode/getlogs.pm index e9b69a1b0..1733c317f 100644 --- a/src/cloud/aws/cloudwatchlogs/mode/getlogs.pm +++ b/src/cloud/aws/cloudwatchlogs/mode/getlogs.pm @@ -174,17 +174,17 @@ If not set: lookup logs since the last execution. =item B<--unknown-status> -Set unknown threshold for status (Default: '') +Define the conditions to match for the status to be UNKNOWN (Default: '') You can use the following variables: %{message}, %{stream_name}, %{since} =item B<--warning-status> -Set warning threshold for status (Default: '') +Define the conditions to match for the status to be WARNING (Default: '') You can use the following variables: %{message}, %{stream_name}, %{since} =item B<--critical-status> -Set critical threshold for status (Default: ''). +Define the conditions to match for the status to be CRITICAL (Default: ''). You can use the following variables: %{message}, %{stream_name}, %{since} =back diff --git a/src/cloud/aws/directconnect/mode/connections.pm b/src/cloud/aws/directconnect/mode/connections.pm index 992581d71..03436a493 100644 --- a/src/cloud/aws/directconnect/mode/connections.pm +++ b/src/cloud/aws/directconnect/mode/connections.pm @@ -229,12 +229,12 @@ Filter metrics (Can be: 'ConnectionBpsEgress', 'ConnectionBpsIngress', =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{state}, %{bandwidth}, %{connectionName} =item B<--critical-status> -Set critical threshold for status. +Define the conditions to match for the status to be CRITICAL. You can use the following variables: %{state}, %{bandwidth}, %{connectionName} =item B<--warning-*> B<--critical-*> diff --git a/src/cloud/aws/directconnect/mode/virtualinterfaces.pm b/src/cloud/aws/directconnect/mode/virtualinterfaces.pm index b7e0ef6d0..994a1ba35 100644 --- a/src/cloud/aws/directconnect/mode/virtualinterfaces.pm +++ b/src/cloud/aws/directconnect/mode/virtualinterfaces.pm @@ -226,12 +226,12 @@ Filter metrics (Can be: 'VirtualInterfaceBpsEgress', 'VirtualInterfaceBpsIngress =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{state}, %{vlan}, %{type}, %{virtualInterfaceId} =item B<--critical-status> -Set critical threshold for status. +Define the conditions to match for the status to be CRITICAL. You can use the following variables: %{state}, %{vlan}, %{type}, %{virtualInterfaceId} =item B<--warning-*> B<--critical-*> diff --git a/src/cloud/aws/ec2/mode/asgstatus.pm b/src/cloud/aws/ec2/mode/asgstatus.pm index 51eb9c5e1..93c36a362 100644 --- a/src/cloud/aws/ec2/mode/asgstatus.pm +++ b/src/cloud/aws/ec2/mode/asgstatus.pm @@ -203,7 +203,7 @@ Filter by autoscaling group name (can be a regexp). =item B<--warning-instances> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). Can use special variables like: %{health}, %{lifecycle} =item B<--critical-instances> @@ -214,12 +214,12 @@ Can use special variables like: %{health}, %{lifecycle} =item B<--warning-asg-instance-current> -Threshold warning about number of +Warning threshold about number of instances in the autoscaling group =item B<--critical-asg-instance-current> -Threshold critical about number of +Critical threshold about number of instances in the autoscaling group =back diff --git a/src/cloud/aws/ec2/mode/instancesstatus.pm b/src/cloud/aws/ec2/mode/instancesstatus.pm index 3fb5f85fb..fc65373c9 100644 --- a/src/cloud/aws/ec2/mode/instancesstatus.pm +++ b/src/cloud/aws/ec2/mode/instancesstatus.pm @@ -278,12 +278,12 @@ Select the unit for uptime threshold. May be 's' for seconds, 'm' for minutes, =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{state}, %{display} =item B<--critical-status> -Set critical threshold for status. +Define the conditions to match for the status to be CRITICAL. You can use the following variables: %{state}, %{display} =item B<--warning-*> B<--critical-*> diff --git a/src/cloud/aws/ec2/mode/instancestypes.pm b/src/cloud/aws/ec2/mode/instancestypes.pm index 3694c4a92..5186610fc 100644 --- a/src/cloud/aws/ec2/mode/instancestypes.pm +++ b/src/cloud/aws/ec2/mode/instancestypes.pm @@ -227,7 +227,7 @@ Filter by instance type (regexp) =item B<--warning-*> B<--critical-*> -Threshold warning. +Warning threshold. Can be: 'a1.medium', 'a1.large', 'a1.xlarge', 'a1.2xlarge', 'a1.4xlarge', 'm4.large', 'm4.xlarge', 'm4.2xlarge', 'm4.4xlarge', 'm4.10xlarge', 'm4.16xlarge', 'm5.large', 'm5.xlarge', 'm5.2xlarge', 'm5.4xlarge', 'm5.8xlarge', 'm5.12xlarge', 'm5.16xlarge', diff --git a/src/cloud/aws/ec2/mode/status.pm b/src/cloud/aws/ec2/mode/status.pm index 6faa40b3f..9e32f9425 100644 --- a/src/cloud/aws/ec2/mode/status.pm +++ b/src/cloud/aws/ec2/mode/status.pm @@ -200,13 +200,13 @@ Set the instance name (Required) (can be defined multiple times). =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{status}. 'status' can be: 'passed', 'failed'. =item B<--critical-status> -Set critical threshold for status (Default: '%{status} =~ /failed/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} =~ /failed/i'). You can use the following variables: %{status}. 'status' can be: 'passed', 'failed'. diff --git a/src/cloud/aws/rds/mode/instancestatus.pm b/src/cloud/aws/rds/mode/instancestatus.pm index 6e69bb98f..9014043d9 100644 --- a/src/cloud/aws/rds/mode/instancestatus.pm +++ b/src/cloud/aws/rds/mode/instancestatus.pm @@ -195,23 +195,23 @@ Filter by instance id (can be a regexp). =item B<--warning-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{state}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: ''). +Define the conditions to match for the status to be CRITICAL (Default: ''). You can use the following variables: %{state}, %{display} =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'total-available', 'total-backing-up', 'total-failed', 'total-maintenance', 'total-stopped', 'total-storage-full'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'total-available', 'total-backing-up', 'total-failed', 'total-maintenance', 'total-stopped', 'total-storage-full'. diff --git a/src/cloud/azure/analytics/eventhubs/mode/health.pm b/src/cloud/azure/analytics/eventhubs/mode/health.pm index ed152061c..a7cfce227 100644 --- a/src/cloud/azure/analytics/eventhubs/mode/health.pm +++ b/src/cloud/azure/analytics/eventhubs/mode/health.pm @@ -53,22 +53,22 @@ Set resource group (Required if resource's name is used). =item B<--warning-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{status}, %{summary} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} =~ /^Unavailable$/'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} =~ /^Unavailable$/'). You can use the following variables: %{status}, %{summary} =item B<--unknown-status> -Set unknown threshold for status (Default: '%{status} =~ /^Unknown$/'). +Define the conditions to match for the status to be UNKNOWN (Default: '%{status} =~ /^Unknown$/'). You can use the following variables: %{status}, %{summary} =item B<--ok-status> -Set ok threshold for status (Default: '%{status} =~ /^Available$/'). +Define the conditions to match for the status to be OK (Default: '%{status} =~ /^Available$/'). You can use the following variables: %{status}, %{summary} =back diff --git a/src/cloud/azure/common/appservice/mode/health.pm b/src/cloud/azure/common/appservice/mode/health.pm index c408660c4..3d86b0be8 100644 --- a/src/cloud/azure/common/appservice/mode/health.pm +++ b/src/cloud/azure/common/appservice/mode/health.pm @@ -53,22 +53,22 @@ Set resource group (Required if resource's name is used). =item B<--warning-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). Special variables that can be used: %{status}, %{summary}. =item B<--critical-status> -Set critical threshold for status (Default: '%{status} =~ /^Unavailable$/'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} =~ /^Unavailable$/'). Special variables that can be used: %{status}, %{summary}. =item B<--unknown-status> -Set unknown threshold for status (Default: '%{status} =~ /^Unknown$/'). +Define the conditions to match for the status to be UNKNOWN (Default: '%{status} =~ /^Unknown$/'). Special variables that can be used: %{status}, %{summary}. =item B<--ok-status> -Set ok threshold for status (Default: '%{status} =~ /^Available$/'). +Define the conditions to match for the status to be OK (Default: '%{status} =~ /^Available$/'). Special variables that can be used: %{status}, %{summary}. =back diff --git a/src/cloud/azure/common/storageaccount/health.pm b/src/cloud/azure/common/storageaccount/health.pm index 854224b15..6996171cf 100644 --- a/src/cloud/azure/common/storageaccount/health.pm +++ b/src/cloud/azure/common/storageaccount/health.pm @@ -73,22 +73,22 @@ Default: 'Microsoft.Storage'. =item B<--warning-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{status}, %{summary} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} =~ /^Unavailable$/'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} =~ /^Unavailable$/'). You can use the following variables: %{status}, %{summary} =item B<--unknown-status> -Set unknown threshold for status (Default: '%{status} =~ /^Unknown$/'). +Define the conditions to match for the status to be UNKNOWN (Default: '%{status} =~ /^Unknown$/'). You can use the following variables: %{status}, %{summary} =item B<--ok-status> -Set ok threshold for status (Default: '%{status} =~ /^Available$/'). +Define the conditions to match for the status to be OK (Default: '%{status} =~ /^Available$/'). You can use the following variables: %{status}, %{summary} =back diff --git a/src/cloud/azure/compute/aks/mode/health.pm b/src/cloud/azure/compute/aks/mode/health.pm index 8c8c2918f..189fbd2de 100644 --- a/src/cloud/azure/compute/aks/mode/health.pm +++ b/src/cloud/azure/compute/aks/mode/health.pm @@ -54,25 +54,25 @@ Set resource group (Required if resource's name is used). =item B<--warning-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{status}, %{summary} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} =~ /^Unavailable$/'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} =~ /^Unavailable$/'). You can use the following variables: %{status}, %{summary} =item B<--unknown-status> -Set unknown threshold for status (Default: '%{status} =~ /^Unknown$/'). +Define the conditions to match for the status to be UNKNOWN (Default: '%{status} =~ /^Unknown$/'). You can use the following variables: %{status}, %{summary} =item B<--ok-status> -Set ok threshold for status (Default: '%{status} =~ /^Available$/'). +Define the conditions to match for the status to be OK (Default: '%{status} =~ /^Available$/'). You can use the following variables: %{status}, %{summary} diff --git a/src/cloud/azure/compute/virtualmachine/mode/health.pm b/src/cloud/azure/compute/virtualmachine/mode/health.pm index 300e26465..b73d579d7 100644 --- a/src/cloud/azure/compute/virtualmachine/mode/health.pm +++ b/src/cloud/azure/compute/virtualmachine/mode/health.pm @@ -55,22 +55,22 @@ Set resource group (Required if resource's name is used). =item B<--warning-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{status}, %{summary} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} =~ /^Unavailable$/'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} =~ /^Unavailable$/'). You can use the following variables: %{status}, %{summary} =item B<--unknown-status> -Set unknown threshold for status (Default: '%{status} =~ /^Unknown$/'). +Define the conditions to match for the status to be UNKNOWN (Default: '%{status} =~ /^Unknown$/'). You can use the following variables: %{status}, %{summary} =item B<--ok-status> -Set ok threshold for status (Default: '%{status} =~ /^Available$/'). +Define the conditions to match for the status to be OK (Default: '%{status} =~ /^Available$/'). You can use the following variables: %{status}, %{summary} =back diff --git a/src/cloud/azure/compute/virtualmachine/mode/vmsizes.pm b/src/cloud/azure/compute/virtualmachine/mode/vmsizes.pm index 5f0c9d486..d3d9c7940 100644 --- a/src/cloud/azure/compute/virtualmachine/mode/vmsizes.pm +++ b/src/cloud/azure/compute/virtualmachine/mode/vmsizes.pm @@ -209,7 +209,7 @@ Filter by virtual machine size (regexp) =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'standard-b1s', 'standard-b1ms', 'standard-b2s', 'standard-b2ms', 'standard-b4ms', 'standard-b8ms', 'standard-d2s-v3', 'standard-d4s-v3', 'standard-d8s-v3', 'standard-d16s-v3', 'standard-d32s-v3', 'standard-d64s-v3', 'standard-d2-v3', 'standard-d4-v3', 'standard-d8-v3', 'standard-d16-v3', 'standard-d32-v3', @@ -235,7 +235,7 @@ Can be: 'standard-b1s', 'standard-b1ms', 'standard-b2s', 'standard-b2ms', 'stand =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'standard-b1s', 'standard-b1ms', 'standard-b2s', 'standard-b2ms', 'standard-b4ms', 'standard-b8ms', 'standard-d2s-v3', 'standard-d4s-v3', 'standard-d8s-v3', 'standard-d16s-v3', 'standard-d32s-v3', 'standard-d64s-v3', 'standard-d2-v3', 'standard-d4-v3', 'standard-d8-v3', 'standard-d16-v3', 'standard-d32-v3', diff --git a/src/cloud/azure/compute/vmscalesets/mode/health.pm b/src/cloud/azure/compute/vmscalesets/mode/health.pm index 3f2faa29a..21760e083 100644 --- a/src/cloud/azure/compute/vmscalesets/mode/health.pm +++ b/src/cloud/azure/compute/vmscalesets/mode/health.pm @@ -54,25 +54,25 @@ Set resource group (Required if resource's name is used). =item B<--warning-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{status}, %{summary} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} =~ /^Unavailable$/'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} =~ /^Unavailable$/'). You can use the following variables: %{status}, %{summary} =item B<--unknown-status> -Set unknown threshold for status (Default: '%{status} =~ /^Unknown$/'). +Define the conditions to match for the status to be UNKNOWN (Default: '%{status} =~ /^Unknown$/'). You can use the following variables: %{status}, %{summary} =item B<--ok-status> -Set ok threshold for status (Default: '%{status} =~ /^Available$/'). +Define the conditions to match for the status to be OK (Default: '%{status} =~ /^Available$/'). You can use the following variables: %{status}, %{summary} diff --git a/src/cloud/azure/database/cosmosdb/mode/health.pm b/src/cloud/azure/database/cosmosdb/mode/health.pm index dc5513d8a..97803a964 100644 --- a/src/cloud/azure/database/cosmosdb/mode/health.pm +++ b/src/cloud/azure/database/cosmosdb/mode/health.pm @@ -53,22 +53,22 @@ Set resource group (Required if resource's name is used). =item B<--warning-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{status}, %{summary} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} =~ /^Unavailable$/'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} =~ /^Unavailable$/'). You can use the following variables: %{status}, %{summary} =item B<--unknown-status> -Set unknown threshold for status (Default: '%{status} =~ /^Unknown$/'). +Define the conditions to match for the status to be UNKNOWN (Default: '%{status} =~ /^Unknown$/'). You can use the following variables: %{status}, %{summary} =item B<--ok-status> -Set ok threshold for status (Default: '%{status} =~ /^Available$/'). +Define the conditions to match for the status to be OK (Default: '%{status} =~ /^Available$/'). You can use the following variables: %{status}, %{summary} =back diff --git a/src/cloud/azure/database/redis/mode/health.pm b/src/cloud/azure/database/redis/mode/health.pm index 7efb5b970..6c217b308 100644 --- a/src/cloud/azure/database/redis/mode/health.pm +++ b/src/cloud/azure/database/redis/mode/health.pm @@ -53,22 +53,22 @@ Set resource group (Required if resource's name is used). =item B<--warning-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{status}, %{summary} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} =~ /^Unavailable$/'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} =~ /^Unavailable$/'). You can use the following variables: %{status}, %{summary} =item B<--unknown-status> -Set unknown threshold for status (Default: '%{status} =~ /^Unknown$/'). +Define the conditions to match for the status to be UNKNOWN (Default: '%{status} =~ /^Unknown$/'). You can use the following variables: %{status}, %{summary} =item B<--ok-status> -Set ok threshold for status (Default: '%{status} =~ /^Available$/'). +Define the conditions to match for the status to be OK (Default: '%{status} =~ /^Available$/'). You can use the following variables: %{status}, %{summary} =back diff --git a/src/cloud/azure/database/sqldatabase/mode/health.pm b/src/cloud/azure/database/sqldatabase/mode/health.pm index 51c386f81..34c3f8852 100644 --- a/src/cloud/azure/database/sqldatabase/mode/health.pm +++ b/src/cloud/azure/database/sqldatabase/mode/health.pm @@ -54,25 +54,25 @@ Set resource group (Required if resource's name is used). =item B<--warning-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{status}, %{summary} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} =~ /^Unavailable$/'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} =~ /^Unavailable$/'). You can use the following variables: %{status}, %{summary} =item B<--unknown-status> -Set unknown threshold for status (Default: '%{status} =~ /^Unknown$/'). +Define the conditions to match for the status to be UNKNOWN (Default: '%{status} =~ /^Unknown$/'). You can use the following variables: %{status}, %{summary} =item B<--ok-status> -Set ok threshold for status (Default: '%{status} =~ /^Available$/'). +Define the conditions to match for the status to be OK (Default: '%{status} =~ /^Available$/'). You can use the following variables: %{status}, %{summary} diff --git a/src/cloud/azure/database/sqlmanagedinstance/mode/health.pm b/src/cloud/azure/database/sqlmanagedinstance/mode/health.pm index d8c965c1e..e92683642 100644 --- a/src/cloud/azure/database/sqlmanagedinstance/mode/health.pm +++ b/src/cloud/azure/database/sqlmanagedinstance/mode/health.pm @@ -53,22 +53,22 @@ Set resource group (Required if resource's name is used). =item B<--warning-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). Special variables that can be used: %{status}, %{summary}. =item B<--critical-status> -Set critical threshold for status (Default: '%{status} =~ /^Unavailable$/'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} =~ /^Unavailable$/'). Special variables that can be used: %{status}, %{summary}. =item B<--unknown-status> -Set unknown threshold for status (Default: '%{status} =~ /^Unknown$/'). +Define the conditions to match for the status to be UNKNOWN (Default: '%{status} =~ /^Unknown$/'). Special variables that can be used: %{status}, %{summary}. =item B<--ok-status> -Set ok threshold for status (Default: '%{status} =~ /^Available$/'). +Define the conditions to match for the status to be OK (Default: '%{status} =~ /^Available$/'). Special variables that can be used: %{status}, %{summary}. =back diff --git a/src/cloud/azure/database/sqlserver/mode/serverstatus.pm b/src/cloud/azure/database/sqlserver/mode/serverstatus.pm index 42c357ccc..bd2a0f9fc 100644 --- a/src/cloud/azure/database/sqlserver/mode/serverstatus.pm +++ b/src/cloud/azure/database/sqlserver/mode/serverstatus.pm @@ -126,12 +126,12 @@ Filter server name (Can be a regexp). =item B<--warning-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{state}, %{fqdn}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: '%{state} ne "Ready"'). +Define the conditions to match for the status to be CRITICAL (Default: '%{state} ne "Ready"'). You can use the following variables: %{state}, %{fqdn}, %{display} =back diff --git a/src/cloud/azure/integration/eventgrid/mode/health.pm b/src/cloud/azure/integration/eventgrid/mode/health.pm index 9fab26528..a318d6412 100644 --- a/src/cloud/azure/integration/eventgrid/mode/health.pm +++ b/src/cloud/azure/integration/eventgrid/mode/health.pm @@ -55,22 +55,22 @@ Set resource group (Required if resource's name is used). =item B<--warning-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{status}, %{summary} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} =~ /^Unavailable$/'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} =~ /^Unavailable$/'). You can use the following variables: %{status}, %{summary} =item B<--unknown-status> -Set unknown threshold for status (Default: '%{status} =~ /^Unknown$/'). +Define the conditions to match for the status to be UNKNOWN (Default: '%{status} =~ /^Unknown$/'). You can use the following variables: %{status}, %{summary} =item B<--ok-status> -Set ok threshold for status (Default: '%{status} =~ /^Available$/'). +Define the conditions to match for the status to be OK (Default: '%{status} =~ /^Available$/'). You can use the following variables: %{status}, %{summary} =back diff --git a/src/cloud/azure/integration/servicebus/mode/health.pm b/src/cloud/azure/integration/servicebus/mode/health.pm index 1591d3e6c..6331dd158 100644 --- a/src/cloud/azure/integration/servicebus/mode/health.pm +++ b/src/cloud/azure/integration/servicebus/mode/health.pm @@ -55,22 +55,22 @@ Set resource group (Required if resource's name is used). =item B<--warning-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{status}, %{summary} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} =~ /^Unavailable$/'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} =~ /^Unavailable$/'). You can use the following variables: %{status}, %{summary} =item B<--unknown-status> -Set unknown threshold for status (Default: '%{status} =~ /^Unknown$/'). +Define the conditions to match for the status to be UNKNOWN (Default: '%{status} =~ /^Unknown$/'). You can use the following variables: %{status}, %{summary} =item B<--ok-status> -Set ok threshold for status (Default: '%{status} =~ /^Available$/'). +Define the conditions to match for the status to be OK (Default: '%{status} =~ /^Available$/'). You can use the following variables: %{status}, %{summary} =back diff --git a/src/cloud/azure/management/costs/mode/budgets.pm b/src/cloud/azure/management/costs/mode/budgets.pm index 6aa3095cf..158f724ae 100644 --- a/src/cloud/azure/management/costs/mode/budgets.pm +++ b/src/cloud/azure/management/costs/mode/budgets.pm @@ -206,7 +206,7 @@ Set warning threshold for cost). =item B<--critical-cost> -Set critical threshold for status. +Define the conditions to match for the status to be CRITICAL. =item B<--units> Unit of thresholds (Default: '%') ('%', 'count'). diff --git a/src/cloud/azure/management/monitor/mode/getmetrics.pm b/src/cloud/azure/management/monitor/mode/getmetrics.pm index f58b574ce..5805bfb25 100644 --- a/src/cloud/azure/management/monitor/mode/getmetrics.pm +++ b/src/cloud/azure/management/monitor/mode/getmetrics.pm @@ -247,11 +247,11 @@ Syntax example: =item B<--warning-metric> -Threshold warning. +Warning threshold. =item B<--critical-metric> -Threshold critical. +Critical threshold. =back diff --git a/src/cloud/azure/management/recovery/mode/backupitemsstatus.pm b/src/cloud/azure/management/recovery/mode/backupitemsstatus.pm index 4c5fbaa63..51237defd 100644 --- a/src/cloud/azure/management/recovery/mode/backupitemsstatus.pm +++ b/src/cloud/azure/management/recovery/mode/backupitemsstatus.pm @@ -201,22 +201,22 @@ Example: --filter-counters='^total-completed$' =item B<--warning-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{precheck_status}, %{last_backup_status}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: '%{precheck_status} ne "Passed" || %{last_backup_status} eq "Failed"'). +Define the conditions to match for the status to be CRITICAL (Default: '%{precheck_status} ne "Passed" || %{last_backup_status} eq "Failed"'). You can use the following variables: %{precheck_status}, %{last_backup_status}, %{display} =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'total-completed', 'total-failed', 'total-inprogress'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'total-completed', 'total-failed', 'total-inprogress'. =back diff --git a/src/cloud/azure/management/recovery/mode/backupjobsstatus.pm b/src/cloud/azure/management/recovery/mode/backupjobsstatus.pm index b9f873a80..8c879b58a 100644 --- a/src/cloud/azure/management/recovery/mode/backupjobsstatus.pm +++ b/src/cloud/azure/management/recovery/mode/backupjobsstatus.pm @@ -218,22 +218,22 @@ Default: all existing job statuses are displayed. =item B<--warning-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{status}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} eq "Failed"'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} eq "Failed"'). You can use the following variables: %{status}, %{display} =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'total-completed', 'total-failed', 'total-inprogress'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'total-completed', 'total-failed', 'total-inprogress'. =back diff --git a/src/cloud/azure/management/resource/mode/deploymentsstatus.pm b/src/cloud/azure/management/resource/mode/deploymentsstatus.pm index 35501a437..ecb5e21d8 100644 --- a/src/cloud/azure/management/resource/mode/deploymentsstatus.pm +++ b/src/cloud/azure/management/resource/mode/deploymentsstatus.pm @@ -178,22 +178,22 @@ Example: --filter-counters='^total-succeeded$' =item B<--warning-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{status}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} ne "Succeeded"'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} ne "Succeeded"'). You can use the following variables: %{status}, %{display} =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'total-succeeded', 'total-failed'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'total-succeeded', 'total-failed'. =back diff --git a/src/cloud/azure/management/resource/mode/items.pm b/src/cloud/azure/management/resource/mode/items.pm index c7d53038a..65d9ed9f1 100644 --- a/src/cloud/azure/management/resource/mode/items.pm +++ b/src/cloud/azure/management/resource/mode/items.pm @@ -173,12 +173,12 @@ Filter resource name (Can be a regexp). =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'total', 'compute', 'storage', 'network'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'total', 'compute', 'storage', 'network'. =back diff --git a/src/cloud/azure/network/appgateway/mode/health.pm b/src/cloud/azure/network/appgateway/mode/health.pm index b1102c89d..e1843ec40 100644 --- a/src/cloud/azure/network/appgateway/mode/health.pm +++ b/src/cloud/azure/network/appgateway/mode/health.pm @@ -55,22 +55,22 @@ Set resource group (Required if resource's name is used). =item B<--warning-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{status}, %{summary} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} =~ /^Unavailable$/'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} =~ /^Unavailable$/'). You can use the following variables: %{status}, %{summary} =item B<--unknown-status> -Set unknown threshold for status (Default: '%{status} =~ /^Unknown$/'). +Define the conditions to match for the status to be UNKNOWN (Default: '%{status} =~ /^Unknown$/'). You can use the following variables: %{status}, %{summary} =item B<--ok-status> -Set ok threshold for status (Default: '%{status} =~ /^Available$/'). +Define the conditions to match for the status to be OK (Default: '%{status} =~ /^Available$/'). You can use the following variables: %{status}, %{summary} =back diff --git a/src/cloud/azure/network/expressroute/mode/circuitstatus.pm b/src/cloud/azure/network/expressroute/mode/circuitstatus.pm index 68df47ea8..2abd5753c 100644 --- a/src/cloud/azure/network/expressroute/mode/circuitstatus.pm +++ b/src/cloud/azure/network/expressroute/mode/circuitstatus.pm @@ -140,12 +140,12 @@ Filter circuit name (Can be a regexp). =item B<--warning-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{circuit_status}, %{provider_status}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: '%{circuit_status} ne "Enabled" || %{provider_status} ne "Provisioned"'). +Define the conditions to match for the status to be CRITICAL (Default: '%{circuit_status} ne "Enabled" || %{provider_status} ne "Provisioned"'). You can use the following variables: %{circuit_status}, %{provider_status}, %{display} =back diff --git a/src/cloud/azure/network/expressroute/mode/health.pm b/src/cloud/azure/network/expressroute/mode/health.pm index 2c956ca4c..d7d6faf22 100644 --- a/src/cloud/azure/network/expressroute/mode/health.pm +++ b/src/cloud/azure/network/expressroute/mode/health.pm @@ -55,22 +55,22 @@ Set resource group (Required if resource's name is used). =item B<--warning-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{status}, %{summary} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} =~ /^Unavailable$/'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} =~ /^Unavailable$/'). You can use the following variables: %{status}, %{summary} =item B<--unknown-status> -Set unknown threshold for status (Default: '%{status} =~ /^Unknown$/'). +Define the conditions to match for the status to be UNKNOWN (Default: '%{status} =~ /^Unknown$/'). You can use the following variables: %{status}, %{summary} =item B<--ok-status> -Set ok threshold for status (Default: '%{status} =~ /^Available$/'). +Define the conditions to match for the status to be OK (Default: '%{status} =~ /^Available$/'). You can use the following variables: %{status}, %{summary} =back diff --git a/src/cloud/azure/network/frontdoor/mode/health.pm b/src/cloud/azure/network/frontdoor/mode/health.pm index 8fd7b28fa..b03ddf340 100644 --- a/src/cloud/azure/network/frontdoor/mode/health.pm +++ b/src/cloud/azure/network/frontdoor/mode/health.pm @@ -53,22 +53,22 @@ Set resource group (Required if resource's name is used). =item B<--warning-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). Special variables that can be used: %{status}, %{summary}. =item B<--critical-status> -Set critical threshold for status (Default: '%{status} =~ /^Unavailable$/'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} =~ /^Unavailable$/'). Special variables that can be used: %{status}, %{summary}. =item B<--unknown-status> -Set unknown threshold for status (Default: '%{status} =~ /^Unknown$/'). +Define the conditions to match for the status to be UNKNOWN (Default: '%{status} =~ /^Unknown$/'). Special variables that can be used: %{status}, %{summary}. =item B<--ok-status> -Set ok threshold for status (Default: '%{status} =~ /^Available$/'). +Define the conditions to match for the status to be OK (Default: '%{status} =~ /^Available$/'). Special variables that can be used: %{status}, %{summary}. =back diff --git a/src/cloud/azure/network/trafficmanager/mode/health.pm b/src/cloud/azure/network/trafficmanager/mode/health.pm index b20d73eee..5e0621831 100644 --- a/src/cloud/azure/network/trafficmanager/mode/health.pm +++ b/src/cloud/azure/network/trafficmanager/mode/health.pm @@ -53,22 +53,22 @@ Set resource group (Required if resource's name is used). =item B<--warning-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). Special variables that can be used: %{status}, %{summary}. =item B<--critical-status> -Set critical threshold for status (Default: '%{status} =~ /^Unavailable$/'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} =~ /^Unavailable$/'). Special variables that can be used: %{status}, %{summary}. =item B<--unknown-status> -Set unknown threshold for status (Default: '%{status} =~ /^Unknown$/'). +Define the conditions to match for the status to be UNKNOWN (Default: '%{status} =~ /^Unknown$/'). Special variables that can be used: %{status}, %{summary}. =item B<--ok-status> -Set ok threshold for status (Default: '%{status} =~ /^Available$/'). +Define the conditions to match for the status to be OK (Default: '%{status} =~ /^Available$/'). Special variables that can be used: %{status}, %{summary}. =back diff --git a/src/cloud/azure/network/virtualnetwork/mode/peeringsstatus.pm b/src/cloud/azure/network/virtualnetwork/mode/peeringsstatus.pm index f63daa001..0e5ea2a79 100644 --- a/src/cloud/azure/network/virtualnetwork/mode/peeringsstatus.pm +++ b/src/cloud/azure/network/virtualnetwork/mode/peeringsstatus.pm @@ -157,12 +157,12 @@ Filter peering name (Can be a regexp). =item B<--warning-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{peering_state}, %{provisioning_state}, %{peer}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: '%{peering_state} ne "Connected" || %{provisioning_state} ne "Succeeded"'). +Define the conditions to match for the status to be CRITICAL (Default: '%{peering_state} ne "Connected" || %{provisioning_state} ne "Succeeded"'). You can use the following variables: %{peering_state}, %{provisioning_state}, %{peer}, %{display} =back diff --git a/src/cloud/azure/network/vpngateway/mode/health.pm b/src/cloud/azure/network/vpngateway/mode/health.pm index 079014d60..526b58be1 100644 --- a/src/cloud/azure/network/vpngateway/mode/health.pm +++ b/src/cloud/azure/network/vpngateway/mode/health.pm @@ -55,22 +55,22 @@ Set resource group (Required if resource's name is used). =item B<--warning-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{status}, %{summary} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} =~ /^Unavailable$/'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} =~ /^Unavailable$/'). You can use the following variables: %{status}, %{summary} =item B<--unknown-status> -Set unknown threshold for status (Default: '%{status} =~ /^Unknown$/'). +Define the conditions to match for the status to be UNKNOWN (Default: '%{status} =~ /^Unknown$/'). You can use the following variables: %{status}, %{summary} =item B<--ok-status> -Set ok threshold for status (Default: '%{status} =~ /^Available$/'). +Define the conditions to match for the status to be OK (Default: '%{status} =~ /^Available$/'). You can use the following variables: %{status}, %{summary} =back diff --git a/src/cloud/azure/network/vpngateway/mode/vpngatewaystatus.pm b/src/cloud/azure/network/vpngateway/mode/vpngatewaystatus.pm index 501591669..e8449115b 100644 --- a/src/cloud/azure/network/vpngateway/mode/vpngatewaystatus.pm +++ b/src/cloud/azure/network/vpngateway/mode/vpngatewaystatus.pm @@ -135,12 +135,12 @@ Filter vpn name (Can be a regexp). =item B<--warning-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{provisioning_state}, %{gateway_type}, %{vpn_type}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: '%{provisioning_state} ne "Succeeded"'). +Define the conditions to match for the status to be CRITICAL (Default: '%{provisioning_state} ne "Succeeded"'). You can use the following variables: %{provisioning_state}, %{gateway_type}, %{vpn_type}, %{display} =back diff --git a/src/cloud/azure/web/appserviceplan/mode/health.pm b/src/cloud/azure/web/appserviceplan/mode/health.pm index 5efc7b50c..e05e5500a 100644 --- a/src/cloud/azure/web/appserviceplan/mode/health.pm +++ b/src/cloud/azure/web/appserviceplan/mode/health.pm @@ -55,22 +55,22 @@ Set resource group (Required if resource's name is used). =item B<--warning-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{status}, %{summary} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} =~ /^Unavailable$/'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} =~ /^Unavailable$/'). You can use the following variables: %{status}, %{summary} =item B<--unknown-status> -Set unknown threshold for status (Default: '%{status} =~ /^Unknown$/'). +Define the conditions to match for the status to be UNKNOWN (Default: '%{status} =~ /^Unknown$/'). You can use the following variables: %{status}, %{summary} =item B<--ok-status> -Set ok threshold for status (Default: '%{status} =~ /^Available$/'). +Define the conditions to match for the status to be OK (Default: '%{status} =~ /^Available$/'). You can use the following variables: %{status}, %{summary} =back diff --git a/src/cloud/azure/web/signalr/mode/health.pm b/src/cloud/azure/web/signalr/mode/health.pm index 2b0eba47f..207685df5 100644 --- a/src/cloud/azure/web/signalr/mode/health.pm +++ b/src/cloud/azure/web/signalr/mode/health.pm @@ -53,22 +53,22 @@ Set resource group (Required if resource's name is used). =item B<--warning-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{status}, %{summary} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} =~ /^Unavailable$/'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} =~ /^Unavailable$/'). You can use the following variables: %{status}, %{summary} =item B<--unknown-status> -Set unknown threshold for status (Default: '%{status} =~ /^Unknown$/'). +Define the conditions to match for the status to be UNKNOWN (Default: '%{status} =~ /^Unknown$/'). You can use the following variables: %{status}, %{summary} =item B<--ok-status> -Set ok threshold for status (Default: '%{status} =~ /^Available$/'). +Define the conditions to match for the status to be OK (Default: '%{status} =~ /^Available$/'). You can use the following variables: %{status}, %{summary} =back diff --git a/src/cloud/cadvisor/restapi/mode/containerusage.pm b/src/cloud/cadvisor/restapi/mode/containerusage.pm index a2e60303d..e9d0f2658 100644 --- a/src/cloud/cadvisor/restapi/mode/containerusage.pm +++ b/src/cloud/cadvisor/restapi/mode/containerusage.pm @@ -249,13 +249,13 @@ Example: --filter-counters='cpu' =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'read-iops', 'write-iops', 'traffic-in', 'traffic-out', 'cpu' (%), 'memory' (%). =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'read-iops', 'write-iops', 'traffic-in', 'traffic-out', 'cpu' (%), 'memory' (%). diff --git a/src/cloud/cadvisor/restapi/mode/diskio.pm b/src/cloud/cadvisor/restapi/mode/diskio.pm index 4e5c0a1bc..b660f2503 100644 --- a/src/cloud/cadvisor/restapi/mode/diskio.pm +++ b/src/cloud/cadvisor/restapi/mode/diskio.pm @@ -201,12 +201,12 @@ Example: --filter-counters='^diskio-read$' =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'diskio-read', 'diskio-write'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'diskio-read', 'diskio-write'. =back diff --git a/src/cloud/cadvisor/restapi/mode/traffic.pm b/src/cloud/cadvisor/restapi/mode/traffic.pm index f86890e22..44d02ebb0 100644 --- a/src/cloud/cadvisor/restapi/mode/traffic.pm +++ b/src/cloud/cadvisor/restapi/mode/traffic.pm @@ -193,12 +193,12 @@ Example: --filter-counters='^traffic-in$' =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'traffic-in', 'traffic-out'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'traffic-in', 'traffic-out'. =back diff --git a/src/cloud/cloudfoundry/restapi/mode/appsstate.pm b/src/cloud/cloudfoundry/restapi/mode/appsstate.pm index fdbc719f3..47219ccd5 100644 --- a/src/cloud/cloudfoundry/restapi/mode/appsstate.pm +++ b/src/cloud/cloudfoundry/restapi/mode/appsstate.pm @@ -154,20 +154,20 @@ Filter apps name (can be a regexp). =item B<--warning-state> -Threshold warning. +Warning threshold. =item B<--critical-state> -Threshold critical (Default: '%{state} !~ /STARTED/i'). +Critical threshold (Default: '%{state} !~ /STARTED/i'). =item B<--warning-*> -Threshold warning for apps count based +Warning threshold for apps count based on state (Can be: 'started', 'stopped') =item B<--critical-*> -Threshold critical for apps count based +Critical threshold for apps count based on state (Can be: 'started', 'stopped'). =back diff --git a/src/cloud/cloudfoundry/restapi/mode/instancesstate.pm b/src/cloud/cloudfoundry/restapi/mode/instancesstate.pm index c88936a83..62c126445 100644 --- a/src/cloud/cloudfoundry/restapi/mode/instancesstate.pm +++ b/src/cloud/cloudfoundry/restapi/mode/instancesstate.pm @@ -167,28 +167,28 @@ App guid to look for. =item B<--warning-app-state> -Threshold warning for app state. +Warning threshold for app state. =item B<--critical-app-state> -Threshold critical for app state (Default: '%{state} !~ /STARTED/i'). +Critical threshold for app state (Default: '%{state} !~ /STARTED/i'). =item B<--warning-instance-state> -Threshold warning for instances state. +Warning threshold for instances state. =item B<--critical-instance-state> -Threshold critical for instances state (Default: '%{state} !~ /RUNNING/i'). +Critical threshold for instances state (Default: '%{state} !~ /RUNNING/i'). =item B<--warning-*> -Threshold warning for instances count based +Warning threshold for instances count based on state (Can be: 'running', 'stopped', 'crashed') =item B<--critical-*> -Threshold critical for instances count based +Critical threshold for instances count based on state (Can be: 'running', 'stopped', 'crashed'). =back diff --git a/src/cloud/docker/restapi/mode/containerusage.pm b/src/cloud/docker/restapi/mode/containerusage.pm index ffed712f4..3aea0e6af 100644 --- a/src/cloud/docker/restapi/mode/containerusage.pm +++ b/src/cloud/docker/restapi/mode/containerusage.pm @@ -345,12 +345,12 @@ Example: --filter-counters='^container-status$' =item B<--warning-container-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{name}, %{state}, %{health}. =item B<--critical-container-status> -Set critical threshold for status. +Define the conditions to match for the status to be CRITICAL. You can use the following variables: %{name}, %{state}, %{health}. =item B<--warning-*> B<--critical-*> diff --git a/src/cloud/docker/restapi/mode/nodestatus.pm b/src/cloud/docker/restapi/mode/nodestatus.pm index 594c725e0..ab3ff2bc0 100644 --- a/src/cloud/docker/restapi/mode/nodestatus.pm +++ b/src/cloud/docker/restapi/mode/nodestatus.pm @@ -139,22 +139,22 @@ Check node status. =item B<--warning-node-status> -Set warning threshold for status (Default: -) +Define the conditions to match for the status to be WARNING (Default: -) You can use the following variables: %{display}, %{status}, %{manager_status}. =item B<--critical-node-status> -Set critical threshold for status (Default: '%{status} !~ /ready/ || %{manager_status} !~ /reachable|-/'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} !~ /ready/ || %{manager_status} !~ /reachable|-/'). You can use the following variables: %{display}, %{status}, %{manager_status}. =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'containers-running', 'containers-paused', 'containers-stopped'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'containers-running', 'containers-paused', 'containers-stopped'., =back diff --git a/src/cloud/docker/restapi/mode/servicestatus.pm b/src/cloud/docker/restapi/mode/servicestatus.pm index 2e0a7d81f..874aadb69 100644 --- a/src/cloud/docker/restapi/mode/servicestatus.pm +++ b/src/cloud/docker/restapi/mode/servicestatus.pm @@ -155,17 +155,17 @@ Filter service by service name (can be a regexp). =item B<--unknown-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{service_id}, %{task_id}, %{service_name}, %{node_name}, %{node_id}, %{desired_state}, %{state_message}, %{container_id}. =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{service_id}, %{task_id}, %{service_name}, %{node_name}, %{node_id}, %{desired_state}, %{state_message}, %{container_id}. =item B<--critical-status> -Set critical threshold for status (Default: '%{desired_state} ne %{state} and %{state} !~ /complete|preparing|assigned/'). +Define the conditions to match for the status to be CRITICAL (Default: '%{desired_state} ne %{state} and %{state} !~ /complete|preparing|assigned/'). You can use the following variables: %{service_id}, %{task_id}, %{service_name}, %{node_name}, %{node_id}, %{desired_state}, %{state_message}, %{container_id}. =item B<--warning-*> B<--critical-*> diff --git a/src/cloud/google/gcp/management/stackdriver/mode/getmetrics.pm b/src/cloud/google/gcp/management/stackdriver/mode/getmetrics.pm index 688a5b9b4..1c2063336 100644 --- a/src/cloud/google/gcp/management/stackdriver/mode/getmetrics.pm +++ b/src/cloud/google/gcp/management/stackdriver/mode/getmetrics.pm @@ -237,11 +237,11 @@ Can be called multiple times. =item B<--warning-metric> -Threshold warning. +Warning threshold. =item B<--critical-metric> -Threshold critical. +Critical threshold. =item B<--extra-filter> diff --git a/src/cloud/ibm/softlayer/mode/events.pm b/src/cloud/ibm/softlayer/mode/events.pm index be25c11fe..13ee7cd17 100644 --- a/src/cloud/ibm/softlayer/mode/events.pm +++ b/src/cloud/ibm/softlayer/mode/events.pm @@ -198,24 +198,24 @@ Filter events status (Default: 'Active') =item B<--warning-event> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{id}, %{subject}, %{status}, %{items}, %{start_date}, %{since_start}, %{end_date}, %{since_end}. =item B<--critical-event> -Set critical threshold for status (Default: '%{status} =~ /Active/ && %{items} > 0'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} =~ /Active/ && %{items} > 0'). You can use the following variables: %{id}, %{subject}, %{status}, %{items}, %{start_date}, %{since_start}, %{end_date}, %{since_end}. =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'active', 'completed', 'published'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'active', 'completed', 'published'. =back diff --git a/src/cloud/ibm/softlayer/mode/opentickets.pm b/src/cloud/ibm/softlayer/mode/opentickets.pm index 4f6635055..b5146a239 100644 --- a/src/cloud/ibm/softlayer/mode/opentickets.pm +++ b/src/cloud/ibm/softlayer/mode/opentickets.pm @@ -158,21 +158,21 @@ Name of the ticket group (Can be a regexp). =item B<--warning-ticket> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{id}, %{title}, %{priority}, %{create_date}, %{group}, %{since}. =item B<--critical-ticket> -Set critical threshold for status. +Define the conditions to match for the status to be CRITICAL. You can use the following variables: %{id}, %{title}, %{priority}, %{create_date}, %{group}, %{since}. =item B<--warning-open> -Threshold warning for open tickets. +Warning threshold for open tickets. =item B<--critical-open> -Threshold critical for open tickets. +Critical threshold for open tickets. =back diff --git a/src/cloud/iics/restapi/mode/agents.pm b/src/cloud/iics/restapi/mode/agents.pm index 4b29634af..b81cce6e5 100644 --- a/src/cloud/iics/restapi/mode/agents.pm +++ b/src/cloud/iics/restapi/mode/agents.pm @@ -223,32 +223,32 @@ Filter agents if active or not. =item B<--unknown-agent-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{active}, %{readyToRun}, %{id}, %{name} =item B<--warning-agent-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{active}, %{readyToRun}, %{id}, %{name} =item B<--critical-agent-status> -Set critical threshold for status (Default: '%{active} eq "yes" and %{readyToRun} eq "no"'). +Define the conditions to match for the status to be CRITICAL (Default: '%{active} eq "yes" and %{readyToRun} eq "no"'). You can use the following variables: %{active}, %{readyToRun}, %{id}, %{name} =item B<--unknown-engine-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{agentName}, %{appDisplayName}, %{status}, %{desiredStatus} =item B<--warning-engine-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{agentName}, %{appDisplayName}, %{status}, %{desiredStatus} =item B<--critical-engine-status> -Set critical threshold for status. +Define the conditions to match for the status to be CRITICAL. You can use the following variables: %{agentName}, %{appDisplayName}, %{status}, %{desiredStatus} =item B<--warning-*> B<--critical-*> diff --git a/src/cloud/kubernetes/mode/clusterevents.pm b/src/cloud/kubernetes/mode/clusterevents.pm index c16080bd3..f26c0e890 100644 --- a/src/cloud/kubernetes/mode/clusterevents.pm +++ b/src/cloud/kubernetes/mode/clusterevents.pm @@ -204,13 +204,13 @@ Filter namespace (can be a regexp). =item B<--warning-status> -Set warning threshold for status (Default: '%{type} =~ /warning/i') +Define the conditions to match for the status to be WARNING (Default: '%{type} =~ /warning/i') Can use special variables like: %{name}, %{namespace}, %{type}, %{object}, %{message}, %{count}, %{first_seen}, %{last_seen}. =item B<--critical-status> -Set critical threshold for status (Default: '%{type} =~ /error/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{type} =~ /error/i'). Can use special variables like: %{name}, %{namespace}, %{type}, %{object}, %{message}, %{count}, %{first_seen}, %{last_seen}. diff --git a/src/cloud/kubernetes/mode/cronjobstatus.pm b/src/cloud/kubernetes/mode/cronjobstatus.pm index 312ada14a..889c97763 100644 --- a/src/cloud/kubernetes/mode/cronjobstatus.pm +++ b/src/cloud/kubernetes/mode/cronjobstatus.pm @@ -167,13 +167,13 @@ Filter CronJob namespace (can be a regexp). =item B<--warning-status> -Set warning threshold for status (Default: '') +Define the conditions to match for the status to be WARNING (Default: '') You can use the following variables: %{name}, %{namespace}, %{active}, %{last_schedule}. =item B<--critical-status> -Set critical threshold for status (Default: ''). +Define the conditions to match for the status to be CRITICAL (Default: ''). You can use the following variables: %{name}, %{namespace}, %{active}, %{last_schedule}. diff --git a/src/cloud/kubernetes/mode/daemonsetstatus.pm b/src/cloud/kubernetes/mode/daemonsetstatus.pm index 43d672936..557cbffaf 100644 --- a/src/cloud/kubernetes/mode/daemonsetstatus.pm +++ b/src/cloud/kubernetes/mode/daemonsetstatus.pm @@ -185,13 +185,13 @@ Filter DaemonSet namespace (can be a regexp). =item B<--warning-status> -Set warning threshold for status (Default: '%{up_to_date} < %{desired}') +Define the conditions to match for the status to be WARNING (Default: '%{up_to_date} < %{desired}') You can use the following variables: %{name}, %{namespace}, %{desired}, %{current}, %{available}, %{unavailable}, %{up_to_date}, %{ready}, %{misscheduled}. =item B<--critical-status> -Set critical threshold for status (Default: '%{available} < %{desired}'). +Define the conditions to match for the status to be CRITICAL (Default: '%{available} < %{desired}'). You can use the following variables: %{name}, %{namespace}, %{desired}, %{current}, %{available}, %{unavailable}, %{up_to_date}, %{ready}, %{misscheduled}. diff --git a/src/cloud/kubernetes/mode/deploymentstatus.pm b/src/cloud/kubernetes/mode/deploymentstatus.pm index 6f81de707..948014a56 100644 --- a/src/cloud/kubernetes/mode/deploymentstatus.pm +++ b/src/cloud/kubernetes/mode/deploymentstatus.pm @@ -172,13 +172,13 @@ Filter deployment namespace (can be a regexp). =item B<--warning-status> -Set warning threshold for status (Default: '%{up_to_date} < %{desired}') +Define the conditions to match for the status to be WARNING (Default: '%{up_to_date} < %{desired}') You can use the following variables: %{name}, %{namespace}, %{desired}, %{current}, %{available}, %{unavailable}, %{up_to_date}. =item B<--critical-status> -Set critical threshold for status (Default: '%{available} < %{desired}'). +Define the conditions to match for the status to be CRITICAL (Default: '%{available} < %{desired}'). You can use the following variables: %{name}, %{namespace}, %{desired}, %{current}, %{available}, %{unavailable}, %{up_to_date}. diff --git a/src/cloud/kubernetes/mode/nodestatus.pm b/src/cloud/kubernetes/mode/nodestatus.pm index eeefb52b3..a866f2f63 100644 --- a/src/cloud/kubernetes/mode/nodestatus.pm +++ b/src/cloud/kubernetes/mode/nodestatus.pm @@ -146,12 +146,12 @@ Filter node name (can be a regexp). =item B<--warning-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{type}, %{status}, %{reason}, %{message}, %{name}. =item B<--critical-status> -Set critical threshold for status (Default: '(%{type} =~ /Ready/i && %{status} !~ /True/i) || (%{type} =~ /.*Pressure/i && %{status} !~ /False/i)'). +Define the conditions to match for the status to be CRITICAL (Default: '(%{type} =~ /Ready/i && %{status} !~ /True/i) || (%{type} =~ /.*Pressure/i && %{status} !~ /False/i)'). You can use the following variables: %{type}, %{status}, %{reason}, %{message}, %{name}. =back diff --git a/src/cloud/kubernetes/mode/persistentvolumestatus.pm b/src/cloud/kubernetes/mode/persistentvolumestatus.pm index 54bfd7fd0..bfe917029 100644 --- a/src/cloud/kubernetes/mode/persistentvolumestatus.pm +++ b/src/cloud/kubernetes/mode/persistentvolumestatus.pm @@ -115,12 +115,12 @@ Filter persistent volume name (can be a regexp). =item B<--warning-status> -Set warning threshold for status (Default: '') +Define the conditions to match for the status to be WARNING (Default: '') You can use the following variables: %{name}, %{phase}. =item B<--critical-status> -Set critical threshold for status (Default: '%{phase} !~ /Bound|Available|Released/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{phase} !~ /Bound|Available|Released/i'). You can use the following variables: %{name}, %{phase}. =back diff --git a/src/cloud/kubernetes/mode/podstatus.pm b/src/cloud/kubernetes/mode/podstatus.pm index a8c4287f0..7669d811e 100644 --- a/src/cloud/kubernetes/mode/podstatus.pm +++ b/src/cloud/kubernetes/mode/podstatus.pm @@ -304,32 +304,32 @@ Example : --extra-filter='app=mynewapp' =item B<--warning-pod-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{status}, %{name}, %{namespace}. =item B<--critical-pod-status> -Set critical threshold for status (Default: '%{status} !~ /running/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} !~ /running/i'). You can use the following variables: %{status}, %{name}, %{namespace}. =item B<--warning-container-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{status}, %{name}. =item B<--critical-container-status> -Set critical threshold for status (Default: '%{status} !~ /running/i || %{state} !~ /^ready$/'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} !~ /running/i || %{state} !~ /^ready$/'). You can use the following variables: %{status}, %{state}, %{name}. =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'containers-ready', 'total-restarts-count' (count), 'restarts-count' (count). =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'containers-ready', 'total-restarts-count' (count), 'restarts-count' (count). =item B<--units> diff --git a/src/cloud/kubernetes/mode/replicasetstatus.pm b/src/cloud/kubernetes/mode/replicasetstatus.pm index 8ec4b24b6..81fa34c74 100644 --- a/src/cloud/kubernetes/mode/replicasetstatus.pm +++ b/src/cloud/kubernetes/mode/replicasetstatus.pm @@ -152,13 +152,13 @@ Filter ReplicaSet namespace (can be a regexp). =item B<--warning-status> -Set warning threshold for status (Default: '') +Define the conditions to match for the status to be WARNING (Default: '') You can use the following variables: %{name}, %{namespace}, %{desired}, %{current}, %{ready}. =item B<--critical-status> -Set critical threshold for status (Default: '%{ready} < %{desired}'). +Define the conditions to match for the status to be CRITICAL (Default: '%{ready} < %{desired}'). You can use the following variables: %{name}, %{namespace}, %{desired}, %{current}, %{ready}. diff --git a/src/cloud/kubernetes/mode/replicationcontrollerstatus.pm b/src/cloud/kubernetes/mode/replicationcontrollerstatus.pm index bce3cd5af..c3bb4dca0 100644 --- a/src/cloud/kubernetes/mode/replicationcontrollerstatus.pm +++ b/src/cloud/kubernetes/mode/replicationcontrollerstatus.pm @@ -152,13 +152,13 @@ Filter ReplicationController namespace (can be a regexp). =item B<--warning-status> -Set warning threshold for status (Default: '') +Define the conditions to match for the status to be WARNING (Default: '') You can use the following variables: %{name}, %{namespace}, %{desired}, %{current}, %{ready}. =item B<--critical-status> -Set critical threshold for status (Default: '%{ready} < %{desired}'). +Define the conditions to match for the status to be CRITICAL (Default: '%{ready} < %{desired}'). You can use the following variables: %{name}, %{namespace}, %{desired}, %{current}, %{ready}. diff --git a/src/cloud/kubernetes/mode/statefulsetstatus.pm b/src/cloud/kubernetes/mode/statefulsetstatus.pm index 4bdbaa5eb..96df0c115 100644 --- a/src/cloud/kubernetes/mode/statefulsetstatus.pm +++ b/src/cloud/kubernetes/mode/statefulsetstatus.pm @@ -165,13 +165,13 @@ Filter StatefulSet namespace (can be a regexp). =item B<--warning-status> -Set warning threshold for status (Default: '%{up_to_date} < %{desired}') +Define the conditions to match for the status to be WARNING (Default: '%{up_to_date} < %{desired}') You can use the following variables: %{name}, %{namespace}, %{desired}, %{current}, %{up_to_date}, %{ready}. =item B<--critical-status> -Set critical threshold for status (Default: '%{ready} < %{desired}'). +Define the conditions to match for the status to be CRITICAL (Default: '%{ready} < %{desired}'). You can use the following variables: %{name}, %{namespace}, %{desired}, %{current}, %{up_to_date}, %{ready}. diff --git a/src/cloud/microsoft/office365/azuread/mode/directorysizeusage.pm b/src/cloud/microsoft/office365/azuread/mode/directorysizeusage.pm index eb107458d..3b2f5d8fd 100644 --- a/src/cloud/microsoft/office365/azuread/mode/directorysizeusage.pm +++ b/src/cloud/microsoft/office365/azuread/mode/directorysizeusage.pm @@ -135,11 +135,11 @@ Check Azure AD directory size usage/quota. =item B<--warning-usage> -Threshold warning. +Warning threshold. =item B<--critical-usage> -Threshold critical. +Critical threshold. =item B<--units> diff --git a/src/cloud/microsoft/office365/exchange/mode/emailactivity.pm b/src/cloud/microsoft/office365/exchange/mode/emailactivity.pm index 0386a4c9c..5701c850a 100644 --- a/src/cloud/microsoft/office365/exchange/mode/emailactivity.pm +++ b/src/cloud/microsoft/office365/exchange/mode/emailactivity.pm @@ -258,14 +258,14 @@ Filter users. =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'active-users', 'total-send-count' (count), 'total-receive-count' (count), 'total-read-count' (count), 'send-count' (count), 'receive-count' (count), 'read-count' (count). =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'active-users', 'total-send-count' (count), 'total-receive-count' (count), 'total-read-count' (count), 'send-count' (count), 'receive-count' (count), 'read-count' (count). diff --git a/src/cloud/microsoft/office365/exchange/mode/mailboxusage.pm b/src/cloud/microsoft/office365/exchange/mode/mailboxusage.pm index f98aeedc2..2e4b52b1f 100644 --- a/src/cloud/microsoft/office365/exchange/mode/mailboxusage.pm +++ b/src/cloud/microsoft/office365/exchange/mode/mailboxusage.pm @@ -291,25 +291,25 @@ Filter mailboxes. =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'active-mailboxes', 'total-usage-active' (count), 'total-usage-inactive' (count). =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'active-mailboxes', 'total-usage-active' (count), 'total-usage-inactive' (count). =item B<--warning-status> -Set warning threshold for status (Default: '%{used} > %{issue_warning_quota}'). +Define the conditions to match for the status to be WARNING (Default: '%{used} > %{issue_warning_quota}'). You can use the following variables: %{used}, %{issue_warning_quota}, %{prohibit_send_quota}, %{prohibit_send_receive_quota} =item B<--critical-status> -Set critical threshold for status (Default: '%{used} > %{prohibit_send_quota}'). +Define the conditions to match for the status to be CRITICAL (Default: '%{used} > %{prohibit_send_quota}'). You can use the following variables: %{used}, %{issue_warning_quota}, %{prohibit_send_quota}, %{prohibit_send_receive_quota} diff --git a/src/cloud/microsoft/office365/management/mode/appcredentials.pm b/src/cloud/microsoft/office365/management/mode/appcredentials.pm index 344662d5e..7470e3600 100644 --- a/src/cloud/microsoft/office365/management/mode/appcredentials.pm +++ b/src/cloud/microsoft/office365/management/mode/appcredentials.pm @@ -238,22 +238,22 @@ Filter applications (can be a regexp). =item B<--warning-key-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{status}, %{id}, %{app_name}. =item B<--critical-key-status> -Set critical threshold for status (Default: '%{status} =~ /expired/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} =~ /expired/i'). You can use the following variables: %{status}, %{id}, %{app_name}. =item B<--warning-password-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{status}, %{id}, %{app_name}. =item B<--critical-password-status> -Set critical threshold for status (Default: '%{status} =~ /expired/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} =~ /expired/i'). You can use the following variables: %{status}, %{id}, %{app_name}. =item B<--unit> diff --git a/src/cloud/microsoft/office365/management/mode/servicestatus.pm b/src/cloud/microsoft/office365/management/mode/servicestatus.pm index b656f1e58..fb9d19eae 100644 --- a/src/cloud/microsoft/office365/management/mode/servicestatus.pm +++ b/src/cloud/microsoft/office365/management/mode/servicestatus.pm @@ -135,12 +135,12 @@ Filter services (can be a regexp). =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{service_name}, %{status}, %{classification} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} !~ /serviceOperational|serviceRestored/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} !~ /serviceOperational|serviceRestored/i'). You can use the following variables: %{service_name}, %{status}, %{classification} =back diff --git a/src/cloud/microsoft/office365/management/mode/subscriptions.pm b/src/cloud/microsoft/office365/management/mode/subscriptions.pm index 80ab644f8..139c98cfb 100644 --- a/src/cloud/microsoft/office365/management/mode/subscriptions.pm +++ b/src/cloud/microsoft/office365/management/mode/subscriptions.pm @@ -166,12 +166,12 @@ Filter subscriptions by SKU part number (can be a regexp). =item B<--warning-status> -Set warning threshold for status (Default: '%{status} =~ /warning/i'). +Define the conditions to match for the status to be WARNING (Default: '%{status} =~ /warning/i'). You can use the following variables: %{capabilityStatus}, %{skuPartNumber} =item B<--critical-status> -Set critical threshold for status. +Define the conditions to match for the status to be CRITICAL. You can use the following variables: %{capabilityStatus}, %{skuPartNumber} =item B<--warning-*> B<--critical-*> diff --git a/src/cloud/microsoft/office365/onedrive/mode/siteusage.pm b/src/cloud/microsoft/office365/onedrive/mode/siteusage.pm index bae27b29c..accff3495 100644 --- a/src/cloud/microsoft/office365/onedrive/mode/siteusage.pm +++ b/src/cloud/microsoft/office365/onedrive/mode/siteusage.pm @@ -363,7 +363,7 @@ Can be: 'url', 'owner' (can be a regexp). =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'active-sites', 'total-usage-active' (count), 'total-usage-inactive' (count), 'total-file-count-active' (count), 'total-file-count-inactive' (count), @@ -372,7 +372,7 @@ Can be: 'active-sites', =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'active-sites', 'total-usage-active' (count), 'total-usage-inactive' (count), 'total-file-count-active' (count), 'total-file-count-inactive' (count), diff --git a/src/cloud/microsoft/office365/onedrive/mode/usersactivity.pm b/src/cloud/microsoft/office365/onedrive/mode/usersactivity.pm index 322e555c1..7b55254f3 100644 --- a/src/cloud/microsoft/office365/onedrive/mode/usersactivity.pm +++ b/src/cloud/microsoft/office365/onedrive/mode/usersactivity.pm @@ -281,7 +281,7 @@ Filter users. =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'active-users', 'total-viewed-edited-file-count' (count), 'total-synced-file-count' (count), 'total-shared-int-file-count' (count), 'total-shared-ext-file-count' (count), @@ -290,7 +290,7 @@ Can be: 'active-users', =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'active-users', 'total-viewed-edited-file-count' (count), 'total-synced-file-count' (count), 'total-shared-int-file-count' (count), 'total-shared-ext-file-count' (count), diff --git a/src/cloud/microsoft/office365/sharepoint/mode/usersactivity.pm b/src/cloud/microsoft/office365/sharepoint/mode/usersactivity.pm index 8bbfeb966..210f5fe0b 100644 --- a/src/cloud/microsoft/office365/sharepoint/mode/usersactivity.pm +++ b/src/cloud/microsoft/office365/sharepoint/mode/usersactivity.pm @@ -300,7 +300,7 @@ Filter users. =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'active-users', 'total-viewed-edited-file-count' (count), 'total-synced-file-count' (count), 'total-shared-int-file-count' (count), 'total-shared-ext-file-count' (count), @@ -311,7 +311,7 @@ Can be: 'active-users', =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'active-users', 'total-viewed-edited-file-count' (count), 'total-synced-file-count' (count), 'total-shared-int-file-count' (count), 'total-shared-ext-file-count' (count), diff --git a/src/cloud/microsoft/office365/skype/mode/devicesusage.pm b/src/cloud/microsoft/office365/skype/mode/devicesusage.pm index dd83d7d2f..b580656dd 100644 --- a/src/cloud/microsoft/office365/skype/mode/devicesusage.pm +++ b/src/cloud/microsoft/office365/skype/mode/devicesusage.pm @@ -241,14 +241,14 @@ Filter users. =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'active-devices', 'windows' (count), 'ipad' (count), 'iphone' (count), 'android-phone' (count), 'windows-phone' (count). =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'active-devices', 'windows' (count), 'ipad' (count), 'iphone' (count), 'android-phone' (count), 'windows-phone' (count). diff --git a/src/cloud/microsoft/office365/skype/mode/usersactivity.pm b/src/cloud/microsoft/office365/skype/mode/usersactivity.pm index a97eead8d..1ddfa6815 100644 --- a/src/cloud/microsoft/office365/skype/mode/usersactivity.pm +++ b/src/cloud/microsoft/office365/skype/mode/usersactivity.pm @@ -257,7 +257,7 @@ Filter users. =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'active-users', 'total-peer-to-peer-sessions' (count), 'total-organized-conference' (count), 'total-participated-conference' (count), 'peer-to-peer-sessions' (count), 'organized-conference' (count), @@ -265,7 +265,7 @@ Can be: 'active-users', 'total-peer-to-peer-sessions' (count), =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'active-users', 'total-peer-to-peer-sessions' (count), 'total-organized-conference' (count), 'total-participated-conference' (count), 'peer-to-peer-sessions' (count), 'organized-conference' (count), diff --git a/src/cloud/microsoft/office365/teams/mode/devicesusage.pm b/src/cloud/microsoft/office365/teams/mode/devicesusage.pm index 7472f512e..606a9d546 100644 --- a/src/cloud/microsoft/office365/teams/mode/devicesusage.pm +++ b/src/cloud/microsoft/office365/teams/mode/devicesusage.pm @@ -245,14 +245,14 @@ Filter users. =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'active-devices', 'windows' (count), 'mac' (count), 'web' (count), 'ios' (count), 'android-phone' (count), 'windows-phone' (count). =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'active-devices', 'windows' (count), 'mac' (count), 'web' (count), 'ios' (count), 'android-phone' (count), 'windows-phone' (count). diff --git a/src/cloud/microsoft/office365/teams/mode/usersactivity.pm b/src/cloud/microsoft/office365/teams/mode/usersactivity.pm index 4abefad2d..31f7cbcec 100644 --- a/src/cloud/microsoft/office365/teams/mode/usersactivity.pm +++ b/src/cloud/microsoft/office365/teams/mode/usersactivity.pm @@ -277,14 +277,14 @@ Filter users. =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'active-users', 'total-team-chat' (count), 'total-private-chat' (count), 'total-call' (count), 'total-meeting' (count), 'team-chat' (count), 'private-chat' (count), 'call' (count), 'meeting' (count). =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'active-users', 'total-team-chat' (count), 'total-private-chat' (count), 'total-call' (count), 'total-meeting' (count), 'team-chat' (count), 'private-chat' (count), 'call' (count), 'meeting' (count). diff --git a/src/cloud/nutanix/snmp/mode/clusterusage.pm b/src/cloud/nutanix/snmp/mode/clusterusage.pm index 9ef652817..8310e6a9c 100644 --- a/src/cloud/nutanix/snmp/mode/clusterusage.pm +++ b/src/cloud/nutanix/snmp/mode/clusterusage.pm @@ -236,22 +236,22 @@ Example: --filter-counters='^usage$' =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{status}, %{display} =item B<--critical-status> -Set critical threshold for status. +Define the conditions to match for the status to be CRITICAL. You can use the following variables: %{status}, %{display} =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'usage', 'avg-latency', 'iops'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'usage', 'avg-latency', 'iops'. =item B<--units> diff --git a/src/cloud/nutanix/snmp/mode/containerusage.pm b/src/cloud/nutanix/snmp/mode/containerusage.pm index 54ebe52b4..2e6867b5e 100644 --- a/src/cloud/nutanix/snmp/mode/containerusage.pm +++ b/src/cloud/nutanix/snmp/mode/containerusage.pm @@ -227,12 +227,12 @@ Filter container name (can be a regexp). =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'usage', 'avg-latency', 'iops'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'usage', 'avg-latency', 'iops'. =item B<--units> diff --git a/src/cloud/nutanix/snmp/mode/diskusage.pm b/src/cloud/nutanix/snmp/mode/diskusage.pm index 9ddd7806c..975e28be0 100644 --- a/src/cloud/nutanix/snmp/mode/diskusage.pm +++ b/src/cloud/nutanix/snmp/mode/diskusage.pm @@ -353,22 +353,22 @@ Filter controllervm name (can be a regexp). =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{state}, %{crtName}, %{diskId} =item B<--critical-status> -Set critical threshold for status. +Define the conditions to match for the status to be CRITICAL. You can use the following variables: %{state}, %{crtName}, %{diskId} =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'usage', 'inodes' (%), 'avg-latency', 'iops'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'usage', 'inodes' (%), 'avg-latency', 'iops'. =item B<--units> diff --git a/src/cloud/nutanix/snmp/mode/hypervisorusage.pm b/src/cloud/nutanix/snmp/mode/hypervisorusage.pm index 5d19ed6e3..a27d5833b 100644 --- a/src/cloud/nutanix/snmp/mode/hypervisorusage.pm +++ b/src/cloud/nutanix/snmp/mode/hypervisorusage.pm @@ -228,13 +228,13 @@ Filter hypervisor name (can be a regexp). =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'memory' (%), 'avg-latency', 'read-iops', 'write-iops', 'cpu' (%), 'vm-count'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'memory' (%), 'avg-latency', 'read-iops', 'write-iops', 'cpu' (%), 'vm-count'. diff --git a/src/cloud/nutanix/snmp/mode/storagepoolusage.pm b/src/cloud/nutanix/snmp/mode/storagepoolusage.pm index 6d9bf48f9..851698354 100644 --- a/src/cloud/nutanix/snmp/mode/storagepoolusage.pm +++ b/src/cloud/nutanix/snmp/mode/storagepoolusage.pm @@ -228,12 +228,12 @@ Filter storage pool name (can be a regexp). =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'usage', 'avg-latency', 'iops'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'usage', 'avg-latency', 'iops'. =item B<--units> diff --git a/src/cloud/nutanix/snmp/mode/vmusage.pm b/src/cloud/nutanix/snmp/mode/vmusage.pm index 560dd15fc..66cb11be7 100644 --- a/src/cloud/nutanix/snmp/mode/vmusage.pm +++ b/src/cloud/nutanix/snmp/mode/vmusage.pm @@ -280,13 +280,13 @@ You can use the following variables: %{vmPowerState}. =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'avg-latency', 'read-iops', 'write-iops', 'cpu' (%), 'memory' (%s), 'traffic-in', 'traffic-out'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'avg-latency', 'read-iops', 'write-iops', 'cpu' (%), 'memory' (%s), 'traffic-in', 'traffic-out'. diff --git a/src/cloud/outscale/mode/clientgateways.pm b/src/cloud/outscale/mode/clientgateways.pm index 77b15619f..2f2cc02c3 100644 --- a/src/cloud/outscale/mode/clientgateways.pm +++ b/src/cloud/outscale/mode/clientgateways.pm @@ -174,17 +174,17 @@ Client gateway tags to be used for the name (Default: 'name'). =item B<--unknown-cg-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{state}, %{cgName} =item B<--warning-cg-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{state}, %{cgName} =item B<--critical-cg-status> -Set critical threshold for status. +Define the conditions to match for the status to be CRITICAL. You can use the following variables: %{state}, %{cgName} =item B<--warning-*> B<--critical-*> diff --git a/src/cloud/outscale/mode/internetservices.pm b/src/cloud/outscale/mode/internetservices.pm index 661ea1373..feeb88fc4 100644 --- a/src/cloud/outscale/mode/internetservices.pm +++ b/src/cloud/outscale/mode/internetservices.pm @@ -151,17 +151,17 @@ Internet service tag to be used for the name (Default: 'name'). =item B<--unknown-internet-service-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{state}, %{internetServiceName} =item B<--warning-internet-service-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{state}, %{internetServiceName} =item B<--critical-internet-service-status> -Set critical threshold for status. +Define the conditions to match for the status to be CRITICAL. You can use the following variables: %{state}, %{internetServiceName} =item B<--warning-*> B<--critical-*> diff --git a/src/cloud/outscale/mode/loadbalancers.pm b/src/cloud/outscale/mode/loadbalancers.pm index 2c78ebcea..4790b768c 100644 --- a/src/cloud/outscale/mode/loadbalancers.pm +++ b/src/cloud/outscale/mode/loadbalancers.pm @@ -202,17 +202,17 @@ Virtual machine tags to used for the name (Default: 'name'). =item B<--unknown-vm-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{state}, %{vmName} =item B<--warning-vm-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{state}, %{vmName} =item B<--critical-vm-status> -Set critical threshold for status. +Define the conditions to match for the status to be CRITICAL. You can use the following variables: %{state}, %{vmName} =item B<--warning-*> B<--critical-*> diff --git a/src/cloud/outscale/mode/natservices.pm b/src/cloud/outscale/mode/natservices.pm index c925fbf7b..82de0d6c7 100644 --- a/src/cloud/outscale/mode/natservices.pm +++ b/src/cloud/outscale/mode/natservices.pm @@ -151,17 +151,17 @@ Nat service tag to be used for the name (Default: 'name'). =item B<--unknown-nat-service-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{state}, %{natName} =item B<--warning-nat-service-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{state}, %{natName} =item B<--critical-nat-service-status> -Set critical threshold for status. +Define the conditions to match for the status to be CRITICAL. You can use the following variables: %{state}, %{natName} =item B<--warning-*> B<--critical-*> diff --git a/src/cloud/outscale/mode/nets.pm b/src/cloud/outscale/mode/nets.pm index a27a062f5..4d6062991 100644 --- a/src/cloud/outscale/mode/nets.pm +++ b/src/cloud/outscale/mode/nets.pm @@ -144,17 +144,17 @@ Nets tag to be used for the name (Default: 'name'). =item B<--unknown-net-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{state}, %{netName} =item B<--warning-net-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{state}, %{netName} =item B<--critical-net-status> -Set critical threshold for status. +Define the conditions to match for the status to be CRITICAL. You can use the following variables: %{state}, %{netName} =item B<--warning-*> B<--critical-*> diff --git a/src/cloud/outscale/mode/quotas.pm b/src/cloud/outscale/mode/quotas.pm index e7afac10e..ef64a0f83 100644 --- a/src/cloud/outscale/mode/quotas.pm +++ b/src/cloud/outscale/mode/quotas.pm @@ -176,17 +176,17 @@ Nets tag to be used for the name (Default: 'name'). =item B<--unknown-net-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{state}, %{netName} =item B<--warning-net-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{state}, %{netName} =item B<--critical-net-status> -Set critical threshold for status. +Define the conditions to match for the status to be CRITICAL. You can use the following variables: %{state}, %{netName} =item B<--warning-*> B<--critical-*> diff --git a/src/cloud/outscale/mode/subnets.pm b/src/cloud/outscale/mode/subnets.pm index 8df7d2b70..5f17e0e2b 100644 --- a/src/cloud/outscale/mode/subnets.pm +++ b/src/cloud/outscale/mode/subnets.pm @@ -189,17 +189,17 @@ Subnet tags to be used for the name (Default: 'name'). =item B<--unknown-subnet-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{state}, %{subnetName} =item B<--warning-subnet-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{state}, %{subnetName} =item B<--critical-subnet-status> -Set critical threshold for status. +Define the conditions to match for the status to be CRITICAL. You can use the following variables: %{state}, %{subnetName} =item B<--warning-*> B<--critical-*> diff --git a/src/cloud/outscale/mode/virtualgateways.pm b/src/cloud/outscale/mode/virtualgateways.pm index 20c72f2ef..0efc407fd 100644 --- a/src/cloud/outscale/mode/virtualgateways.pm +++ b/src/cloud/outscale/mode/virtualgateways.pm @@ -174,17 +174,17 @@ Virtual gateway tag to be used for the name (Default: 'name'). =item B<--unknown-vg-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{state}, %{vgName} =item B<--warning-vg-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{state}, %{vgName} =item B<--critical-vg-status> -Set critical threshold for status. +Define the conditions to match for the status to be CRITICAL. You can use the following variables: %{state}, %{vgName} =item B<--warning-*> B<--critical-*> diff --git a/src/cloud/outscale/mode/vms.pm b/src/cloud/outscale/mode/vms.pm index 864138057..54b164d59 100644 --- a/src/cloud/outscale/mode/vms.pm +++ b/src/cloud/outscale/mode/vms.pm @@ -151,17 +151,17 @@ Virtual machine tag to be used for the name (Default: 'name'). =item B<--unknown-vm-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{state}, %{vmName} =item B<--warning-vm-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{state}, %{vmName} =item B<--critical-vm-status> -Set critical threshold for status. +Define the conditions to match for the status to be CRITICAL. You can use the following variables: %{state}, %{vmName} =item B<--warning-*> B<--critical-*> diff --git a/src/cloud/outscale/mode/volumes.pm b/src/cloud/outscale/mode/volumes.pm index 8c06d7233..eb939af6b 100644 --- a/src/cloud/outscale/mode/volumes.pm +++ b/src/cloud/outscale/mode/volumes.pm @@ -194,17 +194,17 @@ Virtual machine tags to used for the name (Default: 'name'). =item B<--unknown-volume-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{state}, %{volumeId} =item B<--warning-volume-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{state}, %{volumeId} =item B<--critical-volume-status> -Set critical threshold for status. +Define the conditions to match for the status to be CRITICAL. You can use the following variables: %{state}, %{volumeId} =item B<--warning-*> B<--critical-*> diff --git a/src/cloud/outscale/mode/vpnconnections.pm b/src/cloud/outscale/mode/vpnconnections.pm index 41c292d15..d6b26adef 100644 --- a/src/cloud/outscale/mode/vpnconnections.pm +++ b/src/cloud/outscale/mode/vpnconnections.pm @@ -191,17 +191,17 @@ Vpn connection tag to be used for the name (Default: 'name'). =item B<--unknown-vpn-connection-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{state}, %{vpnName} =item B<--warning-vpn-connection-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{state}, %{vpnName} =item B<--critical-vpn-connection-status> -Set critical threshold for status. +Define the conditions to match for the status to be CRITICAL. You can use the following variables: %{state}, %{vpnName} =item B<--warning-*> B<--critical-*> diff --git a/src/cloud/ovh/restapi/mode/quotausage.pm b/src/cloud/ovh/restapi/mode/quotausage.pm index 3c27ec60d..abbd54a7a 100644 --- a/src/cloud/ovh/restapi/mode/quotausage.pm +++ b/src/cloud/ovh/restapi/mode/quotausage.pm @@ -173,12 +173,12 @@ Filter service name (can be a regexp). =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'usage'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'usage'. =item B<--units> diff --git a/src/cloud/ovh/restapi/mode/sms.pm b/src/cloud/ovh/restapi/mode/sms.pm index f0faea1d6..974d53189 100644 --- a/src/cloud/ovh/restapi/mode/sms.pm +++ b/src/cloud/ovh/restapi/mode/sms.pm @@ -105,12 +105,12 @@ Filter service name (can be a regexp). =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'left'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'left'. =back diff --git a/src/cloud/prometheus/direct/kubernetes/mode/containerstatus.pm b/src/cloud/prometheus/direct/kubernetes/mode/containerstatus.pm index 2f6e05784..f13ac3cea 100644 --- a/src/cloud/prometheus/direct/kubernetes/mode/containerstatus.pm +++ b/src/cloud/prometheus/direct/kubernetes/mode/containerstatus.pm @@ -215,21 +215,21 @@ Filter on a specific pod (Must be a PromQL filter, Default: 'pod=~".*"') =item B<--warning-status> -Set warning threshold for status (Default: '') +Define the conditions to match for the status to be WARNING (Default: '') You can use the following variables: %{status}, %{state}, %{reason} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} !~ /running/ || %{state} !~ /ready/'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} !~ /running/ || %{state} !~ /ready/'). You can use the following variables: %{status}, %{state}, %{reason} =item B<--warning-restarts-count> -Threshold warning for container restarts count. +Warning threshold for container restarts count. =item B<--critical-restarts-count> -Threshold critical for container restarts count. +Critical threshold for container restarts count. =item B<--extra-filter> diff --git a/src/cloud/prometheus/direct/kubernetes/mode/daemonsetstatus.pm b/src/cloud/prometheus/direct/kubernetes/mode/daemonsetstatus.pm index 541adc54d..c8c2b7cf5 100644 --- a/src/cloud/prometheus/direct/kubernetes/mode/daemonsetstatus.pm +++ b/src/cloud/prometheus/direct/kubernetes/mode/daemonsetstatus.pm @@ -239,13 +239,13 @@ Filter on a specific daemonset (Must be a PromQL filter, Default: 'daemonset=~". =item B<--warning-status> -Set warning threshold for status (Default: '%{up_to_date} < %{desired}') +Define the conditions to match for the status to be WARNING (Default: '%{up_to_date} < %{desired}') You can use the following variables: %{display}, %{desired}, %{current}, %{available}, %{unavailable}, %{up_to_date}, %{ready}, %{misscheduled} =item B<--critical-status> -Set critical threshold for status (Default: '%{available} < %{desired}'). +Define the conditions to match for the status to be CRITICAL (Default: '%{available} < %{desired}'). You can use the following variables: %{display}, %{desired}, %{current}, %{available}, %{unavailable}, %{up_to_date}, %{ready}, %{misscheduled} diff --git a/src/cloud/prometheus/direct/kubernetes/mode/deploymentstatus.pm b/src/cloud/prometheus/direct/kubernetes/mode/deploymentstatus.pm index 66a1660b1..2fc94f743 100644 --- a/src/cloud/prometheus/direct/kubernetes/mode/deploymentstatus.pm +++ b/src/cloud/prometheus/direct/kubernetes/mode/deploymentstatus.pm @@ -214,13 +214,13 @@ Filter on a specific deployment (Must be a PromQL filter, Default: 'deployment=~ =item B<--warning-status> -Set warning threshold for status (Default: '%{up_to_date} < %{desired}') +Define the conditions to match for the status to be WARNING (Default: '%{up_to_date} < %{desired}') You can use the following variables: %{display}, %{desired}, %{current}, %{available}, %{unavailable}, %{up_to_date} =item B<--critical-status> -Set critical threshold for status (Default: '%{available} < %{desired}'). +Define the conditions to match for the status to be CRITICAL (Default: '%{available} < %{desired}'). You can use the following variables: %{display}, %{desired}, %{current}, %{available}, %{unavailable}, %{up_to_date} diff --git a/src/cloud/prometheus/direct/kubernetes/mode/namespacestatus.pm b/src/cloud/prometheus/direct/kubernetes/mode/namespacestatus.pm index 7f345647c..e4ed1e809 100644 --- a/src/cloud/prometheus/direct/kubernetes/mode/namespacestatus.pm +++ b/src/cloud/prometheus/direct/kubernetes/mode/namespacestatus.pm @@ -192,12 +192,12 @@ Filter on a specific phase (Must be a PromQL filter, Default: 'phase=~".*"') =item B<--warning-status> -Set warning threshold for status (Default: '') +Define the conditions to match for the status to be WARNING (Default: '') You can use the following variables: %{display}, %{phase}. =item B<--critical-status> -Set critical threshold for status (Default: '%{phase} !~ /Active/'). +Define the conditions to match for the status to be CRITICAL (Default: '%{phase} !~ /Active/'). You can use the following variables: %{display}, %{phase} =item B<--extra-filter> diff --git a/src/cloud/prometheus/direct/kubernetes/mode/nodestatus.pm b/src/cloud/prometheus/direct/kubernetes/mode/nodestatus.pm index c5c1d204a..72348bb1a 100644 --- a/src/cloud/prometheus/direct/kubernetes/mode/nodestatus.pm +++ b/src/cloud/prometheus/direct/kubernetes/mode/nodestatus.pm @@ -251,21 +251,21 @@ Filter on a specific node (Must be a PromQL filter, Default: 'node=~".*"') =item B<--warning-status> -Set warning threshold for status (Default: '') +Define the conditions to match for the status to be WARNING (Default: '') You can use the following variables: %{display}, %{status}, %{schedulable} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} !~ /Ready/ || %{schedulable} != /false/'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} !~ /Ready/ || %{schedulable} != /false/'). You can use the following variables: %{display}, %{status}, %{schedulable} =item B<--warning-allocated-pods> -Threshold warning for pods allocation. +Warning threshold for pods allocation. =item B<--critical-allocated-pods> -Threshold critical for pods allocation. +Critical threshold for pods allocation. =item B<--units> diff --git a/src/cloud/prometheus/direct/nginxingresscontroller/mode/connections.pm b/src/cloud/prometheus/direct/nginxingresscontroller/mode/connections.pm index ef4a66a83..528dc6222 100644 --- a/src/cloud/prometheus/direct/nginxingresscontroller/mode/connections.pm +++ b/src/cloud/prometheus/direct/nginxingresscontroller/mode/connections.pm @@ -157,13 +157,13 @@ Check connections number. =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'reading', 'waiting', 'writing', 'active', 'accepted', 'handled'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'reading', 'waiting', 'writing', 'active', 'accepted', 'handled'. diff --git a/src/cloud/prometheus/direct/nginxingresscontroller/mode/requests.pm b/src/cloud/prometheus/direct/nginxingresscontroller/mode/requests.pm index a4b08f68f..48b2721af 100644 --- a/src/cloud/prometheus/direct/nginxingresscontroller/mode/requests.pm +++ b/src/cloud/prometheus/direct/nginxingresscontroller/mode/requests.pm @@ -165,13 +165,13 @@ Check requests number. =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'requests', 'requests-2xx', 'requests-3xx', 'requests-4xx', 'requests-5xx'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'requests', 'requests-2xx', 'requests-3xx', 'requests-4xx', 'requests-5xx'. diff --git a/src/cloud/prometheus/exporters/cadvisor/mode/cpu.pm b/src/cloud/prometheus/exporters/cadvisor/mode/cpu.pm index c5ae662c2..a92768d7f 100644 --- a/src/cloud/prometheus/exporters/cadvisor/mode/cpu.pm +++ b/src/cloud/prometheus/exporters/cadvisor/mode/cpu.pm @@ -170,12 +170,12 @@ Filter on a specific pod (Must be a PromQL filter, Default: 'pod_name=~".*"') =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'usage', 'throttled'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'usage', 'throttled'. =item B<--extra-filter> diff --git a/src/cloud/prometheus/exporters/cadvisor/mode/load.pm b/src/cloud/prometheus/exporters/cadvisor/mode/load.pm index df9799850..e90d6cade 100644 --- a/src/cloud/prometheus/exporters/cadvisor/mode/load.pm +++ b/src/cloud/prometheus/exporters/cadvisor/mode/load.pm @@ -149,11 +149,11 @@ Filter on a specific pod (Must be a PromQL filter, Default: 'pod_name=~".*"') =item B<--warning-load> -Threshold warning. +Warning threshold. =item B<--critical-load> -Threshold critical. +Critical threshold. =item B<--extra-filter> diff --git a/src/cloud/prometheus/exporters/cadvisor/mode/memory.pm b/src/cloud/prometheus/exporters/cadvisor/mode/memory.pm index 57bc259c5..ffe99bb9e 100644 --- a/src/cloud/prometheus/exporters/cadvisor/mode/memory.pm +++ b/src/cloud/prometheus/exporters/cadvisor/mode/memory.pm @@ -288,12 +288,12 @@ Filter on a specific pod (Must be a PromQL filter, Default: 'pod_name=~".*"') =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'usage', 'working', 'cache' (B), 'rss' (B), 'swap' (B). =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'usage', 'working', 'cache' (B), 'rss' (B), 'swap' (B). =item B<--units> diff --git a/src/cloud/prometheus/exporters/cadvisor/mode/storage.pm b/src/cloud/prometheus/exporters/cadvisor/mode/storage.pm index 8a525d217..a856b796c 100644 --- a/src/cloud/prometheus/exporters/cadvisor/mode/storage.pm +++ b/src/cloud/prometheus/exporters/cadvisor/mode/storage.pm @@ -259,11 +259,11 @@ Thresholds are on free space left. =item B<--warning-usage> -Threshold warning. +Warning threshold. =item B<--critical-usage> -Threshold critical. +Critical threshold. =item B<--extra-filter> diff --git a/src/cloud/prometheus/exporters/cadvisor/mode/taskstate.pm b/src/cloud/prometheus/exporters/cadvisor/mode/taskstate.pm index 47c963d46..7fbdee8d5 100644 --- a/src/cloud/prometheus/exporters/cadvisor/mode/taskstate.pm +++ b/src/cloud/prometheus/exporters/cadvisor/mode/taskstate.pm @@ -189,12 +189,12 @@ Filter on a specific state (Must be a PromQL filter, Default: 'state=~".*"') =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'sleeping', 'running', 'stopped', 'uninterruptible', 'iowaiting'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'sleeping', 'running', 'stopped', 'uninterruptible', 'iowaiting'. =item B<--extra-filter> diff --git a/src/cloud/prometheus/exporters/nodeexporter/mode/cpu.pm b/src/cloud/prometheus/exporters/nodeexporter/mode/cpu.pm index 98c742c48..7b3608581 100644 --- a/src/cloud/prometheus/exporters/nodeexporter/mode/cpu.pm +++ b/src/cloud/prometheus/exporters/nodeexporter/mode/cpu.pm @@ -186,12 +186,12 @@ Filter on a specific cpu (Must be a PromQL filter, Default: 'cpu=~".*"') =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'node-usage', 'cpu-usage'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'node-usage', 'cpu-usage'. =item B<--extra-filter> diff --git a/src/cloud/prometheus/exporters/nodeexporter/mode/cpudetailed.pm b/src/cloud/prometheus/exporters/nodeexporter/mode/cpudetailed.pm index ca0e77b78..8da4b29ec 100644 --- a/src/cloud/prometheus/exporters/nodeexporter/mode/cpudetailed.pm +++ b/src/cloud/prometheus/exporters/nodeexporter/mode/cpudetailed.pm @@ -320,7 +320,7 @@ Filter on a specific type (Must be a PromQL filter, Default: 'mode=~".*"') =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'node-idle', 'node-wait', 'node-interrupt', 'node-nice', 'node-softirq', 'node-steal', 'node-system', 'node-user', 'cpu-idle', 'cpu-wait', 'cpu-interrupt', 'cpu-nice', 'cpu-softirq', @@ -328,7 +328,7 @@ Can be: 'node-idle', 'node-wait', 'node-interrupt', 'node-nice', =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'node-idle', 'node-wait', 'node-interrupt', 'node-nice', 'node-softirq', 'node-steal', 'node-system', 'node-user', 'cpu-idle', 'cpu-wait', 'cpu-interrupt', 'cpu-nice', 'cpu-softirq', diff --git a/src/cloud/prometheus/exporters/nodeexporter/mode/load.pm b/src/cloud/prometheus/exporters/nodeexporter/mode/load.pm index 471dddefe..ad3e1387b 100644 --- a/src/cloud/prometheus/exporters/nodeexporter/mode/load.pm +++ b/src/cloud/prometheus/exporters/nodeexporter/mode/load.pm @@ -161,12 +161,12 @@ Filter on a specific instance (Must be a PromQL filter, Default: 'instance=~".*" =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'load1', 'load5', 'load15'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'load1', 'load5', 'load15'. =item B<--extra-filter> diff --git a/src/cloud/prometheus/exporters/nodeexporter/mode/memory.pm b/src/cloud/prometheus/exporters/nodeexporter/mode/memory.pm index 18072587c..cb9e57f03 100644 --- a/src/cloud/prometheus/exporters/nodeexporter/mode/memory.pm +++ b/src/cloud/prometheus/exporters/nodeexporter/mode/memory.pm @@ -227,12 +227,12 @@ Filter on a specific instance (Must be a PromQL filter, Default: 'instance=~".*" =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'usage', 'buffer', 'cached'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'usage', 'buffer', 'cached'. =item B<--units> diff --git a/src/cloud/prometheus/exporters/nodeexporter/mode/storage.pm b/src/cloud/prometheus/exporters/nodeexporter/mode/storage.pm index a37a16480..baefc54af 100644 --- a/src/cloud/prometheus/exporters/nodeexporter/mode/storage.pm +++ b/src/cloud/prometheus/exporters/nodeexporter/mode/storage.pm @@ -269,11 +269,11 @@ Thresholds are on free space left. =item B<--warning-usage> -Threshold warning. +Warning threshold. =item B<--critical-usage> -Threshold critical. +Critical threshold. =item B<--extra-filter> diff --git a/src/cloud/prometheus/restapi/mode/expression.pm b/src/cloud/prometheus/restapi/mode/expression.pm index c61d04b01..098fc5450 100644 --- a/src/cloud/prometheus/restapi/mode/expression.pm +++ b/src/cloud/prometheus/restapi/mode/expression.pm @@ -261,14 +261,14 @@ Set the global output in case everything is fine for multiple instances =item B<--warning-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). Can use special variables like %{instance} and any other labels you set through --query and --query-range options. =item B<--critical-status> -Set critical threshold for status (Default: ''). +Define the conditions to match for the status to be CRITICAL (Default: ''). Can use special variables like %{instance} and any other labels you set through --query and --query-range options. diff --git a/src/cloud/prometheus/restapi/mode/targetstatus.pm b/src/cloud/prometheus/restapi/mode/targetstatus.pm index d8c920ff4..14ba99f6b 100644 --- a/src/cloud/prometheus/restapi/mode/targetstatus.pm +++ b/src/cloud/prometheus/restapi/mode/targetstatus.pm @@ -206,23 +206,23 @@ Set filter on label (Regexp, can be defined multiple times) (Example: --filter-l =item B<--warning-status> -Set warning threshold for status (Default: '') +Define the conditions to match for the status to be WARNING (Default: '') You can use the following variables: %{display}, %{health}. =item B<--critical-status> -Set critical threshold for status (Default: '%{health} !~ /up/'). +Define the conditions to match for the status to be CRITICAL (Default: '%{health} !~ /up/'). You can use the following variables: %{display}, %{health} =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'active', 'dropped', 'up', 'down', 'unknown'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'active', 'dropped', 'up', 'down', 'unknown'. diff --git a/src/cloud/talend/tmc/mode/remoteengines.pm b/src/cloud/talend/tmc/mode/remoteengines.pm index cdb152a63..25737cf94 100644 --- a/src/cloud/talend/tmc/mode/remoteengines.pm +++ b/src/cloud/talend/tmc/mode/remoteengines.pm @@ -155,17 +155,17 @@ Environment filter (Can be a regexp). =item B<--unknown-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{status}, %{availability}, %{name} =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{status}, %{availability}, %{name} =item B<--critical-status> -Set critical threshold for status (Default: '%{availability} !~ /retired/ and %{status} =~ /unpaired/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{availability} !~ /retired/ and %{status} =~ /unpaired/i'). You can use the following variables: %{status}, %{availability}, %{name} =item B<--warning-*> B<--critical-*> diff --git a/src/cloud/vmware/velocloud/restapi/mode/edgestatus.pm b/src/cloud/vmware/velocloud/restapi/mode/edgestatus.pm index 57b4c4ad2..120ca9145 100644 --- a/src/cloud/vmware/velocloud/restapi/mode/edgestatus.pm +++ b/src/cloud/vmware/velocloud/restapi/mode/edgestatus.pm @@ -127,19 +127,19 @@ Filter edge by name (Can be a regexp). =item B<--unknown-status> -Set unknown threshold for status (Default: '%{edge_state} =~ /NEVER_ACTIVATED/'). +Define the conditions to match for the status to be UNKNOWN (Default: '%{edge_state} =~ /NEVER_ACTIVATED/'). You can use the following variables: %{edge_state}, %{service_state}, %{ha_state}, %{activation_state}. =item B<--warning-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{edge_state}, %{service_state}, %{ha_state}, %{activation_state}. =item B<--critical-status> -Set critical threshold for status (Default: '%{edge_state} !~ /CONNECTED/ && %{edge_state} !~ /NEVER_ACTIVATED/'). +Define the conditions to match for the status to be CRITICAL (Default: '%{edge_state} !~ /CONNECTED/ && %{edge_state} !~ /NEVER_ACTIVATED/'). You can use the following variables: %{edge_state}, %{service_state}, %{ha_state}, %{activation_state}. diff --git a/src/cloud/vmware/velocloud/restapi/mode/linkstatus.pm b/src/cloud/vmware/velocloud/restapi/mode/linkstatus.pm index 5567affbd..c83bf183a 100644 --- a/src/cloud/vmware/velocloud/restapi/mode/linkstatus.pm +++ b/src/cloud/vmware/velocloud/restapi/mode/linkstatus.pm @@ -185,7 +185,7 @@ Filter link by name (Can be a regexp). =item B<--unknown-status> -Set unknown threshold for status (Default: ''). +Define the conditions to match for the status to be UNKNOWN (Default: ''). You can use the following variables: %{state}, %{vpn_state}, %{backup_state}. =item B<--warning-*> B<--critical-*> diff --git a/src/database/couchdb/restapi/custom/api.pm b/src/database/couchdb/restapi/custom/api.pm index 6ea914b50..aa120ca9e 100644 --- a/src/database/couchdb/restapi/custom/api.pm +++ b/src/database/couchdb/restapi/custom/api.pm @@ -199,11 +199,11 @@ Threshold unknown for http response code (Default: '%{http_code} < 200 or (%{htt =item B<--warning-http-status> -Threshold warning for http response code +Warning threshold for http response code =item B<--critical-http-status> -Threshold critical for http response code +Critical threshold for http response code =back diff --git a/src/database/couchdb/restapi/mode/server.pm b/src/database/couchdb/restapi/mode/server.pm index ff1235c7c..05cd2f37d 100644 --- a/src/database/couchdb/restapi/mode/server.pm +++ b/src/database/couchdb/restapi/mode/server.pm @@ -209,32 +209,32 @@ Filter database name (can be a regexp). =item B<--unknown-status> -Set unknown threshold for status (Default: ''). +Define the conditions to match for the status to be UNKNOWN (Default: ''). You can use the following variables: %{status} =item B<--warning-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{status} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} !~ /^ok/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} !~ /^ok/i'). You can use the following variables: %{status} =item B<--unknown-compaction-status> -Set unknown threshold for status (Default: ''). +Define the conditions to match for the status to be UNKNOWN (Default: ''). You can use the following variables: %{compaction_status}, %{display} =item B<--warning-compaction-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{compaction_status}, %{display} =item B<--critical-compaction-status> -Set critical threshold for status (Default: ''). +Define the conditions to match for the status to be CRITICAL (Default: ''). You can use the following variables: %{compaction_status}, %{display} =item B<--warning-*> B<--critical-*> diff --git a/src/database/db2/mode/tablespaces.pm b/src/database/db2/mode/tablespaces.pm index eafa55045..340bcb0ef 100644 --- a/src/database/db2/mode/tablespaces.pm +++ b/src/database/db2/mode/tablespaces.pm @@ -290,17 +290,17 @@ Filter tablespaces by name (can be a regexp). =item B<--unknown-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{tbsname}, %{type}, %{state} =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{tbsname}, %{type}, %{state} =item B<--critical-status> -Set critical threshold for status (Default: '%{state} !~ /normal/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{state} !~ /normal/i'). You can use the following variables: %{tbsname}, %{type}, %{state} =item B<--warning-*> B<--critical-*> diff --git a/src/database/elasticsearch/restapi/mode/clusterstatistics.pm b/src/database/elasticsearch/restapi/mode/clusterstatistics.pm index 8d4d2e164..1320329fe 100644 --- a/src/database/elasticsearch/restapi/mode/clusterstatistics.pm +++ b/src/database/elasticsearch/restapi/mode/clusterstatistics.pm @@ -260,7 +260,7 @@ Example: --filter-counters='^status$' =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'nodes-total', 'nodes-data', 'nodes-coordinating', 'nodes-master', 'nodes-ingest', 'indices-total', 'shards-total', 'shards-active-count', 'shards-active-percentage', @@ -269,7 +269,7 @@ Can be: 'nodes-total', 'nodes-data', 'nodes-coordinating', =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'nodes-total', 'nodes-data', 'nodes-coordinating', 'nodes-master', 'nodes-ingest', 'indices-total', 'shards-total', 'shards-active-count', 'shards-active-percentage', @@ -278,12 +278,12 @@ Can be: 'nodes-total', 'nodes-data', 'nodes-coordinating', =item B<--warning-status> -Set warning threshold for status (Default: '%{status} =~ /yellow/i') +Define the conditions to match for the status to be WARNING (Default: '%{status} =~ /yellow/i') You can use the following variables: %{status}. =item B<--critical-status> -Set critical threshold for status (Default: '%{status} =~ /red/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} =~ /red/i'). You can use the following variables: %{status}. =back diff --git a/src/database/elasticsearch/restapi/mode/indicestatistics.pm b/src/database/elasticsearch/restapi/mode/indicestatistics.pm index 7e0f301d7..6f97afd80 100644 --- a/src/database/elasticsearch/restapi/mode/indicestatistics.pm +++ b/src/database/elasticsearch/restapi/mode/indicestatistics.pm @@ -186,24 +186,24 @@ Example: --filter-counters='^status$' =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'documents-total', 'data-size-primaries', 'data-size-total', 'shards-active', 'shards-unassigned'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'documents-total', 'data-size-primaries', 'data-size-total', 'shards-active', 'shards-unassigned'. =item B<--warning-status> -Set warning threshold for status (Default: '%{status} =~ /yellow/i') +Define the conditions to match for the status to be WARNING (Default: '%{status} =~ /yellow/i') You can use the following variables: %{display}, %{status}. =item B<--critical-status> -Set critical threshold for status (Default: '%{status} =~ /red/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} =~ /red/i'). You can use the following variables: %{display}, %{status}. =back diff --git a/src/database/elasticsearch/restapi/mode/license.pm b/src/database/elasticsearch/restapi/mode/license.pm index 83aaccac1..34c1db7b8 100644 --- a/src/database/elasticsearch/restapi/mode/license.pm +++ b/src/database/elasticsearch/restapi/mode/license.pm @@ -96,12 +96,12 @@ Check license. =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{status}, %{type}, %{issued_to}, %{expiry_date_in_seconds}. =item B<--critical-status> -Set critical threshold for status (Default: '%{status} !~ /active/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} !~ /active/i'). You can use the following variables: %{status}, %{type}, %{issued_to}, %{expiry_date_in_seconds}. =back diff --git a/src/database/elasticsearch/restapi/mode/nodestatistics.pm b/src/database/elasticsearch/restapi/mode/nodestatistics.pm index 945fc7aaa..d7e2bc61d 100644 --- a/src/database/elasticsearch/restapi/mode/nodestatistics.pm +++ b/src/database/elasticsearch/restapi/mode/nodestatistics.pm @@ -160,13 +160,13 @@ Example: --filter-counters='heap' =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'data-size', 'disk-free', 'documents-total', 'jvm-heap-usage' (in %), 'jvm-heap-usage-bytes'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'data-size', 'disk-free', 'documents-total', 'jvm-heap-usage' (in %), 'jvm-heap-usage-bytes'. diff --git a/src/database/firebird/mode/longqueries.pm b/src/database/firebird/mode/longqueries.pm index 4724b2c76..9145737d7 100644 --- a/src/database/firebird/mode/longqueries.pm +++ b/src/database/firebird/mode/longqueries.pm @@ -121,11 +121,11 @@ Check current number of long queries on the database (firebird version >= 2.1) =item B<--warning> -Threshold warning (number of long queries). +Warning threshold (number of long queries). =item B<--critical> -Threshold critical (number of long queries). +Critical threshold (number of long queries). =item B<--seconds> diff --git a/src/database/firebird/mode/memory.pm b/src/database/firebird/mode/memory.pm index 71add32a1..5805a6a6a 100644 --- a/src/database/firebird/mode/memory.pm +++ b/src/database/firebird/mode/memory.pm @@ -190,13 +190,13 @@ Check memory usage. =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'used' (%), 'attachment' (%), 'transaction' (%), 'statement' (%), 'call' (%). =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'used' (%), 'attachment' (%), 'transaction' (%), 'statement' (%), 'call' (%). diff --git a/src/database/firebird/mode/pages.pm b/src/database/firebird/mode/pages.pm index 088d46c77..83ed61c4e 100644 --- a/src/database/firebird/mode/pages.pm +++ b/src/database/firebird/mode/pages.pm @@ -115,12 +115,12 @@ Check page statistics on current database. =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'reads', 'writes', 'fetches', 'marks'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'reads', 'writes', 'fetches', 'marks'. =back diff --git a/src/database/firebird/mode/queries.pm b/src/database/firebird/mode/queries.pm index 98d3d202c..52d3f058d 100644 --- a/src/database/firebird/mode/queries.pm +++ b/src/database/firebird/mode/queries.pm @@ -156,13 +156,13 @@ Check queries statistics on current database. =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'total', 'seq-reads', 'inserts', 'updates', 'deletes', 'backouts', 'purges', 'expunges'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'total', 'seq-reads', 'inserts', 'updates', 'deletes', 'backouts', 'purges', 'expunges'. diff --git a/src/database/firebird/mode/users.pm b/src/database/firebird/mode/users.pm index d75f9551e..17f8840fa 100644 --- a/src/database/firebird/mode/users.pm +++ b/src/database/firebird/mode/users.pm @@ -95,11 +95,11 @@ Check current users connected on the database (firebird version >= 2.1) =item B<--warning> -Threshold warning. +Warning threshold. =item B<--critical> -Threshold critical. +Critical threshold. =back diff --git a/src/database/influxdb/custom/api.pm b/src/database/influxdb/custom/api.pm index 83ae81da9..8b38499d1 100644 --- a/src/database/influxdb/custom/api.pm +++ b/src/database/influxdb/custom/api.pm @@ -259,11 +259,11 @@ Threshold unknown for http response code. =item B<--warning-http-status> -Threshold warning for http response code. +Warning threshold for http response code. =item B<--critical-http-status> -Threshold critical for http response code. +Critical threshold for http response code. =back diff --git a/src/database/influxdb/mode/connectiontime.pm b/src/database/influxdb/mode/connectiontime.pm index 3cfb0cf55..356b4c988 100644 --- a/src/database/influxdb/mode/connectiontime.pm +++ b/src/database/influxdb/mode/connectiontime.pm @@ -85,11 +85,11 @@ Check database connection time. =item B<--warning-connection-time> -Threshold warning in milliseconds. +Warning threshold in milliseconds. =item B<--critical-connection-time> -Threshold critical in milliseconds. +Critical threshold in milliseconds. =back diff --git a/src/database/influxdb/mode/databasestatistics.pm b/src/database/influxdb/mode/databasestatistics.pm index ecdee8883..3815edb0f 100644 --- a/src/database/influxdb/mode/databasestatistics.pm +++ b/src/database/influxdb/mode/databasestatistics.pm @@ -122,12 +122,12 @@ Filter database name (Can use regexp). =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'measurements', 'series'. =item B<--critical-*> -Threshold warning. +Warning threshold. Can be: 'measurements', 'series'. =back diff --git a/src/database/influxdb/mode/httpserverstatistics.pm b/src/database/influxdb/mode/httpserverstatistics.pm index 82e9e7d7f..31df3012f 100644 --- a/src/database/influxdb/mode/httpserverstatistics.pm +++ b/src/database/influxdb/mode/httpserverstatistics.pm @@ -161,7 +161,7 @@ Check several statistics from the HTTP server serving API. =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'requests-query-count', 'requests-write-count', 'requests-ping-count', 'requests-status-count', 'requests-active', 'requests-write-active', 'requests-response-data', @@ -169,7 +169,7 @@ Can be: 'requests-query-count', 'requests-write-count', =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'requests-query-count', 'requests-write-count', 'requests-ping-count', 'requests-status-count', 'requests-active', 'requests-write-active', 'requests-response-data', diff --git a/src/database/influxdb/mode/query.pm b/src/database/influxdb/mode/query.pm index dd36b5a1b..dfabdd1ef 100644 --- a/src/database/influxdb/mode/query.pm +++ b/src/database/influxdb/mode/query.pm @@ -216,14 +216,14 @@ Set the global output in case everything is fine for multiple instances =item B<--warning-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). Can use special variables like %{instance} and any other labels you set through --query. =item B<--critical-status> -Set critical threshold for status (Default: ''). +Define the conditions to match for the status to be CRITICAL (Default: ''). Can use special variables like %{instance} and any other labels you set through --query. diff --git a/src/database/influxdb/mode/writestatistics.pm b/src/database/influxdb/mode/writestatistics.pm index 5082f7d02..f5444c13d 100644 --- a/src/database/influxdb/mode/writestatistics.pm +++ b/src/database/influxdb/mode/writestatistics.pm @@ -119,13 +119,13 @@ Check writes statistics to the data node. =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'points-written', 'writes-ok', 'writes-error', 'writes-drop', 'writes-timeout'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'points-written', 'writes-ok', 'writes-error', 'writes-drop', 'writes-timeout'. diff --git a/src/database/informix/snmp/mode/archivelevel0.pm b/src/database/informix/snmp/mode/archivelevel0.pm index 5ef5d471a..1127b0cab 100644 --- a/src/database/informix/snmp/mode/archivelevel0.pm +++ b/src/database/informix/snmp/mode/archivelevel0.pm @@ -142,11 +142,11 @@ Filter dbspace name (can be a regexp). =item B<--warning-time> -Threshold warning in seconds. +Warning threshold in seconds. =item B<--critical-time> -Threshold critical in seconds. +Critical threshold in seconds. =back diff --git a/src/database/informix/snmp/mode/chunkstatus.pm b/src/database/informix/snmp/mode/chunkstatus.pm index 1d4104c30..dec682bd8 100644 --- a/src/database/informix/snmp/mode/chunkstatus.pm +++ b/src/database/informix/snmp/mode/chunkstatus.pm @@ -157,17 +157,17 @@ Filter chunk name (can be a regexp). =item B<--unknown-status> -Set unknown threshold for status (Default: ''). +Define the conditions to match for the status to be UNKNOWN (Default: ''). You can use the following variables: %{status}, %{display} =item B<--warning-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{status}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} =~ /inconsistent/'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} =~ /inconsistent/'). You can use the following variables: %{status}, %{display} =back diff --git a/src/database/informix/snmp/mode/dbspaceusage.pm b/src/database/informix/snmp/mode/dbspaceusage.pm index b264f4688..6a124e97a 100644 --- a/src/database/informix/snmp/mode/dbspaceusage.pm +++ b/src/database/informix/snmp/mode/dbspaceusage.pm @@ -126,11 +126,11 @@ Filter dbspace name (can be a regexp). =item B<--warning-usage> -Threshold warning in percent. +Warning threshold in percent. =item B<--critical-usage> -Threshold critical in percent. +Critical threshold in percent. =back diff --git a/src/database/informix/snmp/mode/lockstats.pm b/src/database/informix/snmp/mode/lockstats.pm index 3f43bb38a..a29a5a67c 100644 --- a/src/database/informix/snmp/mode/lockstats.pm +++ b/src/database/informix/snmp/mode/lockstats.pm @@ -142,12 +142,12 @@ Check instance locks. =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'lock-dead', 'lock-wait', 'lock-request', 'lock-timeout'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'lock-dead', 'lock-wait', 'lock-request', 'lock-timeout'. =back diff --git a/src/database/informix/snmp/mode/logfileusage.pm b/src/database/informix/snmp/mode/logfileusage.pm index cbfc7b45f..54fccd6c3 100644 --- a/src/database/informix/snmp/mode/logfileusage.pm +++ b/src/database/informix/snmp/mode/logfileusage.pm @@ -132,11 +132,11 @@ Filter dbspace name (can be a regexp). =item B<--warning-usage> -Threshold warning in percent. +Warning threshold in percent. =item B<--critical-usage> -Threshold critical in percent. +Critical threshold in percent. =back diff --git a/src/database/informix/snmp/mode/sessions.pm b/src/database/informix/snmp/mode/sessions.pm index 66983785c..417ca162b 100644 --- a/src/database/informix/snmp/mode/sessions.pm +++ b/src/database/informix/snmp/mode/sessions.pm @@ -107,11 +107,11 @@ Check number of open sessions ('informix' user is not counted). =item B<--warning-sessions> -Threshold warning. +Warning threshold. =item B<--critical-sessions> -Threshold critical. +Critical threshold. =back diff --git a/src/database/informix/sql/mode/archivelevel0.pm b/src/database/informix/sql/mode/archivelevel0.pm index 1a8d2f6fd..31cfc2f0e 100644 --- a/src/database/informix/sql/mode/archivelevel0.pm +++ b/src/database/informix/sql/mode/archivelevel0.pm @@ -129,11 +129,11 @@ Check archive level0 backup last execution. =item B<--warning> -Threshold warning in seconds since last execution. +Warning threshold in seconds since last execution. =item B<--critical> -Threshold critical in seconds since last execution. +Critical threshold in seconds since last execution. =item B<--name> diff --git a/src/database/informix/sql/mode/checkpoints.pm b/src/database/informix/sql/mode/checkpoints.pm index 72cae9f84..ff02a5376 100644 --- a/src/database/informix/sql/mode/checkpoints.pm +++ b/src/database/informix/sql/mode/checkpoints.pm @@ -168,35 +168,35 @@ Check Informix Checkpoints. 4 values: =item B<--warning-cp> -Threshold warning 'cp_time' in seconds. +Warning threshold 'cp_time' in seconds. =item B<--critical-cp> -Threshold critical 'cp_time' in seconds. +Critical threshold 'cp_time' in seconds. =item B<--warning-flush> -Threshold warning 'flush_time' in seconds. +Warning threshold 'flush_time' in seconds. =item B<--critical-flush> -Threshold critical 'flush_time' in seconds. +Critical threshold 'flush_time' in seconds. =item B<--warning-crit> -Threshold warning 'crit_time' in seconds. +Warning threshold 'crit_time' in seconds. =item B<--critical-crit> -Threshold critical 'crit_time' in seconds. +Critical threshold 'crit_time' in seconds. =item B<--warning-block> -Threshold warning 'block_time' in seconds. +Warning threshold 'block_time' in seconds. =item B<--critical-block> -Threshold critical 'block_time' in seconds. +Critical threshold 'block_time' in seconds. =item B<--filter-trigger> diff --git a/src/database/informix/sql/mode/chunkstates.pm b/src/database/informix/sql/mode/chunkstates.pm index 859d1d63d..3fa680c9e 100644 --- a/src/database/informix/sql/mode/chunkstates.pm +++ b/src/database/informix/sql/mode/chunkstates.pm @@ -131,11 +131,11 @@ xxxx --chunk-state="is_offline" --warning="@1:1" --error-msg="Chunk %s is down" =item B<--warning> -Threshold warning (can check 1 or 0). +Warning threshold (can check 1 or 0). =item B<--critical> -Threshold critical (can check 1 or 0). +Critical threshold (can check 1 or 0). =item B<--chunk-state> diff --git a/src/database/informix/sql/mode/dbspacesusage.pm b/src/database/informix/sql/mode/dbspacesusage.pm index 385d541fa..be28a4444 100644 --- a/src/database/informix/sql/mode/dbspacesusage.pm +++ b/src/database/informix/sql/mode/dbspacesusage.pm @@ -135,11 +135,11 @@ Check usage for one or more dbspaces. =item B<--warning> -Threshold warning in percent. +Warning threshold in percent. =item B<--critical> -Threshold critical in percent. +Critical threshold in percent. =item B<--name> diff --git a/src/database/informix/sql/mode/lockoverflow.pm b/src/database/informix/sql/mode/lockoverflow.pm index 18fbce60c..f9dc313d3 100644 --- a/src/database/informix/sql/mode/lockoverflow.pm +++ b/src/database/informix/sql/mode/lockoverflow.pm @@ -124,11 +124,11 @@ Check the number of times Informix attempted to exceed the maximum number of loc =item B<--warning> -Threshold warning in absolute. +Warning threshold in absolute. =item B<--critical> -Threshold critical in absolute. +Critical threshold in absolute. =back diff --git a/src/database/informix/sql/mode/logfilesusage.pm b/src/database/informix/sql/mode/logfilesusage.pm index ee4d5ad3a..6d14d372b 100644 --- a/src/database/informix/sql/mode/logfilesusage.pm +++ b/src/database/informix/sql/mode/logfilesusage.pm @@ -116,11 +116,11 @@ Check usage for log files. =item B<--warning> -Threshold warning in percent. +Warning threshold in percent. =item B<--critical> -Threshold critical in percent. +Critical threshold in percent. =back diff --git a/src/database/informix/sql/mode/longtxs.pm b/src/database/informix/sql/mode/longtxs.pm index 9f9fc851d..77ea5d3c6 100644 --- a/src/database/informix/sql/mode/longtxs.pm +++ b/src/database/informix/sql/mode/longtxs.pm @@ -96,11 +96,11 @@ Check number of current long transactions. =item B<--warning> -Threshold warning in absolute. +Warning threshold in absolute. =item B<--critical> -Threshold critical in absolute. +Critical threshold in absolute. =back diff --git a/src/database/informix/sql/mode/sessions.pm b/src/database/informix/sql/mode/sessions.pm index b9017ec98..1637adb6b 100644 --- a/src/database/informix/sql/mode/sessions.pm +++ b/src/database/informix/sql/mode/sessions.pm @@ -96,11 +96,11 @@ Check number of open sessions ('informix' user is not counted). =item B<--warning> -Threshold warning. +Warning threshold. =item B<--critical> -Threshold critical. +Critical threshold. =back diff --git a/src/database/informix/sql/mode/tablelocks.pm b/src/database/informix/sql/mode/tablelocks.pm index b55ad60d2..d9c5f69b7 100644 --- a/src/database/informix/sql/mode/tablelocks.pm +++ b/src/database/informix/sql/mode/tablelocks.pm @@ -242,35 +242,35 @@ Check table locks: =item B<--warning-deadlks> -Threshold warning 'deadlks' in absolute. +Warning threshold 'deadlks' in absolute. =item B<--critical-deadlks> -Threshold critical 'deadlks' in absolute. +Critical threshold 'deadlks' in absolute. =item B<--warning-lockwts> -Threshold warning 'lockwts' in absolute. +Warning threshold 'lockwts' in absolute. =item B<--critical-lockwts> -Threshold critical 'lockwts' in absolute. +Critical threshold 'lockwts' in absolute. =item B<--warning-lockreqs> -Threshold warning 'lockreqs' in absolute. +Warning threshold 'lockreqs' in absolute. =item B<--critical-lockreqs> -Threshold critical 'lockreqs' in absolute. +Critical threshold 'lockreqs' in absolute. =item B<--warning-lktouts> -Threshold warning 'lktouts' in absolute. +Warning threshold 'lktouts' in absolute. =item B<--critical-lktouts> -Threshold critical 'lktouts' in absolute. +Critical threshold 'lktouts' in absolute. =item B<--name> diff --git a/src/database/mongodb/mode/collectionstatistics.pm b/src/database/mongodb/mode/collectionstatistics.pm index 2ea4d2692..86c1c0d15 100644 --- a/src/database/mongodb/mode/collectionstatistics.pm +++ b/src/database/mongodb/mode/collectionstatistics.pm @@ -155,22 +155,22 @@ Filter database name (Can use regexp). =item B<--warning-subinstance-collection-size-*-bytes> -Threshold warning. +Warning threshold. Can be: 'storage', 'index'. =item B<--critical-subinstance-collection-size-*-bytes> -Threshold critical. +Critical threshold. Can be: 'storage', 'index'. =item B<--warning-subinstance-collection-*-count> -Threshold warning. +Warning threshold. Can be: 'documents', 'indexes'. =item B<--critical-subinstance-collection-*-count> -Threshold critical. +Critical threshold. Can be: 'documents', 'indexes'. =back diff --git a/src/database/mongodb/mode/connections.pm b/src/database/mongodb/mode/connections.pm index 03b60abe6..d06d24226 100644 --- a/src/database/mongodb/mode/connections.pm +++ b/src/database/mongodb/mode/connections.pm @@ -116,29 +116,29 @@ Check connections statistics =item B<--warning-connections-*-count> -Threshold warning. +Warning threshold. Can be: 'active', 'current'. =item B<--critical-connections-*-count> -Threshold critical. +Critical threshold. Can be: 'active', 'current'. =item B<--warning-connections-usage-percentage> -Threshold warning for connections usage (current over available) +Warning threshold for connections usage (current over available) =item B<--critical-connections-usage-percentage> -Threshold critical for connections usage (current over available) +Critical threshold for connections usage (current over available) =item B<--warning-connections-created-persecond> -Threshold warning for connections created per second. +Warning threshold for connections created per second. =item B<--critical-connections-created-persecond> -Threshold critical for connections created per second. +Critical threshold for connections created per second. =back diff --git a/src/database/mongodb/mode/connectiontime.pm b/src/database/mongodb/mode/connectiontime.pm index e8a61255b..bc5606a9f 100644 --- a/src/database/mongodb/mode/connectiontime.pm +++ b/src/database/mongodb/mode/connectiontime.pm @@ -78,11 +78,11 @@ Check database connection time. =item B<--warning-connection-time> -Threshold warning in milliseconds. +Warning threshold in milliseconds. =item B<--critical-connection-time> -Threshold critical in milliseconds. +Critical threshold in milliseconds. =back diff --git a/src/database/mongodb/mode/databasestatistics.pm b/src/database/mongodb/mode/databasestatistics.pm index 41f5996de..1fb944bda 100644 --- a/src/database/mongodb/mode/databasestatistics.pm +++ b/src/database/mongodb/mode/databasestatistics.pm @@ -169,23 +169,23 @@ Filter database name (Can use regexp). =item B<--warning-instance-database-size-*-bytes> -Threshold warning. +Warning threshold. Can be: 'storage', 'data', 'index'. =item B<--critical-instance-database-size-*-bytes> -Threshold critical. +Critical threshold. Can be: 'storage', 'data', 'index'. =item B<--warning-instance-database-*-count> -Threshold warning. +Warning threshold. Can be: 'collections', 'views', 'documents', 'indexes'. =item B<--critical-instance-database-*-count> -Threshold critical. +Critical threshold. Can be: 'collections', 'views', 'documents', 'indexes'. diff --git a/src/database/mongodb/mode/queries.pm b/src/database/mongodb/mode/queries.pm index d564b4324..a31cb6df7 100644 --- a/src/database/mongodb/mode/queries.pm +++ b/src/database/mongodb/mode/queries.pm @@ -112,25 +112,25 @@ Check number of queries executed (absolute and per second). =item B<--warning-queries-*-persecond> -Threshold warning. +Warning threshold. Can be: 'total', 'insert', 'query', 'update', 'delete', 'getmore', 'command' =item B<--critical-queries-*-persecond> -Threshold critical. +Critical threshold. Can be: 'total', 'insert', 'query', 'update', 'delete', 'getmore', 'command' =item B<--warning-queries-*-count> -Threshold warning. +Warning threshold. Can be: 'insert', 'query', 'update', 'delete', 'getmore', 'command' =item B<--critical-queries-*-count> -Threshold critical. +Critical threshold. Can be: 'insert', 'query', 'update', 'delete', 'getmore', 'command' diff --git a/src/database/mongodb/mode/replicationstatus.pm b/src/database/mongodb/mode/replicationstatus.pm index fbebdb1f2..d7b189ba4 100644 --- a/src/database/mongodb/mode/replicationstatus.pm +++ b/src/database/mongodb/mode/replicationstatus.pm @@ -237,12 +237,12 @@ You can use the following variables: %{name}, %{state}, %{health}, =item B<--warning-instance-replication-lag-seconds> -Threshold warning for replication lag between primary and secondary members. +Warning threshold for replication lag between primary and secondary members. Must not be over 0 (between minus slaveDelay and 0). =item B<--critical-instance-replication-lag-seconds> -Threshold critical for replication lag between primary and secondary members. +Critical threshold for replication lag between primary and secondary members. Must not be over 0 (between minus slaveDelay and 0). =back diff --git a/src/database/mssql/mode/blockedprocesses.pm b/src/database/mssql/mode/blockedprocesses.pm index 46447c2ac..8ba0e1965 100644 --- a/src/database/mssql/mode/blockedprocesses.pm +++ b/src/database/mssql/mode/blockedprocesses.pm @@ -178,19 +178,19 @@ Filter results based on the command name (can be a regexp). =item B<--warning-blocked-processes> -Threshold warning for total number of blocked processes. +Warning threshold for total number of blocked processes. =item B<--critical-blocked-processes> -Threshold critical for total number of blocked processes. +Critical threshold for total number of blocked processes. =item B<--warning-wait-time> -Threshold warning for blocked wait time. +Warning threshold for blocked wait time. =item B<--critical-wait-time> -Threshold critical for blocked wait time. +Critical threshold for blocked wait time. =back diff --git a/src/database/mssql/mode/cachehitratio.pm b/src/database/mssql/mode/cachehitratio.pm index c900424f4..bdad8f4bd 100644 --- a/src/database/mssql/mode/cachehitratio.pm +++ b/src/database/mssql/mode/cachehitratio.pm @@ -90,11 +90,11 @@ Check MSSQL buffer cache hit ratio. =item B<--warning-hit-ratio> -Threshold warning. +Warning threshold. =item B<--critical-hit-ratio> -Threshold critical. +Critical threshold. =back diff --git a/src/database/mssql/mode/connectedusers.pm b/src/database/mssql/mode/connectedusers.pm index eee090fdb..6166dace5 100644 --- a/src/database/mssql/mode/connectedusers.pm +++ b/src/database/mssql/mode/connectedusers.pm @@ -76,11 +76,11 @@ Check MSSQL connected users. =item B<--warning-connected-user> -Threshold warning. +Warning threshold. =item B<--critical-connected-user> -Threshold critical. +Critical threshold. =back diff --git a/src/database/mssql/mode/deadlocks.pm b/src/database/mssql/mode/deadlocks.pm index 6817ae431..777c5a79f 100644 --- a/src/database/mssql/mode/deadlocks.pm +++ b/src/database/mssql/mode/deadlocks.pm @@ -93,11 +93,11 @@ Check MSSQL dead locks per second =item B<--warning-deadlocks> -Threshold warning number of dead locks per second. +Warning threshold number of dead locks per second. =item B<--critical-deadlocks> -Threshold critical number of dead locks per second. +Critical threshold number of dead locks per second. =item B<--filter-database> diff --git a/src/database/mssql/mode/failedjobs.pm b/src/database/mssql/mode/failedjobs.pm index 95004611a..3ddb32a78 100644 --- a/src/database/mssql/mode/failedjobs.pm +++ b/src/database/mssql/mode/failedjobs.pm @@ -229,12 +229,12 @@ Display job duration time. =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{name}, %{status}, %{duration} =item B<--critical-status> -Set critical threshold for status. +Define the conditions to match for the status to be CRITICAL. You can use the following variables: %{name}, %{status}, %{duration} =item B<--warning-*> B<--critical-*> diff --git a/src/database/mssql/mode/lockswaits.pm b/src/database/mssql/mode/lockswaits.pm index b9e806154..50168dc8a 100644 --- a/src/database/mssql/mode/lockswaits.pm +++ b/src/database/mssql/mode/lockswaits.pm @@ -93,11 +93,11 @@ Check MSSQL locks-waits per second =item B<--warning-lockswaits> -Threshold warning number of lock-waits per second. +Warning threshold number of lock-waits per second. =item B<--critical-lockswaits> -Threshold critical number of lock-waits per second. +Critical threshold number of lock-waits per second. =item B<--filter-database> diff --git a/src/database/mssql/mode/pagelifeexpectancy.pm b/src/database/mssql/mode/pagelifeexpectancy.pm index 8c8d496fb..ff03d188e 100644 --- a/src/database/mssql/mode/pagelifeexpectancy.pm +++ b/src/database/mssql/mode/pagelifeexpectancy.pm @@ -83,11 +83,11 @@ Check MSSQL page life expectancy. =item B<--warning-page-life-expectancy> -Threshold warning. +Warning threshold. =item B<--critical-page-life-expectancy> -Threshold critical. +Critical threshold. =back diff --git a/src/database/mysql/mode/backup.pm b/src/database/mysql/mode/backup.pm index 2c3d05c45..e595d6daf 100644 --- a/src/database/mysql/mode/backup.pm +++ b/src/database/mysql/mode/backup.pm @@ -157,17 +157,17 @@ Filter backups by type (regexp can be used). =item B<--unknown-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{has_backup}, %{last_error}, %{exit_state}, %{type} =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{has_backup}, %{last_error}, %{exit_state}, %{type} =item B<--critical-status> -Set critical threshold for status (Default: '%{has_backup} eq "yes" and %{exit_state} ne "SUCCESS" and %{last_error} ne "NO_ERROR"'). +Define the conditions to match for the status to be CRITICAL (Default: '%{has_backup} eq "yes" and %{exit_state} ne "SUCCESS" and %{last_error} ne "NO_ERROR"'). You can use the following variables: %{has_backup}, %{last_error}, %{exit_state}, %{type} =item B<--warning-*> B<--critical-*> diff --git a/src/database/mysql/mode/innodbbufferpoolhitrate.pm b/src/database/mysql/mode/innodbbufferpoolhitrate.pm index f1839b850..df53baead 100644 --- a/src/database/mysql/mode/innodbbufferpoolhitrate.pm +++ b/src/database/mysql/mode/innodbbufferpoolhitrate.pm @@ -147,11 +147,11 @@ Check hitrate in the InnoDB Buffer Pool. =item B<--warning> -Threshold warning. +Warning threshold. =item B<--critical> -Threshold critical. +Critical threshold. =item B<--lookback> diff --git a/src/database/mysql/mode/longqueries.pm b/src/database/mysql/mode/longqueries.pm index 10db8dbfe..ab608f658 100644 --- a/src/database/mysql/mode/longqueries.pm +++ b/src/database/mysql/mode/longqueries.pm @@ -125,11 +125,11 @@ Check current number of long queries. =item B<--warning> -Threshold warning (number of long queries). +Warning threshold (number of long queries). =item B<--critical> -Threshold critical (number of long queries). +Critical threshold (number of long queries). =item B<--seconds> diff --git a/src/database/mysql/mode/myisamkeycachehitrate.pm b/src/database/mysql/mode/myisamkeycachehitrate.pm index 74bfba15b..c9d47ee48 100644 --- a/src/database/mysql/mode/myisamkeycachehitrate.pm +++ b/src/database/mysql/mode/myisamkeycachehitrate.pm @@ -148,11 +148,11 @@ Check hitrate in the Myisam Key Cache. =item B<--warning> -Threshold warning. +Warning threshold. =item B<--critical> -Threshold critical. +Critical threshold. =item B<--lookback> diff --git a/src/database/mysql/mode/openfiles.pm b/src/database/mysql/mode/openfiles.pm index d6d3bfa11..9ffb2c31d 100644 --- a/src/database/mysql/mode/openfiles.pm +++ b/src/database/mysql/mode/openfiles.pm @@ -110,11 +110,11 @@ Check number of open files. =item B<--warning> -Threshold warning in percent. +Warning threshold in percent. =item B<--critical> -Threshold critical in percent. +Critical threshold in percent. =back diff --git a/src/database/mysql/mode/opentables.pm b/src/database/mysql/mode/opentables.pm index af8ce21f2..44fccee53 100644 --- a/src/database/mysql/mode/opentables.pm +++ b/src/database/mysql/mode/opentables.pm @@ -112,11 +112,11 @@ Check number of open tables. =item B<--warning> -Threshold warning in percent. +Warning threshold in percent. =item B<--critical> -Threshold critical in percent. +Critical threshold in percent. =back diff --git a/src/database/mysql/mode/passwordexpiration.pm b/src/database/mysql/mode/passwordexpiration.pm index c3c293019..a8398138f 100644 --- a/src/database/mysql/mode/passwordexpiration.pm +++ b/src/database/mysql/mode/passwordexpiration.pm @@ -210,12 +210,12 @@ Check user password expiration. =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{user}, %{expire}, %{expire_time} =item B<--critical-status> -Set critical threshold for status (Default: '%{expire} ne "never" and %{expire_time} == 0'). +Define the conditions to match for the status to be CRITICAL (Default: '%{expire} ne "never" and %{expire_time} == 0'). You can use the following variables: %{user}, %{expire}, %{expire_time} =back diff --git a/src/database/mysql/mode/qcachehitrate.pm b/src/database/mysql/mode/qcachehitrate.pm index a9b903e6d..f117673fd 100644 --- a/src/database/mysql/mode/qcachehitrate.pm +++ b/src/database/mysql/mode/qcachehitrate.pm @@ -165,11 +165,11 @@ Check hitrate in the Query Cache. =item B<--warning> -Threshold warning. +Warning threshold. =item B<--critical> -Threshold critical. +Critical threshold. =item B<--lookback> diff --git a/src/database/mysql/mode/queries.pm b/src/database/mysql/mode/queries.pm index 905df68d4..5cbe1d837 100644 --- a/src/database/mysql/mode/queries.pm +++ b/src/database/mysql/mode/queries.pm @@ -118,13 +118,13 @@ Check average number of queries executed. =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'total', 'update', 'insert', 'delete', 'truncate', 'select', 'begin', 'commit'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'total', 'update', 'insert', 'delete', 'truncate', 'select', 'begin', 'commit'. diff --git a/src/database/mysql/mode/replication.pm b/src/database/mysql/mode/replication.pm index 70eed291e..3917d3876 100644 --- a/src/database/mysql/mode/replication.pm +++ b/src/database/mysql/mode/replication.pm @@ -367,32 +367,32 @@ Check MySQL replication (need to use --multiple). =item B<--unknown-connection-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{status}, %{error_message}, %{display} =item B<--warning-connection-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{status}, %{error_message}, %{display} =item B<--critical-connection-status> -Set critical threshold for status (Default: '%{status} ne "ok"'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} ne "ok"'). You can use the following variables: %{status}, %{error_message}, %{display} =item B<--unknown-replication-status> -Set unknown threshold for status (Default: '%{replication_status} =~ /configurationIssue/i'). +Define the conditions to match for the status to be UNKNOWN (Default: '%{replication_status} =~ /configurationIssue/i'). You can use the following variables: %{replication_status}, %{display} =item B<--warning-replication-status> -Set warning threshold for status (Default: '%{replication_status} =~ /inProgress/i'). +Define the conditions to match for the status to be WARNING (Default: '%{replication_status} =~ /inProgress/i'). You can use the following variables: %{replication_status}, %{display} =item B<--critical-replication-status> -Set critical threshold for status (Default: '%{replication_status} =~ /connectIssueToMaster/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{replication_status} =~ /connectIssueToMaster/i'). You can use the following variables: %{replication_status}, %{display} =item B<--warning-*> B<--critical-*> diff --git a/src/database/mysql/mode/uptime.pm b/src/database/mysql/mode/uptime.pm index c295baeec..7f7296015 100644 --- a/src/database/mysql/mode/uptime.pm +++ b/src/database/mysql/mode/uptime.pm @@ -106,11 +106,11 @@ Check MySQL uptime. =item B<--warning> -Threshold warning. +Warning threshold. =item B<--critical> -Threshold critical. +Critical threshold. =item B<--seconds> diff --git a/src/database/oracle/mode/asmdiskgroupusage.pm b/src/database/oracle/mode/asmdiskgroupusage.pm index cf4c65b73..27383849b 100644 --- a/src/database/oracle/mode/asmdiskgroupusage.pm +++ b/src/database/oracle/mode/asmdiskgroupusage.pm @@ -249,33 +249,33 @@ Check Oracle ASM diskgroup usage and status. =item B<--warning-usage> -Threshold warning. +Warning threshold. =item B<--critical-usage> -Threshold critical. +Critical threshold. =item B<--warning-usage-failure> -Threshold warning. +Warning threshold. =item B<--critical-usage-failure> -Threshold critical. +Critical threshold. =item B<--unknown-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{status}, %{display} =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{status}, %{display} =item B<--critical-status> -Set critical threshold for status. +Define the conditions to match for the status to be CRITICAL. You can use the following variables: %{status}, %{display} =item B<--warning-offline-disks> diff --git a/src/database/oracle/mode/connectedusers.pm b/src/database/oracle/mode/connectedusers.pm index 0e792dd3f..cb6f9f896 100644 --- a/src/database/oracle/mode/connectedusers.pm +++ b/src/database/oracle/mode/connectedusers.pm @@ -87,11 +87,11 @@ Check Oracle connected users. =item B<--warning> -Threshold warning. +Warning threshold. =item B<--critical> -Threshold critical. +Critical threshold. =back diff --git a/src/database/oracle/mode/corruptedblocks.pm b/src/database/oracle/mode/corruptedblocks.pm index a32a6f5f8..f6b9146e0 100644 --- a/src/database/oracle/mode/corruptedblocks.pm +++ b/src/database/oracle/mode/corruptedblocks.pm @@ -87,11 +87,11 @@ Check Oracle corrupted blocks. =item B<--warning> -Threshold warning. +Warning threshold. =item B<--critical> -Threshold critical. +Critical threshold. =back diff --git a/src/database/oracle/mode/datacachehitratio.pm b/src/database/oracle/mode/datacachehitratio.pm index 864cfd662..0c469f79d 100644 --- a/src/database/oracle/mode/datacachehitratio.pm +++ b/src/database/oracle/mode/datacachehitratio.pm @@ -109,11 +109,11 @@ Check Oracle buffer cache hit ratio. =item B<--warning-usage> -Threshold warning. +Warning threshold. =item B<--critical-usage> -Threshold critical. +Critical threshold. =back diff --git a/src/database/oracle/mode/datafilesstatus.pm b/src/database/oracle/mode/datafilesstatus.pm index c2ed0b71d..166254fbf 100644 --- a/src/database/oracle/mode/datafilesstatus.pm +++ b/src/database/oracle/mode/datafilesstatus.pm @@ -245,12 +245,12 @@ Filter data file name (can be a regexp). =item B<--warning-status> -Set warning threshold for status (Default: none). +Define the conditions to match for the status to be WARNING (Default: none). You can use the following variables: %{display}, %{status} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} =~ /offline|invalid/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} =~ /offline|invalid/i'). You can use the following variables: %{display}, %{status} =item B<--warning-online-status> diff --git a/src/database/oracle/mode/dataguard.pm b/src/database/oracle/mode/dataguard.pm index 433d7bd94..9af16236b 100644 --- a/src/database/oracle/mode/dataguard.pm +++ b/src/database/oracle/mode/dataguard.pm @@ -192,17 +192,17 @@ Check oracle dataguard. =item B<--unknown-status> -Set unknown threshold for status (Default: '%{mrp_status} =~ /undefined/ || %{log_transport} =~ /undefined/'). +Define the conditions to match for the status to be UNKNOWN (Default: '%{mrp_status} =~ /undefined/ || %{log_transport} =~ /undefined/'). You can use the following variables: %{roleLast}, %{role}, %{open_mode}, %{mrp_status}, %{mrp_process}, %{log_transport} =item B<--warning-status> -Set warning threshold for status (Default: '%{mrp_status} =~ /WAIT_FOR_LOG/i and %{log_transport} =~ /LGWR/i'). +Define the conditions to match for the status to be WARNING (Default: '%{mrp_status} =~ /WAIT_FOR_LOG/i and %{log_transport} =~ /LGWR/i'). You can use the following variables: %{roleLast}, %{role}, %{open_mode}, %{mrp_status}, %{mrp_process}, %{log_transport} =item B<--critical-status> -Set critical threshold for status (Default: '%{roleLast} ne %{role} || %{mrp_status} !~ /undefined|APPLYING_LOG|WAIT_FOR_LOG/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{roleLast} ne %{role} || %{mrp_status} !~ /undefined|APPLYING_LOG|WAIT_FOR_LOG/i'). You can use the following variables: %{roleLast}, %{role}, %{open_mode}, %{mrp_status}, %{mrp_process}, %{log_transport} =item B<--warning-*> B<--critical-*> diff --git a/src/database/oracle/mode/eventwaitsusage.pm b/src/database/oracle/mode/eventwaitsusage.pm index 1f85b72f0..2c619a6f1 100644 --- a/src/database/oracle/mode/eventwaitsusage.pm +++ b/src/database/oracle/mode/eventwaitsusage.pm @@ -207,12 +207,12 @@ Check Oracle event wait usage. =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'total-waits-sec', 'total-waits-time', 'event-count'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'total-waits-sec', 'total-waits-time', 'event-count'. =item B<--filter-name> diff --git a/src/database/oracle/mode/invalidobject.pm b/src/database/oracle/mode/invalidobject.pm index 1bd744dc3..5ea908b3b 100644 --- a/src/database/oracle/mode/invalidobject.pm +++ b/src/database/oracle/mode/invalidobject.pm @@ -189,13 +189,13 @@ Filter by message (can be a regexp). =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'objects', 'indexes', 'ind-partitions', 'ind-subpartitions', 'registry-components'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'objects', 'indexes', 'ind-partitions', 'ind-subpartitions', 'registry-components'. diff --git a/src/database/oracle/mode/longqueries.pm b/src/database/oracle/mode/longqueries.pm index 1e31fbeaf..6b2352967 100644 --- a/src/database/oracle/mode/longqueries.pm +++ b/src/database/oracle/mode/longqueries.pm @@ -181,12 +181,12 @@ Check long sql queries. =item B<--warning-status> -Set warning threshold for status (Default: '') +Define the conditions to match for the status to be WARNING (Default: '') You can use the following variables: %{username}, %{sql_text}, %{since}, %{status} =item B<--critical-status> -Set critical threshold for status (Default: ''). +Define the conditions to match for the status to be CRITICAL (Default: ''). You can use the following variables: %{username}, %{sql_text}, %{since}, %{status} =item B<--timezone> diff --git a/src/database/oracle/mode/passwordexpiration.pm b/src/database/oracle/mode/passwordexpiration.pm index 16ffad410..9bc2875cd 100644 --- a/src/database/oracle/mode/passwordexpiration.pm +++ b/src/database/oracle/mode/passwordexpiration.pm @@ -148,12 +148,12 @@ Check user password expiration. =item B<--warning-status> -Set warning threshold for status (Default: '') +Define the conditions to match for the status to be WARNING (Default: '') You can use the following variables: %{username}, %{account_status}, %{expire} =item B<--critical-status> -Set critical threshold for status (Default: ''). +Define the conditions to match for the status to be CRITICAL (Default: ''). You can use the following variables: %{username}, %{account_status}, %{expire} =item B<--timezone> diff --git a/src/database/oracle/mode/processusage.pm b/src/database/oracle/mode/processusage.pm index 15afcdb11..98e36d81c 100644 --- a/src/database/oracle/mode/processusage.pm +++ b/src/database/oracle/mode/processusage.pm @@ -87,11 +87,11 @@ Check Oracle process used. =item B<--warning> -Threshold warning. +Warning threshold. =item B<--critical> -Threshold critical. +Critical threshold. =back diff --git a/src/database/oracle/mode/rmanbackupage.pm b/src/database/oracle/mode/rmanbackupage.pm index 345b3fcb7..3cbbfba50 100644 --- a/src/database/oracle/mode/rmanbackupage.pm +++ b/src/database/oracle/mode/rmanbackupage.pm @@ -205,12 +205,12 @@ Check Oracle rman backup age. =item B<--warning-*> -Threshold warning in seconds. +Warning threshold in seconds. Can be: 'db-incr', 'db-full', 'archivelog', 'controlfile'. =item B<--critical-*> -Threshold critical in seconds. +Critical threshold in seconds. Can be: 'db-incr', 'db-full', 'archivelog', 'controlfile'. =item B< --no-*> diff --git a/src/database/oracle/mode/rmanonlinebackupage.pm b/src/database/oracle/mode/rmanonlinebackupage.pm index d14040e43..4e0b85910 100644 --- a/src/database/oracle/mode/rmanonlinebackupage.pm +++ b/src/database/oracle/mode/rmanonlinebackupage.pm @@ -127,11 +127,11 @@ Check Oracle backup online mode. =item B<--warning> -Threshold warning in seconds. +Warning threshold in seconds. =item B<--critical> -Threshold critical in seconds. +Critical threshold in seconds. =item B<--timezone> diff --git a/src/database/oracle/mode/rollbacksegmentusage.pm b/src/database/oracle/mode/rollbacksegmentusage.pm index ae323347a..09072bafb 100644 --- a/src/database/oracle/mode/rollbacksegmentusage.pm +++ b/src/database/oracle/mode/rollbacksegmentusage.pm @@ -170,13 +170,13 @@ Check Oracle rollback segment usage. =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'header-contention', 'block-contention', 'hit-ratio', 'extends', 'wraps'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'header-contention', 'block-contention', 'hit-ratio', 'extends', 'wraps'. diff --git a/src/database/oracle/mode/sessionusage.pm b/src/database/oracle/mode/sessionusage.pm index e9c90ba67..3f58ad56d 100644 --- a/src/database/oracle/mode/sessionusage.pm +++ b/src/database/oracle/mode/sessionusage.pm @@ -88,11 +88,11 @@ Check Oracle session used. =item B<--warning> -Threshold warning. +Warning threshold. =item B<--critical> -Threshold critical. +Critical threshold. =back diff --git a/src/database/oracle/mode/tablespaceusage.pm b/src/database/oracle/mode/tablespaceusage.pm index 77dcfa626..1467dc4af 100644 --- a/src/database/oracle/mode/tablespaceusage.pm +++ b/src/database/oracle/mode/tablespaceusage.pm @@ -631,11 +631,11 @@ Check Oracle tablespaces usage. =item B<--warning-tablespace> -Threshold warning. +Warning threshold. =item B<--critical-tablespace> -Threshold critical. +Critical threshold. =item B<--filter-tablespace> diff --git a/src/database/postgres/mode/backends.pm b/src/database/postgres/mode/backends.pm index 07e2431ae..95b9dff48 100644 --- a/src/database/postgres/mode/backends.pm +++ b/src/database/postgres/mode/backends.pm @@ -151,11 +151,11 @@ Check the current number of connections for one or more databases =item B<--warning> -Threshold warning in percent. +Warning threshold in percent. =item B<--critical> -Threshold critical in percent. +Critical threshold in percent. =item B<--exclude> diff --git a/src/database/postgres/mode/connectiontime.pm b/src/database/postgres/mode/connectiontime.pm index 0c0d07a13..4db8b6537 100644 --- a/src/database/postgres/mode/connectiontime.pm +++ b/src/database/postgres/mode/connectiontime.pm @@ -45,11 +45,11 @@ Check database connection time. =item B<--warning> -Threshold warning in milliseconds. +Warning threshold in milliseconds. =item B<--critical> -Threshold critical in milliseconds. +Critical threshold in milliseconds. =back diff --git a/src/database/postgres/mode/databasesize.pm b/src/database/postgres/mode/databasesize.pm index 4453bcc9e..e03425ea0 100644 --- a/src/database/postgres/mode/databasesize.pm +++ b/src/database/postgres/mode/databasesize.pm @@ -109,11 +109,11 @@ Filter database to checks (Can use regexp). =item B<--warning-size> -Threshold warning in bytes, maximum size allowed. +Warning threshold in bytes, maximum size allowed. =item B<--critical-size> -Threshold critical in bytes, maximum size allowed. +Critical threshold in bytes, maximum size allowed. =back diff --git a/src/database/postgres/mode/hitratio.pm b/src/database/postgres/mode/hitratio.pm index 643a9cd7c..dfae1d496 100644 --- a/src/database/postgres/mode/hitratio.pm +++ b/src/database/postgres/mode/hitratio.pm @@ -171,11 +171,11 @@ Check hitratio (in buffer cache) for databases. =item B<--warning> -Threshold warning. +Warning threshold. =item B<--critical> -Threshold critical. +Critical threshold. =item B<--lookback> diff --git a/src/database/postgres/mode/locks.pm b/src/database/postgres/mode/locks.pm index d7f1e5821..5385d52e7 100644 --- a/src/database/postgres/mode/locks.pm +++ b/src/database/postgres/mode/locks.pm @@ -154,12 +154,12 @@ Check locks for one or more databases =item B<--warning> -Threshold warning. (example: "total=250,waiting=5,exclusive=20") +Warning threshold. (example: "total=250,waiting=5,exclusive=20") 'total', 'waiting', or the name of a lock type used by Postgres. =item B<--critical> -Threshold critical. (example: "total=250,waiting=5,exclusive=20") +Critical threshold. (example: "total=250,waiting=5,exclusive=20") 'total', 'waiting', or the name of a lock type used by Postgres. =item B<--exclude> diff --git a/src/database/postgres/mode/querytime.pm b/src/database/postgres/mode/querytime.pm index 97a1f2611..1caf72327 100644 --- a/src/database/postgres/mode/querytime.pm +++ b/src/database/postgres/mode/querytime.pm @@ -152,11 +152,11 @@ Checks the time of running queries for one or more databases =item B<--warning> -Threshold warning in seconds. +Warning threshold in seconds. =item B<--critical> -Threshold critical in seconds. +Critical threshold in seconds. =item B<--exclude> diff --git a/src/database/postgres/mode/statistics.pm b/src/database/postgres/mode/statistics.pm index ed30b1398..7d5127c97 100644 --- a/src/database/postgres/mode/statistics.pm +++ b/src/database/postgres/mode/statistics.pm @@ -196,13 +196,13 @@ Check database statistics: commit, rollback, insert, delete, update. =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'commit', 'rollback', 'insert', 'delete', 'update', 'total-commit', 'total-rollback', 'total-insert', 'total-delete', 'total-update'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'commit', 'rollback', 'insert', 'delete', 'update', 'total-commit', 'total-rollback', 'total-insert', 'total-delete', 'total-update'. diff --git a/src/database/postgres/mode/timesync.pm b/src/database/postgres/mode/timesync.pm index 42648af2b..b63e79013 100644 --- a/src/database/postgres/mode/timesync.pm +++ b/src/database/postgres/mode/timesync.pm @@ -106,11 +106,11 @@ Compares the local system time with the time reported by Postgres =item B<--warning> -Threshold warning in seconds. (use a range. it can be -0.3s or +0.3s.) +Warning threshold in seconds. (use a range. it can be -0.3s or +0.3s.) =item B<--critical> -Threshold critical in seconds. (use a range. it can be -0.3s or +0.3s.) +Critical threshold in seconds. (use a range. it can be -0.3s or +0.3s.) =back diff --git a/src/database/postgres/mode/vacuum.pm b/src/database/postgres/mode/vacuum.pm index 1ad143307..a1ace946f 100644 --- a/src/database/postgres/mode/vacuum.pm +++ b/src/database/postgres/mode/vacuum.pm @@ -107,11 +107,11 @@ Check a vacuum (manual or auto) command has been performed on at least one of th =item B<--warning> -Threshold warning in seconds, maximum time interval since last vacuum. +Warning threshold in seconds, maximum time interval since last vacuum. =item B<--critical> -Threshold critical in seconds, maximum time interval since last vacuum. +Critical threshold in seconds, maximum time interval since last vacuum. =back diff --git a/src/database/redis/mode/persistence.pm b/src/database/redis/mode/persistence.pm index ed3c92965..eeb072d02 100644 --- a/src/database/redis/mode/persistence.pm +++ b/src/database/redis/mode/persistence.pm @@ -139,23 +139,23 @@ Check RDB persistence status. =item B<--warning-status> -Set warning threshold for status (Default: '%{progress_status} =~ /in progress/i'). +Define the conditions to match for the status to be WARNING (Default: '%{progress_status} =~ /in progress/i'). You can use the following variables: %{progress_status}, %{status} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} =~ /fail/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} =~ /fail/i'). You can use the following variables: %{progress_status}, %{status} =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'changes', 'last-save', 'save-size', 'last-save-duration', 'current-save-duration'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'changes', 'last-save', 'save-size', 'last-save-duration', 'current-save-duration'. diff --git a/src/database/redis/mode/replication.pm b/src/database/redis/mode/replication.pm index c953d76b5..2e4796386 100644 --- a/src/database/redis/mode/replication.pm +++ b/src/database/redis/mode/replication.pm @@ -171,23 +171,23 @@ Check replication status. =item B<--warning-status> -Set warning threshold for status (Default: '%{sync_status} =~ /in progress/i'). +Define the conditions to match for the status to be WARNING (Default: '%{sync_status} =~ /in progress/i'). You can use the following variables: %{sync_status}, %{link_status}, %{cluster_state} =item B<--critical-status> -Set critical threshold for status (Default: '%{link_status} =~ /down/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{link_status} =~ /down/i'). You can use the following variables: %{sync_status}, %{link_status}, %{cluster_state} =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'connected-slaves', 'master-repl-offset', 'master-last-io', 'slave-priority', 'slave-read-only'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'connected-slaves', 'master-repl-offset', 'master-last-io', 'slave-priority', 'slave-read-only'. diff --git a/src/database/sap/hana/mode/blockedtransactions.pm b/src/database/sap/hana/mode/blockedtransactions.pm index 5b05cc8f7..d2e311496 100644 --- a/src/database/sap/hana/mode/blockedtransactions.pm +++ b/src/database/sap/hana/mode/blockedtransactions.pm @@ -82,12 +82,12 @@ Check total blocked transactions. =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'blocked-transactions'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'blocked-transactions'. =back diff --git a/src/database/sap/hana/mode/connectedusers.pm b/src/database/sap/hana/mode/connectedusers.pm index a6fb0b70f..f6395c4a7 100644 --- a/src/database/sap/hana/mode/connectedusers.pm +++ b/src/database/sap/hana/mode/connectedusers.pm @@ -109,12 +109,12 @@ Filter connected username. (Can be a regex) =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'users'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'users'. =back diff --git a/src/database/sap/hana/mode/diskusage.pm b/src/database/sap/hana/mode/diskusage.pm index 1833db57b..fd357ee8b 100644 --- a/src/database/sap/hana/mode/diskusage.pm +++ b/src/database/sap/hana/mode/diskusage.pm @@ -176,11 +176,11 @@ Check disk usages. =item B<--warning-usage> -Threshold warning. +Warning threshold. =item B<--critical-usage> -Threshold critical. +Critical threshold. =item B<--filter-name> diff --git a/src/database/sap/hana/mode/hostcpu.pm b/src/database/sap/hana/mode/hostcpu.pm index 06ed0dec6..44f8ddf94 100644 --- a/src/database/sap/hana/mode/hostcpu.pm +++ b/src/database/sap/hana/mode/hostcpu.pm @@ -150,12 +150,12 @@ Example : --filter-counters='^idle$' =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'user', 'sys', 'idle', 'wait'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'user', 'sys', 'idle', 'wait'. =back diff --git a/src/database/sap/hana/mode/hostmemory.pm b/src/database/sap/hana/mode/hostmemory.pm index 8fd56fde4..2e6dd7dba 100644 --- a/src/database/sap/hana/mode/hostmemory.pm +++ b/src/database/sap/hana/mode/hostmemory.pm @@ -170,12 +170,12 @@ Example : --filter-counters='^physical-usage$' =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'physical-usage' (%), 'swap-usage' (%). =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'physical-usage' (%), 'swap-usage' (%). =back diff --git a/src/database/sap/hana/mode/volumeusage.pm b/src/database/sap/hana/mode/volumeusage.pm index ddf6853ac..f9c2d63bb 100644 --- a/src/database/sap/hana/mode/volumeusage.pm +++ b/src/database/sap/hana/mode/volumeusage.pm @@ -176,11 +176,11 @@ Check data volume usages. =item B<--warning-usage> -Threshold warning. +Warning threshold. =item B<--critical-usage> -Threshold critical. +Critical threshold. =item B<--filter-name> diff --git a/src/database/sybase/mode/blockedprocesses.pm b/src/database/sybase/mode/blockedprocesses.pm index 420d19e2c..ef0556c11 100644 --- a/src/database/sybase/mode/blockedprocesses.pm +++ b/src/database/sybase/mode/blockedprocesses.pm @@ -87,11 +87,11 @@ Check MSSQL blocked processes. =item B<--warning> -Threshold warning. +Warning threshold. =item B<--critical> -Threshold critical. +Critical threshold. =back diff --git a/src/database/sybase/mode/connectedusers.pm b/src/database/sybase/mode/connectedusers.pm index 49f10e8fc..cccc1c129 100644 --- a/src/database/sybase/mode/connectedusers.pm +++ b/src/database/sybase/mode/connectedusers.pm @@ -87,11 +87,11 @@ Check MSSQL connected users. =item B<--warning> -Threshold warning. +Warning threshold. =item B<--critical> -Threshold critical. +Critical threshold. =back diff --git a/src/database/sybase/mode/databasessize.pm b/src/database/sybase/mode/databasessize.pm index 9110e2f93..bc2c9d2ef 100644 --- a/src/database/sybase/mode/databasessize.pm +++ b/src/database/sybase/mode/databasessize.pm @@ -184,12 +184,12 @@ Check MSSQL Database usage =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'data', 'log'. =item B<--critical-*> -Threshold warning. +Warning threshold. Can be: 'data', 'log'. =item B<--filter-database> diff --git a/src/database/warp10/sensision/mode/fetchstatistics.pm b/src/database/warp10/sensision/mode/fetchstatistics.pm index e72ff5933..7ad00ef2f 100644 --- a/src/database/warp10/sensision/mode/fetchstatistics.pm +++ b/src/database/warp10/sensision/mode/fetchstatistics.pm @@ -184,12 +184,12 @@ Example: --filter-counters='calls' =item B<--warning-*-count/persecond> -Threshold warning. +Warning threshold. Can be: 'calls', 'bytes-values', 'bytes-keys'. =item B<--critical-*-count/persecond> -Threshold critical. +Critical threshold. Can be: 'calls', 'bytes-values', 'bytes-keys'. =back diff --git a/src/database/warp10/sensision/mode/scriptstatistics.pm b/src/database/warp10/sensision/mode/scriptstatistics.pm index c6bf7b4c2..2b5d1baa7 100644 --- a/src/database/warp10/sensision/mode/scriptstatistics.pm +++ b/src/database/warp10/sensision/mode/scriptstatistics.pm @@ -217,13 +217,13 @@ Example: --filter-counters='^time$|uses' =item B<--warning-*-count/persecond> -Threshold warning. +Warning threshold. Can be: 'time-total' (delta), 'requests', 'ops', 'errors', 'bootstrap-loads', 'time' (delta), 'uses'. =item B<--critical-*-count/persecond> -Threshold critical. +Critical threshold. Can be: 'time-total' (delta), 'requests', 'ops', 'errors', 'bootstrap-loads', 'time' (delta), 'uses'. diff --git a/src/example/mode/getvalue.pm b/src/example/mode/getvalue.pm index daac2be5a..727656be9 100644 --- a/src/example/mode/getvalue.pm +++ b/src/example/mode/getvalue.pm @@ -98,11 +98,11 @@ Check OID Integer value. =item B<--warning> -Threshold warning. +Warning threshold. =item B<--critical> -Threshold critical. +Critical threshold. =back diff --git a/src/hardware/ats/apc/snmp/mode/inputlines.pm b/src/hardware/ats/apc/snmp/mode/inputlines.pm index f0ff7f1a1..038216421 100644 --- a/src/hardware/ats/apc/snmp/mode/inputlines.pm +++ b/src/hardware/ats/apc/snmp/mode/inputlines.pm @@ -134,12 +134,12 @@ Example: --filter-counters='^power$' =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'voltage', 'current', 'power'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'voltage', 'current', 'power'. =back diff --git a/src/hardware/ats/apc/snmp/mode/outputlines.pm b/src/hardware/ats/apc/snmp/mode/outputlines.pm index 5162c5078..0d2a6cc8f 100644 --- a/src/hardware/ats/apc/snmp/mode/outputlines.pm +++ b/src/hardware/ats/apc/snmp/mode/outputlines.pm @@ -188,22 +188,22 @@ Example: --filter-counters='^power$' =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'voltage', 'current', 'power', 'load', 'load-capacity'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'voltage', 'current', 'power', 'load', 'load-capacity'. =item B<--warning-status> -Set warning threshold for status (Default: '%{status} =~ /nearoverload/'). +Define the conditions to match for the status to be WARNING (Default: '%{status} =~ /nearoverload/'). You can use the following variables: %{status}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} =~ /^(lowload|overload)$/'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} =~ /^(lowload|overload)$/'). You can use the following variables: %{status}, %{display} =back diff --git a/src/hardware/ats/eaton/snmp/mode/inputlines.pm b/src/hardware/ats/eaton/snmp/mode/inputlines.pm index 21a7321b9..c97d9e144 100644 --- a/src/hardware/ats/eaton/snmp/mode/inputlines.pm +++ b/src/hardware/ats/eaton/snmp/mode/inputlines.pm @@ -159,7 +159,7 @@ Example: --filter-counters='^voltage$' =item B<--warning-*> B<--critical-*> -Threshold warning. +Warning threshold. Can be: 'voltage', 'frequence'. =back diff --git a/src/hardware/ats/eaton/snmp/mode/outputline.pm b/src/hardware/ats/eaton/snmp/mode/outputline.pm index 7e6b370f7..c0f6a5ee0 100644 --- a/src/hardware/ats/eaton/snmp/mode/outputline.pm +++ b/src/hardware/ats/eaton/snmp/mode/outputline.pm @@ -126,7 +126,7 @@ Example: --filter-counters='^voltage$' =item B<--warning-*> B<--critical-*> -Threshold warning. +Warning threshold. Can be: 'voltage', 'current'. =back diff --git a/src/hardware/ats/eaton/snmp/mode/system.pm b/src/hardware/ats/eaton/snmp/mode/system.pm index c5a5a53d1..501973e0a 100644 --- a/src/hardware/ats/eaton/snmp/mode/system.pm +++ b/src/hardware/ats/eaton/snmp/mode/system.pm @@ -164,27 +164,27 @@ Example: --filter-counters='^status$' =item B<--unknown-status> -Set unknown threshold for status (Default: ''). +Define the conditions to match for the status to be UNKNOWN (Default: ''). You can use the following variables: operation_mode =item B<--warning-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: operation_mode =item B<--critical-status> -Set critical threshold for status (Default: '%{operation_mode} !~ /source1|source2/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{operation_mode} !~ /source1|source2/i'). You can use the following variables: %{operation_mode} =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'temperature', 'humidity'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'temperature', 'humidity'. =back diff --git a/src/hardware/devices/abb/cms700/snmp/mode/mainsmeasurements.pm b/src/hardware/devices/abb/cms700/snmp/mode/mainsmeasurements.pm index 4a62dcf8f..2d7cc08d0 100644 --- a/src/hardware/devices/abb/cms700/snmp/mode/mainsmeasurements.pm +++ b/src/hardware/devices/abb/cms700/snmp/mode/mainsmeasurements.pm @@ -284,7 +284,7 @@ Example: --filter-counters='^power|energy$' =item B<--warning-*> B<--critical-*> -Threshold warning. +Warning threshold. Can be: 'power-apparent-total', 'power-active-total', 'power-reactive-total', 'voltage', 'current', 'power-factor', 'cosphi', 'power-apparent', 'power-active', 'power-reactive', 'energy-apparent', 'energy-active', diff --git a/src/hardware/devices/abb/cms700/snmp/mode/sensorsmeasurements.pm b/src/hardware/devices/abb/cms700/snmp/mode/sensorsmeasurements.pm index 94b595b05..d0cf288f0 100644 --- a/src/hardware/devices/abb/cms700/snmp/mode/sensorsmeasurements.pm +++ b/src/hardware/devices/abb/cms700/snmp/mode/sensorsmeasurements.pm @@ -252,7 +252,7 @@ Example: --filter-counters='^current$' =item B<--warning-*> B<--critical-*> -Threshold warning. +Warning threshold. Can be: 'current-mixte', 'current-alternative', 'current-direct', 'power-active', 'energy-active', 'power-factor'. diff --git a/src/hardware/devices/aeg/acm/snmp/mode/acstatus.pm b/src/hardware/devices/aeg/acm/snmp/mode/acstatus.pm index 8f3153b1e..c726c6bbc 100644 --- a/src/hardware/devices/aeg/acm/snmp/mode/acstatus.pm +++ b/src/hardware/devices/aeg/acm/snmp/mode/acstatus.pm @@ -132,12 +132,12 @@ Check AC plant status. =item B<--warning-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{status} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} =~ /true/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} =~ /true/i'). You can use the following variables: %{status} =back diff --git a/src/hardware/devices/aeg/acm/snmp/mode/batterystatus.pm b/src/hardware/devices/aeg/acm/snmp/mode/batterystatus.pm index e49440b75..d73f5cba5 100644 --- a/src/hardware/devices/aeg/acm/snmp/mode/batterystatus.pm +++ b/src/hardware/devices/aeg/acm/snmp/mode/batterystatus.pm @@ -237,23 +237,23 @@ Example: --filter-counters='^status|current$' =item B<--warning-status> -Set warning threshold for status (Default: '%{status} =~ /onBattery/i'). +Define the conditions to match for the status to be WARNING (Default: '%{status} =~ /onBattery/i'). You can use the following variables: %{status} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} =~ /disconnected/i || %{status} =~ /shutdown/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} =~ /disconnected/i || %{status} =~ /shutdown/i'). You can use the following variables: %{status} =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'voltage', 'current', 'current1', 'current2', 'temperature', 'temperature2', 'temperature2', 'amphourmeter'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'voltage', 'current', 'current1', 'current2', 'temperature', 'temperature2', 'temperature2', 'amphourmeter'. diff --git a/src/hardware/devices/aeg/acm/snmp/mode/loadstatus.pm b/src/hardware/devices/aeg/acm/snmp/mode/loadstatus.pm index 313810b6b..f9bf5be38 100644 --- a/src/hardware/devices/aeg/acm/snmp/mode/loadstatus.pm +++ b/src/hardware/devices/aeg/acm/snmp/mode/loadstatus.pm @@ -146,12 +146,12 @@ Example: --filter-counters='^current$' =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'voltage', 'current', 'power'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'voltage', 'current', 'power'. =back diff --git a/src/hardware/devices/aeg/acm/snmp/mode/rectifierstatus.pm b/src/hardware/devices/aeg/acm/snmp/mode/rectifierstatus.pm index ccc1c7f36..da204c3e5 100644 --- a/src/hardware/devices/aeg/acm/snmp/mode/rectifierstatus.pm +++ b/src/hardware/devices/aeg/acm/snmp/mode/rectifierstatus.pm @@ -193,22 +193,22 @@ Example: --filter-counters='^status|current$' =item B<--warning-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{status} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} !~ /ok|notInstalled/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} !~ /ok|notInstalled/i'). You can use the following variables: %{status} =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'voltage', 'current', 'faulty-count'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'voltage', 'current', 'faulty-count'. =back diff --git a/src/hardware/devices/cisco/ces/restapi/mode/diagnostics.pm b/src/hardware/devices/cisco/ces/restapi/mode/diagnostics.pm index fc5b67348..d3258366a 100644 --- a/src/hardware/devices/cisco/ces/restapi/mode/diagnostics.pm +++ b/src/hardware/devices/cisco/ces/restapi/mode/diagnostics.pm @@ -150,12 +150,12 @@ Use old legacy command. =item B<--warning-status> -Set warning threshold for status (Default: '%{level} =~ /warning|minor/i') +Define the conditions to match for the status to be WARNING (Default: '%{level} =~ /warning|minor/i') You can use the following variables: %{description}, %{level}, %{type} =item B<--critical-status> -Set critical threshold for status (Default: '%{level} =~ /critical|major/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{level} =~ /critical|major/i'). You can use the following variables: %{description}, %{level}, %{type} =back diff --git a/src/hardware/devices/cisco/cts/snmp/mode/peripherals.pm b/src/hardware/devices/cisco/cts/snmp/mode/peripherals.pm index 689966895..e49cb5596 100644 --- a/src/hardware/devices/cisco/cts/snmp/mode/peripherals.pm +++ b/src/hardware/devices/cisco/cts/snmp/mode/peripherals.pm @@ -144,12 +144,12 @@ Filter peripheral by description (can be a regexp). =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{status}, %{description} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} !~ /^registered/'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} !~ /^registered/'). You can use the following variables: %{status}, %{description} =item B<--warning-*> B<--critical-*> diff --git a/src/hardware/devices/eltek/enexus/snmp/mode/alarms.pm b/src/hardware/devices/eltek/enexus/snmp/mode/alarms.pm index 08d24729c..1da59a245 100644 --- a/src/hardware/devices/eltek/enexus/snmp/mode/alarms.pm +++ b/src/hardware/devices/eltek/enexus/snmp/mode/alarms.pm @@ -152,17 +152,17 @@ Filter name (can be a regexp). =item B<--unknown-status> -Set unknown threshold for status (Default: ''). +Define the conditions to match for the status to be UNKNOWN (Default: ''). You can use the following variables: %{state}, %{status}, %{lastOpError}, %{display} =item B<--warning-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{name}, %{status} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} eq "alarm"). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} eq "alarm"). You can use the following variables: %{name}, %{status} =item B<--warning-*> B<--critical-*> diff --git a/src/hardware/devices/eltek/enexus/snmp/mode/battery.pm b/src/hardware/devices/eltek/enexus/snmp/mode/battery.pm index 74a81b648..14aec6534 100644 --- a/src/hardware/devices/eltek/enexus/snmp/mode/battery.pm +++ b/src/hardware/devices/eltek/enexus/snmp/mode/battery.pm @@ -300,17 +300,17 @@ Check battery. =item B<--unknown-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{status} =item B<--warning-status> -Set warning threshold for status (Default: '%{status} =~ /minor|warning/i'). +Define the conditions to match for the status to be WARNING (Default: '%{status} =~ /minor|warning/i'). You can use the following variables: %{status} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} =~ /error|major|critical/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} =~ /error|major|critical/i'). You can use the following variables: %{status} =item B<--warning-*> B<--critical-*> diff --git a/src/hardware/devices/eltek/enexus/snmp/mode/load.pm b/src/hardware/devices/eltek/enexus/snmp/mode/load.pm index 9d47fc6c8..d4a575c67 100644 --- a/src/hardware/devices/eltek/enexus/snmp/mode/load.pm +++ b/src/hardware/devices/eltek/enexus/snmp/mode/load.pm @@ -197,17 +197,17 @@ Check load. =item B<--unknown-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{status} =item B<--warning-status> -Set warning threshold for status (Default: '%{status} =~ /minor|warning/i'). +Define the conditions to match for the status to be WARNING (Default: '%{status} =~ /minor|warning/i'). You can use the following variables: %{status} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} =~ /error|major|critical/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} =~ /error|major|critical/i'). You can use the following variables: %{status} =item B<--warning-*> B<--critical-*> diff --git a/src/hardware/devices/eltek/enexus/snmp/mode/outputs.pm b/src/hardware/devices/eltek/enexus/snmp/mode/outputs.pm index 80504f621..80b4fb662 100644 --- a/src/hardware/devices/eltek/enexus/snmp/mode/outputs.pm +++ b/src/hardware/devices/eltek/enexus/snmp/mode/outputs.pm @@ -175,17 +175,17 @@ Filter name (can be a regexp). =item B<--unknown-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{status}, %{name} =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{status}, %{name} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} =~ /notenergized|disconnected/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} =~ /notenergized|disconnected/i'). You can use the following variables: %{status}, %{name} =item B<--warning-*> B<--critical-*> diff --git a/src/hardware/devices/gorgy/ntpserver/snmp/mode/globalstatus.pm b/src/hardware/devices/gorgy/ntpserver/snmp/mode/globalstatus.pm index 23e965dad..c66b023a8 100644 --- a/src/hardware/devices/gorgy/ntpserver/snmp/mode/globalstatus.pm +++ b/src/hardware/devices/gorgy/ntpserver/snmp/mode/globalstatus.pm @@ -175,32 +175,32 @@ Example: --filter-counters='^sync-status$' =item B<--warning-sync-status> -Set warning threshold for status (Default: '%{sync_status} =~ /Running with autonomy|Free running/i'). +Define the conditions to match for the status to be WARNING (Default: '%{sync_status} =~ /Running with autonomy|Free running/i'). You can use the following variables: %{sync_status} =item B<--critical-sync-status> -Set critical threshold for status (Default: '%{sync_status} =~ /Server locked|Never synchronized|Server not synchronized/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{sync_status} =~ /Server locked|Never synchronized|Server not synchronized/i'). You can use the following variables: %{sync_status} =item B<--warning-timebase-status> -Set warning threshold for status (Default: '%{timebase_status} =~ /^(?!(XO|XO OK|TCXO Precision < 2usec|OCXO Precision < 1usec)$)/i'). +Define the conditions to match for the status to be WARNING (Default: '%{timebase_status} =~ /^(?!(XO|XO OK|TCXO Precision < 2usec|OCXO Precision < 1usec)$)/i'). You can use the following variables: %{timebase_status} =item B<--critical-timebase-status> -Set critical threshold for status (Default: '%{timebase_status} =~ /^XO$/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{timebase_status} =~ /^XO$/i'). You can use the following variables: %{timebase_status} =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'ntp-requests'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'ntp-requests'. =back diff --git a/src/hardware/devices/hikvision/nvr/isapi/mode/disks.pm b/src/hardware/devices/hikvision/nvr/isapi/mode/disks.pm index 3d73e6035..cc53ad10d 100644 --- a/src/hardware/devices/hikvision/nvr/isapi/mode/disks.pm +++ b/src/hardware/devices/hikvision/nvr/isapi/mode/disks.pm @@ -190,17 +190,17 @@ Filter disks by name (can be a regexp). =item B<--unknown-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{status}, %{name} =item B<--warning-status> -Set warning threshold for status (Default: '%{status} =~ /reparing/i'). +Define the conditions to match for the status to be WARNING (Default: '%{status} =~ /reparing/i'). You can use the following variables: %{status}, %{name} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} =~ /error|smartFailed/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} =~ /error|smartFailed/i'). You can use the following variables: %{status}, %{name} =item B<--warning-*> B<--critical-*> diff --git a/src/hardware/devices/hikvision/nvr/isapi/mode/protocols.pm b/src/hardware/devices/hikvision/nvr/isapi/mode/protocols.pm index 52b0635a3..4eb203328 100644 --- a/src/hardware/devices/hikvision/nvr/isapi/mode/protocols.pm +++ b/src/hardware/devices/hikvision/nvr/isapi/mode/protocols.pm @@ -108,17 +108,17 @@ Filter protocols by name (can be a regexp). =item B<--unknown-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{enabled}, %{name} =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{enabled}, %{name} =item B<--critical-status> -Set critical threshold for status. +Define the conditions to match for the status to be CRITICAL. You can use the following variables: %{enabled}, %{name} =back diff --git a/src/hardware/devices/hikvision/nvr/isapi/mode/uptime.pm b/src/hardware/devices/hikvision/nvr/isapi/mode/uptime.pm index 464d32153..b77af2202 100644 --- a/src/hardware/devices/hikvision/nvr/isapi/mode/uptime.pm +++ b/src/hardware/devices/hikvision/nvr/isapi/mode/uptime.pm @@ -127,11 +127,11 @@ Check system uptime. =item B<--warning-uptime> -Threshold warning. +Warning threshold. =item B<--critical-uptime> -Threshold critical. +Critical threshold. =item B<--unit> diff --git a/src/hardware/devices/hikvision/nvr/snmp/mode/disks.pm b/src/hardware/devices/hikvision/nvr/snmp/mode/disks.pm index df02f5477..2487b60b4 100644 --- a/src/hardware/devices/hikvision/nvr/snmp/mode/disks.pm +++ b/src/hardware/devices/hikvision/nvr/snmp/mode/disks.pm @@ -207,17 +207,17 @@ Filter disks by name (can be a regexp). =item B<--unknown-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{status}, %{name} =item B<--warning--status> -Set warning threshold for status (Default: '%{status} =~ /reparing|formatting/i'). +Define the conditions to match for the status to be WARNING (Default: '%{status} =~ /reparing|formatting/i'). You can use the following variables: %{status}, %{name} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} =~ /abnormal|smartfailed/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} =~ /abnormal|smartfailed/i'). You can use the following variables: %{status}, %{name} =item B<--warning-*> B<--critical-*> diff --git a/src/hardware/devices/hikvision/nvr/snmp/mode/uptime.pm b/src/hardware/devices/hikvision/nvr/snmp/mode/uptime.pm index 1420fce70..7c1cc498b 100644 --- a/src/hardware/devices/hikvision/nvr/snmp/mode/uptime.pm +++ b/src/hardware/devices/hikvision/nvr/snmp/mode/uptime.pm @@ -45,11 +45,11 @@ Check system uptime. =item B<--warning-uptime> -Threshold warning. +Warning threshold. =item B<--critical-uptime> -Threshold critical. +Critical threshold. =item B<--add-sysdesc> diff --git a/src/hardware/devices/hms/ewon/snmp/mode/tags.pm b/src/hardware/devices/hms/ewon/snmp/mode/tags.pm index b3ada4026..80be8e97d 100644 --- a/src/hardware/devices/hms/ewon/snmp/mode/tags.pm +++ b/src/hardware/devices/hms/ewon/snmp/mode/tags.pm @@ -300,17 +300,17 @@ E.g: --tag-threshold-warning='tagNameMatch,50' --tag-threshold-critical='tagName =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{status}, %{name} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} =~ /alarm/'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} =~ /alarm/'). You can use the following variables: %{status}, %{name} =item B<--warning-*> B<--critical-*> -Threshold warning. +Warning threshold. Can be: 'usage' (B), 'usage-free' (B), 'usage-prct' (%). =back diff --git a/src/hardware/devices/masterclock/ntp100gps/snmp/mode/gpsstatus.pm b/src/hardware/devices/masterclock/ntp100gps/snmp/mode/gpsstatus.pm index 619ce93f5..625be2e38 100644 --- a/src/hardware/devices/masterclock/ntp100gps/snmp/mode/gpsstatus.pm +++ b/src/hardware/devices/masterclock/ntp100gps/snmp/mode/gpsstatus.pm @@ -119,12 +119,12 @@ Check GPS status =item B<--warning-status> -Set warning threshold for status (Default: '%{satellites} =~ /No satellites in view/') +Define the conditions to match for the status to be WARNING (Default: '%{satellites} =~ /No satellites in view/') You can use the following variables: %{health}, %{satellites}, %{latitude}, %{longitude} =item B<--critical-status> -Set critical threshold for status (Default: '') +Define the conditions to match for the status to be CRITICAL (Default: '') You can use the following variables: %{health}, %{satellites}, %{latitude}, %{longitude} =back diff --git a/src/hardware/devices/masterclock/ntp100gps/snmp/mode/ntpperformance.pm b/src/hardware/devices/masterclock/ntp100gps/snmp/mode/ntpperformance.pm index 583bce197..a1f822a50 100644 --- a/src/hardware/devices/masterclock/ntp100gps/snmp/mode/ntpperformance.pm +++ b/src/hardware/devices/masterclock/ntp100gps/snmp/mode/ntpperformance.pm @@ -140,21 +140,21 @@ Check NTP performances =item B<--warning-status> -Set warning threshold for status (Default: '%{health} !~ /No leap second today/') +Define the conditions to match for the status to be WARNING (Default: '%{health} !~ /No leap second today/') You can use the following variables: %{leap} =item B<--critical-status> -Set critical threshold for status (Default: '') +Define the conditions to match for the status to be CRITICAL (Default: '') You can use the following variables: %{health} =item B<--warning-*> -Threshold warning. Can be : 'stratum-level', 'precision', 'poll-interval' +Warning threshold. Can be : 'stratum-level', 'precision', 'poll-interval' =item B<--critical-*> -Threshold critical. Can be : 'stratum-level', 'precision', 'poll-interval' +Critical threshold. Can be : 'stratum-level', 'precision', 'poll-interval' =back diff --git a/src/hardware/devices/pexip/infinity/managementapi/mode/alarms.pm b/src/hardware/devices/pexip/infinity/managementapi/mode/alarms.pm index ea707784d..18b4e1a98 100644 --- a/src/hardware/devices/pexip/infinity/managementapi/mode/alarms.pm +++ b/src/hardware/devices/pexip/infinity/managementapi/mode/alarms.pm @@ -154,12 +154,12 @@ Filter by alert name (can be a regexp). =item B<--warning-status> -Set warning threshold for status (Default: '%{level} =~ /warning|minor/i') +Define the conditions to match for the status to be WARNING (Default: '%{level} =~ /warning|minor/i') You can use the following variables: %{level}, %{details}, %{name} =item B<--critical-status> -Set critical threshold for status (Default: '%{level} =~ /critical|major|error/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{level} =~ /critical|major|error/i'). You can use the following variables: %{level}, %{details}, %{name} =item B<--memory> diff --git a/src/hardware/devices/polycom/dma/snmp/mode/alerts.pm b/src/hardware/devices/polycom/dma/snmp/mode/alerts.pm index beb17b3ec..b36c9a9aa 100644 --- a/src/hardware/devices/polycom/dma/snmp/mode/alerts.pm +++ b/src/hardware/devices/polycom/dma/snmp/mode/alerts.pm @@ -184,12 +184,12 @@ Filter by message (can be a regexp). =item B<--warning-status> -Set warning threshold for status (Default: '%{severity} =~ /warn/i') +Define the conditions to match for the status to be WARNING (Default: '%{severity} =~ /warn/i') Can use special variables like: %{severity}, %{text}, %{code}, %{since} =item B<--critical-status> -Set critical threshold for status (Default: '%{severity} =~ /severe/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{severity} =~ /severe/i'). Can use special variables like: %{severity}, %{text}, %{source}, %{since} =item B<--memory> diff --git a/src/hardware/devices/polycom/trio/restapi/mode/device.pm b/src/hardware/devices/polycom/trio/restapi/mode/device.pm index 162f7a65b..464df89af 100644 --- a/src/hardware/devices/polycom/trio/restapi/mode/device.pm +++ b/src/hardware/devices/polycom/trio/restapi/mode/device.pm @@ -148,12 +148,12 @@ Check device cpu, memory and state. =item B<--warning-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{status} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} =~ /error/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} =~ /error/i'). You can use the following variables: %{status} =item B<--warning-*> B<--critical-*> diff --git a/src/hardware/devices/polycom/trio/restapi/mode/registration.pm b/src/hardware/devices/polycom/trio/restapi/mode/registration.pm index b68241bb9..2c8296a41 100644 --- a/src/hardware/devices/polycom/trio/restapi/mode/registration.pm +++ b/src/hardware/devices/polycom/trio/restapi/mode/registration.pm @@ -90,12 +90,12 @@ Check SIP registration. =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{status} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} !~ /registred/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} !~ /registred/i'). You can use the following variables: %{status} =back diff --git a/src/hardware/devices/timelinkmicro/tms6001/snmp/mode/antenna.pm b/src/hardware/devices/timelinkmicro/tms6001/snmp/mode/antenna.pm index b02dc5875..81a09aac0 100644 --- a/src/hardware/devices/timelinkmicro/tms6001/snmp/mode/antenna.pm +++ b/src/hardware/devices/timelinkmicro/tms6001/snmp/mode/antenna.pm @@ -102,17 +102,17 @@ Check antenna. =item B<--unknown-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{status} =item B<--warning-status> -Set warning threshold for status (Default: '%{status} =~ /shorted/i'). +Define the conditions to match for the status to be WARNING (Default: '%{status} =~ /shorted/i'). You can use the following variables: %{status} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} =~ /notConnected/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} =~ /notConnected/i'). You can use the following variables: %{status} =back diff --git a/src/hardware/devices/timelinkmicro/tms6001/snmp/mode/gnss.pm b/src/hardware/devices/timelinkmicro/tms6001/snmp/mode/gnss.pm index 6a447dabc..88a321801 100644 --- a/src/hardware/devices/timelinkmicro/tms6001/snmp/mode/gnss.pm +++ b/src/hardware/devices/timelinkmicro/tms6001/snmp/mode/gnss.pm @@ -96,17 +96,17 @@ Check GNSS. =item B<--unknown-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{status} =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{status} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} !~ /nominal/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} !~ /nominal/i'). You can use the following variables: %{status} =back diff --git a/src/hardware/devices/video/appeartv/snmp/mode/alarms.pm b/src/hardware/devices/video/appeartv/snmp/mode/alarms.pm index 385847daf..2d75662c0 100644 --- a/src/hardware/devices/video/appeartv/snmp/mode/alarms.pm +++ b/src/hardware/devices/video/appeartv/snmp/mode/alarms.pm @@ -172,12 +172,12 @@ Filter by message (can be a regexp). =item B<--warning-status> -Set warning threshold for status (Default: '%{severity} =~ /minor|warning/i') +Define the conditions to match for the status to be WARNING (Default: '%{severity} =~ /minor|warning/i') You can use the following variables: %{severity}, %{text}, %{source}, %{since} =item B<--critical-status> -Set critical threshold for status (Default: '%{severity} =~ /critical|major/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{severity} =~ /critical|major/i'). You can use the following variables: %{severity}, %{text}, %{source}, %{since} =item B<--memory> diff --git a/src/hardware/kvm/adder/aim/snmp/mode/deviceusage.pm b/src/hardware/kvm/adder/aim/snmp/mode/deviceusage.pm index b97a54c63..9d2b14442 100644 --- a/src/hardware/kvm/adder/aim/snmp/mode/deviceusage.pm +++ b/src/hardware/kvm/adder/aim/snmp/mode/deviceusage.pm @@ -172,22 +172,22 @@ Filter by device name (can be a regexp). =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{status}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: 'not %{status} =~ /online|rebooting|upgrading/i'). +Define the conditions to match for the status to be CRITICAL (Default: 'not %{status} =~ /online|rebooting|upgrading/i'). You can use the following variables: %{status}, %{display} =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'total', 'online'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'total', 'online'. =back diff --git a/src/hardware/kvm/adder/aim/snmp/mode/serverusage.pm b/src/hardware/kvm/adder/aim/snmp/mode/serverusage.pm index 5421e947b..a9f84fb64 100644 --- a/src/hardware/kvm/adder/aim/snmp/mode/serverusage.pm +++ b/src/hardware/kvm/adder/aim/snmp/mode/serverusage.pm @@ -141,13 +141,13 @@ Example: --filter-counters='^cpu-load$' =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'cpu-load', 'memory', 'disk', 'num-rx', 'num-tx', 'num-active-con'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'cpu-load', 'memory', 'disk', 'num-rx', 'num-tx', 'num-active-con'. diff --git a/src/hardware/kvm/avocent/acs/8000/snmp/mode/serialports.pm b/src/hardware/kvm/avocent/acs/8000/snmp/mode/serialports.pm index 99daeadc4..9ec334f29 100644 --- a/src/hardware/kvm/avocent/acs/8000/snmp/mode/serialports.pm +++ b/src/hardware/kvm/avocent/acs/8000/snmp/mode/serialports.pm @@ -171,17 +171,17 @@ Filter by serial device name (can be a regexp). =item B<--unknown-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{status}, %{display} =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{status}, %{display} =item B<--critical-status> -Set critical threshold for status. +Define the conditions to match for the status to be CRITICAL. You can use the following variables: %{status}, %{display} =item B<--warning-*> B<--critical-*> diff --git a/src/hardware/pdu/apc/snmp/mode/load.pm b/src/hardware/pdu/apc/snmp/mode/load.pm index be9181c76..608cb986d 100644 --- a/src/hardware/pdu/apc/snmp/mode/load.pm +++ b/src/hardware/pdu/apc/snmp/mode/load.pm @@ -289,32 +289,32 @@ Check phase/bank load. =item B<--unknown-bank-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{type}, %{status}, %{display} =item B<--warning-bank-status> -Set warning threshold for status (Default: '%{status} =~ /low|nearOverload/i'). +Define the conditions to match for the status to be WARNING (Default: '%{status} =~ /low|nearOverload/i'). You can use the following variables: %{type}, %{status}, %{display} =item B<--critical-bank-status> -Set critical threshold for status (Default: '%{status} =~ /^overload/'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} =~ /^overload/'). You can use the following variables: %{type}, %{status}, %{display} =item B<--unknown-phase-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{status}, %{display} =item B<--warning-phase-status> -Set warning threshold for status (Default: '%{status} =~ /low|nearOverload/i'). +Define the conditions to match for the status to be WARNING (Default: '%{status} =~ /low|nearOverload/i'). You can use the following variables: %{status}, %{display} =item B<--critical-phase-status> -Set critical threshold for status (Default: '%{status} =~ /^overload/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} =~ /^overload/i'). You can use the following variables: %{status}, %{display} =item B<--warning-*> B<--critical-*> diff --git a/src/hardware/pdu/apc/snmp/mode/outlet.pm b/src/hardware/pdu/apc/snmp/mode/outlet.pm index b1ba1e898..df39c394a 100644 --- a/src/hardware/pdu/apc/snmp/mode/outlet.pm +++ b/src/hardware/pdu/apc/snmp/mode/outlet.pm @@ -244,17 +244,17 @@ Check outlet. =item B<--unknown-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{status}, %{display} =item B<--warning-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{status}, %{phase}, %{bank}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} =~ /off/'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} =~ /off/'). You can use the following variables: %{status}, %{phase}, %{bank}, %{display} =item B<--warning-*> B<--critical-*> diff --git a/src/hardware/pdu/clever/snmp/mode/psusage.pm b/src/hardware/pdu/clever/snmp/mode/psusage.pm index 692d29e7d..8372844eb 100644 --- a/src/hardware/pdu/clever/snmp/mode/psusage.pm +++ b/src/hardware/pdu/clever/snmp/mode/psusage.pm @@ -98,12 +98,12 @@ Check power source usage. =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'current', 'power', 'voltage'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'current', 'power', 'voltage'. =back diff --git a/src/hardware/pdu/cyberpower/snmp/mode/load.pm b/src/hardware/pdu/cyberpower/snmp/mode/load.pm index 8ee80e52f..7fc2f7316 100644 --- a/src/hardware/pdu/cyberpower/snmp/mode/load.pm +++ b/src/hardware/pdu/cyberpower/snmp/mode/load.pm @@ -286,32 +286,32 @@ Check phase/bank load. =item B<--unknown-bank-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{state}, %{display} =item B<--warning-bank-status> -Set warning threshold for status (Default: '%{state} =~ /low|nearOverload/i'). +Define the conditions to match for the status to be WARNING (Default: '%{state} =~ /low|nearOverload/i'). You can use the following variables: %{state}, %{display} =item B<--critical-bank-status> -Set critical threshold for status (Default: '%{state} =~ /^overload/'). +Define the conditions to match for the status to be CRITICAL (Default: '%{state} =~ /^overload/'). You can use the following variables: %{state}, %{display} =item B<--unknown-phase-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{state}, %{display} =item B<--warning-phase-status> -Set warning threshold for status (Default: '%{state} =~ /low|nearOverload/i'). +Define the conditions to match for the status to be WARNING (Default: '%{state} =~ /low|nearOverload/i'). You can use the following variables: %{state}, %{display} =item B<--critical-phase-status> -Set critical threshold for status (Default: '%{state} =~ /^overload/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{state} =~ /^overload/i'). You can use the following variables: %{state}, %{display} =item B<--warning-*> B<--critical-*> diff --git a/src/hardware/pdu/cyberpower/snmp/mode/outlets.pm b/src/hardware/pdu/cyberpower/snmp/mode/outlets.pm index cce57f30f..7ecd041bf 100644 --- a/src/hardware/pdu/cyberpower/snmp/mode/outlets.pm +++ b/src/hardware/pdu/cyberpower/snmp/mode/outlets.pm @@ -284,17 +284,17 @@ Check outlets. =item B<--unknown-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %%{state}, %{phase}, %{bank}, %{display} =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{state}, %{phase}, %{bank}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: '%{state} =~ /off/'). +Define the conditions to match for the status to be CRITICAL (Default: '%{state} =~ /off/'). You can use the following variables: %{state}, %{phase}, %{bank}, %{display} =item B<--warning-*> B<--critical-*> diff --git a/src/hardware/pdu/eaton/snmp/mode/environment.pm b/src/hardware/pdu/eaton/snmp/mode/environment.pm index 678f1a1bf..7e1fee7ee 100644 --- a/src/hardware/pdu/eaton/snmp/mode/environment.pm +++ b/src/hardware/pdu/eaton/snmp/mode/environment.pm @@ -232,32 +232,32 @@ Check pdu environmental sensors. =item B<--unknown-temperature-status> -Set unknon threshold for status (Default: ''). +Define the conditions to match for the status to be UNKNOWN (Default: ''). You can use the following variables: %{status}, %{display} =item B<--warning-temperature-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{status}, %{display} =item B<--critical-temperature-status> -Set critical threshold for status (Default: '%{status} eq "bad"'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} eq "bad"'). You can use the following variables: %{status}, %{display} =item B<--unknown-humidity-status> -Set unknon threshold for status (Default: ''). +Define the conditions to match for the status to be UNKNOWN (Default: ''). You can use the following variables: %{status}, %{display} =item B<--warning-humidity-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{status}, %{display} =item B<--critical-humidity-status> -Set critical threshold for status (Default: '%{status} eq "bad"'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} eq "bad"'). You can use the following variables: %{status}, %{display} =item B<--warning-*> B<--critical-*> diff --git a/src/hardware/pdu/eaton/snmp/mode/group.pm b/src/hardware/pdu/eaton/snmp/mode/group.pm index 3aec6f9da..95c71faff 100644 --- a/src/hardware/pdu/eaton/snmp/mode/group.pm +++ b/src/hardware/pdu/eaton/snmp/mode/group.pm @@ -146,12 +146,12 @@ Filter group name (can be a regexp). =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'voltage', 'current', 'power'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'voltage', 'current', 'power'. =back diff --git a/src/hardware/pdu/eaton/snmp/mode/outlet.pm b/src/hardware/pdu/eaton/snmp/mode/outlet.pm index 88dffdb61..eb1f742db 100644 --- a/src/hardware/pdu/eaton/snmp/mode/outlet.pm +++ b/src/hardware/pdu/eaton/snmp/mode/outlet.pm @@ -147,12 +147,12 @@ Filter outlet name (can be a regexp). =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'voltage', 'current', 'power'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'voltage', 'current', 'power'. =back diff --git a/src/hardware/pdu/emerson/snmp/mode/globalstatus.pm b/src/hardware/pdu/emerson/snmp/mode/globalstatus.pm index 4db44b194..1bae26f8a 100644 --- a/src/hardware/pdu/emerson/snmp/mode/globalstatus.pm +++ b/src/hardware/pdu/emerson/snmp/mode/globalstatus.pm @@ -157,12 +157,12 @@ Filter PDU name (can be a regexp). =item B<--warning-status> -Set warning threshold for status (Default: '%{status} =~ /normalWithWarning/i'). +Define the conditions to match for the status to be WARNING (Default: '%{status} =~ /normalWithWarning/i'). You can use the following variables: %{status}, %{display}. =item B<--critical-status> -Set critical threshold for status (Default: '%{status} =~ /normalWithAlarm|abnormalOperation/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} =~ /normalWithAlarm|abnormalOperation/i'). You can use the following variables: %{status}, %{display} =back diff --git a/src/hardware/pdu/emerson/snmp/mode/psusage.pm b/src/hardware/pdu/emerson/snmp/mode/psusage.pm index 2be6f63e1..2137aefe8 100644 --- a/src/hardware/pdu/emerson/snmp/mode/psusage.pm +++ b/src/hardware/pdu/emerson/snmp/mode/psusage.pm @@ -223,13 +223,13 @@ Example: --filter-counters='^(power|energy)$' =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'power', 'energy', 'current-neutral', 'line-load', 'line-current'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'power', 'energy', 'current-neutral', 'line-load', 'line-current'. diff --git a/src/hardware/pdu/emerson/snmp/mode/receptacles.pm b/src/hardware/pdu/emerson/snmp/mode/receptacles.pm index 83aadf183..fcc9cb100 100644 --- a/src/hardware/pdu/emerson/snmp/mode/receptacles.pm +++ b/src/hardware/pdu/emerson/snmp/mode/receptacles.pm @@ -254,17 +254,17 @@ Filter receptable branch name (can be a regexp). =item B<--unknown-rcp-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{oper_state}, %{power_state}, %{display} =item B<--warning-rcp-status> -Set warning threshold for status (Default: '%{oper_state} =~ /warning|alarm/'). +Define the conditions to match for the status to be WARNING (Default: '%{oper_state} =~ /warning|alarm/'). You can use the following variables: %{oper_state}, %{power_state}, %{display} =item B<--critical-rcp-status> -Set critical threshold for status (Default: '%{oper_state} =~ /abnormal/'). +Define the conditions to match for the status to be CRITICAL (Default: '%{oper_state} =~ /abnormal/'). You can use the following variables: %{oper_state}, %{power_state}, %{display} =item B<--warning-*> B<--critical-*> diff --git a/src/hardware/pdu/gude/epc/snmp/mode/powerchannels.pm b/src/hardware/pdu/gude/epc/snmp/mode/powerchannels.pm index 2c570a4b7..3ab38773f 100644 --- a/src/hardware/pdu/gude/epc/snmp/mode/powerchannels.pm +++ b/src/hardware/pdu/gude/epc/snmp/mode/powerchannels.pm @@ -264,7 +264,7 @@ Critical threshold for power supply status (Default: '%{ps_status} !~ /up/i') =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'active-channels', 'current', 'energy', 'frequency', 'phase-angle', 'power-active', 'power-apparent', 'power-factor', 'power-reactive', 'voltage' diff --git a/src/hardware/pdu/gude/epc/snmp/mode/sppowerchannels.pm b/src/hardware/pdu/gude/epc/snmp/mode/sppowerchannels.pm index c37e764d3..d9fc4137e 100644 --- a/src/hardware/pdu/gude/epc/snmp/mode/sppowerchannels.pm +++ b/src/hardware/pdu/gude/epc/snmp/mode/sppowerchannels.pm @@ -266,7 +266,7 @@ Critical threshold for for single port status. =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'active-channels', 'current', 'energy', 'frequency', 'phase-angle', 'power-active', 'power-apparent', 'power-factor', 'power-reactive', 'voltage' diff --git a/src/hardware/printers/standard/rfc3805/mode/coverstatus.pm b/src/hardware/printers/standard/rfc3805/mode/coverstatus.pm index 18c59293f..f12dadc63 100644 --- a/src/hardware/printers/standard/rfc3805/mode/coverstatus.pm +++ b/src/hardware/printers/standard/rfc3805/mode/coverstatus.pm @@ -110,17 +110,17 @@ Check covers of the printer. =item B<--unknown-status> -Set unknown threshold for status (Default: '%%{status} =~ /other|unknown/'). +Define the conditions to match for the status to be UNKNOWN (Default: '%%{status} =~ /other|unknown/'). You can use the following variables: %{status}, %{description} =item B<--warning-status> -Set warning threshold for status (Default: '%%{status} =~ /coverOpen|interlockOpen/'). +Define the conditions to match for the status to be WARNING (Default: '%%{status} =~ /coverOpen|interlockOpen/'). You can use the following variables: %{status}, %{description} =item B<--critical-status> -Set critical threshold for status. +Define the conditions to match for the status to be CRITICAL. You can use the following variables: %{status}, %{description} =back diff --git a/src/hardware/printers/standard/rfc3805/mode/markerimpression.pm b/src/hardware/printers/standard/rfc3805/mode/markerimpression.pm index 6a20dd96a..6f98a5cdf 100644 --- a/src/hardware/printers/standard/rfc3805/mode/markerimpression.pm +++ b/src/hardware/printers/standard/rfc3805/mode/markerimpression.pm @@ -147,11 +147,11 @@ Check marker impressions/sheets. =item B<--warning> -Threshold warning. +Warning threshold. =item B<--critical> -Threshold critical. +Critical threshold. =back diff --git a/src/hardware/printers/standard/rfc3805/mode/markersupply.pm b/src/hardware/printers/standard/rfc3805/mode/markersupply.pm index e34f95c20..7bef33ee1 100644 --- a/src/hardware/printers/standard/rfc3805/mode/markersupply.pm +++ b/src/hardware/printers/standard/rfc3805/mode/markersupply.pm @@ -177,11 +177,11 @@ Check marker supply usages. =item B<--warning> -Threshold warning in percent. +Warning threshold in percent. =item B<--critical> -Threshold critical in percent. +Critical threshold in percent. =item B<--filter> diff --git a/src/hardware/printers/standard/rfc3805/mode/papertray.pm b/src/hardware/printers/standard/rfc3805/mode/papertray.pm index 3515649b6..be836ee71 100644 --- a/src/hardware/printers/standard/rfc3805/mode/papertray.pm +++ b/src/hardware/printers/standard/rfc3805/mode/papertray.pm @@ -145,11 +145,11 @@ Check paper trays usages. =item B<--warning> -Threshold warning in percent. +Warning threshold in percent. =item B<--critical> -Threshold critical in percent. +Critical threshold in percent. =item B<--filter-tray> diff --git a/src/hardware/sensors/comet/p8000/snmp/mode/sensors.pm b/src/hardware/sensors/comet/p8000/snmp/mode/sensors.pm index 9bccb5ea6..d4b828325 100644 --- a/src/hardware/sensors/comet/p8000/snmp/mode/sensors.pm +++ b/src/hardware/sensors/comet/p8000/snmp/mode/sensors.pm @@ -173,12 +173,12 @@ Check environment channels. =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'temperature', 'humidity'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'temperature', 'humidity'. =back diff --git a/src/hardware/server/cisco/ucs/snmp/mode/auditlogs.pm b/src/hardware/server/cisco/ucs/snmp/mode/auditlogs.pm index 2447eb772..c9b42c564 100644 --- a/src/hardware/server/cisco/ucs/snmp/mode/auditlogs.pm +++ b/src/hardware/server/cisco/ucs/snmp/mode/auditlogs.pm @@ -209,12 +209,12 @@ Check audit logs. =item B<--warning-status> -Set warning threshold for status (Default: '%{severity} =~ /minor|warning/') +Define the conditions to match for the status to be WARNING (Default: '%{severity} =~ /minor|warning/') You can use the following variables: %{severity}, %{description}, %{dn} =item B<--critical-status> -Set critical threshold for status (Default: '%{severity} =~ /major|critical/'). +Define the conditions to match for the status to be CRITICAL (Default: '%{severity} =~ /major|critical/'). You can use the following variables: %{severity}, %{description}, %{dn} =item B<--memory> diff --git a/src/hardware/server/cisco/ucs/snmp/mode/faults.pm b/src/hardware/server/cisco/ucs/snmp/mode/faults.pm index 3c8659dc7..878534def 100644 --- a/src/hardware/server/cisco/ucs/snmp/mode/faults.pm +++ b/src/hardware/server/cisco/ucs/snmp/mode/faults.pm @@ -215,12 +215,12 @@ Check faults. =item B<--warning-status> -Set warning threshold for status (Default: '%{severity} =~ /minor|warning/') +Define the conditions to match for the status to be WARNING (Default: '%{severity} =~ /minor|warning/') You can use the following variables: %{severity}, %{description}, %{dn} =item B<--critical-status> -Set critical threshold for status (Default: '%{severity} =~ /major|critical/'). +Define the conditions to match for the status to be CRITICAL (Default: '%{severity} =~ /major|critical/'). You can use the following variables: %{severity}, %{description}, %{dn} =item B<--memory> diff --git a/src/hardware/server/cisco/ucs/snmp/mode/mgmtentities.pm b/src/hardware/server/cisco/ucs/snmp/mode/mgmtentities.pm index 83fd1f32e..225157b61 100644 --- a/src/hardware/server/cisco/ucs/snmp/mode/mgmtentities.pm +++ b/src/hardware/server/cisco/ucs/snmp/mode/mgmtentities.pm @@ -150,17 +150,17 @@ Check management entities. =item B<--unknown-status> -Set unknown threshold for status (Default: '%{role} =~ /unknown/ or %{status} eq "unknown" or %{services_status} eq "unknown"') +Define the conditions to match for the status to be UNKNOWN (Default: '%{role} =~ /unknown/ or %{status} eq "unknown" or %{services_status} eq "unknown"') You can use the following variables: %{dn}, %{role}, %{services_status}, %{status} =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{dn}, %{role}, %{services_status}, %{status} =item B<--critical-status> -Set critical threshold for status (Default: '%{role} =~ /electionFailed|inapplicable/ or %{status} eq "down" or %{services_status} eq "down"'). +Define the conditions to match for the status to be CRITICAL (Default: '%{role} =~ /electionFailed|inapplicable/ or %{status} eq "down" or %{services_status} eq "down"'). You can use the following variables: %{dn}, %{role}, %{services_status}, %{status} =item B<--warning-*> B<--critical-*> diff --git a/src/hardware/server/cisco/ucs/snmp/mode/serviceprofile.pm b/src/hardware/server/cisco/ucs/snmp/mode/serviceprofile.pm index 38b72d785..3a9bca4fc 100644 --- a/src/hardware/server/cisco/ucs/snmp/mode/serviceprofile.pm +++ b/src/hardware/server/cisco/ucs/snmp/mode/serviceprofile.pm @@ -151,12 +151,12 @@ Check service profiles. =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{dn}, %{status} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} eq "offline"'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} eq "offline"'). You can use the following variables: %{dn}, %{status} =item B<--warning-*> B<--critical-*> diff --git a/src/hardware/server/dell/idrac/snmp/mode/globalstatus.pm b/src/hardware/server/dell/idrac/snmp/mode/globalstatus.pm index 669d5cdec..58f602358 100644 --- a/src/hardware/server/dell/idrac/snmp/mode/globalstatus.pm +++ b/src/hardware/server/dell/idrac/snmp/mode/globalstatus.pm @@ -171,32 +171,32 @@ Check the overall status of iDrac card. =item B<--unknown-status> -Set unknown threshold for status (Default: '%{status} =~ /unknown/'). +Define the conditions to match for the status to be UNKNOWN (Default: '%{status} =~ /unknown/'). You can use the following variables: %{status} =item B<--warning-status> -Set warning threshold for status (Default: '%{status} =~ /nonCritical|other/'). +Define the conditions to match for the status to be WARNING (Default: '%{status} =~ /nonCritical|other/'). You can use the following variables: %{status} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} =~ /critical|nonRecoverable/'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} =~ /critical|nonRecoverable/'). You can use the following variables: %{status} =item B<--unknown-storage-status> -Set warning threshold for status (Default: '%{status} =~ /unknown/'). +Define the conditions to match for the status to be WARNING (Default: '%{status} =~ /unknown/'). You can use the following variables: %{status} =item B<--warning-storage-status> -Set warning threshold for status (Default: '%{status} =~ /nonCritical|other/'). +Define the conditions to match for the status to be WARNING (Default: '%{status} =~ /nonCritical|other/'). You can use the following variables: %{status} =item B<--critical-storage-status> -Set critical threshold for status (Default: '%{status} =~ /critical|nonRecoverable/'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} =~ /critical|nonRecoverable/'). You can use the following variables: %{status} =back diff --git a/src/hardware/server/dell/vxm/restapi/mode/chassis.pm b/src/hardware/server/dell/vxm/restapi/mode/chassis.pm index 8df042435..49a01e544 100644 --- a/src/hardware/server/dell/vxm/restapi/mode/chassis.pm +++ b/src/hardware/server/dell/vxm/restapi/mode/chassis.pm @@ -170,17 +170,17 @@ Filter clusters by serial number (Can be a regexp). =item B<--unknown-chassis-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{status}, %{chassisSn} =item B<--warning-chassis-status> -Set warning threshold for status (Default: '%{status} =~ /warning/i'). +Define the conditions to match for the status to be WARNING (Default: '%{status} =~ /warning/i'). You can use the following variables: %{status}, %{chassisSn} =item B<--critical-chassis-status> -Set critical threshold for status (Default: '%{status} =~ /critical|error/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} =~ /critical|error/i'). You can use the following variables: %{status}, %{chassisSn} =item B<--unknown-psu-status> diff --git a/src/hardware/server/dell/vxm/restapi/mode/hosts.pm b/src/hardware/server/dell/vxm/restapi/mode/hosts.pm index 073a82a04..ac8a83ba0 100644 --- a/src/hardware/server/dell/vxm/restapi/mode/hosts.pm +++ b/src/hardware/server/dell/vxm/restapi/mode/hosts.pm @@ -225,17 +225,17 @@ Filter hosts by name (Can be a regexp). =item B<--unknown-host-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{status}, %{name}, %{sn} =item B<--warning-host-status> -Set warning threshold for status (Default: '%{status} =~ /warning/i'). +Define the conditions to match for the status to be WARNING (Default: '%{status} =~ /warning/i'). You can use the following variables: %{status}, %{name}, %{sn} =item B<--critical-host-status> -Set critical threshold for status (Default: '%{status} =~ /critical|error/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} =~ /critical|error/i'). You can use the following variables: %{status}, %{name}, %{sn} =item B<--unknown-nic-status> @@ -255,17 +255,17 @@ You can use the following variables: %{status}, %{mac}, %{slot} =item B<--unknown-disk-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{status}, %{sn}, %{bay}, %{slot} =item B<--warning-disk-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{status}, %{sn}, %{bay}, %{slot} =item B<--critical-disk-status> -Set critical threshold for status (Default: '%{status} !~ /OK/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} !~ /OK/i'). You can use the following variables: %{status}, %{sn}, %{bay}, %{slot} =item B<--warning-*> B<--critical-*> diff --git a/src/hardware/server/hp/oneview/restapi/mode/storagepools.pm b/src/hardware/server/hp/oneview/restapi/mode/storagepools.pm index 3dc3108d8..0be1e4b18 100644 --- a/src/hardware/server/hp/oneview/restapi/mode/storagepools.pm +++ b/src/hardware/server/hp/oneview/restapi/mode/storagepools.pm @@ -172,17 +172,17 @@ Filter pool name (can be a regexp). =item B<--unknown-status> -Set unknown threshold for status (Default: '%{status} =~ /unknown/i'). +Define the conditions to match for the status to be UNKNOWN (Default: '%{status} =~ /unknown/i'). You can use the following variables: %{status}, %{display} =item B<--warning-status> -Set warning threshold for status (Default: '%{status} =~ /warning/i'). +Define the conditions to match for the status to be WARNING (Default: '%{status} =~ /warning/i'). You can use the following variables: %{status}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} =~ /critical/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} =~ /critical/i'). You can use the following variables: %{status}, %{display} =item B<--warning-*> B<--critical-*> diff --git a/src/hardware/server/ibm/mgmt_cards/imm/snmp/mode/eventlog.pm b/src/hardware/server/ibm/mgmt_cards/imm/snmp/mode/eventlog.pm index 9fed566df..0ce1be918 100644 --- a/src/hardware/server/ibm/mgmt_cards/imm/snmp/mode/eventlog.pm +++ b/src/hardware/server/ibm/mgmt_cards/imm/snmp/mode/eventlog.pm @@ -158,12 +158,12 @@ Check alarms. =item B<--warning-status> -Set warning threshold for status (Default: '%{severity} =~ /warning/i') +Define the conditions to match for the status to be WARNING (Default: '%{severity} =~ /warning/i') You can use the following variables: %{severity}, %{text}, %{since} =item B<--critical-status> -Set critical threshold for status (Default: '%{severity} =~ /error/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{severity} =~ /error/i'). You can use the following variables: %{severity}, %{text}, %{since} =item B<--timezone> diff --git a/src/hardware/telephony/avaya/aes/snmp/mode/services.pm b/src/hardware/telephony/avaya/aes/snmp/mode/services.pm index 8843b4bea..a3fa22d6c 100644 --- a/src/hardware/telephony/avaya/aes/snmp/mode/services.pm +++ b/src/hardware/telephony/avaya/aes/snmp/mode/services.pm @@ -292,32 +292,32 @@ Filter service name (can be a regexp). =item B<--unknown-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{status}, %{state}, %{license_error}, %{display} =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{status}, %{state}, %{license_error}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: '%{state} ne "running" or %{status} ne "online"'). +Define the conditions to match for the status to be CRITICAL (Default: '%{state} ne "running" or %{status} ne "online"'). You can use the following variables: %{status}, %{state}, %{license_error}, %{display} =item B<--unknown-aep-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{link_state}, %{session_state}, %{display} =item B<--warning-aep-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{link_state}, %{session_state}, %{display} =item B<--critical-aep-status> -Set critical threshold for status (Default: '%{link_state} ne "online" or %{session_state} ne "online"'). +Define the conditions to match for the status to be CRITICAL (Default: '%{link_state} ne "online" or %{session_state} ne "online"'). You can use the following variables: %{link_state}, %{session_state}, %{display} =item B<--warning-*> B<--critical-*> diff --git a/src/hardware/telephony/avaya/cm/snmp/mode/trunks.pm b/src/hardware/telephony/avaya/cm/snmp/mode/trunks.pm index 022adcb1a..cb3e51110 100644 --- a/src/hardware/telephony/avaya/cm/snmp/mode/trunks.pm +++ b/src/hardware/telephony/avaya/cm/snmp/mode/trunks.pm @@ -139,17 +139,17 @@ Filter signaling group instance (can be a regexp). =item B<--unknown-sig-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{state}, %{far_node}, %{display} =item B<--warning-sig-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{state}, %{far_node}, %{display} =item B<--critical-sig-status> -Set critical threshold for status (Default: '%{state} =~ /out-of-service/'). +Define the conditions to match for the status to be CRITICAL (Default: '%{state} =~ /out-of-service/'). You can use the following variables: %{state}, %{far_node}, %{display} =back diff --git a/src/hardware/telephony/avaya/mediagateway/snmp/mode/controllerstatus.pm b/src/hardware/telephony/avaya/mediagateway/snmp/mode/controllerstatus.pm index 0e7114cf5..6989acf96 100644 --- a/src/hardware/telephony/avaya/mediagateway/snmp/mode/controllerstatus.pm +++ b/src/hardware/telephony/avaya/mediagateway/snmp/mode/controllerstatus.pm @@ -120,17 +120,17 @@ Check controller status. =item B<--unknown-status> -Set unknown threshold for status (Default: ''). +Define the conditions to match for the status to be UNKNOWN (Default: ''). You can use the following variables: %{h248_link_status}, %{registration_state} =item B<--warning-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{h248_link_status}, %{registration_state} =item B<--critical-status> -Set critical threshold for status (Default: '%{h248_link_status} =~ /down/i || %{registration_state} =~ /notRegistred/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{h248_link_status} =~ /down/i || %{registration_state} =~ /notRegistred/i'). You can use the following variables: %{h248_link_status}, %{registration_state} =back diff --git a/src/hardware/ups/alpha/snmp/mode/batterystatus.pm b/src/hardware/ups/alpha/snmp/mode/batterystatus.pm index 7ee13b2c9..1c6bbd948 100644 --- a/src/hardware/ups/alpha/snmp/mode/batterystatus.pm +++ b/src/hardware/ups/alpha/snmp/mode/batterystatus.pm @@ -160,27 +160,27 @@ Example: --filter-counters='^status|load$' =item B<--unknown-status> -Set unknown threshold for status (Default: '%{status} =~ /unknown/i'). +Define the conditions to match for the status to be UNKNOWN (Default: '%{status} =~ /unknown/i'). You can use the following variables: %{status} =item B<--warning-status> -Set warning threshold for status (Default: '%{status} =~ /batteryLow/i'). +Define the conditions to match for the status to be WARNING (Default: '%{status} =~ /batteryLow/i'). You can use the following variables: %{status} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} =~ /batteryDepleted/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} =~ /batteryDepleted/i'). You can use the following variables: %{status} =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'load', 'voltage', 'current', 'temperature'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'load', 'voltage', 'current', 'temperature'. =back diff --git a/src/hardware/ups/apc/snmp/mode/batterystatus.pm b/src/hardware/ups/apc/snmp/mode/batterystatus.pm index 352d0b0bf..56a808d89 100644 --- a/src/hardware/ups/apc/snmp/mode/batterystatus.pm +++ b/src/hardware/ups/apc/snmp/mode/batterystatus.pm @@ -340,47 +340,47 @@ Example: --filter-counters='^status|load$' =item B<--unknown-status> -Set unknown threshold for status (Default: '%{status} =~ /unknown/i'). +Define the conditions to match for the status to be UNKNOWN (Default: '%{status} =~ /unknown/i'). You can use the following variables: %{status}, %{replace} =item B<--warning-status> -Set warning threshold for status (Default: '%{status} =~ /batteryLow/i'). +Define the conditions to match for the status to be WARNING (Default: '%{status} =~ /batteryLow/i'). You can use the following variables: %{status}, %{replace} =item B<--critical-status> -Set critical threshold for status (Default: '%{replace} =~ /yes/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{replace} =~ /yes/i'). You can use the following variables: %{status}, %{replace} =item B<--unknown-battery-pack-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{status} =item B<--warning-battery-pack-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{status} =item B<--critical-battery-pack-status> -Set critical threshold for status (Default: '%{status} ne "OK"'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} ne "OK"'). You can use the following variables: %{status} =item B<--unknown-cartridge-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{status} =item B<--warning-cartridge-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{status} =item B<--critical-cartridge-status> -Set critical threshold for status (Default: '%{status} ne "OK"'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} ne "OK"'). You can use the following variables: %{status} =item B<--warning-*> B<--critical-*> diff --git a/src/hardware/ups/apc/snmp/mode/inputlines.pm b/src/hardware/ups/apc/snmp/mode/inputlines.pm index d6490f5d6..2e5da3a17 100644 --- a/src/hardware/ups/apc/snmp/mode/inputlines.pm +++ b/src/hardware/ups/apc/snmp/mode/inputlines.pm @@ -149,12 +149,12 @@ Example: --filter-counters='^frequence|voltage$' =item B<--warning-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{last_cause} =item B<--critical-status> -Set critical threshold for status (Default: ''). +Define the conditions to match for the status to be CRITICAL (Default: ''). You can use the following variables: %{last_cause} =item B<--warning-*> B<--critical-*> diff --git a/src/hardware/ups/apc/snmp/mode/outputlines.pm b/src/hardware/ups/apc/snmp/mode/outputlines.pm index bdb59bf12..0836f906c 100644 --- a/src/hardware/ups/apc/snmp/mode/outputlines.pm +++ b/src/hardware/ups/apc/snmp/mode/outputlines.pm @@ -166,17 +166,17 @@ Example: --filter-counters='^status|load$' =item B<--unknown-status> -Set unknown threshold for status (Default: '%{status} =~ /unknown/i'). +Define the conditions to match for the status to be UNKNOWN (Default: '%{status} =~ /unknown/i'). You can use the following variables: %{status} =item B<--warning-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{status} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} !~ /onLine|rebooting/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} !~ /onLine|rebooting/i'). You can use the following variables: %{status} =item B<--warning-*> B<--critical-*> diff --git a/src/hardware/ups/himoinsa/snmp/mode/uptime.pm b/src/hardware/ups/himoinsa/snmp/mode/uptime.pm index 165088709..66c335007 100644 --- a/src/hardware/ups/himoinsa/snmp/mode/uptime.pm +++ b/src/hardware/ups/himoinsa/snmp/mode/uptime.pm @@ -45,11 +45,11 @@ Check system uptime. =item B<--warning-uptime> -Threshold warning. +Warning threshold. =item B<--critical-uptime> -Threshold critical. +Critical threshold. =item B<--add-sysdesc> diff --git a/src/hardware/ups/hp/snmp/mode/batterystatus.pm b/src/hardware/ups/hp/snmp/mode/batterystatus.pm index d966d4451..9582b38c1 100644 --- a/src/hardware/ups/hp/snmp/mode/batterystatus.pm +++ b/src/hardware/ups/hp/snmp/mode/batterystatus.pm @@ -152,17 +152,17 @@ Example: --filter-counters='status|current' =item B<--unknown-status> -Set unknown threshold for status (Default: '%{status} =~ /unknown/i'). +Define the conditions to match for the status to be UNKNOWN (Default: '%{status} =~ /unknown/i'). You can use the following variables: %{status}. =item B<--warning-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{status}. =item B<--critical-status> -Set critical threshold for status (Default: ''). +Define the conditions to match for the status to be CRITICAL (Default: ''). You can use the following variables: %{status}. =item B<--warning-*> B<--critical-*> diff --git a/src/hardware/ups/hp/snmp/mode/outputlines.pm b/src/hardware/ups/hp/snmp/mode/outputlines.pm index 96403c71c..000b2c52e 100644 --- a/src/hardware/ups/hp/snmp/mode/outputlines.pm +++ b/src/hardware/ups/hp/snmp/mode/outputlines.pm @@ -190,17 +190,17 @@ Check output lines metrics. =item B<--unknown-source> -Set unknown threshold for status (Default: ''). +Define the conditions to match for the status to be UNKNOWN (Default: ''). You can use the following variables: %{source}. =item B<--warning-source> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{source}. =item B<--critical-source> -Set critical threshold for status (Default: '%{source} !~ /normal/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{source} !~ /normal/i'). You can use the following variables: %{source}. =item B<--warning-*> B<--critical-*> diff --git a/src/hardware/ups/mge/snmp/mode/batterystatus.pm b/src/hardware/ups/mge/snmp/mode/batterystatus.pm index e91932fab..2aff316a6 100644 --- a/src/hardware/ups/mge/snmp/mode/batterystatus.pm +++ b/src/hardware/ups/mge/snmp/mode/batterystatus.pm @@ -140,11 +140,11 @@ Check Battery Status and battery charge remaining. =item B<--warning> -Threshold warning in percent of charge remaining. +Warning threshold in percent of charge remaining. =item B<--critical> -Threshold critical in percent of charge remaining. +Critical threshold in percent of charge remaining. =item B<--filter-status> diff --git a/src/hardware/ups/mge/snmp/mode/environment.pm b/src/hardware/ups/mge/snmp/mode/environment.pm index 276a0d3a7..bab94b99f 100644 --- a/src/hardware/ups/mge/snmp/mode/environment.pm +++ b/src/hardware/ups/mge/snmp/mode/environment.pm @@ -106,12 +106,12 @@ Check environment (temperature and humidity). =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'temperature', 'humidity'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'temperature', 'humidity'. =back diff --git a/src/hardware/ups/mge/snmp/mode/inputlines.pm b/src/hardware/ups/mge/snmp/mode/inputlines.pm index b595d5be6..18c167a2d 100644 --- a/src/hardware/ups/mge/snmp/mode/inputlines.pm +++ b/src/hardware/ups/mge/snmp/mode/inputlines.pm @@ -188,22 +188,22 @@ Check Input lines metrics (frequence, voltage, current). =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'frequence', 'voltage', 'current'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'frequence', 'voltage', 'current'. =item B<--warning-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{badstatus}, %{failcause} =item B<--critical-status> -Set critical threshold for status (Default: '%{badstatus} =~ /yes/'). +Define the conditions to match for the status to be CRITICAL (Default: '%{badstatus} =~ /yes/'). You can use the following variables: %{badstatus}, %{failcause} =back diff --git a/src/hardware/ups/mge/snmp/mode/outputlines.pm b/src/hardware/ups/mge/snmp/mode/outputlines.pm index b1a54a786..6fca2fcd4 100644 --- a/src/hardware/ups/mge/snmp/mode/outputlines.pm +++ b/src/hardware/ups/mge/snmp/mode/outputlines.pm @@ -167,12 +167,12 @@ Check Output lines metrics (load, voltage, current). =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'load', 'voltage', 'current', 'frequence', 'stdev-3phases'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'load', 'voltage', 'current', 'frequence', 'stdev-3phases'. =back diff --git a/src/hardware/ups/powerware/snmp/mode/batterystatus.pm b/src/hardware/ups/powerware/snmp/mode/batterystatus.pm index 358a7e101..096339499 100644 --- a/src/hardware/ups/powerware/snmp/mode/batterystatus.pm +++ b/src/hardware/ups/powerware/snmp/mode/batterystatus.pm @@ -152,17 +152,17 @@ Example: --filter-counters='status|current' =item B<--unknown-status> -Set unknown threshold for status (Default: '%{status} =~ /unknown/i'). +Define the conditions to match for the status to be UNKNOWN (Default: '%{status} =~ /unknown/i'). You can use the following variables: %{status}. =item B<--warning-status> -Set warning threshold for status (Default: '%{status} =~ /batteryDischarging/i'). +Define the conditions to match for the status to be WARNING (Default: '%{status} =~ /batteryDischarging/i'). You can use the following variables: %{status}. =item B<--critical-status> -Set critical threshold for status (Default: ''). +Define the conditions to match for the status to be CRITICAL (Default: ''). You can use the following variables: %{status}. =item B<--warning-*> B<--critical-*> diff --git a/src/hardware/ups/powerware/snmp/mode/outputlines.pm b/src/hardware/ups/powerware/snmp/mode/outputlines.pm index d9ec6153a..b7e5e4f8f 100644 --- a/src/hardware/ups/powerware/snmp/mode/outputlines.pm +++ b/src/hardware/ups/powerware/snmp/mode/outputlines.pm @@ -152,13 +152,13 @@ Check Output lines metrics (load, voltage, current and true power) (XUPS-MIB). =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'load', 'voltage', 'current', 'power'. Load is a rate for X phase. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'load', 'voltage', 'current', 'power'. Load is a rate for X phase. diff --git a/src/hardware/ups/riello/snmp/mode/battery.pm b/src/hardware/ups/riello/snmp/mode/battery.pm index bd21cf342..5fda0b67f 100644 --- a/src/hardware/ups/riello/snmp/mode/battery.pm +++ b/src/hardware/ups/riello/snmp/mode/battery.pm @@ -159,17 +159,17 @@ Check battery status and charge remaining. =item B<--unknown-status> -Set unknown threshold for status (Default: '%{status} =~ /unknown/i'). +Define the conditions to match for the status to be UNKNOWN (Default: '%{status} =~ /unknown/i'). You can use the following variables: %{status} =item B<--warning-status> -Set warning threshold for status (Default: '%{status} =~ /low/i'). +Define the conditions to match for the status to be WARNING (Default: '%{status} =~ /low/i'). You can use the following variables: %{status} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} =~ /depleted/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} =~ /depleted/i'). You can use the following variables: %{status} =item B<--warning-*> B<--critical-*> diff --git a/src/hardware/ups/riello/snmp/mode/outputlines.pm b/src/hardware/ups/riello/snmp/mode/outputlines.pm index f24670482..74cf25385 100644 --- a/src/hardware/ups/riello/snmp/mode/outputlines.pm +++ b/src/hardware/ups/riello/snmp/mode/outputlines.pm @@ -165,17 +165,17 @@ Ignore counters equals to 0. =item B<--unknown-source-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{status} =item B<--warning-source-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{status} =item B<--critical-source-status> -Set critical threshold for status. +Define the conditions to match for the status to be CRITICAL. You can use the following variables: %{status} =item B<--warning-*> B<--critical-*> diff --git a/src/hardware/ups/socomec/netvision/snmp/mode/battery.pm b/src/hardware/ups/socomec/netvision/snmp/mode/battery.pm index fb2c06db5..f8e49e427 100644 --- a/src/hardware/ups/socomec/netvision/snmp/mode/battery.pm +++ b/src/hardware/ups/socomec/netvision/snmp/mode/battery.pm @@ -183,17 +183,17 @@ Check battery status and charge remaining. =item B<--unknown-status> -Set unknown threshold for status (Default: '%{status} =~ /unknown/i'). +Define the conditions to match for the status to be UNKNOWN (Default: '%{status} =~ /unknown/i'). You can use the following variables: %{status} =item B<--warning-status> -Set warning threshold for status (Default: '%{status} =~ /low/i'). +Define the conditions to match for the status to be WARNING (Default: '%{status} =~ /low/i'). You can use the following variables: %{status} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} =~ /depleted|failure/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} =~ /depleted|failure/i'). You can use the following variables: %{status} =item B<--warning-*> B<--critical-*> diff --git a/src/hardware/ups/socomec/netvision/snmp/mode/outputlines.pm b/src/hardware/ups/socomec/netvision/snmp/mode/outputlines.pm index 92af18345..d514202a6 100644 --- a/src/hardware/ups/socomec/netvision/snmp/mode/outputlines.pm +++ b/src/hardware/ups/socomec/netvision/snmp/mode/outputlines.pm @@ -193,17 +193,17 @@ Ignore counters equals to 0. =item B<--unknown-source-status> -Set unknown threshold for status (Default: '%{status} =~ /unknown/i'). +Define the conditions to match for the status to be UNKNOWN (Default: '%{status} =~ /unknown/i'). You can use the following variables: %{status} =item B<--warning-source-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{status} =item B<--critical-source-status> -Set critical threshold for status. +Define the conditions to match for the status to be CRITICAL. You can use the following variables: %{status} =item B<--warning-*> B<--critical-*> diff --git a/src/hardware/ups/standard/rfc1628/snmp/mode/batterystatus.pm b/src/hardware/ups/standard/rfc1628/snmp/mode/batterystatus.pm index ed784045a..15459853a 100644 --- a/src/hardware/ups/standard/rfc1628/snmp/mode/batterystatus.pm +++ b/src/hardware/ups/standard/rfc1628/snmp/mode/batterystatus.pm @@ -162,17 +162,17 @@ Check battery status and charge remaining. =item B<--unknown-status> -Set unknown threshold for status (Default: '%{status} =~ /unknown/i'). +Define the conditions to match for the status to be UNKNOWN (Default: '%{status} =~ /unknown/i'). You can use the following variables: %{status} =item B<--warning-status> -Set warning threshold for status (Default: '%{status} =~ /low/i'). +Define the conditions to match for the status to be WARNING (Default: '%{status} =~ /low/i'). You can use the following variables: %{status} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} =~ /depleted/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} =~ /depleted/i'). You can use the following variables: %{status} =item B<--warning-*> B<--critical-*> diff --git a/src/hardware/ups/standard/rfc1628/snmp/mode/outputlines.pm b/src/hardware/ups/standard/rfc1628/snmp/mode/outputlines.pm index 1acb21e13..707fb03a2 100644 --- a/src/hardware/ups/standard/rfc1628/snmp/mode/outputlines.pm +++ b/src/hardware/ups/standard/rfc1628/snmp/mode/outputlines.pm @@ -174,21 +174,21 @@ Ignore counters equals to 0. =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'load', 'voltage', 'current', 'power'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'load', 'voltage', 'current', 'power'. =item B<--warning-stdev-3phases> -Threshold warning for standard deviation of 3 phases. +Warning threshold for standard deviation of 3 phases. =item B<--critical-stdev-3phases> -Threshold critical for standard deviation of 3 phases. +Critical threshold for standard deviation of 3 phases. =back diff --git a/src/hardware/ups/standard/rfc1628/snmp/mode/outputsource.pm b/src/hardware/ups/standard/rfc1628/snmp/mode/outputsource.pm index 7699d2f96..08615504b 100644 --- a/src/hardware/ups/standard/rfc1628/snmp/mode/outputsource.pm +++ b/src/hardware/ups/standard/rfc1628/snmp/mode/outputsource.pm @@ -93,17 +93,17 @@ Check output source status. =item B<--unknown-source-status> -Set unknown threshold for status (Default: '%{status} =~ /other/') +Define the conditions to match for the status to be UNKNOWN (Default: '%{status} =~ /other/') You can use the following variables: %{status} =item B<--warning-source-status> -Set warning threshold for status (Default: '%{status} =~ /bypass|battery|booster|reducer/') +Define the conditions to match for the status to be WARNING (Default: '%{status} =~ /bypass|battery|booster|reducer/') You can use the following variables: %{status} =item B<--critical-source-status> -Set critical threshold for status (Default: '%{status} =~ /none/') +Define the conditions to match for the status to be CRITICAL (Default: '%{status} =~ /none/') You can use the following variables: %{status} =back diff --git a/src/network/3com/snmp/mode/cpu.pm b/src/network/3com/snmp/mode/cpu.pm index 922989987..ef52a3e4d 100644 --- a/src/network/3com/snmp/mode/cpu.pm +++ b/src/network/3com/snmp/mode/cpu.pm @@ -131,12 +131,12 @@ Example: --filter-counters='5m' =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: '5s', '1m', '5m'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: '5s', '1m', '5m'. =back diff --git a/src/network/3com/snmp/mode/memory.pm b/src/network/3com/snmp/mode/memory.pm index 3f8a1dced..17931552b 100644 --- a/src/network/3com/snmp/mode/memory.pm +++ b/src/network/3com/snmp/mode/memory.pm @@ -152,11 +152,11 @@ Check memory usages. =item B<--warning-usage> -Threshold warning (in percent). +Warning threshold (in percent). =item B<--critical-usage> -Threshold critical (in percent). +Critical threshold (in percent). =back diff --git a/src/network/a10/ax/snmp/mode/cpu.pm b/src/network/a10/ax/snmp/mode/cpu.pm index ea555164d..79cbf425e 100644 --- a/src/network/a10/ax/snmp/mode/cpu.pm +++ b/src/network/a10/ax/snmp/mode/cpu.pm @@ -110,12 +110,12 @@ Example : --filter-counters='^cpu-1m$' =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'cpu-30s' (%), 'cpu-1m' (%). =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'cpu-30s' (%), 'cpu-1m' (%). =back diff --git a/src/network/a10/ax/snmp/mode/disk.pm b/src/network/a10/ax/snmp/mode/disk.pm index 4fbaa716b..f78c5f3a8 100644 --- a/src/network/a10/ax/snmp/mode/disk.pm +++ b/src/network/a10/ax/snmp/mode/disk.pm @@ -123,11 +123,11 @@ Check disk usage. =item B<--warning-usage> -Threshold warning (in percent). +Warning threshold (in percent). =item B<--critical-usage> -Threshold critical (in percent). +Critical threshold (in percent). =back diff --git a/src/network/a10/ax/snmp/mode/globalstats.pm b/src/network/a10/ax/snmp/mode/globalstats.pm index 0dab43ad5..cdea02768 100644 --- a/src/network/a10/ax/snmp/mode/globalstats.pm +++ b/src/network/a10/ax/snmp/mode/globalstats.pm @@ -113,12 +113,12 @@ Example: --filter-counters='^current-connections$' =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'current-connections', 'total-connections'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'current-connections', 'total-connections'. =back diff --git a/src/network/a10/ax/snmp/mode/memory.pm b/src/network/a10/ax/snmp/mode/memory.pm index 0b49ba08f..a61e8036c 100644 --- a/src/network/a10/ax/snmp/mode/memory.pm +++ b/src/network/a10/ax/snmp/mode/memory.pm @@ -124,11 +124,11 @@ Check memory usage. =item B<--warning-usage> -Threshold warning (in percent). +Warning threshold (in percent). =item B<--critical-usage> -Threshold critical (in percent). +Critical threshold (in percent). =back diff --git a/src/network/a10/ax/snmp/mode/vserverusage.pm b/src/network/a10/ax/snmp/mode/vserverusage.pm index 697f376dc..1e16971d6 100644 --- a/src/network/a10/ax/snmp/mode/vserverusage.pm +++ b/src/network/a10/ax/snmp/mode/vserverusage.pm @@ -202,22 +202,22 @@ Check virtual server usage. =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{status}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} =~ /down/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} =~ /down/i'). You can use the following variables: %{status}, %{display} =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'current-con', 'total-con', 'traffic-in', 'traffic-out'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'current-con', 'total-con', 'traffic-in', 'traffic-out'. =item B<--filter-name> diff --git a/src/network/acmepacket/snmp/mode/realmusage.pm b/src/network/acmepacket/snmp/mode/realmusage.pm index a355c0e62..ae5a457bf 100644 --- a/src/network/acmepacket/snmp/mode/realmusage.pm +++ b/src/network/acmepacket/snmp/mode/realmusage.pm @@ -184,14 +184,14 @@ Check realm usage. =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'current-in-sessions', 'current-in-sessions-rate', 'total-in-sessions', 'current-out-sessions', 'current-out-sessions-rate', 'total-out-session', 'avg-qos-rfactor', 'total-rfactor'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'current-in-sessions', 'current-in-sessions-rate', 'total-in-sessions', 'current-out-sessions', 'current-out-sessions-rate', 'total-out-session', 'avg-qos-rfactor', 'total-rfactor'. diff --git a/src/network/acmepacket/snmp/mode/sipusage.pm b/src/network/acmepacket/snmp/mode/sipusage.pm index 06ebea235..a682c696e 100644 --- a/src/network/acmepacket/snmp/mode/sipusage.pm +++ b/src/network/acmepacket/snmp/mode/sipusage.pm @@ -169,22 +169,22 @@ Check SIP usage. =item B<--warning-status> -Set warning threshold for status (Default: -). +Define the conditions to match for the status to be WARNING (Default: -). You can use the following variables: %{status} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} =~ /outOfService|constraintsViolation|inServiceTimedOut/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} =~ /outOfService|constraintsViolation|inServiceTimedOut/i'). You can use the following variables: %{status} =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'in-sessions-rate', 'out-sessions-rate', 'latency', 'asr'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'in-sessions-rate', 'out-sessions-rate', 'latency', 'asr'. =item B<--filter-name> diff --git a/src/network/acmepacket/snmp/mode/systemusage.pm b/src/network/acmepacket/snmp/mode/systemusage.pm index 0b896f781..704db05b2 100644 --- a/src/network/acmepacket/snmp/mode/systemusage.pm +++ b/src/network/acmepacket/snmp/mode/systemusage.pm @@ -199,23 +199,23 @@ Example: --filter-counters='^memory-usage$' =item B<--warning-replication-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{replication_state} =item B<--critical-replication-status> -Set critical threshold for status (Default: '%{replication_state} =~ /outOfService/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{replication_state} =~ /outOfService/i'). You can use the following variables: %{replication_state} =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'license-usage' (%), 'memory-usage' (%), 'cpu-load' (%), 'health-score' (%), 'current-sessions', 'current-calls'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'license-usage' (%), 'memory-usage' (%), 'cpu-load' (%), 'health-score' (%), 'current-sessions', 'current-calls'. diff --git a/src/network/adva/fsp150/snmp/mode/alarms.pm b/src/network/adva/fsp150/snmp/mode/alarms.pm index 2de5d3770..abfb5ce53 100644 --- a/src/network/adva/fsp150/snmp/mode/alarms.pm +++ b/src/network/adva/fsp150/snmp/mode/alarms.pm @@ -276,12 +276,12 @@ Check alarms. =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{description}, %{object}, %{severity}, %{type}, %{label}, %{since} =item B<--critical-status> -Set critical threshold for status (Default: '%{severity} eq "serviceAffecting"'). +Define the conditions to match for the status to be CRITICAL (Default: '%{severity} eq "serviceAffecting"'). You can use the following variables: {description}, %{object}, %{severity}, %{type}, %{label}, %{since} =item B<--timezone> diff --git a/src/network/adva/fsp3000/snmp/mode/alarms.pm b/src/network/adva/fsp3000/snmp/mode/alarms.pm index 5fbf342cb..e71a2a510 100644 --- a/src/network/adva/fsp3000/snmp/mode/alarms.pm +++ b/src/network/adva/fsp3000/snmp/mode/alarms.pm @@ -300,12 +300,12 @@ Check alarms. =item B<--warning-status> -Set warning threshold for status (Default: '%{severity} =~ /warning|minor/i') +Define the conditions to match for the status to be WARNING (Default: '%{severity} =~ /warning|minor/i') You can use the following variables: %{severity}, %{type}, %{label}, %{since} =item B<--critical-status> -Set critical threshold for status (Default: '%{severity} =~ /critical|major/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{severity} =~ /critical|major/i'). You can use the following variables: %{severity}, %{type}, %{label}, %{since} =item B<--timezone> diff --git a/src/network/adva/fsp3000/snmp/mode/interfaces.pm b/src/network/adva/fsp3000/snmp/mode/interfaces.pm index fecc74c92..ebd15ef13 100644 --- a/src/network/adva/fsp3000/snmp/mode/interfaces.pm +++ b/src/network/adva/fsp3000/snmp/mode/interfaces.pm @@ -322,12 +322,12 @@ If the expression is true, metrics are checked (Default: '%{opstatus} eq "up"'). =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{admstatus}, %{opstatus}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: '%{admstatus} eq "up" and %{opstatus} ne "up"'). +Define the conditions to match for the status to be CRITICAL (Default: '%{admstatus} eq "up" and %{opstatus} ne "up"'). You can use the following variables: %{admstatus}, %{opstatus}, %{display} =item B<--warning-*> B<--critical-*> @@ -341,7 +341,7 @@ Units of thresholds for the traffic (Default: 'percent_delta') ('percent_delta', =item B<--interface> -Set the interface (number expected) ex: 1,2,... (empty means 'check all interface'). +Set the interface (number expected) ex: 1,2,... (empty means 'check all interfaces'). =item B<--name> @@ -365,11 +365,11 @@ Time in minutes before reloading cache file (default: 180). =item B<--oid-filter> -Choose OID used to filter interface (default: ifName) (values: ifDesc, ifAlias, ifName). +Define the OID to be used to filter interfaces (default: ifName) (values: ifDesc, ifAlias, ifName). =item B<--oid-display> -Choose OID used to display interface (default: ifName) (values: ifDesc, ifAlias, ifName). +Define the OID that will be used to name the interfaces (default: ifName) (values: ifDesc, ifAlias, ifName). =item B<--oid-extra-display> diff --git a/src/network/adva/fsp3000/snmp/mode/listinterfaces.pm b/src/network/adva/fsp3000/snmp/mode/listinterfaces.pm index 558f6f2c2..b04dd7f4b 100644 --- a/src/network/adva/fsp3000/snmp/mode/listinterfaces.pm +++ b/src/network/adva/fsp3000/snmp/mode/listinterfaces.pm @@ -111,7 +111,7 @@ __END__ =item B<--interface> -Set the interface (number expected) ex: 1,2,... (empty means 'check all interface'). +Set the interface (number expected) ex: 1,2,... (empty means 'check all interfaces'). =item B<--name> @@ -135,11 +135,11 @@ Display interfaces with AdminStatus 'up'. =item B<--oid-filter> -Choose OID used to filter interface (default: ifDesc) (values: ifDesc, ifAlias). +Define the OID to be used to filter interfaces (default: ifDesc) (values: ifDesc, ifAlias). =item B<--oid-display> -Choose OID used to display interface (default: ifDesc) (values: ifDesc, ifAlias). +Define the OID that will be used to name the interfaces (default: ifDesc) (values: ifDesc, ifAlias). =item B<--display-transform-src> diff --git a/src/network/aerohive/snmp/mode/connectedusers.pm b/src/network/aerohive/snmp/mode/connectedusers.pm index ddc68b879..095107d8c 100644 --- a/src/network/aerohive/snmp/mode/connectedusers.pm +++ b/src/network/aerohive/snmp/mode/connectedusers.pm @@ -124,12 +124,12 @@ Example: --filter-counters='ssid$' =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'total', 'ssid' =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'total', 'ssid' =item B<--filter-ssid> diff --git a/src/network/alcatel/isam/snmp/mode/cpu.pm b/src/network/alcatel/isam/snmp/mode/cpu.pm index c4165eb1b..7807c532f 100644 --- a/src/network/alcatel/isam/snmp/mode/cpu.pm +++ b/src/network/alcatel/isam/snmp/mode/cpu.pm @@ -101,11 +101,11 @@ Check CPU usages. =item B<--warning-usage> -Threshold warning. +Warning threshold. =item B<--critical-usage> -Threshold critical. +Critical threshold. =back diff --git a/src/network/alcatel/isam/snmp/mode/hubsapusage.pm b/src/network/alcatel/isam/snmp/mode/hubsapusage.pm index 20b634f6f..6df288f05 100644 --- a/src/network/alcatel/isam/snmp/mode/hubsapusage.pm +++ b/src/network/alcatel/isam/snmp/mode/hubsapusage.pm @@ -460,12 +460,12 @@ You can use the following variables: %{admin}, %{status}, %{display} =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'total-in-traffic', 'total-out-traffic', 'in-traffic', 'out-traffic'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'total-in-traffic', 'total-out-traffic', 'in-traffic', 'out-traffic'. =item B<--reload-cache-time> diff --git a/src/network/alcatel/isam/snmp/mode/memory.pm b/src/network/alcatel/isam/snmp/mode/memory.pm index f7f70a20a..4820a24f4 100644 --- a/src/network/alcatel/isam/snmp/mode/memory.pm +++ b/src/network/alcatel/isam/snmp/mode/memory.pm @@ -203,11 +203,11 @@ Filter project name (can be a regexp). =item B<--warning-usage> -Threshold warning. +Warning threshold. =item B<--critical-usage> -Threshold critical. +Critical threshold. =item B<--units> diff --git a/src/network/alcatel/omniswitch/snmp/mode/cpu.pm b/src/network/alcatel/omniswitch/snmp/mode/cpu.pm index a97d977a9..d51e4286d 100644 --- a/src/network/alcatel/omniswitch/snmp/mode/cpu.pm +++ b/src/network/alcatel/omniswitch/snmp/mode/cpu.pm @@ -178,11 +178,11 @@ Check cpu usage (AlcatelIND1Health.mib). =item B<--warning> -Threshold warning in percent (1m,1h). +Warning threshold in percent (1m,1h). =item B<--critical> -Threshold critical in percent (1m,1h). +Critical threshold in percent (1m,1h). =back diff --git a/src/network/alcatel/omniswitch/snmp/mode/flashmemory.pm b/src/network/alcatel/omniswitch/snmp/mode/flashmemory.pm index f2956c9e9..71f50340d 100644 --- a/src/network/alcatel/omniswitch/snmp/mode/flashmemory.pm +++ b/src/network/alcatel/omniswitch/snmp/mode/flashmemory.pm @@ -149,11 +149,11 @@ Check flash memory (AlcatelIND1Chassis.mib). =item B<--warning-usage> -Threshold warning in percent. +Warning threshold in percent. =item B<--critical-usage> -Threshold critical in percent. +Critical threshold in percent. =back diff --git a/src/network/alcatel/omniswitch/snmp/mode/memory.pm b/src/network/alcatel/omniswitch/snmp/mode/memory.pm index bb2b2035f..8211a220c 100644 --- a/src/network/alcatel/omniswitch/snmp/mode/memory.pm +++ b/src/network/alcatel/omniswitch/snmp/mode/memory.pm @@ -165,11 +165,11 @@ Check memory usage (AlcatelIND1Health.mib). =item B<--warning> -Threshold warning in percent (1m,1h). +Warning threshold in percent (1m,1h). =item B<--critical> -Threshold critical in percent (1m,1h). +Critical threshold in percent (1m,1h). =back diff --git a/src/network/alcatel/omniswitch/snmp/mode/virtualchassis.pm b/src/network/alcatel/omniswitch/snmp/mode/virtualchassis.pm index 017da89ca..66d9623cb 100644 --- a/src/network/alcatel/omniswitch/snmp/mode/virtualchassis.pm +++ b/src/network/alcatel/omniswitch/snmp/mode/virtualchassis.pm @@ -132,17 +132,17 @@ Check virtual chassis. =item B<--unknown-chassis-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{role}, %{status}, %{mac} =item B<--warning-chassis-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{role}, %{status}, %{mac} =item B<--critical-chassis-status> -Set critical threshold for status (Default: %{status} !~ /init|running/) +Define the conditions to match for the status to be CRITICAL (Default: %{status} !~ /init|running/) You can use the following variables: %{role}, %{status}, %{mac} =item B<--warning-*> B<--critical-*> diff --git a/src/network/alcatel/oxe/snmp/mode/domains.pm b/src/network/alcatel/oxe/snmp/mode/domains.pm index 7416f4b4f..45212c173 100644 --- a/src/network/alcatel/oxe/snmp/mode/domains.pm +++ b/src/network/alcatel/oxe/snmp/mode/domains.pm @@ -262,7 +262,7 @@ Filter by domain (regexp can be used). =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'cac-usage' (%), 'conference-usage' (%), 'cac-overrun' (absolute), conf-outoforder (absolute), 'dsp-usage' (absolute), 'dsp-outofservice' (absolute), @@ -270,7 +270,7 @@ Can be: 'cac-usage' (%), 'conference-usage' (%), =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'cac-usage' (%), 'conference-usage' (%), 'cac-overrun' (absolute), conf-outoforder (absolute), 'dsp-usage' (absolute), 'dsp-outofservice' (absolute), diff --git a/src/network/alcatel/oxe/snmp/mode/trunks.pm b/src/network/alcatel/oxe/snmp/mode/trunks.pm index 6a0f468bd..ec261840d 100644 --- a/src/network/alcatel/oxe/snmp/mode/trunks.pm +++ b/src/network/alcatel/oxe/snmp/mode/trunks.pm @@ -198,22 +198,22 @@ Filter by trunk name (regexp can be used). =item B<--warning-trunk-status> -Set warning threshold for status +Define the conditions to match for the status to be WARNING You can use the following variables: %{trunkstatus} =item B<--critical-trunk-status> -Set critical threshold for status (Default: '%{trunkstatus} =~ /oos/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{trunkstatus} =~ /oos/i'). You can use the following variables: %{trunkstatus} =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'channel-usage' (%), 'channel-outofservice' (absolute) =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'channel-usage' (%), 'channel-outofservice' (absolute) =back diff --git a/src/network/alcatel/pss/1830/snmp/mode/sapqosstats.pm b/src/network/alcatel/pss/1830/snmp/mode/sapqosstats.pm index 1296f414d..66f573e98 100644 --- a/src/network/alcatel/pss/1830/snmp/mode/sapqosstats.pm +++ b/src/network/alcatel/pss/1830/snmp/mode/sapqosstats.pm @@ -272,12 +272,12 @@ You can use the following variables: %{admin}, %{status}, %{display} =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'traffic-in-above-cir', 'traffic-in-below-cir', 'traffic-out-above-cir', 'traffic-out-below-cir'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'traffic-in-above-cir', 'traffic-in-below-cir', 'traffic-out-above-cir', 'traffic-out-below-cir'. =item B<--reload-cache-time> diff --git a/src/network/alvarion/breezeaccess/snmp/mode/radiostatus.pm b/src/network/alvarion/breezeaccess/snmp/mode/radiostatus.pm index 114ed7c79..60f890fff 100644 --- a/src/network/alvarion/breezeaccess/snmp/mode/radiostatus.pm +++ b/src/network/alvarion/breezeaccess/snmp/mode/radiostatus.pm @@ -126,12 +126,12 @@ Example: --filter-counters='rx-power' =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'rx-snr', 'rx-power', 'bad-frames'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'rx-snr', 'rx-power', 'bad-frames'. =back diff --git a/src/network/aruba/aoscx/restapi/mode/vsx.pm b/src/network/aruba/aoscx/restapi/mode/vsx.pm index 8b2e978b5..0dbbd5fd1 100644 --- a/src/network/aruba/aoscx/restapi/mode/vsx.pm +++ b/src/network/aruba/aoscx/restapi/mode/vsx.pm @@ -225,47 +225,47 @@ Check virtual switching extension. =item B<--unknown-device-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{role}, %{config_sync} =item B<--warning-device-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{role}, %{config_sync} =item B<--critical-device-status> -Set critical threshold for status. +Define the conditions to match for the status to be CRITICAL. You can use the following variables: %{role}, %{config_sync} =item B<--unknown-isl-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{isl_status} =item B<--warning-isl-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{isl_status} =item B<--critical-isl-status> -Set critical threshold for status (Default: '%{isl_status} =~ /out_sync/'). +Define the conditions to match for the status to be CRITICAL (Default: '%{isl_status} =~ /out_sync/'). You can use the following variables: %{isl_status} =item B<--unknown-keepalive-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{keepalive_status} =item B<--warning-keepalive-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{keepalive_status} =item B<--critical-keepalive-status> -Set critical threshold for status (Default: '%{keepalive_status} =~ /out_of_sync_established|failed/'). +Define the conditions to match for the status to be CRITICAL (Default: '%{keepalive_status} =~ /out_of_sync_established|failed/'). You can use the following variables: %{keepalive_status} =item B<--warning-*> B<--critical-*> diff --git a/src/network/aruba/aoscx/snmp/mode/vsf.pm b/src/network/aruba/aoscx/snmp/mode/vsf.pm index 6c58b0560..32641903a 100644 --- a/src/network/aruba/aoscx/snmp/mode/vsf.pm +++ b/src/network/aruba/aoscx/snmp/mode/vsf.pm @@ -235,32 +235,32 @@ Check vsf virtual chassis. =item B<--unknown-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{status} =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{status} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} !~ /no_split/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} !~ /no_split/i'). You can use the following variables: %{status} =item B<--unknown-member-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{status}, %{role}, %{roleLast}, %{id} =item B<--warning-member-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{status}, %{role}, %{roleLast}, %{id} =item B<--critical-member-status> -Set critical threshold for status (Default: '%{role} ne %{roleLast} || %{status} !~ /ready|booting/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{role} ne %{roleLast} || %{status} !~ /ready|booting/i'). You can use the following variables: %{status}, %{role}, %{roleLast}, %{id} =item B<--warning-*> B<--critical-*> diff --git a/src/network/aruba/aoscx/snmp/mode/vsx.pm b/src/network/aruba/aoscx/snmp/mode/vsx.pm index e3b7e1d02..724348078 100644 --- a/src/network/aruba/aoscx/snmp/mode/vsx.pm +++ b/src/network/aruba/aoscx/snmp/mode/vsx.pm @@ -252,47 +252,47 @@ Check virtual switching extension. =item B<--unknown-device-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{role}, %{config_sync} =item B<--warning-device-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{role}, %{config_sync} =item B<--critical-device-status> -Set critical threshold for status. +Define the conditions to match for the status to be CRITICAL. You can use the following variables: %{role}, %{config_sync} =item B<--unknown-isl-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{isl_status} =item B<--warning-isl-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{isl_status} =item B<--critical-isl-status> -Set critical threshold for status (Default: '%{isl_status} =~ /outSync/'). +Define the conditions to match for the status to be CRITICAL (Default: '%{isl_status} =~ /outSync/'). You can use the following variables: %{isl_status} =item B<--unknown-keepalive-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{keepalive_status} =item B<--warning-keepalive-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{keepalive_status} =item B<--critical-keepalive-status> -Set critical threshold for status (Default: '%{keepalive_status} =~ /outofSyncEstablished|failed/'). +Define the conditions to match for the status to be CRITICAL (Default: '%{keepalive_status} =~ /outofSyncEstablished|failed/'). You can use the following variables: %{keepalive_status} =item B<--warning-*> B<--critical-*> diff --git a/src/network/aruba/cppm/snmp/mode/interfaces.pm b/src/network/aruba/cppm/snmp/mode/interfaces.pm index c08ba9632..465d7e712 100644 --- a/src/network/aruba/cppm/snmp/mode/interfaces.pm +++ b/src/network/aruba/cppm/snmp/mode/interfaces.pm @@ -81,12 +81,12 @@ If the expression is true, metrics are checked (Default: '%{opstatus} eq "up"'). =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{admstatus}, %{opstatus}, %{duplexstatus}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: '%{admstatus} eq "up" and %{opstatus} ne "up"'). +Define the conditions to match for the status to be CRITICAL (Default: '%{admstatus} eq "up" and %{opstatus} ne "up"'). You can use the following variables: %{admstatus}, %{opstatus}, %{duplexstatus}, %{display} =item B<--warning-*> B<--critical-*> @@ -115,7 +115,7 @@ Display traffic perfdata to be compatible with nagvis widget. =item B<--interface> -Set the interface (number expected) ex: 1,2,... (empty means 'check all interface'). +Set the interface (number expected) ex: 1,2,... (empty means 'check all interfaces'). =item B<--name> @@ -155,11 +155,11 @@ Time in minutes before reloading cache file (default: 180). =item B<--oid-filter> -Choose OID used to filter interface (default: ifName) (values: ifDesc, ifAlias, ifName, IpAddr). +Define the OID to be used to filter interfaces (default: ifName) (values: ifDesc, ifAlias, ifName, IpAddr). =item B<--oid-display> -Choose OID used to display interface (default: ifName) (values: ifDesc, ifAlias, ifName, IpAddr). +Define the OID that will be used to name the interfaces (default: ifName) (values: ifDesc, ifAlias, ifName, IpAddr). =item B<--oid-extra-display> diff --git a/src/network/aruba/instant/snmp/mode/apusage.pm b/src/network/aruba/instant/snmp/mode/apusage.pm index 89d6e6668..0561a2100 100644 --- a/src/network/aruba/instant/snmp/mode/apusage.pm +++ b/src/network/aruba/instant/snmp/mode/apusage.pm @@ -230,12 +230,12 @@ Filter access point name (can be a regexp). =item B<--warning-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{status}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} !~ /up/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} !~ /up/i'). You can use the following variables: %{status}, %{display} =item B<--warning-*> B<--critical-*> diff --git a/src/network/aruba/instant/snmp/mode/ssidstatus.pm b/src/network/aruba/instant/snmp/mode/ssidstatus.pm index 08beff166..71636d560 100644 --- a/src/network/aruba/instant/snmp/mode/ssidstatus.pm +++ b/src/network/aruba/instant/snmp/mode/ssidstatus.pm @@ -135,12 +135,12 @@ Filter SSID name (can be a regexp). =item B<--warning-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{status}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} !~ /enable/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} !~ /enable/i'). You can use the following variables: %{status}, %{display} =back diff --git a/src/network/aruba/orchestrator/restapi/mode/alarms.pm b/src/network/aruba/orchestrator/restapi/mode/alarms.pm index 4d0e59229..fb6e1818c 100644 --- a/src/network/aruba/orchestrator/restapi/mode/alarms.pm +++ b/src/network/aruba/orchestrator/restapi/mode/alarms.pm @@ -173,12 +173,12 @@ Set timezone for creation time (Default is 'UTC'). =item B<--warning-status> -Set warning threshold for status (Default: '%{severity} =~ /minor|warning/i') +Define the conditions to match for the status to be WARNING (Default: '%{severity} =~ /minor|warning/i') You can use the following variables: %{severity}, %{hostname}, %{name}, %{timeraised} =item B<--critical-status> -Set critical threshold for status (Default: '%{severity} =~ /major|critical/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{severity} =~ /major|critical/i'). You can use the following variables: %{severity}, %{hostname}, %{name}, %{timeraised} =item B<--warning-*> B<--critical-*> diff --git a/src/network/aruba/orchestrator/restapi/mode/appliances.pm b/src/network/aruba/orchestrator/restapi/mode/appliances.pm index ee24c8dab..064d8cf78 100644 --- a/src/network/aruba/orchestrator/restapi/mode/appliances.pm +++ b/src/network/aruba/orchestrator/restapi/mode/appliances.pm @@ -168,17 +168,17 @@ Filter appliances by group. =item B<--unknown-status> -Set unknown threshold for status (Default: '%{state} =~ /unknown|unreachable/i'). +Define the conditions to match for the status to be UNKNOWN (Default: '%{state} =~ /unknown|unreachable/i'). You can use the following variables: %{state}, %{hostname} =item B<--warning-status> -Set warning threshold for status (Default: '%{state} =~ /unsupportedVersion|outOfSynchronization/i'). +Define the conditions to match for the status to be WARNING (Default: '%{state} =~ /unsupportedVersion|outOfSynchronization/i'). You can use the following variables: %{state}, %{hostname} =item B<--critical-status> -Set critical threshold for status. +Define the conditions to match for the status to be CRITICAL. You can use the following variables: %{state}, %{hostname} =item B<--warning-*> B<--critical-*> diff --git a/src/network/athonet/epc/snmp/mode/interfacesdiameter.pm b/src/network/athonet/epc/snmp/mode/interfacesdiameter.pm index c63357696..3621b13d7 100644 --- a/src/network/athonet/epc/snmp/mode/interfacesdiameter.pm +++ b/src/network/athonet/epc/snmp/mode/interfacesdiameter.pm @@ -215,32 +215,32 @@ Filter interfaces by owner (can be a regexp). =item B<--unknown-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{status}, %{name}, %{owner} =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{status}, %{name}, %{owner} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} =~ /down/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} =~ /down/i'). You can use the following variables: %{status}, %{name}, %{owner} =item B<--unknown-transport-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{transport_status}, %{transport_type}, %{name} =item B<--warning-transport-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{transport_status}, %{transport_type}, %{name} =item B<--critical-transport-status> -Set critical threshold for status (Default: '%{transport_status} =~ /down/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{transport_status} =~ /down/i'). You can use the following variables: %{transport_status}, %{transport_type}, %{name} =item B<--warning-*> B<--critical-*> diff --git a/src/network/athonet/epc/snmp/mode/interfacesga.pm b/src/network/athonet/epc/snmp/mode/interfacesga.pm index 84a48427b..706feaa55 100644 --- a/src/network/athonet/epc/snmp/mode/interfacesga.pm +++ b/src/network/athonet/epc/snmp/mode/interfacesga.pm @@ -167,17 +167,17 @@ Filter interfaces by peer address (can be a regexp). =item B<--unknown-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{status}, %{local_address}, %{peer_address}, %{name} =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{status}, %{local_address}, %{peer_address}, %{name} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} =~ /down/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} =~ /down/i'). You can use the following variables: %{status}, %{local_address}, %{peer_address}, %{name} =item B<--warning-*> B<--critical-*> diff --git a/src/network/athonet/epc/snmp/mode/interfacesgtpc.pm b/src/network/athonet/epc/snmp/mode/interfacesgtpc.pm index 5e569cf4b..0eb95e9bc 100644 --- a/src/network/athonet/epc/snmp/mode/interfacesgtpc.pm +++ b/src/network/athonet/epc/snmp/mode/interfacesgtpc.pm @@ -188,17 +188,17 @@ Filter interfaces by type (can be a regexp). =item B<--unknown-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{status}, %{source_address}, %{destination_address} =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{status}, %{source_address}, %{destination_address} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} =~ /down/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} =~ /down/i'). You can use the following variables: %{status}, %{source_address}, %{destination_address} =item B<--warning-*> B<--critical-*> diff --git a/src/network/athonet/epc/snmp/mode/interfaceslte.pm b/src/network/athonet/epc/snmp/mode/interfaceslte.pm index c9590e380..2e3f62d45 100644 --- a/src/network/athonet/epc/snmp/mode/interfaceslte.pm +++ b/src/network/athonet/epc/snmp/mode/interfaceslte.pm @@ -430,17 +430,17 @@ Filter interfaces by name (can be a regexp). =item B<--unknown-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{sctp_status}, %{s1ap_status}, %{name} =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{sctp_status}, %{s1ap_status}, %{name} =item B<--critical-status> -Set critical threshold for status (Default: '%{sctp_status} =~ /down/i || %{s1ap_status} =~ /down/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{sctp_status} =~ /down/i || %{s1ap_status} =~ /down/i'). You can use the following variables: %{sctp_status}, %{s1ap_status}, %{name} =item B<--warning-*> B<--critical-*> diff --git a/src/network/athonet/epc/snmp/mode/license.pm b/src/network/athonet/epc/snmp/mode/license.pm index 4f6a4ca47..535c24000 100644 --- a/src/network/athonet/epc/snmp/mode/license.pm +++ b/src/network/athonet/epc/snmp/mode/license.pm @@ -351,12 +351,12 @@ Example: --filter-counters='users' =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. Can use special variables like: %{status} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} =~ /expired|invalid/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} =~ /expired|invalid/i'). Can use special variables like: %{status} =item B<--unit> diff --git a/src/network/atrica/snmp/mode/connections.pm b/src/network/atrica/snmp/mode/connections.pm index a2ccc2442..42d8b650e 100644 --- a/src/network/atrica/snmp/mode/connections.pm +++ b/src/network/atrica/snmp/mode/connections.pm @@ -409,12 +409,12 @@ If the expression is true, metrics are checked (Default: '%{opstatus} eq "up" or =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{admstatus}, %{opstatus}, %{display} =item B<--critical-status> -Set critical threshold for status. +Define the conditions to match for the status to be CRITICAL. Default (depends of the atrica release): '%{admstatus} eq "on" and %{opstatus} ne "inService"' '%{admstatus} eq "up" and %{opstatus} ne "up"' @@ -435,7 +435,7 @@ Units of thresholds for errors/discards (Default: 'percent_delta') ('percent_del =item B<--interface> -Set the interface (number expected) ex: 1,2,... (empty means 'check all interface'). +Set the interface (number expected) ex: 1,2,... (empty means 'check all interfaces'). =item B<--name> @@ -459,11 +459,11 @@ Time in seconds before reloading cache file (default: 180). =item B<--oid-filter> -Choose OID used to filter interface (default: atrConnCepGenDescr) (values: atrConnIngDescr, atrConnCepGenDescr). +Define the OID to be used to filter interfaces (default: atrConnCepGenDescr) (values: atrConnIngDescr, atrConnCepGenDescr). =item B<--oid-display> -Choose OID used to display interface (default: atrConnCepGenDescr) (values: atrConnIngDescr, atrConnCepGenDescr). +Define the OID that will be used to name the interfaces (default: atrConnCepGenDescr) (values: atrConnIngDescr, atrConnCepGenDescr). =item B<--oid-extra-display> diff --git a/src/network/atrica/snmp/mode/listconnections.pm b/src/network/atrica/snmp/mode/listconnections.pm index 29f0d3267..0ff678a0c 100644 --- a/src/network/atrica/snmp/mode/listconnections.pm +++ b/src/network/atrica/snmp/mode/listconnections.pm @@ -101,7 +101,7 @@ __END__ =item B<--interface> -Set the interface (number expected) ex: 1,2,... (empty means 'check all interface'). +Set the interface (number expected) ex: 1,2,... (empty means 'check all interfaces'). =item B<--name> @@ -125,11 +125,11 @@ Display interfaces with AdminStatus 'up'. =item B<--oid-filter> -Choose OID used to filter interface (default: atrConnCepGenDescr) (values: atrConnIngDescr, atrConnCepGenDescr). +Define the OID to be used to filter interfaces (default: atrConnCepGenDescr) (values: atrConnIngDescr, atrConnCepGenDescr). =item B<--oid-display> -Choose OID used to display interface (default: atrConnCepGenDescr) (values: atrConnIngDescr, atrConnCepGenDescr). +Define the OID that will be used to name the interfaces (default: atrConnCepGenDescr) (values: atrConnIngDescr, atrConnCepGenDescr). =item B<--display-transform-src> diff --git a/src/network/atto/fibrebridge/snmp/mode/fcportusage.pm b/src/network/atto/fibrebridge/snmp/mode/fcportusage.pm index 88303079a..864b73905 100644 --- a/src/network/atto/fibrebridge/snmp/mode/fcportusage.pm +++ b/src/network/atto/fibrebridge/snmp/mode/fcportusage.pm @@ -205,12 +205,12 @@ Filter name (can be a regexp). =item B<--warning-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{admin}, %{status}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: '%{admin} =~ /enabled/ and %{status} !~ /online/'). +Define the conditions to match for the status to be CRITICAL (Default: '%{admin} =~ /enabled/ and %{status} !~ /online/'). You can use the following variables: %{admin}, %{status}, %{display} =back diff --git a/src/network/audiocodes/snmp/mode/cpu.pm b/src/network/audiocodes/snmp/mode/cpu.pm index 68e5edbfc..3b80e42d1 100644 --- a/src/network/audiocodes/snmp/mode/cpu.pm +++ b/src/network/audiocodes/snmp/mode/cpu.pm @@ -92,12 +92,12 @@ Example: --filter-counters='^voip$' =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'voip', 'data'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'voip', 'data'. =back diff --git a/src/network/audiocodes/snmp/mode/memory.pm b/src/network/audiocodes/snmp/mode/memory.pm index 91ac259fd..107c15a8e 100644 --- a/src/network/audiocodes/snmp/mode/memory.pm +++ b/src/network/audiocodes/snmp/mode/memory.pm @@ -92,12 +92,12 @@ Example: --filter-counters='^voip$' =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'voip', 'data'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'voip', 'data'. =back diff --git a/src/network/audiocodes/snmp/mode/trunkstatus.pm b/src/network/audiocodes/snmp/mode/trunkstatus.pm index 3ea737ed1..8b4b27ea9 100644 --- a/src/network/audiocodes/snmp/mode/trunkstatus.pm +++ b/src/network/audiocodes/snmp/mode/trunkstatus.pm @@ -202,22 +202,22 @@ Filter by name (can be a regexp). =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{display}, %{alarm}, %{dchannel}, %{state} =item B<--critical-status> -Set critical threshold for status (Default: '%{state} =~ /activated/ and %{alarm} !~ /greenActive/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{state} =~ /activated/ and %{alarm} !~ /greenActive/i'). You can use the following variables: %{display}, %{alarm}, %{dchannel}, %{state} =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'avg-calls', 'max-calls', 'count-calls'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'avg-calls', 'max-calls', 'count-calls'. diff --git a/src/network/barracuda/cloudgen/snmp/mode/boxservice.pm b/src/network/barracuda/cloudgen/snmp/mode/boxservice.pm index 7429f44be..aec9cb4e0 100644 --- a/src/network/barracuda/cloudgen/snmp/mode/boxservice.pm +++ b/src/network/barracuda/cloudgen/snmp/mode/boxservice.pm @@ -152,12 +152,12 @@ Check box services status. =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{status}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} !~ /^started$/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} !~ /^started$/i'). You can use the following variables: %{status}, %{display} =item B<--filter-name> diff --git a/src/network/barracuda/cloudgen/snmp/mode/serverservice.pm b/src/network/barracuda/cloudgen/snmp/mode/serverservice.pm index 26907ce21..92749322c 100644 --- a/src/network/barracuda/cloudgen/snmp/mode/serverservice.pm +++ b/src/network/barracuda/cloudgen/snmp/mode/serverservice.pm @@ -152,12 +152,12 @@ Check server services status. =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{status}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} !~ /^started$/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} !~ /^started$/i'). You can use the following variables: %{status}, %{display} =item B<--filter-name> diff --git a/src/network/barracuda/cloudgen/snmp/mode/vpnstatus.pm b/src/network/barracuda/cloudgen/snmp/mode/vpnstatus.pm index 632572ae0..d8ffa28c2 100644 --- a/src/network/barracuda/cloudgen/snmp/mode/vpnstatus.pm +++ b/src/network/barracuda/cloudgen/snmp/mode/vpnstatus.pm @@ -150,12 +150,12 @@ Check VPNs status. =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{status}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} =~ /^down$/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} =~ /^down$/i'). You can use the following variables: %{status}, %{display} =item B<--filter-name> diff --git a/src/network/beeware/snmp/mode/reverseproxyusage.pm b/src/network/beeware/snmp/mode/reverseproxyusage.pm index 6306d631a..8bc1d07b8 100644 --- a/src/network/beeware/snmp/mode/reverseproxyusage.pm +++ b/src/network/beeware/snmp/mode/reverseproxyusage.pm @@ -181,22 +181,22 @@ Filter reverse proxy (can be a regexp). =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{display}, %{status} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} !~ /running/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} !~ /running/i'). You can use the following variables: %{display}, %{status} =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'cpu', 'memory' (B), 'nbchilds'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'cpu', 'memory' (B), 'nbchilds'. =back diff --git a/src/network/bluecoat/snmp/mode/clientconnections.pm b/src/network/bluecoat/snmp/mode/clientconnections.pm index db8084713..a8418f893 100644 --- a/src/network/bluecoat/snmp/mode/clientconnections.pm +++ b/src/network/bluecoat/snmp/mode/clientconnections.pm @@ -95,11 +95,11 @@ Check current client connections. =item B<--warning> -Threshold warning (on active connections). +Warning threshold (on active connections). =item B<--critical> -Threshold critical (on active connections. +Critical threshold (on active connections. =back diff --git a/src/network/bluecoat/snmp/mode/clientrequests.pm b/src/network/bluecoat/snmp/mode/clientrequests.pm index 2684e2dd7..5ef6a9da0 100644 --- a/src/network/bluecoat/snmp/mode/clientrequests.pm +++ b/src/network/bluecoat/snmp/mode/clientrequests.pm @@ -153,12 +153,12 @@ Example: --filter-counters='errors' =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: errors (%), hits (%), partial-hits (%), misses (%). =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: errors (%), hits (%), partial-hits (%), misses (%). =back diff --git a/src/network/bluecoat/snmp/mode/clienttraffic.pm b/src/network/bluecoat/snmp/mode/clienttraffic.pm index 4044c0861..2e4061028 100644 --- a/src/network/bluecoat/snmp/mode/clienttraffic.pm +++ b/src/network/bluecoat/snmp/mode/clienttraffic.pm @@ -147,19 +147,19 @@ Check bytes/s received/delivered to clients =item B<--warning-received> -Threshold warning for received (in bytes/s). +Warning threshold for received (in bytes/s). =item B<--critical-received> -Threshold critical for received (in bytes/s). +Critical threshold for received (in bytes/s). =item B<--warning-delivered> -Threshold warning2 for delivered (in bytes/s). +Warning threshold2 for delivered (in bytes/s). =item B<--critical-delivered> -Threshold critical for delivered (in bytes/s). +Critical threshold for delivered (in bytes/s). =back diff --git a/src/network/bluecoat/snmp/mode/cpu.pm b/src/network/bluecoat/snmp/mode/cpu.pm index 1ff2ebd7c..21040f78c 100644 --- a/src/network/bluecoat/snmp/mode/cpu.pm +++ b/src/network/bluecoat/snmp/mode/cpu.pm @@ -123,11 +123,11 @@ Check CPU Usage =item B<--warning-usage> -Threshold warning in percent. +Warning threshold in percent. =item B<--critical-usage> -Threshold critical in percent. +Critical threshold in percent. =back diff --git a/src/network/bluecoat/snmp/mode/disk.pm b/src/network/bluecoat/snmp/mode/disk.pm index 3f85a5762..d31f72545 100644 --- a/src/network/bluecoat/snmp/mode/disk.pm +++ b/src/network/bluecoat/snmp/mode/disk.pm @@ -100,11 +100,11 @@ Check disks usage. =item B<--warning> -Threshold warning in percent. +Warning threshold in percent. =item B<--critical> -Threshold critical in percent. +Critical threshold in percent. =back diff --git a/src/network/bluecoat/snmp/mode/memory.pm b/src/network/bluecoat/snmp/mode/memory.pm index 9f3449768..6f050dedb 100644 --- a/src/network/bluecoat/snmp/mode/memory.pm +++ b/src/network/bluecoat/snmp/mode/memory.pm @@ -108,11 +108,11 @@ Check bluecoat memory. =item B<--warning> -Threshold warning in percent. +Warning threshold in percent. =item B<--critical> -Threshold critical in percent. +Critical threshold in percent. =item B<--nocache> diff --git a/src/network/bluecoat/snmp/mode/serverconnections.pm b/src/network/bluecoat/snmp/mode/serverconnections.pm index 6c6b67a82..37f32eadd 100644 --- a/src/network/bluecoat/snmp/mode/serverconnections.pm +++ b/src/network/bluecoat/snmp/mode/serverconnections.pm @@ -95,11 +95,11 @@ Check current client connections. =item B<--warning> -Threshold warning (on active connections). +Warning threshold (on active connections). =item B<--critical> -Threshold critical (on active connections. +Critical threshold (on active connections. =back diff --git a/src/network/brocade/snmp/mode/cpu.pm b/src/network/brocade/snmp/mode/cpu.pm index df2eb3910..c4dcb63fa 100644 --- a/src/network/brocade/snmp/mode/cpu.pm +++ b/src/network/brocade/snmp/mode/cpu.pm @@ -103,11 +103,11 @@ Check system cpu usage (SW.mib). =item B<--warning> -Threshold warning in percent. +Warning threshold in percent. =item B<--critical> -Threshold critical in percent. +Critical threshold in percent. =back diff --git a/src/network/brocade/snmp/mode/interfaces.pm b/src/network/brocade/snmp/mode/interfaces.pm index 1d3e67b7b..192faf1b6 100644 --- a/src/network/brocade/snmp/mode/interfaces.pm +++ b/src/network/brocade/snmp/mode/interfaces.pm @@ -297,12 +297,12 @@ If the expression is true, metrics are checked (Default: '%{opstatus} eq "up"'). =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{admstatus}, %{opstatus}, %{duplexstatus}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: '%{admstatus} eq "up" and %{opstatus} ne "up"'). +Define the conditions to match for the status to be CRITICAL (Default: '%{admstatus} eq "up" and %{opstatus} ne "up"'). You can use the following variables: %{admstatus}, %{opstatus}, %{duplexstatus}, %{display} =item B<--warning-*> B<--critical-*> @@ -331,7 +331,7 @@ Display traffic perfdata to be compatible with nagvis widget. =item B<--interface> -Set the interface (number expected) ex: 1,2,... (empty means 'check all interface'). +Set the interface (number expected) ex: 1,2,... (empty means 'check all interfaces'). =item B<--name> @@ -359,11 +359,11 @@ Time in minutes before reloading cache file (default: 180). =item B<--oid-filter> -Choose OID used to filter interface (default: ifName) (values: fcPortName, ifDesc, ifAlias, ifName, IpAddr). +Define the OID to be used to filter interfaces (default: ifName) (values: fcPortName, ifDesc, ifAlias, ifName, IpAddr). =item B<--oid-display> -Choose OID used to display interface (default: ifName) (values: fcPortName, ifDesc, ifAlias, ifName, IpAddr). +Define the OID that will be used to name the interfaces (default: ifName) (values: fcPortName, ifDesc, ifAlias, ifName, IpAddr). =item B<--oid-extra-display> diff --git a/src/network/brocade/snmp/mode/listinterfaces.pm b/src/network/brocade/snmp/mode/listinterfaces.pm index ca9f20d29..a55167b50 100644 --- a/src/network/brocade/snmp/mode/listinterfaces.pm +++ b/src/network/brocade/snmp/mode/listinterfaces.pm @@ -132,7 +132,7 @@ __END__ =item B<--interface> -Set the interface (number expected) ex: 1,2,... (empty means 'check all interface'). +Set the interface (number expected) ex: 1,2,... (empty means 'check all interfaces'). =item B<--name> @@ -156,11 +156,11 @@ Display interfaces with AdminStatus 'up'. =item B<--oid-filter> -Choose OID used to filter interface (default: ifName) (values: fcPortName, ifDesc, ifAlias, ifName). +Define the OID to be used to filter interfaces (default: ifName) (values: fcPortName, ifDesc, ifAlias, ifName). =item B<--oid-display> -Choose OID used to display interface (default: ifName) (values: fcPortName, ifDesc, ifAlias, ifName). +Define the OID that will be used to name the interfaces (default: ifName) (values: fcPortName, ifDesc, ifAlias, ifName). =item B<--display-transform-src> diff --git a/src/network/brocade/snmp/mode/memory.pm b/src/network/brocade/snmp/mode/memory.pm index eadca7454..0e3421d61 100644 --- a/src/network/brocade/snmp/mode/memory.pm +++ b/src/network/brocade/snmp/mode/memory.pm @@ -103,11 +103,11 @@ Check system memory usage (SW.mib). =item B<--warning> -Threshold warning in percent. +Warning threshold in percent. =item B<--critical> -Threshold critical in percent. +Critical threshold in percent. =back diff --git a/src/network/cambium/cnpilot/snmp/mode/connectionstatus.pm b/src/network/cambium/cnpilot/snmp/mode/connectionstatus.pm index 4bc496c3f..d5fd1fa6f 100644 --- a/src/network/cambium/cnpilot/snmp/mode/connectionstatus.pm +++ b/src/network/cambium/cnpilot/snmp/mode/connectionstatus.pm @@ -129,12 +129,12 @@ Filter on one or several AP. =item B<--warning-connection-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. Can used special variables like: %{status}, %{name} =item B<--critical-connection-status> -Set critical threshold for status. +Define the conditions to match for the status to be CRITICAL. Can used special variables like: %{status}, %{name} =back diff --git a/src/network/cambium/cnpilot/snmp/mode/interfaces.pm b/src/network/cambium/cnpilot/snmp/mode/interfaces.pm index 387a0b0b5..ad6a78acd 100644 --- a/src/network/cambium/cnpilot/snmp/mode/interfaces.pm +++ b/src/network/cambium/cnpilot/snmp/mode/interfaces.pm @@ -81,12 +81,12 @@ If the expression is true, metrics are checked (Default: '%{opstatus} eq "up"'). =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. Can used special variables like: %{admstatus}, %{opstatus}, %{duplexstatus}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: '%{admstatus} eq "up" and %{opstatus} ne "up"'). +Define the conditions to match for the status to be CRITICAL (Default: '%{admstatus} eq "up" and %{opstatus} ne "up"'). Can used special variables like: %{admstatus}, %{opstatus}, %{duplexstatus}, %{display} =item B<--warning-*> B<--critical-*> @@ -115,7 +115,7 @@ Display traffic perfdata to be compatible with nagvis widget. =item B<--interface> -Set the interface (number expected) ex: 1,2,... (empty means 'check all interface'). +Set the interface (number expected) ex: 1,2,... (empty means 'check all interfaces'). =item B<--name> @@ -155,11 +155,11 @@ Time in minutes before reloading cache file (default: 180). =item B<--oid-filter> -Choose OID used to filter interface (default: ifName) (values: ifDesc, ifAlias, ifName, IpAddr). +Define the OID to be used to filter interfaces (default: ifName) (values: ifDesc, ifAlias, ifName, IpAddr). =item B<--oid-display> -Choose OID used to display interface (default: ifName) (values: ifDesc, ifAlias, ifName, IpAddr). +Define the OID that will be used to name the interfaces (default: ifName) (values: ifDesc, ifAlias, ifName, IpAddr). =item B<--oid-extra-display> diff --git a/src/network/cambium/cnpilot/snmp/mode/radios.pm b/src/network/cambium/cnpilot/snmp/mode/radios.pm index ffea2e933..ae556dd2a 100644 --- a/src/network/cambium/cnpilot/snmp/mode/radios.pm +++ b/src/network/cambium/cnpilot/snmp/mode/radios.pm @@ -180,12 +180,12 @@ Filter interface by MACAdress =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. Can used special variables like: %{status}, %{name} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} eq "expired"'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} eq "expired"'). Can used special variables like: %{status}, %{name} =item B<--warning-*> B<--critical-*> diff --git a/src/network/cambium/epmp/snmp/mode/interfaces.pm b/src/network/cambium/epmp/snmp/mode/interfaces.pm index cbe7e5a45..9e4386d06 100644 --- a/src/network/cambium/epmp/snmp/mode/interfaces.pm +++ b/src/network/cambium/epmp/snmp/mode/interfaces.pm @@ -81,12 +81,12 @@ If the expression is true, metrics are checked (Default: '%{opstatus} eq "up"'). =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{admstatus}, %{opstatus}, %{duplexstatus}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: '%{admstatus} eq "up" and %{opstatus} ne "up"'). +Define the conditions to match for the status to be CRITICAL (Default: '%{admstatus} eq "up" and %{opstatus} ne "up"'). You can use the following variables: %{admstatus}, %{opstatus}, %{duplexstatus}, %{display} =item B<--warning-*> B<--critical-*> @@ -115,7 +115,7 @@ Display traffic perfdata to be compatible with nagvis widget. =item B<--interface> -Set the interface (number expected) ex: 1,2,... (empty means 'check all interface'). +Set the interface (number expected) ex: 1,2,... (empty means 'check all interfaces'). =item B<--name> @@ -155,11 +155,11 @@ Time in minutes before reloading cache file (default: 180). =item B<--oid-filter> -Choose OID used to filter interface (default: ifName) (values: ifDesc, ifAlias, ifName, IpAddr). +Define the OID to be used to filter interfaces (default: ifName) (values: ifDesc, ifAlias, ifName, IpAddr). =item B<--oid-display> -Choose OID used to display interface (default: ifName) (values: ifDesc, ifAlias, ifName, IpAddr). +Define the OID that will be used to name the interfaces (default: ifName) (values: ifDesc, ifAlias, ifName, IpAddr). =item B<--oid-extra-display> diff --git a/src/network/cambium/epmp/snmp/mode/license.pm b/src/network/cambium/epmp/snmp/mode/license.pm index c57ae931e..8226d1e30 100644 --- a/src/network/cambium/epmp/snmp/mode/license.pm +++ b/src/network/cambium/epmp/snmp/mode/license.pm @@ -107,17 +107,17 @@ Check Cambium license status. =item B<--unknown-status> -Set unknown threshold for status (Default: '%{status} =~ /unknown/i'). +Define the conditions to match for the status to be UNKNOWN (Default: '%{status} =~ /unknown/i'). You can use the following variables: %{status} =item B<--warning-status> -Set warning threshold for status (Default: '%{status} =~ /validation fail|not provided/i'). +Define the conditions to match for the status to be WARNING (Default: '%{status} =~ /validation fail|not provided/i'). You can use the following variables: %{status} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} =~ /not valid/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} =~ /not valid/i'). You can use the following variables: %{status} =back diff --git a/src/network/cambium/epmp/snmp/mode/uptime.pm b/src/network/cambium/epmp/snmp/mode/uptime.pm index 367b2b9c9..3d61b56e0 100644 --- a/src/network/cambium/epmp/snmp/mode/uptime.pm +++ b/src/network/cambium/epmp/snmp/mode/uptime.pm @@ -45,11 +45,11 @@ Check system uptime. =item B<--warning-uptime> -Threshold warning. +Warning threshold. =item B<--critical-uptime> -Threshold critical. +Critical threshold. =item B<--add-sysdesc> diff --git a/src/network/checkpoint/snmp/mode/rausers.pm b/src/network/checkpoint/snmp/mode/rausers.pm index 8708084b7..2d59e5543 100644 --- a/src/network/checkpoint/snmp/mode/rausers.pm +++ b/src/network/checkpoint/snmp/mode/rausers.pm @@ -148,12 +148,12 @@ Filter on remote access users (can be a regexp). =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{display}, %{status} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} =~ /down/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} =~ /down/i'). You can use the following variables: %{display}, %{status} =item B<--warning-*> B<--critical-*> diff --git a/src/network/checkpoint/snmp/mode/vpnstatus.pm b/src/network/checkpoint/snmp/mode/vpnstatus.pm index 2f4cee651..94e489fdb 100644 --- a/src/network/checkpoint/snmp/mode/vpnstatus.pm +++ b/src/network/checkpoint/snmp/mode/vpnstatus.pm @@ -165,12 +165,12 @@ Filter vpn name (can be a regexp). =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{type}, %{status}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: '%{type} eq "permanent" and %{status} =~ /down/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{type} eq "permanent" and %{status} =~ /down/i'). You can use the following variables: %{type}, %{status}, %{display} =item B<--buggy-snmp> diff --git a/src/network/cisco/WaaS/mode/sessions.pm b/src/network/cisco/WaaS/mode/sessions.pm index 7ccf1cd72..8f08e809e 100644 --- a/src/network/cisco/WaaS/mode/sessions.pm +++ b/src/network/cisco/WaaS/mode/sessions.pm @@ -109,11 +109,11 @@ Check optimized and passthrough sessions on Cisco WAAS equipments against total =item B<--warning> -Threshold warning: Percentage value of passthrough sessions resulting in a warning state +Warning threshold: Percentage value of passthrough sessions resulting in a warning state =item B<--critical-average> -Threshold critical: Percentage value of passthrough sessions resulting in a critical state +Critical threshold: Percentage value of passthrough sessions resulting in a critical state =back diff --git a/src/network/cisco/asa/snmp/mode/failover.pm b/src/network/cisco/asa/snmp/mode/failover.pm index 3604fb351..21d3798d6 100644 --- a/src/network/cisco/asa/snmp/mode/failover.pm +++ b/src/network/cisco/asa/snmp/mode/failover.pm @@ -153,22 +153,22 @@ Example: --filter-counters='^status$' =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{primaryStateLast}, %{secondaryStateLast}, %{primaryState}, %{secondaryState} =item B<--critical-status> -Set critical threshold for status. +Define the conditions to match for the status to be CRITICAL. You can use the following variables: %{primaryStateLast}, %{secondaryStateLast}, %{primaryState}, %{secondaryState} =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'active-units'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'active-units'. =back diff --git a/src/network/cisco/callmanager/snmp/mode/ccmusage.pm b/src/network/cisco/callmanager/snmp/mode/ccmusage.pm index 2fa6ea75d..f198f37f0 100644 --- a/src/network/cisco/callmanager/snmp/mode/ccmusage.pm +++ b/src/network/cisco/callmanager/snmp/mode/ccmusage.pm @@ -165,12 +165,12 @@ Example: --filter-counters='phone' =item B<--warning-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{status}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} !~ /up/'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} !~ /up/'). You can use the following variables: %{status}, %{display} =item B<--warning-*> B<--critical-*> diff --git a/src/network/cisco/callmanager/snmp/mode/ctiusage.pm b/src/network/cisco/callmanager/snmp/mode/ctiusage.pm index d9f3f62da..fa614dd02 100644 --- a/src/network/cisco/callmanager/snmp/mode/ctiusage.pm +++ b/src/network/cisco/callmanager/snmp/mode/ctiusage.pm @@ -156,12 +156,12 @@ Example: --filter-counters='status' =item B<--warning-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{status}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} !~ /^registered/'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} !~ /^registered/'). You can use the following variables: %{status}, %{display} =item B<--warning-*> B<--critical-*> diff --git a/src/network/cisco/callmanager/snmp/mode/gatewayusage.pm b/src/network/cisco/callmanager/snmp/mode/gatewayusage.pm index e9ba6d839..c7a1bcdaa 100644 --- a/src/network/cisco/callmanager/snmp/mode/gatewayusage.pm +++ b/src/network/cisco/callmanager/snmp/mode/gatewayusage.pm @@ -147,21 +147,21 @@ Example: --filter-counters='status' =item B<--warning-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{status}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} !~ /^registered/'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} !~ /^registered/'). You can use the following variables: %{status}, %{display} =item B<--warning-*> -Threshold warning. +Warning threshold. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'total-registered', 'total-unregistered', 'total-rejected', 'total-unknown', 'total-partiallyregistered'. diff --git a/src/network/cisco/callmanager/snmp/mode/mediadeviceusage.pm b/src/network/cisco/callmanager/snmp/mode/mediadeviceusage.pm index 86db7788f..2aa2a5ffe 100644 --- a/src/network/cisco/callmanager/snmp/mode/mediadeviceusage.pm +++ b/src/network/cisco/callmanager/snmp/mode/mediadeviceusage.pm @@ -147,21 +147,21 @@ Example: --filter-counters='status' =item B<--warning-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{status}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} !~ /^registered/'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} !~ /^registered/'). You can use the following variables: %{status}, %{display} =item B<--warning-*> -Threshold warning. +Warning threshold. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'total-registered', 'total-unregistered', 'total-rejected', 'total-unknown', 'total-partiallyregistered'. diff --git a/src/network/cisco/callmanager/snmp/mode/phoneusage.pm b/src/network/cisco/callmanager/snmp/mode/phoneusage.pm index 459b1fbd1..ff4cf6411 100644 --- a/src/network/cisco/callmanager/snmp/mode/phoneusage.pm +++ b/src/network/cisco/callmanager/snmp/mode/phoneusage.pm @@ -175,12 +175,12 @@ Filter phone by description (can be a regexp). =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{status}, %{name}, %{description} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} !~ /^registered/'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} !~ /^registered/'). You can use the following variables: %{status}, %{name}, %{description} =item B<--warning-*> B<--critical-*> diff --git a/src/network/cisco/callmanager/snmp/mode/voicemailusage.pm b/src/network/cisco/callmanager/snmp/mode/voicemailusage.pm index e537975fc..ee686b02e 100644 --- a/src/network/cisco/callmanager/snmp/mode/voicemailusage.pm +++ b/src/network/cisco/callmanager/snmp/mode/voicemailusage.pm @@ -147,12 +147,12 @@ Example: --filter-counters='status' =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{status}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} !~ /^registered/'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} !~ /^registered/'). You can use the following variables: %{status}, %{display} =item B<--warning-*> B<--critical-*> diff --git a/src/network/cisco/callmanager/sxml/mode/services.pm b/src/network/cisco/callmanager/sxml/mode/services.pm index ac637e927..77dad64b2 100644 --- a/src/network/cisco/callmanager/sxml/mode/services.pm +++ b/src/network/cisco/callmanager/sxml/mode/services.pm @@ -184,17 +184,17 @@ Filter services by name (can be a regexp). =item B<--unknown-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{status}, %{reason}, %{name} =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{status}, %{reason}, %{name} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} !~ /starting|started/i and %{reason} !~ /service not activate/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} !~ /starting|started/i and %{reason} !~ /service not activate/i'). You can use the following variables: %{status}, %{reason}, %{name} =item B<--warning-*> B<--critical-*> diff --git a/src/network/cisco/firepower/fmc/restapi/mode/devices.pm b/src/network/cisco/firepower/fmc/restapi/mode/devices.pm index 68fb90e4a..00f2177ad 100644 --- a/src/network/cisco/firepower/fmc/restapi/mode/devices.pm +++ b/src/network/cisco/firepower/fmc/restapi/mode/devices.pm @@ -190,17 +190,17 @@ Filter devices by name (Can be a regexp). =item B<--unknown-device-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{status}, %{name} =item B<--warning-device-status> -Set warning threshold for status (Default: '%{status} =~ /yellow/i'). +Define the conditions to match for the status to be WARNING (Default: '%{status} =~ /yellow/i'). You can use the following variables: %{status}, %{name} =item B<--critical-device-status> -Set critical threshold for status (Default: '%{status} =~ /red|black/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} =~ /red|black/i'). You can use the following variables: %{status}, %{name} =item B<--warning-*> B<--critical-*> diff --git a/src/network/cisco/firepower/fxos/snmp/mode/faults.pm b/src/network/cisco/firepower/fxos/snmp/mode/faults.pm index ee924eec3..3b3cf6895 100644 --- a/src/network/cisco/firepower/fxos/snmp/mode/faults.pm +++ b/src/network/cisco/firepower/fxos/snmp/mode/faults.pm @@ -224,12 +224,12 @@ Check faults. =item B<--warning-status> -Set warning threshold for status (Default: '%{severity} =~ /minor|warning/). +Define the conditions to match for the status to be WARNING (Default: '%{severity} =~ /minor|warning/). You can use the following variables: %{description}, %{object}, %{severity}, %{type}, %{acknowledged}, %{since} =item B<--critical-status> -Set critical threshold for status (Default: '%{severity} =~ /major|critical/'). +Define the conditions to match for the status to be CRITICAL (Default: '%{severity} =~ /major|critical/'). You can use the following variables: %{description}, %{object}, %{severity}, %{type}, %{since} =item B<--timezone> diff --git a/src/network/cisco/meraki/cloudcontroller/restapi/mode/devices.pm b/src/network/cisco/meraki/cloudcontroller/restapi/mode/devices.pm index 95e81eda2..efa74b6e1 100644 --- a/src/network/cisco/meraki/cloudcontroller/restapi/mode/devices.pm +++ b/src/network/cisco/meraki/cloudcontroller/restapi/mode/devices.pm @@ -623,47 +623,47 @@ Skip port traffic counters if port status is disconnected. =item B<--unknown-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{status}, %{display} =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{status}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} =~ /alerting/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} =~ /alerting/i'). You can use the following variables: %{status}, %{display} =item B<--unknown-link-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{link_status}, %{display} =item B<--warning-link-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{link_status}, %{display} =item B<--critical-link-status> -Set critical threshold for status (Default: '%{link_status} =~ /failed/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{link_status} =~ /failed/i'). You can use the following variables: %{link_status}, %{display} =item B<--unknown-port-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{port_status}, %{port_enabled}, %{display} =item B<--warning-port-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{port_status}, %{port_enabled}, %{display} =item B<--critical-port-status> -Set critical threshold for status (Default: '%{port_enabled} == 1 and %{port_status} !~ /^connected/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{port_enabled} == 1 and %{port_status} !~ /^connected/i'). You can use the following variables: %{port_status}, %{port_enabled}, %{display} =item B<--warning-*> B<--critical-*> diff --git a/src/network/cisco/meraki/cloudcontroller/snmp/mode/deviceusage.pm b/src/network/cisco/meraki/cloudcontroller/snmp/mode/deviceusage.pm index 19cf1424b..a6b17793a 100644 --- a/src/network/cisco/meraki/cloudcontroller/snmp/mode/deviceusage.pm +++ b/src/network/cisco/meraki/cloudcontroller/snmp/mode/deviceusage.pm @@ -387,22 +387,22 @@ Units of thresholds for the traffic (Default: '%') ('%', 'b/s'). =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{status}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} =~ /offline/'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} =~ /offline/'). You can use the following variables: %{status}, %{display} =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'total-devices', 'clients', 'in', 'out'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'total-devices', 'clients', 'in', 'out'. =back diff --git a/src/network/cisco/prime/restapi/mode/apusage.pm b/src/network/cisco/prime/restapi/mode/apusage.pm index 9415da0a9..a8d2b3be8 100644 --- a/src/network/cisco/prime/restapi/mode/apusage.pm +++ b/src/network/cisco/prime/restapi/mode/apusage.pm @@ -223,24 +223,24 @@ Example: --filter-counters='^total-error$' =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'ap-clients', 'ap-uptime', 'ap-lwappuptime', 'ctrl-ap-count'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'ap-clients', 'ap-uptime', 'ap-lwappuptime', 'ctrl-ap-count'. =item B<--warning-ap-status> -Set warning threshold for status (Default: '%{admin_status} =~ /enable/i && %{status} =~ /minor|warning/i') +Define the conditions to match for the status to be WARNING (Default: '%{admin_status} =~ /enable/i && %{status} =~ /minor|warning/i') You can use the following variables: %{name}, %{status}, %{controller}, %{admin_status} =item B<--critical-ap-status> -Set critical threshold for status (Default: '%{admin_status} =~ /enable/i && %{status} =~ /major|critical/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{admin_status} =~ /enable/i && %{status} =~ /major|critical/i'). You can use the following variables: %{name}, %{status}, %{controller}, %{admin_status} =item B<--reload-cache-time> diff --git a/src/network/cisco/standard/ssh/mode/voicedialpeer.pm b/src/network/cisco/standard/ssh/mode/voicedialpeer.pm index 501d98a27..33ac34e6d 100644 --- a/src/network/cisco/standard/ssh/mode/voicedialpeer.pm +++ b/src/network/cisco/standard/ssh/mode/voicedialpeer.pm @@ -163,17 +163,17 @@ Filter name (can be a regexp). =item B<--unknown-status> -Set unknown threshold for status (Default: ''). +Define the conditions to match for the status to be UNKNOWN (Default: ''). You can use the following variables: %{admin}, %{oper}, %{keepalive}, %{display} =item B<--warning-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{admin}, %{oper}, %{keepalive}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: '%{admin} eq "up" and %{oper} eq "down"'). +Define the conditions to match for the status to be CRITICAL (Default: '%{admin} eq "up" and %{oper} eq "down"'). You can use the following variables: %{admin}, %{oper}, %{keepalive}, %{display} =item B<--warning-*> B<--critical-*> diff --git a/src/network/cisco/umbrella/snmp/mode/appliance.pm b/src/network/cisco/umbrella/snmp/mode/appliance.pm index 9dbd2ff68..05dac751e 100644 --- a/src/network/cisco/umbrella/snmp/mode/appliance.pm +++ b/src/network/cisco/umbrella/snmp/mode/appliance.pm @@ -94,12 +94,12 @@ Check VA health. =item B<--warning-status> -Set warning threshold for status. (Default: '%{status} =~ /yellow/') +Define the conditions to match for the status to be WARNING. (Default: '%{status} =~ /yellow/') You can use the following variables: %{status} =item B<--critical-status> -Set critical threshold for status. (Default: '%{status} =~ /red/'). +Define the conditions to match for the status to be CRITICAL. (Default: '%{status} =~ /red/'). You can use the following variables: %{status} =back diff --git a/src/network/cisco/umbrella/snmp/mode/connectivity.pm b/src/network/cisco/umbrella/snmp/mode/connectivity.pm index e13eaa7b0..92cb7fef3 100644 --- a/src/network/cisco/umbrella/snmp/mode/connectivity.pm +++ b/src/network/cisco/umbrella/snmp/mode/connectivity.pm @@ -108,14 +108,14 @@ Check connectivity between Umbrella server and DNS, local DNS, Umbrella dashboar =item B<--warning-*> -Set warning threshold for status. (Default: '%{status} =~ /yellow/'). +Define the conditions to match for the status to be WARNING. (Default: '%{status} =~ /yellow/'). Can be: 'dns-status', 'localdns-status', 'cloud-status', 'ad-status'. Can use special variables like: %{status}, %{display} =item B<--critical-*> -Set critical threshold for status. (Default: %{status} =~ /red/). +Define the conditions to match for the status to be CRITICAL. (Default: %{status} =~ /red/). Can be: 'dns-connectivity', 'localdns-connectivity', 'cloud-connectivity', 'ad-connectivity'. Can use special variables like: %{status}, %{display} diff --git a/src/network/cisco/umbrella/snmp/mode/cpudetailed.pm b/src/network/cisco/umbrella/snmp/mode/cpudetailed.pm index abb49e663..0665744a7 100644 --- a/src/network/cisco/umbrella/snmp/mode/cpudetailed.pm +++ b/src/network/cisco/umbrella/snmp/mode/cpudetailed.pm @@ -46,12 +46,12 @@ An average of all CPUs. =item B<--warning-*> -Threshold warning in percent. +Warning threshold in percent. Can be: 'user', 'nice', 'system', 'idle', 'wait', 'kernel', 'interrupt', 'softirq', 'steal', 'guest', 'guestnice'. =item B<--critical-*> -Threshold critical in percent. +Critical threshold in percent. Can be: 'user', 'nice', 'system', 'idle', 'wait', 'kernel', 'interrupt', 'softirq', 'steal', 'guest', 'guestnice'. =back diff --git a/src/network/cisco/umbrella/snmp/mode/load.pm b/src/network/cisco/umbrella/snmp/mode/load.pm index 58825e29c..0841a4a2f 100644 --- a/src/network/cisco/umbrella/snmp/mode/load.pm +++ b/src/network/cisco/umbrella/snmp/mode/load.pm @@ -45,11 +45,11 @@ Check system load-average. =item B<--warning> -Threshold warning (1min,5min,15min). +Warning threshold (1min,5min,15min). =item B<--critical> -Threshold critical (1min,5min,15min). +Critical threshold (1min,5min,15min). =item B<--average> diff --git a/src/network/cisco/vcs/restapi/mode/httpproxystats.pm b/src/network/cisco/vcs/restapi/mode/httpproxystats.pm index f99945cd2..82f7d9cb1 100644 --- a/src/network/cisco/vcs/restapi/mode/httpproxystats.pm +++ b/src/network/cisco/vcs/restapi/mode/httpproxystats.pm @@ -232,12 +232,12 @@ Can be: 'connections-client', 'connections-server', =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. Can use special variables like: %{status}. =item B<--critical-status> -Set critical threshold for status (Default: '%{status} ne "Active"'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} ne "Active"'). Can use special variables like: %{status}. =back diff --git a/src/network/cisco/vcs/restapi/mode/zones.pm b/src/network/cisco/vcs/restapi/mode/zones.pm index 79fb65905..575503b99 100644 --- a/src/network/cisco/vcs/restapi/mode/zones.pm +++ b/src/network/cisco/vcs/restapi/mode/zones.pm @@ -206,12 +206,12 @@ Can be: 'zones-count', 'zone-calls-current', 'searches-total', =item B<--warning-status> -Set warning threshold for status. (Default: ''). +Define the conditions to match for the status to be WARNING. (Default: ''). Can use special variables like: %{status}, %{type}, %{name}. =item B<--critical-status> -Set critical threshold for status. (Default: '%{status} ne "Active"'). +Define the conditions to match for the status to be CRITICAL. (Default: '%{status} ne "Active"'). Can use special variables like: %{status}, %{type}, %{name}. =back diff --git a/src/network/cisco/wap/snmp/mode/cpu.pm b/src/network/cisco/wap/snmp/mode/cpu.pm index bc84fe0b8..5b9091403 100644 --- a/src/network/cisco/wap/snmp/mode/cpu.pm +++ b/src/network/cisco/wap/snmp/mode/cpu.pm @@ -80,11 +80,11 @@ Check cpu usage. =item B<--warning-cpu-utilization> -Threshold warning in percent. +Warning threshold in percent. =item B<--critical-cpu-utilization> -Threshold critical in percent. +Critical threshold in percent. =back diff --git a/src/network/cisco/wap/snmp/mode/virtualaccesspoints.pm b/src/network/cisco/wap/snmp/mode/virtualaccesspoints.pm index c1a66961f..4d094e067 100644 --- a/src/network/cisco/wap/snmp/mode/virtualaccesspoints.pm +++ b/src/network/cisco/wap/snmp/mode/virtualaccesspoints.pm @@ -164,17 +164,17 @@ Filter virtual access points by description (can be a regexp). =item B<--unknown-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{description}, %{admin_status}, %{operational_status} =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{description}, %{admin_status}, %{operational_status} =item B<--critical-status> -Set critical threshold for status (Default: '%{admin_status} eq "up" and %{operational_status} eq "down"'). +Define the conditions to match for the status to be CRITICAL (Default: '%{admin_status} eq "up" and %{operational_status} eq "down"'). You can use the following variables: %{description}, %{admin_status}, %{operational_status} =item B<--warning-*> B<--critical-*> diff --git a/src/network/citrix/appacceleration/snmp/mode/cpu.pm b/src/network/citrix/appacceleration/snmp/mode/cpu.pm index 7ee0cee63..ba7beba26 100644 --- a/src/network/citrix/appacceleration/snmp/mode/cpu.pm +++ b/src/network/citrix/appacceleration/snmp/mode/cpu.pm @@ -94,12 +94,12 @@ Example: --filter-counters='cpu' =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'cpu', 'load'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'cpu', 'load'. =back diff --git a/src/network/citrix/appacceleration/snmp/mode/serviceclassusage.pm b/src/network/citrix/appacceleration/snmp/mode/serviceclassusage.pm index f9741d38c..396a1cd73 100644 --- a/src/network/citrix/appacceleration/snmp/mode/serviceclassusage.pm +++ b/src/network/citrix/appacceleration/snmp/mode/serviceclassusage.pm @@ -197,14 +197,14 @@ Check service class usage. =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'current-acc-con', 'total-acc-con', 'total-nonacc-con', 'traffic-in-compressed', 'traffic-out-compressed', 'traffic-in', 'traffic-out'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'current-acc-con', 'total-acc-con', 'total-nonacc-con', 'traffic-in-compressed', 'traffic-out-compressed', 'traffic-in', 'traffic-out'. diff --git a/src/network/citrix/netscaler/snmp/mode/certificatesexpire.pm b/src/network/citrix/netscaler/snmp/mode/certificatesexpire.pm index 154d48a94..ce7a97e3e 100644 --- a/src/network/citrix/netscaler/snmp/mode/certificatesexpire.pm +++ b/src/network/citrix/netscaler/snmp/mode/certificatesexpire.pm @@ -112,11 +112,11 @@ Filter by name (can be a regexp). =item B<--warning-days> -Threshold warning in days. +Warning threshold in days. =item B<--critical-days> -Threshold critical in days. +Critical threshold in days. =back diff --git a/src/network/citrix/netscaler/snmp/mode/connections.pm b/src/network/citrix/netscaler/snmp/mode/connections.pm index b40de8e14..2192da006 100644 --- a/src/network/citrix/netscaler/snmp/mode/connections.pm +++ b/src/network/citrix/netscaler/snmp/mode/connections.pm @@ -106,12 +106,12 @@ Check connections usage (Client, Server, ActiveServer) (NS-ROOT-MIBv2). =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'server', 'active', 'client', 'established'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'server', 'active', 'client', 'established'. =back diff --git a/src/network/citrix/netscaler/snmp/mode/cpu.pm b/src/network/citrix/netscaler/snmp/mode/cpu.pm index 021d34ae3..6d34e5bd8 100644 --- a/src/network/citrix/netscaler/snmp/mode/cpu.pm +++ b/src/network/citrix/netscaler/snmp/mode/cpu.pm @@ -93,11 +93,11 @@ Check cpu usage (NS-MIB-smiv2). =item B<--warning-usage> -Threshold warning in percent. +Warning threshold in percent. =item B<--critical-usage> -Threshold critical in percent. +Critical threshold in percent. =back diff --git a/src/network/citrix/netscaler/snmp/mode/hastate.pm b/src/network/citrix/netscaler/snmp/mode/hastate.pm index d00eeb75a..59c5e4854 100644 --- a/src/network/citrix/netscaler/snmp/mode/hastate.pm +++ b/src/network/citrix/netscaler/snmp/mode/hastate.pm @@ -139,32 +139,32 @@ Check high availability status. =item B<--unknown-ha-status> -Set unknown threshold for status. (Default: '%{ha_status} =~ /unknown/i'). +Define the conditions to match for the status to be UNKNOWN. (Default: '%{ha_status} =~ /unknown/i'). Can use special variables like: %{ha_status} =item B<--warning-ha-status> -Set warning threshold for status. (Default: ''). +Define the conditions to match for the status to be WARNING. (Default: ''). Can use special variables like: %{ha_status}, %{ha_mode} =item B<--critical-ha-status> -Set critical threshold for status. (Default: '%{ha_status} =~ /down|partialFail|monitorFail|completeFail|partialFailSsl|routemonitorFail/i'). +Define the conditions to match for the status to be CRITICAL. (Default: '%{ha_status} =~ /down|partialFail|monitorFail|completeFail|partialFailSsl|routemonitorFail/i'). Can use special variables like: %{ha_status}, %{ha_mode} =item B<--unknown-peer-status> -Set unknown threshold for status. (Default: '%{peer_status} =~ /unknown/i'). +Define the conditions to match for the status to be UNKNOWN. (Default: '%{peer_status} =~ /unknown/i'). Can use special variables like: %{peer_status}, %{ha_mode} =item B<--warning-peer-status> -Set warning threshold for status. (Default: ''). +Define the conditions to match for the status to be WARNING. (Default: ''). Can use special variables like: %{peer_status} =item B<--critical-peer-status> -Set critical threshold for status. (Default: ''). +Define the conditions to match for the status to be CRITICAL. (Default: ''). Can use special variables like: %{peer_status} =back diff --git a/src/network/citrix/netscaler/snmp/mode/memory.pm b/src/network/citrix/netscaler/snmp/mode/memory.pm index d93c82e5c..647fb3783 100644 --- a/src/network/citrix/netscaler/snmp/mode/memory.pm +++ b/src/network/citrix/netscaler/snmp/mode/memory.pm @@ -109,11 +109,11 @@ Check memory usage (NS-MIB-smiv2). =item B<--warning> -Threshold warning in percent. +Warning threshold in percent. =item B<--critical> -Threshold critical in percent. +Critical threshold in percent. =back diff --git a/src/network/citrix/netscaler/snmp/mode/storage.pm b/src/network/citrix/netscaler/snmp/mode/storage.pm index 5f5b2d724..b5d3c987e 100644 --- a/src/network/citrix/netscaler/snmp/mode/storage.pm +++ b/src/network/citrix/netscaler/snmp/mode/storage.pm @@ -188,11 +188,11 @@ Filter storage name (can be a regexp). =item B<--warning-usage> -Threshold warning. +Warning threshold. =item B<--critical-usage> -Threshold critical. +Critical threshold. =item B<--units> diff --git a/src/network/citrix/netscaler/snmp/mode/vserverstatus.pm b/src/network/citrix/netscaler/snmp/mode/vserverstatus.pm index e36d40074..78e908a13 100644 --- a/src/network/citrix/netscaler/snmp/mode/vserverstatus.pm +++ b/src/network/citrix/netscaler/snmp/mode/vserverstatus.pm @@ -299,13 +299,13 @@ Check vservers status and health. =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'in-traffic', 'out-traffic', 'health' (%), 'clients', 'servers'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'in-traffic', 'out-traffic', 'health' (%), 'clients', 'servers'. diff --git a/src/network/citrix/sdx/snmp/mode/diskusage.pm b/src/network/citrix/sdx/snmp/mode/diskusage.pm index ac9a5e593..6242e697d 100644 --- a/src/network/citrix/sdx/snmp/mode/diskusage.pm +++ b/src/network/citrix/sdx/snmp/mode/diskusage.pm @@ -217,12 +217,12 @@ Filter disk name (can be a regexp). =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'read-iops', 'write-iops', 'usage'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'read-iops', 'write-iops', 'usage'. =item B<--units> diff --git a/src/network/citrix/sdx/snmp/mode/srusage.pm b/src/network/citrix/sdx/snmp/mode/srusage.pm index bd9bad445..ab85707d2 100644 --- a/src/network/citrix/sdx/snmp/mode/srusage.pm +++ b/src/network/citrix/sdx/snmp/mode/srusage.pm @@ -227,22 +227,22 @@ Filter storage repository name (can be a regexp). =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{status}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} !~ /good/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} !~ /good/i'). You can use the following variables: %{status}, %{display} =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'usage'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'usage'. =item B<--units> diff --git a/src/network/citrix/sdx/snmp/mode/xenusage.pm b/src/network/citrix/sdx/snmp/mode/xenusage.pm index 2ba7ac80e..067403f16 100644 --- a/src/network/citrix/sdx/snmp/mode/xenusage.pm +++ b/src/network/citrix/sdx/snmp/mode/xenusage.pm @@ -202,12 +202,12 @@ Filter xen name (can be a regexp). =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'cpu-usage', 'memory-usage'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'cpu-usage', 'memory-usage'. =item B<--units> diff --git a/src/network/colubris/snmp/mode/apusage.pm b/src/network/colubris/snmp/mode/apusage.pm index 31af1a52c..cca17de0f 100644 --- a/src/network/colubris/snmp/mode/apusage.pm +++ b/src/network/colubris/snmp/mode/apusage.pm @@ -220,22 +220,22 @@ Check device even if it doesn't belongs to an controller team. =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'total-ap', 'total-users', 'ap-users'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'total-ap', 'total-users', 'ap-users'. =item B<--warning-ap-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{state}, %{display} =item B<--critical-ap-status> -Set critical threshold for status (Default: '%{state} eq "disconnected"'). +Define the conditions to match for the status to be CRITICAL (Default: '%{state} eq "disconnected"'). You can use the following variables: %{state}, %{display} =back diff --git a/src/network/colubris/snmp/mode/cpu.pm b/src/network/colubris/snmp/mode/cpu.pm index 636efcbfb..2362f0fe6 100644 --- a/src/network/colubris/snmp/mode/cpu.pm +++ b/src/network/colubris/snmp/mode/cpu.pm @@ -129,12 +129,12 @@ Example: --filter-counters='20s' =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'current', '5s', '10s', '20s'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'current', '5s', '10s', '20s'. =back diff --git a/src/network/colubris/snmp/mode/load.pm b/src/network/colubris/snmp/mode/load.pm index d655c2bc8..c1f4551d0 100644 --- a/src/network/colubris/snmp/mode/load.pm +++ b/src/network/colubris/snmp/mode/load.pm @@ -115,12 +115,12 @@ Example: --filter-counters='15min' =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: '1min', '5min', '15min'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: '1min', '5min', '15min'. =back diff --git a/src/network/colubris/snmp/mode/memory.pm b/src/network/colubris/snmp/mode/memory.pm index 500d165ea..a88d87da1 100644 --- a/src/network/colubris/snmp/mode/memory.pm +++ b/src/network/colubris/snmp/mode/memory.pm @@ -129,11 +129,11 @@ Check memory usage. =item B<--warning> -Threshold warning in percent. +Warning threshold in percent. =item B<--critical> -Threshold critical in percent. +Critical threshold in percent. =back diff --git a/src/network/colubris/snmp/mode/storage.pm b/src/network/colubris/snmp/mode/storage.pm index 5b100f07b..a8f6bf28a 100644 --- a/src/network/colubris/snmp/mode/storage.pm +++ b/src/network/colubris/snmp/mode/storage.pm @@ -95,12 +95,12 @@ Check storage usage. =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'permanent-usage' (%), 'temporary-usage' (%). =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'permanent-usage' (%), 'temporary-usage' (%). diff --git a/src/network/cyberoam/snmp/mode/cpu.pm b/src/network/cyberoam/snmp/mode/cpu.pm index 2508bbd3a..09a6d66bc 100644 --- a/src/network/cyberoam/snmp/mode/cpu.pm +++ b/src/network/cyberoam/snmp/mode/cpu.pm @@ -87,11 +87,11 @@ Check current processor usage. =item B<--warning> -Threshold warning. +Warning threshold. =item B<--critical> -Threshold critical. +Critical threshold. =back diff --git a/src/network/cyberoam/snmp/mode/storage.pm b/src/network/cyberoam/snmp/mode/storage.pm index bd64346cd..a66e6d29f 100644 --- a/src/network/cyberoam/snmp/mode/storage.pm +++ b/src/network/cyberoam/snmp/mode/storage.pm @@ -141,11 +141,11 @@ Check storage usage. =item B<--warning-usage> -Threshold warning (in percent). +Warning threshold (in percent). =item B<--critical-usage> -Threshold critical (in percent). +Critical threshold (in percent). =back diff --git a/src/network/dell/nseries/snmp/mode/interfaces.pm b/src/network/dell/nseries/snmp/mode/interfaces.pm index 50643b836..67bf8c4af 100644 --- a/src/network/dell/nseries/snmp/mode/interfaces.pm +++ b/src/network/dell/nseries/snmp/mode/interfaces.pm @@ -81,12 +81,12 @@ If the expression is true, metrics are checked (Default: '%{opstatus} eq "up"'). =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{admstatus}, %{opstatus}, %{duplexstatus}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: '%{admstatus} eq "up" and %{opstatus} ne "up"'). +Define the conditions to match for the status to be CRITICAL (Default: '%{admstatus} eq "up" and %{opstatus} ne "up"'). You can use the following variables: %{admstatus}, %{opstatus}, %{duplexstatus}, %{display} =item B<--warning-*> B<--critical-*> @@ -115,7 +115,7 @@ Display traffic perfdata to be compatible with nagvis widget. =item B<--interface> -Set the interface (number expected) ex: 1,2,... (empty means 'check all interface'). +Set the interface (number expected) ex: 1,2,... (empty means 'check all interfaces'). =item B<--name> @@ -155,11 +155,11 @@ Time in minutes before reloading cache file (default: 180). =item B<--oid-filter> -Choose OID used to filter interface (default: ifName) (values: ifDesc, ifAlias, ifName, IpAddr). +Define the OID to be used to filter interfaces (default: ifName) (values: ifDesc, ifAlias, ifName, IpAddr). =item B<--oid-display> -Choose OID used to display interface (default: ifName) (values: ifDesc, ifAlias, ifName, IpAddr). +Define the OID that will be used to name the interfaces (default: ifName) (values: ifDesc, ifAlias, ifName, IpAddr). =item B<--oid-extra-display> diff --git a/src/network/dell/nseries/snmp/mode/uptime.pm b/src/network/dell/nseries/snmp/mode/uptime.pm index fd1e680fb..6e4f2c0ed 100644 --- a/src/network/dell/nseries/snmp/mode/uptime.pm +++ b/src/network/dell/nseries/snmp/mode/uptime.pm @@ -45,11 +45,11 @@ Check system uptime. =item B<--warning-uptime> -Threshold warning. +Warning threshold. =item B<--critical-uptime> -Threshold critical. +Critical threshold. =item B<--add-sysdesc> diff --git a/src/network/denyall/snmp/mode/reverseproxy.pm b/src/network/denyall/snmp/mode/reverseproxy.pm index a16849735..9116fa930 100644 --- a/src/network/denyall/snmp/mode/reverseproxy.pm +++ b/src/network/denyall/snmp/mode/reverseproxy.pm @@ -196,17 +196,17 @@ Filter reverse proxy by UID (can be a regexp). =item B<--unknown-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{status}, %{uid} =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{status}, %{uid} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} =~ /down/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} =~ /down/i'). You can use the following variables: %{status}, %{uid} =item B<--warning-*> B<--critical-*> diff --git a/src/network/digi/anywhereusb/snmp/mode/cpu.pm b/src/network/digi/anywhereusb/snmp/mode/cpu.pm index 4eb99eb51..db3b08e69 100644 --- a/src/network/digi/anywhereusb/snmp/mode/cpu.pm +++ b/src/network/digi/anywhereusb/snmp/mode/cpu.pm @@ -86,11 +86,11 @@ Check current processor usage. =item B<--warning> -Threshold warning. +Warning threshold. =item B<--critical> -Threshold critical. +Critical threshold. =back diff --git a/src/network/digi/anywhereusb/snmp/mode/memory.pm b/src/network/digi/anywhereusb/snmp/mode/memory.pm index 7f6978832..29420ef94 100644 --- a/src/network/digi/anywhereusb/snmp/mode/memory.pm +++ b/src/network/digi/anywhereusb/snmp/mode/memory.pm @@ -120,11 +120,11 @@ Check memory usage. =item B<--warning-usage> -Threshold warning (in percent). +Warning threshold (in percent). =item B<--critical-usage> -Threshold critical (in percent). +Critical threshold (in percent). =back diff --git a/src/network/digi/portserverts/snmp/mode/cpu.pm b/src/network/digi/portserverts/snmp/mode/cpu.pm index 22ecd3070..cda5c17d5 100644 --- a/src/network/digi/portserverts/snmp/mode/cpu.pm +++ b/src/network/digi/portserverts/snmp/mode/cpu.pm @@ -87,11 +87,11 @@ Check current processor usage. =item B<--warning> -Threshold warning. +Warning threshold. =item B<--critical> -Threshold critical. +Critical threshold. =back diff --git a/src/network/digi/portserverts/snmp/mode/memory.pm b/src/network/digi/portserverts/snmp/mode/memory.pm index 8d2ae6bb5..baaa03b49 100644 --- a/src/network/digi/portserverts/snmp/mode/memory.pm +++ b/src/network/digi/portserverts/snmp/mode/memory.pm @@ -120,11 +120,11 @@ Check memory usage. =item B<--warning-usage> -Threshold warning (in percent). +Warning threshold (in percent). =item B<--critical-usage> -Threshold critical (in percent). +Critical threshold (in percent). =back diff --git a/src/network/digi/sarian/snmp/mode/cpu.pm b/src/network/digi/sarian/snmp/mode/cpu.pm index 44a1a4d71..f68209c1b 100644 --- a/src/network/digi/sarian/snmp/mode/cpu.pm +++ b/src/network/digi/sarian/snmp/mode/cpu.pm @@ -90,11 +90,11 @@ Check cpu usage (sarian-monitor.mib). =item B<--warning> -Threshold warning in percent. +Warning threshold in percent. =item B<--critical> -Threshold critical in percent. +Critical threshold in percent. =back diff --git a/src/network/digi/sarian/snmp/mode/gprs.pm b/src/network/digi/sarian/snmp/mode/gprs.pm index 681f3ed27..f628ec974 100644 --- a/src/network/digi/sarian/snmp/mode/gprs.pm +++ b/src/network/digi/sarian/snmp/mode/gprs.pm @@ -180,12 +180,12 @@ Example: --filter-counters='signal|technology' =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{registered}, %{attachement} =item B<--critical-status> -Set critical threshold for status (Default: '%{attachement} eq "attached" and %{registered} !~ /registeredHostNetwork|registeredRoaming/' +Define the conditions to match for the status to be CRITICAL (Default: '%{attachement} eq "attached" and %{registered} !~ /registeredHostNetwork|registeredRoaming/' You can use the following variables: %{registered}, %{attachement} =item B<--warning-technology> @@ -200,11 +200,11 @@ Use special variables %{technology}. =item B<--warning-signal> -Threshold warning for signal strength. +Warning threshold for signal strength. =item B<--critical-signal> -Threshold critical for signal strength. +Critical threshold for signal strength. =back diff --git a/src/network/digi/sarian/snmp/mode/memory.pm b/src/network/digi/sarian/snmp/mode/memory.pm index 50b9085f6..33ada02a6 100644 --- a/src/network/digi/sarian/snmp/mode/memory.pm +++ b/src/network/digi/sarian/snmp/mode/memory.pm @@ -98,11 +98,11 @@ Check memory usage (sarian-monitor.mib). =item B<--warning> -Threshold warning in percent. +Warning threshold in percent. =item B<--critical> -Threshold critical in percent. +Critical threshold in percent. =back diff --git a/src/network/digi/sarian/snmp/mode/temperature.pm b/src/network/digi/sarian/snmp/mode/temperature.pm index a72228e78..0391dd6ed 100644 --- a/src/network/digi/sarian/snmp/mode/temperature.pm +++ b/src/network/digi/sarian/snmp/mode/temperature.pm @@ -110,12 +110,12 @@ Example: --filter-counters='processor|modem' =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'device', 'modem', 'processor' (C). =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'device', 'modem', 'processor' (C). =back diff --git a/src/network/dlink/dgs3100/snmp/mode/cpu.pm b/src/network/dlink/dgs3100/snmp/mode/cpu.pm index 3b4998322..496979eff 100644 --- a/src/network/dlink/dgs3100/snmp/mode/cpu.pm +++ b/src/network/dlink/dgs3100/snmp/mode/cpu.pm @@ -137,11 +137,11 @@ Check cpu usage (env_mib.mib). =item B<--warning> -Threshold warning in percent (1s,1min,5min). +Warning threshold in percent (1s,1min,5min). =item B<--critical> -Threshold critical in percent (1s,1min,5min). +Critical threshold in percent (1s,1min,5min). =back diff --git a/src/network/dlink/standard/snmp/mode/interfaces.pm b/src/network/dlink/standard/snmp/mode/interfaces.pm index 39ca66496..944bf73a1 100644 --- a/src/network/dlink/standard/snmp/mode/interfaces.pm +++ b/src/network/dlink/standard/snmp/mode/interfaces.pm @@ -168,12 +168,12 @@ If the expression is true, metrics are checked (Default: '%{opstatus} eq "up"'). =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{admstatus}, %{opstatus}, %{duplexstatus}, %{errdisable}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: '%{admstatus} eq "up" and %{opstatus} ne "up"'). +Define the conditions to match for the status to be CRITICAL (Default: '%{admstatus} eq "up" and %{opstatus} ne "up"'). You can use the following variables: %{admstatus}, %{opstatus}, %{duplexstatus}, %{errdisable}, %{display} =item B<--warning-*> B<--critical-*> @@ -202,7 +202,7 @@ Display traffic perfdata to be compatible with nagvis widget. =item B<--interface> -Set the interface (number expected) ex: 1,2,... (empty means 'check all interface'). +Set the interface (number expected) ex: 1,2,... (empty means 'check all interfaces'). =item B<--name> @@ -230,11 +230,11 @@ Time in minutes before reloading cache file (default: 180). =item B<--oid-filter> -Choose OID used to filter interface (default: ifName) (values: ifDesc, ifAlias, ifName, IpAddr). +Define the OID to be used to filter interfaces (default: ifName) (values: ifDesc, ifAlias, ifName, IpAddr). =item B<--oid-display> -Choose OID used to display interface (default: ifName) (values: ifDesc, ifAlias, ifName, IpAddr). +Define the OID that will be used to name the interfaces (default: ifName) (values: ifDesc, ifAlias, ifName, IpAddr). =item B<--oid-extra-display> diff --git a/src/network/dlink/standard/snmp/mode/stack.pm b/src/network/dlink/standard/snmp/mode/stack.pm index b9dcd9a5c..188c34191 100644 --- a/src/network/dlink/standard/snmp/mode/stack.pm +++ b/src/network/dlink/standard/snmp/mode/stack.pm @@ -244,32 +244,32 @@ Check stack. =item B<--unknown-member-status> -Set unknown threshold for status (Default: '%{status} =~ /unknown/i'). +Define the conditions to match for the status to be UNKNOWN (Default: '%{status} =~ /unknown/i'). You can use the following variables: %{role}, %{roleLast}, %{status}, %{display} =item B<--warning-member-status> -Set warning threshold for status (Default: '%{status} =~ /codeUpdate/i'). +Define the conditions to match for the status to be WARNING (Default: '%{status} =~ /codeUpdate/i'). You can use the following variables: %{role}, %{roleLast}, %{status}, %{display} =item B<--critical-member-status> -Set critical threshold for status (Default: '%{role} ne %{roleLast} || %{status} =~ /unsupported|codeMismatch/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{role} ne %{roleLast} || %{status} =~ /unsupported|codeMismatch/i'). You can use the following variables: %{role}, %{roleLast}, %{status}, %{display} =item B<--unknown-link-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{status}, %{display} =item B<--warning-link-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{status}, %{display} =item B<--critical-link-status> -Set critical threshold for status (Default: '%{status} eq "down"'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} eq "down"'). You can use the following variables: %{status}, %{display} =item B<--warning-*> B<--critical-*> diff --git a/src/network/efficientip/snmp/mode/dhcpusage.pm b/src/network/efficientip/snmp/mode/dhcpusage.pm index 5d297c878..051ca6fff 100644 --- a/src/network/efficientip/snmp/mode/dhcpusage.pm +++ b/src/network/efficientip/snmp/mode/dhcpusage.pm @@ -154,13 +154,13 @@ Example: --filter-counters='^request$' =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'ack', 'nack', 'offer', 'inform', 'decline', 'release', 'request', 'discover'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'ack', 'nack', 'offer', 'inform', 'decline', 'release', 'request', 'discover'. diff --git a/src/network/efficientip/snmp/mode/dnsusage.pm b/src/network/efficientip/snmp/mode/dnsusage.pm index a585738d9..7e8e709c4 100644 --- a/src/network/efficientip/snmp/mode/dnsusage.pm +++ b/src/network/efficientip/snmp/mode/dnsusage.pm @@ -113,11 +113,11 @@ Example: --filter-counters='^requestv4$' =item B<--warning-*> -Threshold warning. +Warning threshold. =item B<--critical-*> -Threshold critical. +Critical threshold. General name server statistics: 'udp', 'tcp', 'requestv4', 'requestv6', 'recursion', 'response', 'recurserej', 'duplicate', 'dropped', 'res-queryv4', 'res-queryv6', 'res-retry', diff --git a/src/network/efficientip/snmp/mode/status.pm b/src/network/efficientip/snmp/mode/status.pm index 0188768ed..f7dcfdbe3 100644 --- a/src/network/efficientip/snmp/mode/status.pm +++ b/src/network/efficientip/snmp/mode/status.pm @@ -113,12 +113,12 @@ Check Efficient IP SOLIDserver role and status. =item B<--warning-status> -Set warning threshold for status. (Default: '%{status} =~ /upgrading|split-brain/') +Define the conditions to match for the status to be WARNING. (Default: '%{status} =~ /upgrading|split-brain/') Can be used with special variables like: %{status}, %{role} =item B<--critical-status> -Set critical threshold for status. (Default: '%{status} =~ /invalid credentials|replication stopped|timeout/') +Define the conditions to match for the status to be CRITICAL. (Default: '%{status} =~ /invalid credentials|replication stopped|timeout/') Can be used with special variables like: %{status}, %{role} =back diff --git a/src/network/enterasys/snmp/mode/interfaces.pm b/src/network/enterasys/snmp/mode/interfaces.pm index 92a2e3d96..6c03fc16f 100644 --- a/src/network/enterasys/snmp/mode/interfaces.pm +++ b/src/network/enterasys/snmp/mode/interfaces.pm @@ -81,12 +81,12 @@ If the expression is true, metrics are checked (Default: '%{opstatus} eq "up"'). =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{admstatus}, %{opstatus}, %{duplexstatus}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: '%{admstatus} eq "up" and %{opstatus} ne "up"'). +Define the conditions to match for the status to be CRITICAL (Default: '%{admstatus} eq "up" and %{opstatus} ne "up"'). You can use the following variables: %{admstatus}, %{opstatus}, %{duplexstatus}, %{display} =item B<--warning-*> B<--critical-*> @@ -115,7 +115,7 @@ Display traffic perfdata to be compatible with nagvis widget. =item B<--interface> -Set the interface (number expected) ex: 1,2,... (empty means 'check all interface'). +Set the interface (number expected) ex: 1,2,... (empty means 'check all interfaces'). =item B<--name> @@ -155,11 +155,11 @@ Time in minutes before reloading cache file (default: 180). =item B<--oid-filter> -Choose OID used to filter interface (default: ifName) (values: ifDesc, ifAlias, ifName, IpAddr). +Define the OID to be used to filter interfaces (default: ifName) (values: ifDesc, ifAlias, ifName, IpAddr). =item B<--oid-display> -Choose OID used to display interface (default: ifName) (values: ifDesc, ifAlias, ifName, IpAddr). +Define the OID that will be used to name the interfaces (default: ifName) (values: ifDesc, ifAlias, ifName, IpAddr). =item B<--oid-extra-display> diff --git a/src/network/enterasys/snmp/mode/uptime.pm b/src/network/enterasys/snmp/mode/uptime.pm index 7537032e4..ff708005e 100644 --- a/src/network/enterasys/snmp/mode/uptime.pm +++ b/src/network/enterasys/snmp/mode/uptime.pm @@ -45,11 +45,11 @@ Check system uptime. =item B<--warning-uptime> -Threshold warning. +Warning threshold. =item B<--critical-uptime> -Threshold critical. +Critical threshold. =item B<--add-sysdesc> diff --git a/src/network/extreme/snmp/mode/cpu.pm b/src/network/extreme/snmp/mode/cpu.pm index 54b880afa..7f940f57f 100644 --- a/src/network/extreme/snmp/mode/cpu.pm +++ b/src/network/extreme/snmp/mode/cpu.pm @@ -169,12 +169,12 @@ Example: --filter-counters='^(1min|5min)$' =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'total', '5secs', '10secs', '30secs', '1min', '5min'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'total', '5secs', '10secs', '30secs', '1min', '5min'. =back diff --git a/src/network/extreme/snmp/mode/interfaces.pm b/src/network/extreme/snmp/mode/interfaces.pm index 9dbfbbda0..9e4b11525 100644 --- a/src/network/extreme/snmp/mode/interfaces.pm +++ b/src/network/extreme/snmp/mode/interfaces.pm @@ -121,12 +121,12 @@ If the expression is true, metrics are checked (Default: '%{opstatus} eq "up"'). =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{admstatus}, %{opstatus}, %{duplexstatus}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: '%{admstatus} eq "up" and %{opstatus} ne "up"'). +Define the conditions to match for the status to be CRITICAL (Default: '%{admstatus} eq "up" and %{opstatus} ne "up"'). You can use the following variables: %{admstatus}, %{opstatus}, %{duplexstatus}, %{display} =item B<--warning-*> B<--critical-*> @@ -155,7 +155,7 @@ Display traffic perfdata to be compatible with nagvis widget. =item B<--interface> -Set the interface (number expected) ex: 1,2,... (empty means 'check all interface'). +Set the interface (number expected) ex: 1,2,... (empty means 'check all interfaces'). =item B<--name> @@ -183,11 +183,11 @@ Time in minutes before reloading cache file (default: 180). =item B<--oid-filter> -Choose OID used to filter interface (default: ifName) (values: ifDesc, ifAlias, ifName, IpAddr). +Define the OID to be used to filter interfaces (default: ifName) (values: ifDesc, ifAlias, ifName, IpAddr). =item B<--oid-display> -Choose OID used to display interface (default: ifName) (values: ifDesc, ifAlias, ifName, IpAddr). +Define the OID that will be used to name the interfaces (default: ifName) (values: ifDesc, ifAlias, ifName, IpAddr). =item B<--oid-extra-display> diff --git a/src/network/extreme/snmp/mode/memory.pm b/src/network/extreme/snmp/mode/memory.pm index 60c01c127..0b393ed7d 100644 --- a/src/network/extreme/snmp/mode/memory.pm +++ b/src/network/extreme/snmp/mode/memory.pm @@ -146,11 +146,11 @@ Check memory usages. =item B<--warning-usage> -Threshold warning (in percent). +Warning threshold (in percent). =item B<--critical-usage> -Threshold critical (in percent). +Critical threshold (in percent). =back diff --git a/src/network/extreme/snmp/mode/stack.pm b/src/network/extreme/snmp/mode/stack.pm index 16a4432a3..c6ba17d89 100644 --- a/src/network/extreme/snmp/mode/stack.pm +++ b/src/network/extreme/snmp/mode/stack.pm @@ -243,32 +243,32 @@ Check stack status. =item B<--unknown-member-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{role}, %{roleLast} =item B<--warning-member-status> -Set warning threshold for status (Default: '%{status} eq "mismatch"'). +Define the conditions to match for the status to be WARNING (Default: '%{status} eq "mismatch"'). You can use the following variables: %{role}, %{roleLast} =item B<--critical-member-status> -Set critical threshold for status (Default: '%{role} ne %{roleLast} || %{status} eq "down"'). +Define the conditions to match for the status to be CRITICAL (Default: '%{role} ne %{roleLast} || %{status} eq "down"'). You can use the following variables: %{role}, %{roleLast} =item B<--unknown-port-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{link_status}, %{display} =item B<--warning-port-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{link_status}, %{display} =item B<--critical-port-status> -Set critical threshold for status (Default: '%{link_status} ne "up"'). +Define the conditions to match for the status to be CRITICAL (Default: '%{link_status} ne "up"'). You can use the following variables: %{link_status}, %{display} =back diff --git a/src/network/f5/bigip/snmp/mode/connections.pm b/src/network/f5/bigip/snmp/mode/connections.pm index ce1b1a918..21bba1bf7 100644 --- a/src/network/f5/bigip/snmp/mode/connections.pm +++ b/src/network/f5/bigip/snmp/mode/connections.pm @@ -152,12 +152,12 @@ Example to check SSL connections only : --filter-counters='^client-ssl|server-ss =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'client', 'server', 'client-ssl', 'server-ssl', 'client-ssl-tps'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'client', 'server', 'client-ssl', 'server-ssl', 'client-ssl-tps'. =back diff --git a/src/network/f5/bigip/snmp/mode/nodestatus.pm b/src/network/f5/bigip/snmp/mode/nodestatus.pm index 9c962ed56..4c946ea2c 100644 --- a/src/network/f5/bigip/snmp/mode/nodestatus.pm +++ b/src/network/f5/bigip/snmp/mode/nodestatus.pm @@ -194,17 +194,17 @@ Filter by name (regexp can be used). =item B<--unknown-status> -Set unknown threshold for status (Default: ''). +Define the conditions to match for the status to be UNKNOWN (Default: ''). You can use the following variables: %{state}, %{status}, %{display} =item B<--warning-status> -Set warning threshold for status (Default: '%{state} eq "enabled" and %{status} eq "yellow"'). +Define the conditions to match for the status to be WARNING (Default: '%{state} eq "enabled" and %{status} eq "yellow"'). You can use the following variables: %{state}, %{status}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: '%{state} eq "enabled" and %{status} eq "red"'). +Define the conditions to match for the status to be CRITICAL (Default: '%{state} eq "enabled" and %{status} eq "red"'). You can use the following variables: %{state}, %{status}, %{display} =item B<--warning-*> B<--critical-*> diff --git a/src/network/f5/bigip/snmp/mode/poolstatus.pm b/src/network/f5/bigip/snmp/mode/poolstatus.pm index dfd93fa39..831ab27d8 100644 --- a/src/network/f5/bigip/snmp/mode/poolstatus.pm +++ b/src/network/f5/bigip/snmp/mode/poolstatus.pm @@ -328,32 +328,32 @@ Filter by name (regexp can be used). =item B<--unknown-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{state}, %{status}, %{membersAllDisabled}, %{display} =item B<--warning-status> -Set warning threshold for status (Default: '%{membersAllDisabled} eq "no" and %{state} eq "enabled" and %{status} eq "yellow"'). +Define the conditions to match for the status to be WARNING (Default: '%{membersAllDisabled} eq "no" and %{state} eq "enabled" and %{status} eq "yellow"'). You can use the following variables: %{state}, %{status}, %{membersAllDisabled}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: '%{membersAllDisabled} eq "no" and %{state} eq "enabled" and %{status} eq "red"'). +Define the conditions to match for the status to be CRITICAL (Default: '%{membersAllDisabled} eq "no" and %{state} eq "enabled" and %{status} eq "red"'). You can use the following variables: %{state}, %{status}, %{membersAllDisabled}, %{display} =item B<--unknown-member-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{state}, %{status}, %{poolName}, %{nodeName} =item B<--warning-member-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{state}, %{status}, %{poolName}, %{nodeName} =item B<--critical-member-status> -Set critical threshold for status. +Define the conditions to match for the status to be CRITICAL. You can use the following variables: %{state}, %{status}, %{poolName}, %{nodeName} =item B<--warning-*> B<--critical-*> diff --git a/src/network/f5/bigip/snmp/mode/tmmusage.pm b/src/network/f5/bigip/snmp/mode/tmmusage.pm index fbab0f980..01de81084 100644 --- a/src/network/f5/bigip/snmp/mode/tmmusage.pm +++ b/src/network/f5/bigip/snmp/mode/tmmusage.pm @@ -239,13 +239,13 @@ Filter by TMM name (regexp can be used). =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'cpu-1m', 'cpu-5m', 'memory-usage' (%), 'total-client-connections', 'current-client-connections', 'total-server-connections', 'current-server-connections'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'cpu-1m', 'cpu-5m', 'memory-usage' (%), 'total-client-connections', 'current-client-connections', 'total-server-connections', 'current-server-connections'. diff --git a/src/network/f5/bigip/snmp/mode/trunks.pm b/src/network/f5/bigip/snmp/mode/trunks.pm index a6eee131e..d257b2251 100644 --- a/src/network/f5/bigip/snmp/mode/trunks.pm +++ b/src/network/f5/bigip/snmp/mode/trunks.pm @@ -475,32 +475,32 @@ Monitor trunk interfaces. =item B<--unknown-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{status}, %{display} =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{status}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} =~ /uninitialized|down/'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} =~ /uninitialized|down/'). You can use the following variables: %{status}, %{display} =item B<--unknown-interface-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{status}, %{display} =item B<--warning-interface-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{status}, %{display} =item B<--critical-interface-status> -Set critical threshold for status. +Define the conditions to match for the status to be CRITICAL. You can use the following variables: %{status}, %{display} =item B<--warning-*> B<--critical-*> diff --git a/src/network/f5/bigip/snmp/mode/virtualserverstatus.pm b/src/network/f5/bigip/snmp/mode/virtualserverstatus.pm index c134ce176..96c73e90b 100644 --- a/src/network/f5/bigip/snmp/mode/virtualserverstatus.pm +++ b/src/network/f5/bigip/snmp/mode/virtualserverstatus.pm @@ -184,17 +184,17 @@ Filter by name (regexp can be used). =item B<--unknown-status> -Set unknown threshold for status (Default: ''). +Define the conditions to match for the status to be UNKNOWN (Default: ''). You can use the following variables: %{state}, %{status}, %{display} =item B<--warning-status> -Set warning threshold for status (Default: '%{state} eq "enabled" and %{status} eq "yellow"'). +Define the conditions to match for the status to be WARNING (Default: '%{state} eq "enabled" and %{status} eq "yellow"'). You can use the following variables: %{state}, %{status}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: '%{state} eq "enabled" and %{status} eq "red"'). +Define the conditions to match for the status to be CRITICAL (Default: '%{state} eq "enabled" and %{status} eq "red"'). You can use the following variables: %{state}, %{status}, %{display} =item B<--warning-*> B<--critical-*> diff --git a/src/network/fortinet/fortiadc/snmp/mode/interfaces.pm b/src/network/fortinet/fortiadc/snmp/mode/interfaces.pm index 8016cc340..164442e26 100644 --- a/src/network/fortinet/fortiadc/snmp/mode/interfaces.pm +++ b/src/network/fortinet/fortiadc/snmp/mode/interfaces.pm @@ -81,12 +81,12 @@ If the expression is true, metrics are checked (Default: '%{opstatus} eq "up"'). =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{admstatus}, %{opstatus}, %{duplexstatus}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: '%{admstatus} eq "up" and %{opstatus} ne "up"'). +Define the conditions to match for the status to be CRITICAL (Default: '%{admstatus} eq "up" and %{opstatus} ne "up"'). You can use the following variables: %{admstatus}, %{opstatus}, %{duplexstatus}, %{display} =item B<--warning-*> B<--critical-*> @@ -115,7 +115,7 @@ Display traffic perfdata to be compatible with nagvis widget. =item B<--interface> -Set the interface (number expected) ex: 1,2,... (empty means 'check all interface'). +Set the interface (number expected) ex: 1,2,... (empty means 'check all interfaces'). =item B<--name> @@ -155,11 +155,11 @@ Time in minutes before reloading cache file (default: 180). =item B<--oid-filter> -Choose OID used to filter interface (default: ifName) (values: ifDesc, ifAlias, ifName, IpAddr). +Define the OID to be used to filter interfaces (default: ifName) (values: ifDesc, ifAlias, ifName, IpAddr). =item B<--oid-display> -Choose OID used to display interface (default: ifName) (values: ifDesc, ifAlias, ifName, IpAddr). +Define the OID that will be used to name the interfaces (default: ifName) (values: ifDesc, ifAlias, ifName, IpAddr). =item B<--oid-extra-display> diff --git a/src/network/fortinet/fortiadc/snmp/mode/security.pm b/src/network/fortinet/fortiadc/snmp/mode/security.pm index 2a9633fe9..faea1cc46 100644 --- a/src/network/fortinet/fortiadc/snmp/mode/security.pm +++ b/src/network/fortinet/fortiadc/snmp/mode/security.pm @@ -84,12 +84,12 @@ Check security. =item B<--warning-ddos-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{status} =item B<--critical-ddos-status> -Set critical threshold for status (Default: '%{status} eq "attacking"'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} eq "attacking"'). You can use the following variables: %{status} =back diff --git a/src/network/fortinet/fortiadc/snmp/mode/uptime.pm b/src/network/fortinet/fortiadc/snmp/mode/uptime.pm index 66004108d..388db4db3 100644 --- a/src/network/fortinet/fortiadc/snmp/mode/uptime.pm +++ b/src/network/fortinet/fortiadc/snmp/mode/uptime.pm @@ -45,11 +45,11 @@ Check system uptime. =item B<--warning-uptime> -Threshold warning. +Warning threshold. =item B<--critical-uptime> -Threshold critical. +Critical threshold. =item B<--add-sysdesc> diff --git a/src/network/fortinet/fortiadc/snmp/mode/virtualservers.pm b/src/network/fortinet/fortiadc/snmp/mode/virtualservers.pm index b4704a425..9ca66b178 100644 --- a/src/network/fortinet/fortiadc/snmp/mode/virtualservers.pm +++ b/src/network/fortinet/fortiadc/snmp/mode/virtualservers.pm @@ -261,17 +261,17 @@ Filter virtual servers by vdom name. =item B<--unknown-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{status}, %{state}, %{name}, %{vdom} =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{status}, %{state}, %{name}, %{vdom} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} eq "unhealthy"'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} eq "unhealthy"'). You can use the following variables: %{status}, %{state}, %{name}, %{vdom} =item B<--warning-*> B<--critical-*> diff --git a/src/network/fortinet/fortiauthenticator/snmp/mode/cpu.pm b/src/network/fortinet/fortiauthenticator/snmp/mode/cpu.pm index 1791daae1..4ed3dc674 100644 --- a/src/network/fortinet/fortiauthenticator/snmp/mode/cpu.pm +++ b/src/network/fortinet/fortiauthenticator/snmp/mode/cpu.pm @@ -79,11 +79,11 @@ Check cpu usage. =item B<--warning-cpu-utilization> -Threshold warning in percent. +Warning threshold in percent. =item B<--critical-cpu-utilization> -Threshold critical in percent. +Critical threshold in percent. =back diff --git a/src/network/fortinet/fortiauthenticator/snmp/mode/ha.pm b/src/network/fortinet/fortiauthenticator/snmp/mode/ha.pm index cdfbc4110..23cb57e87 100644 --- a/src/network/fortinet/fortiauthenticator/snmp/mode/ha.pm +++ b/src/network/fortinet/fortiauthenticator/snmp/mode/ha.pm @@ -110,12 +110,12 @@ Check high-availability status. =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{ha_status}, %{ha_status_last} =item B<--critical-status> -Set critical threshold for status (Default: '%{ha_status} ne %{ha_status_last}'). +Define the conditions to match for the status to be CRITICAL (Default: '%{ha_status} ne %{ha_status_last}'). You can use the following variables: %{ha_status}, %{ha_status_last} =back diff --git a/src/network/fortinet/fortigate/restapi/mode/health.pm b/src/network/fortinet/fortigate/restapi/mode/health.pm index b698e0e56..906f1945d 100644 --- a/src/network/fortinet/fortigate/restapi/mode/health.pm +++ b/src/network/fortinet/fortigate/restapi/mode/health.pm @@ -107,17 +107,17 @@ Filter vdom by name. =item B<--unknown-health> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{status}, %{name} =item B<--warning-health> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{status}, %{name} =item B<--critical-health> -Set critical threshold for status (Default: '%{status} !~ /success/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} !~ /success/i'). You can use the following variables: %{status}, %{name} =back diff --git a/src/network/fortinet/fortigate/restapi/mode/licenses.pm b/src/network/fortinet/fortigate/restapi/mode/licenses.pm index fc632919b..d44a6e885 100644 --- a/src/network/fortinet/fortigate/restapi/mode/licenses.pm +++ b/src/network/fortinet/fortigate/restapi/mode/licenses.pm @@ -177,12 +177,12 @@ Filter licenses by name (can be a regexp). =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{name}, %{status}. =item B<--critical-status> -Set critical threshold for status (Default: '%{status} =~ /expired/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} =~ /expired/i'). You can use the following variables: %{name}, %{status}. =item B<--unit> diff --git a/src/network/fortinet/fortimanager/snmp/mode/cpu.pm b/src/network/fortinet/fortimanager/snmp/mode/cpu.pm index d244aebb5..0d8e68605 100644 --- a/src/network/fortinet/fortimanager/snmp/mode/cpu.pm +++ b/src/network/fortinet/fortimanager/snmp/mode/cpu.pm @@ -86,11 +86,11 @@ Check current CPU usage. =item B<--warning> -Threshold warning. +Warning threshold. =item B<--critical> -Threshold critical. +Critical threshold. =back diff --git a/src/network/fortinet/fortimanager/snmp/mode/disk.pm b/src/network/fortinet/fortimanager/snmp/mode/disk.pm index 98e1071ce..a9b367440 100644 --- a/src/network/fortinet/fortimanager/snmp/mode/disk.pm +++ b/src/network/fortinet/fortimanager/snmp/mode/disk.pm @@ -120,11 +120,11 @@ Check disk usage. =item B<--warning-usage> -Threshold warning (in percent). +Warning threshold (in percent). =item B<--critical-usage> -Threshold critical (in percent). +Critical threshold (in percent). =back diff --git a/src/network/fortinet/fortimanager/snmp/mode/memory.pm b/src/network/fortinet/fortimanager/snmp/mode/memory.pm index 86ff48244..e61427d7c 100644 --- a/src/network/fortinet/fortimanager/snmp/mode/memory.pm +++ b/src/network/fortinet/fortimanager/snmp/mode/memory.pm @@ -120,11 +120,11 @@ Check memory usage. =item B<--warning-usage> -Threshold warning (in percent). +Warning threshold (in percent). =item B<--critical-usage> -Threshold critical (in percent). +Critical threshold (in percent). =back diff --git a/src/network/fortinet/fortiswitch/snmp/mode/interfaces.pm b/src/network/fortinet/fortiswitch/snmp/mode/interfaces.pm index cbd9c7eac..fd8654414 100644 --- a/src/network/fortinet/fortiswitch/snmp/mode/interfaces.pm +++ b/src/network/fortinet/fortiswitch/snmp/mode/interfaces.pm @@ -81,12 +81,12 @@ If the expression is true, metrics are checked (Default: '%{opstatus} eq "up"'). =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{admstatus}, %{opstatus}, %{duplexstatus}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: '%{admstatus} eq "up" and %{opstatus} ne "up"'). +Define the conditions to match for the status to be CRITICAL (Default: '%{admstatus} eq "up" and %{opstatus} ne "up"'). You can use the following variables: %{admstatus}, %{opstatus}, %{duplexstatus}, %{display} =item B<--warning-*> B<--critical-*> @@ -115,7 +115,7 @@ Display traffic perfdata to be compatible with nagvis widget. =item B<--interface> -Set the interface (number expected) ex: 1,2,... (empty means 'check all interface'). +Set the interface (number expected) ex: 1,2,... (empty means 'check all interfaces'). =item B<--name> @@ -155,11 +155,11 @@ Time in minutes before reloading cache file (default: 180). =item B<--oid-filter> -Choose OID used to filter interface (default: ifName) (values: ifDesc, ifAlias, ifName, IpAddr). +Define the OID to be used to filter interfaces (default: ifName) (values: ifDesc, ifAlias, ifName, IpAddr). =item B<--oid-display> -Choose OID used to display interface (default: ifName) (values: ifDesc, ifAlias, ifName, IpAddr). +Define the OID that will be used to name the interfaces (default: ifName) (values: ifDesc, ifAlias, ifName, IpAddr). =item B<--oid-extra-display> diff --git a/src/network/fortinet/fortiswitch/snmp/mode/uptime.pm b/src/network/fortinet/fortiswitch/snmp/mode/uptime.pm index 97fa32985..7f5493fa5 100644 --- a/src/network/fortinet/fortiswitch/snmp/mode/uptime.pm +++ b/src/network/fortinet/fortiswitch/snmp/mode/uptime.pm @@ -45,11 +45,11 @@ Check system uptime. =item B<--warning-uptime> -Threshold warning. +Warning threshold. =item B<--critical-uptime> -Threshold critical. +Critical threshold. =item B<--add-sysdesc> diff --git a/src/network/fortinet/fortiweb/snmp/mode/system.pm b/src/network/fortinet/fortiweb/snmp/mode/system.pm index b41817641..79a2bfc9f 100644 --- a/src/network/fortinet/fortiweb/snmp/mode/system.pm +++ b/src/network/fortinet/fortiweb/snmp/mode/system.pm @@ -155,12 +155,12 @@ Example: --filter-counters='memory-usage' =item B<--warning-ha-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{ha_mode} =item B<--critical-ha-status> -Set critical threshold for status. +Define the conditions to match for the status to be CRITICAL. You can use the following variables: %{ha_mode} =item B<--warning-*> B<--critical-*> diff --git a/src/network/fritzbox/upnp/mode/system.pm b/src/network/fritzbox/upnp/mode/system.pm index 375325468..97eafbc6c 100644 --- a/src/network/fritzbox/upnp/mode/system.pm +++ b/src/network/fritzbox/upnp/mode/system.pm @@ -152,12 +152,12 @@ Example: --filter-counters='uptime' =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. Can use special variables like: %{connection_status}, %{link_status} =item B<--critical-status> -Set critical threshold for status (Default: '%{link_status} !~ /^up$/i and %{connection_status} !~ /^connected$/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{link_status} !~ /^up$/i and %{connection_status} !~ /^connected$/i'). Can use special variables like: %{connection_status}, %{link_status} =item B<--unit> diff --git a/src/network/hirschmann/standard/snmp/mode/configuration.pm b/src/network/hirschmann/standard/snmp/mode/configuration.pm index 768f1c218..43a6fa1b9 100644 --- a/src/network/hirschmann/standard/snmp/mode/configuration.pm +++ b/src/network/hirschmann/standard/snmp/mode/configuration.pm @@ -113,12 +113,12 @@ Check configuration status. =item B<--warning-status> -Set warning threshold for status (Default : '%{config_status} =~ /notInSync|outOfSync/'). +Define the conditions to match for the status to be WARNING (Default : '%{config_status} =~ /notInSync|outOfSync/'). You can use the following variables: %{config_status} =item B<--critical-status> -Set critical threshold for status. +Define the conditions to match for the status to be CRITICAL. You can use the following variables: %{config_status} =back diff --git a/src/network/hp/moonshot/snmp/mode/interfaces.pm b/src/network/hp/moonshot/snmp/mode/interfaces.pm index 0f2381b9c..d4d9493db 100644 --- a/src/network/hp/moonshot/snmp/mode/interfaces.pm +++ b/src/network/hp/moonshot/snmp/mode/interfaces.pm @@ -81,12 +81,12 @@ If the expression is true, metrics are checked (Default: '%{opstatus} eq "up"'). =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{admstatus}, %{opstatus}, %{duplexstatus}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: '%{admstatus} eq "up" and %{opstatus} ne "up"'). +Define the conditions to match for the status to be CRITICAL (Default: '%{admstatus} eq "up" and %{opstatus} ne "up"'). You can use the following variables: %{admstatus}, %{opstatus}, %{duplexstatus}, %{display} =item B<--warning-*> B<--critical-*> @@ -115,7 +115,7 @@ Display traffic perfdata to be compatible with nagvis widget. =item B<--interface> -Set the interface (number expected) ex: 1,2,... (empty means 'check all interface'). +Set the interface (number expected) ex: 1,2,... (empty means 'check all interfaces'). =item B<--name> @@ -155,11 +155,11 @@ Time in minutes before reloading cache file (default: 180). =item B<--oid-filter> -Choose OID used to filter interface (default: ifName) (values: ifDesc, ifAlias, ifName, IpAddr). +Define the OID to be used to filter interfaces (default: ifName) (values: ifDesc, ifAlias, ifName, IpAddr). =item B<--oid-display> -Choose OID used to display interface (default: ifName) (values: ifDesc, ifAlias, ifName, IpAddr). +Define the OID that will be used to name the interfaces (default: ifName) (values: ifDesc, ifAlias, ifName, IpAddr). =item B<--oid-extra-display> diff --git a/src/network/hp/procurve/snmp/mode/cpu.pm b/src/network/hp/procurve/snmp/mode/cpu.pm index 5c1756f0d..3782e86b9 100644 --- a/src/network/hp/procurve/snmp/mode/cpu.pm +++ b/src/network/hp/procurve/snmp/mode/cpu.pm @@ -87,11 +87,11 @@ Check cpu usage (hpSwitchStat.mib). =item B<--warning> -Threshold warning in percent. +Warning threshold in percent. =item B<--critical> -Threshold critical in percent. +Critical threshold in percent. =back diff --git a/src/network/hp/procurve/snmp/mode/interfaces.pm b/src/network/hp/procurve/snmp/mode/interfaces.pm index 7f1f20eeb..be22fc7c5 100644 --- a/src/network/hp/procurve/snmp/mode/interfaces.pm +++ b/src/network/hp/procurve/snmp/mode/interfaces.pm @@ -302,12 +302,12 @@ If the expression is true, metrics are checked (Default: '%{opstatus} eq "up"'). =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{admstatus}, %{opstatus}, %{duplexstatus}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: '%{admstatus} eq "up" and %{opstatus} ne "up"'). +Define the conditions to match for the status to be CRITICAL (Default: '%{admstatus} eq "up" and %{opstatus} ne "up"'). You can use the following variables: %{admstatus}, %{opstatus}, %{duplexstatus}, %{display} =item B<--warning-poe-status> @@ -317,7 +317,7 @@ You can use the following variables: %{admstatus}, %{opstatus}, %{poestatus}, %{ =item B<--critical-poe-status> -Set critical threshold for status. +Define the conditions to match for the status to be CRITICAL. You can use the following variables: %{admstatus}, %{opstatus}, %{poestatus}, %{display} =item B<--warning-*> B<--critical-*> @@ -348,7 +348,7 @@ Display traffic perfdata to be compatible with nagvis widget. =item B<--interface> -Set the interface (number expected) ex: 1,2,... (empty means 'check all interface'). +Set the interface (number expected) ex: 1,2,... (empty means 'check all interfaces'). =item B<--name> @@ -376,11 +376,11 @@ Time in minutes before reloading cache file (default: 180). =item B<--oid-filter> -Choose OID used to filter interface (default: ifName) (values: ifDesc, ifAlias, ifName, IpAddr). +Define the OID to be used to filter interfaces (default: ifName) (values: ifDesc, ifAlias, ifName, IpAddr). =item B<--oid-display> -Choose OID used to display interface (default: ifName) (values: ifDesc, ifAlias, ifName, IpAddr). +Define the OID that will be used to name the interfaces (default: ifName) (values: ifDesc, ifAlias, ifName, IpAddr). =item B<--oid-extra-display> diff --git a/src/network/hp/procurve/snmp/mode/memory.pm b/src/network/hp/procurve/snmp/mode/memory.pm index dc5a496bb..edcf4e495 100644 --- a/src/network/hp/procurve/snmp/mode/memory.pm +++ b/src/network/hp/procurve/snmp/mode/memory.pm @@ -128,11 +128,11 @@ Check memory usage (hpNetSwitch.mib). =item B<--warning> -Threshold warning in percent. +Warning threshold in percent. =item B<--critical> -Threshold critical in percent. +Critical threshold in percent. =back diff --git a/src/network/hp/procurve/snmp/mode/virtualchassis.pm b/src/network/hp/procurve/snmp/mode/virtualchassis.pm index 11595c4dd..9b1ce93ff 100644 --- a/src/network/hp/procurve/snmp/mode/virtualchassis.pm +++ b/src/network/hp/procurve/snmp/mode/virtualchassis.pm @@ -323,47 +323,47 @@ Filter members by serial (can be a regexp). =item B<--unknown-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{status} =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{status} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} !~ /active/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} !~ /active/i'). You can use the following variables: %{status} =item B<--unknown-member-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{state}, %{stateLast} =item B<--warning-member-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{state}, %{stateLast} =item B<--critical-member-status> -Set critical threshold for status (Default: '%{state} ne %{stateLast} || %{state} =~ /communicationFailure|incompatibleOS/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{state} ne %{stateLast} || %{state} =~ /communicationFailure|incompatibleOS/i'). You can use the following variables: %{state}, %{stateLast} =item B<--unknown-link-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{link_status}, %{display} =item B<--warning-link-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{link_status}, %{display} =item B<--critical-link-status> -Set critical threshold for status (Default: '%{link_status} eq "down"'). +Define the conditions to match for the status to be CRITICAL (Default: '%{link_status} eq "down"'). You can use the following variables: %{link_status}, %{display} =item B<--warning-*> B<--critical-*> diff --git a/src/network/huawei/snmp/mode/cpu.pm b/src/network/huawei/snmp/mode/cpu.pm index 6a12a1a4e..3fcc3cbea 100644 --- a/src/network/huawei/snmp/mode/cpu.pm +++ b/src/network/huawei/snmp/mode/cpu.pm @@ -111,11 +111,11 @@ Check CPU usages. =item B<--warning-usage> -Threshold warning. +Warning threshold. =item B<--critical-usage> -Threshold critical. +Critical threshold. =back diff --git a/src/network/huawei/snmp/mode/interfaces.pm b/src/network/huawei/snmp/mode/interfaces.pm index 1ecae9846..4ad36dc23 100644 --- a/src/network/huawei/snmp/mode/interfaces.pm +++ b/src/network/huawei/snmp/mode/interfaces.pm @@ -213,12 +213,12 @@ If the expression is true, metrics are checked (Default: '%{opstatus} eq "up"'). =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{admstatus}, %{opstatus}, %{duplexstatus}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: '%{admstatus} eq "up" and %{opstatus} ne "up"'). +Define the conditions to match for the status to be CRITICAL (Default: '%{admstatus} eq "up" and %{opstatus} ne "up"'). You can use the following variables: %{admstatus}, %{opstatus}, %{duplexstatus}, %{display} =item B<--warning-errors> @@ -257,7 +257,7 @@ Display traffic perfdata to be compatible with nagvis widget. =item B<--interface> -Set the interface (number expected) ex: 1,2,... (empty means 'check all interface'). +Set the interface (number expected) ex: 1,2,... (empty means 'check all interfaces'). =item B<--name> @@ -285,11 +285,11 @@ Time in minutes before reloading cache file (default: 180). =item B<--oid-filter> -Choose OID used to filter interface (default: ifName) (values: ifDesc, ifAlias, ifName, IpAddr). +Define the OID to be used to filter interfaces (default: ifName) (values: ifDesc, ifAlias, ifName, IpAddr). =item B<--oid-display> -Choose OID used to display interface (default: ifName) (values: ifDesc, ifAlias, ifName, IpAddr). +Define the OID that will be used to name the interfaces (default: ifName) (values: ifDesc, ifAlias, ifName, IpAddr). =item B<--oid-extra-display> diff --git a/src/network/huawei/snmp/mode/memory.pm b/src/network/huawei/snmp/mode/memory.pm index 574c62934..121e5c99f 100644 --- a/src/network/huawei/snmp/mode/memory.pm +++ b/src/network/huawei/snmp/mode/memory.pm @@ -182,11 +182,11 @@ Check memory usage. =item B<--warning-usage> -Threshold warning (in percent). +Warning threshold (in percent). =item B<--critical-usage> -Threshold critical (in percent). +Critical threshold (in percent). =back diff --git a/src/network/infoblox/snmp/mode/dhcpusage.pm b/src/network/infoblox/snmp/mode/dhcpusage.pm index 482863239..863a19b82 100644 --- a/src/network/infoblox/snmp/mode/dhcpusage.pm +++ b/src/network/infoblox/snmp/mode/dhcpusage.pm @@ -238,14 +238,14 @@ Time in minutes before reloading cache file (default: 180). ibDhcpTotalNoOfDiscovers -Threshold warning. +Warning threshold. Can be: 'total-discovers', 'total-requests', 'total-releases', 'total-offers', 'total-acks', 'total-nacks', 'total-declines', 'total-informs', 'total-others', 'subnet-used' (%). =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'total-discovers', 'total-requests', 'total-releases', 'total-offers', 'total-acks', 'total-nacks', 'total-declines', 'total-informs', 'total-others', 'subnet-used' (%). diff --git a/src/network/infoblox/snmp/mode/dnsusage.pm b/src/network/infoblox/snmp/mode/dnsusage.pm index c8e8d5a55..bfdcf11f1 100644 --- a/src/network/infoblox/snmp/mode/dnsusage.pm +++ b/src/network/infoblox/snmp/mode/dnsusage.pm @@ -279,13 +279,13 @@ Time in minutes before reloading cache file (default: 180). =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'total-query-rate', 'total-hit-ratio', 'success-count', 'referral-count', 'nxrrset-count', 'failure-count'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'total-query-rate', 'total-hit-ratio', 'success-count', 'referral-count', 'nxrrset-count', 'failure-count', 'aa-latency-1m', 'aa-latency-5m', 'aa-latency-15m', diff --git a/src/network/infoblox/snmp/mode/system.pm b/src/network/infoblox/snmp/mode/system.pm index e0ebfc8e6..dfa7334c4 100644 --- a/src/network/infoblox/snmp/mode/system.pm +++ b/src/network/infoblox/snmp/mode/system.pm @@ -185,12 +185,12 @@ Example: --filter-counters='^memory-usage$' =item B<--warning-ha-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{ha_status} =item B<--critical-ha-status> -Set critical threshold for status. +Define the conditions to match for the status to be CRITICAL. You can use the following variables: %{ha_status} =item B<--warning-*> B<--critical-*> diff --git a/src/network/juniper/common/ive/mode/cpu.pm b/src/network/juniper/common/ive/mode/cpu.pm index 84e6ddc7e..8727823f9 100644 --- a/src/network/juniper/common/ive/mode/cpu.pm +++ b/src/network/juniper/common/ive/mode/cpu.pm @@ -94,11 +94,11 @@ Check CPU Utilization of the IVE system (JUNIPER-IVE-MIB). =item B<--warning> -Threshold warning in percent. +Warning threshold in percent. =item B<--critical> -Threshold critical in percent. +Critical threshold in percent. =back diff --git a/src/network/juniper/common/ive/mode/disk.pm b/src/network/juniper/common/ive/mode/disk.pm index 7c8ef6bf8..797513d65 100644 --- a/src/network/juniper/common/ive/mode/disk.pm +++ b/src/network/juniper/common/ive/mode/disk.pm @@ -94,11 +94,11 @@ Check disk usage (JUNIPER-IVE-MIB). =item B<--warning> -Threshold warning in percent. +Warning threshold in percent. =item B<--critical> -Threshold critical in percent. +Critical threshold in percent. =back diff --git a/src/network/juniper/common/ive/mode/logfile.pm b/src/network/juniper/common/ive/mode/logfile.pm index 2f60626b4..8c279b56c 100644 --- a/src/network/juniper/common/ive/mode/logfile.pm +++ b/src/network/juniper/common/ive/mode/logfile.pm @@ -94,11 +94,11 @@ Check log file usage (JUNIPER-IVE-MIB). =item B<--warning> -Threshold warning in percent. +Warning threshold in percent. =item B<--critical> -Threshold critical in percent. +Critical threshold in percent. =back diff --git a/src/network/juniper/common/junos/mode/cpsessions.pm b/src/network/juniper/common/junos/mode/cpsessions.pm index 91c9cb22d..dad4a9cdd 100644 --- a/src/network/juniper/common/junos/mode/cpsessions.pm +++ b/src/network/juniper/common/junos/mode/cpsessions.pm @@ -111,11 +111,11 @@ Check CP ('central point') sessions usage. =item B<--warning> -Threshold warning in percent. +Warning threshold in percent. =item B<--critical> -Threshold critical in percent. +Critical threshold in percent. =back diff --git a/src/network/juniper/common/junos/mode/cpuforwarding.pm b/src/network/juniper/common/junos/mode/cpuforwarding.pm index 70e121b30..20706b6a1 100644 --- a/src/network/juniper/common/junos/mode/cpuforwarding.pm +++ b/src/network/juniper/common/junos/mode/cpuforwarding.pm @@ -98,11 +98,11 @@ Check CPU Usage of packet forwarding engine. =item B<--warning> -Threshold warning in percent. +Warning threshold in percent. =item B<--critical> -Threshold critical in percent. +Critical threshold in percent. =back diff --git a/src/network/juniper/common/junos/mode/flowsessions.pm b/src/network/juniper/common/junos/mode/flowsessions.pm index 954192348..bcbca2ef1 100644 --- a/src/network/juniper/common/junos/mode/flowsessions.pm +++ b/src/network/juniper/common/junos/mode/flowsessions.pm @@ -111,11 +111,11 @@ Check Packet Forwarding Engine sessions usage. =item B<--warning> -Threshold warning in percent. +Warning threshold in percent. =item B<--critical> -Threshold critical in percent. +Critical threshold in percent. =back diff --git a/src/network/juniper/common/junos/mode/interfaces.pm b/src/network/juniper/common/junos/mode/interfaces.pm index c5968e644..c43050bbf 100644 --- a/src/network/juniper/common/junos/mode/interfaces.pm +++ b/src/network/juniper/common/junos/mode/interfaces.pm @@ -288,12 +288,12 @@ If the expression is true, metrics are checked (Default: '%{opstatus} eq "up"'). =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{admstatus}, %{opstatus}, %{duplexstatus}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: '%{admstatus} eq "up" and %{opstatus} ne "up"'). +Define the conditions to match for the status to be CRITICAL (Default: '%{admstatus} eq "up" and %{opstatus} ne "up"'). You can use the following variables: %{admstatus}, %{opstatus}, %{duplexstatus}, %{display} =item B<--warning-errors> @@ -332,7 +332,7 @@ Display traffic perfdata to be compatible with nagvis widget. =item B<--interface> -Set the interface (number expected) ex: 1,2,... (empty means 'check all interface'). +Set the interface (number expected) ex: 1,2,... (empty means 'check all interfaces'). =item B<--name> @@ -360,11 +360,11 @@ Time in minutes before reloading cache file (default: 180). =item B<--oid-filter> -Choose OID used to filter interface (default: ifName) (values: ifDesc, ifAlias, ifName, IpAddr). +Define the OID to be used to filter interfaces (default: ifName) (values: ifDesc, ifAlias, ifName, IpAddr). =item B<--oid-display> -Choose OID used to display interface (default: ifName) (values: ifDesc, ifAlias, ifName, IpAddr). +Define the OID that will be used to name the interfaces (default: ifName) (values: ifDesc, ifAlias, ifName, IpAddr). =item B<--oid-extra-display> diff --git a/src/network/juniper/common/junos/mode/ipsectunnel.pm b/src/network/juniper/common/junos/mode/ipsectunnel.pm index 9676c3634..5a22eb01b 100644 --- a/src/network/juniper/common/junos/mode/ipsectunnel.pm +++ b/src/network/juniper/common/junos/mode/ipsectunnel.pm @@ -248,17 +248,17 @@ Example: --filter-counters='tunnels-total' =item B<--unknown-status> -Set unknown threshold for status (Default: ''). +Define the conditions to match for the status to be UNKNOWN (Default: ''). You can use the following variables: %{ike_state}, %{display} =item B<--warning-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{ike_state}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: '%{ike_state} eq "down"'). +Define the conditions to match for the status to be CRITICAL (Default: '%{ike_state} eq "down"'). You can use the following variables: %{ike_state}, %{display} =item B<--warning-*> B<--critical-*> diff --git a/src/network/juniper/common/junos/mode/ldpsessionstatus.pm b/src/network/juniper/common/junos/mode/ldpsessionstatus.pm index c19203c7d..44881a68b 100644 --- a/src/network/juniper/common/junos/mode/ldpsessionstatus.pm +++ b/src/network/juniper/common/junos/mode/ldpsessionstatus.pm @@ -175,21 +175,21 @@ Can be: 'entity', 'peer' (can be a regexp). =item B<--warning-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{state} =item B<--critical-status> -Set critical threshold for status (Default: '%{state} !~ /operational/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{state} !~ /operational/i'). You can use the following variables: %{state} =item B<--warning-last-change> -Threshold warning in seconds. +Warning threshold in seconds. =item B<--critical-last-change> -Threshold critical in seconds. +Critical threshold in seconds. =back diff --git a/src/network/juniper/common/junos/mode/lspstatus.pm b/src/network/juniper/common/junos/mode/lspstatus.pm index 4de891083..76f40b3bf 100644 --- a/src/network/juniper/common/junos/mode/lspstatus.pm +++ b/src/network/juniper/common/junos/mode/lspstatus.pm @@ -196,22 +196,22 @@ Can be: 'name', 'from', 'to' (can be a regexp). =item B<--warning-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{state} =item B<--critical-status> -Set critical threshold for status (Default: '%{state} !~ /up/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{state} !~ /up/i'). You can use the following variables: %{state} =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'transition-count', 'last-transition' (seconds). =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'transition-count', 'last-transition' (seconds). =back diff --git a/src/network/juniper/common/junos/mode/memoryforwarding.pm b/src/network/juniper/common/junos/mode/memoryforwarding.pm index da30d5247..c4203b603 100644 --- a/src/network/juniper/common/junos/mode/memoryforwarding.pm +++ b/src/network/juniper/common/junos/mode/memoryforwarding.pm @@ -98,11 +98,11 @@ Check Memory Usage of packet forwarding engine. =item B<--warning> -Threshold warning in percent. +Warning threshold in percent. =item B<--critical> -Threshold critical in percent. +Critical threshold in percent. =back diff --git a/src/network/juniper/common/junos/mode/rsvpsessionstatus.pm b/src/network/juniper/common/junos/mode/rsvpsessionstatus.pm index 4bde77f77..dec68b4c5 100644 --- a/src/network/juniper/common/junos/mode/rsvpsessionstatus.pm +++ b/src/network/juniper/common/junos/mode/rsvpsessionstatus.pm @@ -169,12 +169,12 @@ Can be: 'name', 'from', 'to' (can be a regexp). =item B<--warning-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{state} =item B<--critical-status> -Set critical threshold for status (Default: '%{state} !~ /up/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{state} !~ /up/i'). You can use the following variables: %{state} =back diff --git a/src/network/juniper/common/junos/mode/stack.pm b/src/network/juniper/common/junos/mode/stack.pm index b2e4c8ad2..af13ea2ee 100644 --- a/src/network/juniper/common/junos/mode/stack.pm +++ b/src/network/juniper/common/junos/mode/stack.pm @@ -213,32 +213,32 @@ Check stack members. =item B<--unknown-member-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{role}, %{roleLast} =item B<--warning-member-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{role}, %{roleLast} =item B<--critical-member-status> -Set critical threshold for status (Default: '%{role} ne %{roleLast}'). +Define the conditions to match for the status to be CRITICAL (Default: '%{role} ne %{roleLast}'). You can use the following variables: %{role}, %{roleLast} =item B<--unknown-port-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{admin_status}, %{oper_status}, %{display} =item B<--warning-port-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{admin_status}, %{oper_status}, %{display} =item B<--critical-port-status> -Set critical threshold for status (Default: '%{admin_status} eq "up" and %{oper_status} ne "up"'). +Define the conditions to match for the status to be CRITICAL (Default: '%{admin_status} eq "up" and %{oper_status} ne "up"'). You can use the following variables: %{admin_status}, %{oper_status}, %{display} =back diff --git a/src/network/juniper/common/screenos/snmp/mode/cpu.pm b/src/network/juniper/common/screenos/snmp/mode/cpu.pm index 7416a1b84..3c2e6cae9 100644 --- a/src/network/juniper/common/screenos/snmp/mode/cpu.pm +++ b/src/network/juniper/common/screenos/snmp/mode/cpu.pm @@ -130,11 +130,11 @@ Check Juniper cpu usage (NETSCREEN-RESOURCE-MIB). =item B<--warning> -Threshold warning in percent (1min,5min,15min). +Warning threshold in percent (1min,5min,15min). =item B<--critical> -Threshold critical in percent (1min,5min,15min). +Critical threshold in percent (1min,5min,15min). =back diff --git a/src/network/juniper/common/screenos/snmp/mode/memory.pm b/src/network/juniper/common/screenos/snmp/mode/memory.pm index e946c9cb7..02e7211e7 100644 --- a/src/network/juniper/common/screenos/snmp/mode/memory.pm +++ b/src/network/juniper/common/screenos/snmp/mode/memory.pm @@ -110,11 +110,11 @@ Check Juniper memory usage (NETSCREEN-RESOURCE-MIB). =item B<--warning> -Threshold warning in percent. +Warning threshold in percent. =item B<--critical> -Threshold critical in percent. +Critical threshold in percent. =back diff --git a/src/network/juniper/common/screenos/snmp/mode/nsrp.pm b/src/network/juniper/common/screenos/snmp/mode/nsrp.pm index d99071f9a..2888011f3 100644 --- a/src/network/juniper/common/screenos/snmp/mode/nsrp.pm +++ b/src/network/juniper/common/screenos/snmp/mode/nsrp.pm @@ -185,22 +185,22 @@ Check nsrp groups. =item B<--unknown-status> -Set unknown threshold for status (Default: '%{status} =~ /undefined/i'). +Define the conditions to match for the status to be UNKNOWN (Default: '%{status} =~ /undefined/i'). You can use the following variables: %{status}, %{statusLast} =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{status}, %{statusLast} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} =~ /ineligible|inoperable/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} =~ /ineligible|inoperable/i'). You can use the following variables: %{status}, %{statusLast} =item B<--warning-*> B<--critical-*> -Threshold warning. +Warning threshold. Can be: 'group-transition-change'. =back diff --git a/src/network/juniper/common/screenos/snmp/mode/sessions.pm b/src/network/juniper/common/screenos/snmp/mode/sessions.pm index 3325ae249..43538acf8 100644 --- a/src/network/juniper/common/screenos/snmp/mode/sessions.pm +++ b/src/network/juniper/common/screenos/snmp/mode/sessions.pm @@ -111,12 +111,12 @@ Example: --filter-counters='^usage$' =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'usage' (%), 'failed'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'usage' (%), 'failed'. =back diff --git a/src/network/juniper/common/screenos/snmp/mode/vpnstatus.pm b/src/network/juniper/common/screenos/snmp/mode/vpnstatus.pm index 14fb53438..e74bf8967 100644 --- a/src/network/juniper/common/screenos/snmp/mode/vpnstatus.pm +++ b/src/network/juniper/common/screenos/snmp/mode/vpnstatus.pm @@ -165,21 +165,21 @@ Filter VPN name (can be a regexp). =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{p1state}, %{p2state} =item B<--critical-status> -Set critical threshold for status (Default: '%{p1state} eq "inactive" || %{p2state} eq "inactive"'). +Define the conditions to match for the status to be CRITICAL (Default: '%{p1state} eq "inactive" || %{p2state} eq "inactive"'). You can use the following variables: %{p1state}, %{p2state} =item B<--warning-update-time> -Threshold warning for update time (in secondes). +Warning threshold for update time (in secondes). =item B<--critical-update-time> -Threshold critical for update time (in secondes). +Critical threshold for update time (in secondes). =back diff --git a/src/network/juniper/common/screenos/snmp/mode/vpnusage.pm b/src/network/juniper/common/screenos/snmp/mode/vpnusage.pm index b00c12ed2..68ba47dff 100644 --- a/src/network/juniper/common/screenos/snmp/mode/vpnusage.pm +++ b/src/network/juniper/common/screenos/snmp/mode/vpnusage.pm @@ -137,12 +137,12 @@ Filter VPN name (can be a regexp). =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'traffic-in', 'traffic-out'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'traffic-in', 'traffic-out'. =back diff --git a/src/network/juniper/ggsn/mode/apnstats.pm b/src/network/juniper/ggsn/mode/apnstats.pm index b4556af72..528f3cd8f 100644 --- a/src/network/juniper/ggsn/mode/apnstats.pm +++ b/src/network/juniper/ggsn/mode/apnstats.pm @@ -265,7 +265,7 @@ Check APN statistics. =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'traffic-in' (bps), 'traffic-out' (bps), 'drop-in' (%), 'drop-out' (%), 'active-pdp', 'attempted-activation-pdp', 'attempted-dyn-activation-pdp', 'attempted-deactivation-pdp', 'attempted-self-deactivation-pdp', 'completed-activation-pdp', 'completed-dyn-activation-pdp', @@ -273,7 +273,7 @@ Can be: 'traffic-in' (bps), 'traffic-out' (bps), 'drop-in' (%), 'drop-out' (%), =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'traffic-in' (bps), 'traffic-out' (bps), 'drop-in' (%), 'drop-out' (%), 'active-pdp', 'attempted-activation-pdp', 'attempted-dyn-activation-pdp', 'attempted-deactivation-pdp', 'attempted-self-deactivation-pdp', 'completed-activation-pdp', 'completed-dyn-activation-pdp', diff --git a/src/network/juniper/ggsn/mode/globalstats.pm b/src/network/juniper/ggsn/mode/globalstats.pm index 916646c9d..331c3a784 100644 --- a/src/network/juniper/ggsn/mode/globalstats.pm +++ b/src/network/juniper/ggsn/mode/globalstats.pm @@ -249,7 +249,7 @@ Check global statistics. =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'traffic-in' (bps), 'traffic-out' (bps), 'drop-in' (%), 'drop-out' (%), 'active-pdp', 'attempted-activation-pdp', 'attempted-update-pdp', 'attempted-deactivation-pdp', 'attempted-self-deactivation-pdp', 'completed-activation-pdp', 'completed-update-pdp', @@ -257,7 +257,7 @@ Can be: 'traffic-in' (bps), 'traffic-out' (bps), 'drop-in' (%), 'drop-out' (%), =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'traffic-in' (bps), 'traffic-out' (bps), 'drop-in' (%), 'drop-out' (%), 'active-pdp', 'attempted-activation-pdp', 'attempted-update-pdp', 'attempted-deactivation-pdp', 'attempted-self-deactivation-pdp', 'completed-activation-pdp', 'completed-update-pdp', diff --git a/src/network/juniper/mag/mode/bladetemperature.pm b/src/network/juniper/mag/mode/bladetemperature.pm index cb3812306..19a13a935 100644 --- a/src/network/juniper/mag/mode/bladetemperature.pm +++ b/src/network/juniper/mag/mode/bladetemperature.pm @@ -86,11 +86,11 @@ Check temperature of MAG application blade (JUNIPER-IVE-MIB). =item B<--warning> -Threshold warning in degree celsius. +Warning threshold in degree celsius. =item B<--critical> -Threshold critical in degree celsius. +Critical threshold in degree celsius. =back diff --git a/src/network/juniper/trapeze/snmp/mode/apstatus.pm b/src/network/juniper/trapeze/snmp/mode/apstatus.pm index 6fd68494a..b60d44268 100644 --- a/src/network/juniper/trapeze/snmp/mode/apstatus.pm +++ b/src/network/juniper/trapeze/snmp/mode/apstatus.pm @@ -177,12 +177,12 @@ Filter AP name (can be a regexp). =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{opstatus}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: '%{opstatus} !~ /init|redundant|operationnal/'). +Define the conditions to match for the status to be CRITICAL (Default: '%{opstatus} !~ /init|redundant|operationnal/'). You can use the following variables: %{opstatus}, %{display} =item B<--warning-total> diff --git a/src/network/juniper/trapeze/snmp/mode/cpu.pm b/src/network/juniper/trapeze/snmp/mode/cpu.pm index 255a26e1a..f2884bdbd 100644 --- a/src/network/juniper/trapeze/snmp/mode/cpu.pm +++ b/src/network/juniper/trapeze/snmp/mode/cpu.pm @@ -127,12 +127,12 @@ Example: --filter-counters='^(1m|5m)$' =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: '1m', '5m', '1h, 'average' =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: '1m', '5m', '1h', 'average' =back diff --git a/src/network/juniper/trapeze/snmp/mode/memory.pm b/src/network/juniper/trapeze/snmp/mode/memory.pm index f824b74b0..de80098d6 100644 --- a/src/network/juniper/trapeze/snmp/mode/memory.pm +++ b/src/network/juniper/trapeze/snmp/mode/memory.pm @@ -158,12 +158,12 @@ Example: --filter-counters='^(memory)$' =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'memory', 'flash' =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'memory', 'flash' =back diff --git a/src/network/kemp/snmp/mode/hastatus.pm b/src/network/kemp/snmp/mode/hastatus.pm index 8c0084710..818bff6d6 100644 --- a/src/network/kemp/snmp/mode/hastatus.pm +++ b/src/network/kemp/snmp/mode/hastatus.pm @@ -150,22 +150,22 @@ Example: --filter-counters='^ha-status$' =item B<--warning-ha-status> -Set warning threshold for status (Default: none). +Define the conditions to match for the status to be WARNING (Default: none). You can use the following variables: %{status}, %{display} =item B<--critical-ha-status> -Set critical threshold for status (Default: none). +Define the conditions to match for the status to be CRITICAL (Default: none). You can use the following variables: %{status}, %{display} =item B<--warning-sync-status> -Set warning threshold for status (Default: none). +Define the conditions to match for the status to be WARNING (Default: none). You can use the following variables: %{status}, %{display} =item B<--critical-sync-status> -Set critical threshold for status (Default: none). +Define the conditions to match for the status to be CRITICAL (Default: none). You can use the following variables: %{status}, %{display} =back diff --git a/src/network/kemp/snmp/mode/rsstatus.pm b/src/network/kemp/snmp/mode/rsstatus.pm index eac863f29..cff4a60ca 100644 --- a/src/network/kemp/snmp/mode/rsstatus.pm +++ b/src/network/kemp/snmp/mode/rsstatus.pm @@ -190,22 +190,22 @@ Filter real server name (can be a regexp). =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{status}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} !~ /inService|disabled/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} !~ /inService|disabled/i'). You can use the following variables: %{status}, %{display} =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'active', 'in-traffic' (b/s), 'out-traffic' (b/s). =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'active', 'in-traffic' (b/s), 'out-traffic' (b/s). =back diff --git a/src/network/kemp/snmp/mode/vsstatus.pm b/src/network/kemp/snmp/mode/vsstatus.pm index 616c1dfff..6891bcee6 100644 --- a/src/network/kemp/snmp/mode/vsstatus.pm +++ b/src/network/kemp/snmp/mode/vsstatus.pm @@ -188,22 +188,22 @@ Filter virtual server name (can be a regexp). =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{status}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} !~ /inService|disabled|redirect/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} !~ /inService|disabled|redirect/i'). You can use the following variables: %{status}, %{display} =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'active', 'in-traffic' (b/s), 'out-traffic' (b/s). =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'active', 'in-traffic' (b/s), 'out-traffic' (b/s). =back diff --git a/src/network/keysight/nvos/restapi/mode/hardware.pm b/src/network/keysight/nvos/restapi/mode/hardware.pm index 17e5e8237..6eb94b5b1 100644 --- a/src/network/keysight/nvos/restapi/mode/hardware.pm +++ b/src/network/keysight/nvos/restapi/mode/hardware.pm @@ -162,32 +162,32 @@ Check hardware. =item B<--unknown-temperature-status> -Set unknown threshold for status (Default : '%{status} eq "unknown"'). +Define the conditions to match for the status to be UNKNOWN (Default : '%{status} eq "unknown"'). You can use the following variables: %{status}, %{class} =item B<--warning-temperature-status> -Set warning threshold for status (Default : '%{status} eq "warn"'). +Define the conditions to match for the status to be WARNING (Default : '%{status} eq "warn"'). You can use the following variables: %{status}, %{class} =item B<--critical-temperature-status> -Set critical threshold for status (Default: '%{status} eq "hot"'); +Define the conditions to match for the status to be CRITICAL (Default: '%{status} eq "hot"'); You can use the following variables: %{status}, %{class} =item B<--unknown-psu-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{status}, %{name} =item B<--warning-psu-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{status}, %{name} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} eq "bad"'); +Define the conditions to match for the status to be CRITICAL (Default: '%{status} eq "bad"'); You can use the following variables: %{status}, %{name} =item B<--warning-*> B<--critical-*> diff --git a/src/network/keysight/nvos/restapi/mode/ports.pm b/src/network/keysight/nvos/restapi/mode/ports.pm index cb294c16e..beb371311 100644 --- a/src/network/keysight/nvos/restapi/mode/ports.pm +++ b/src/network/keysight/nvos/restapi/mode/ports.pm @@ -252,32 +252,32 @@ Filter ports by name (can be a regexp). =item B<--unknown-license-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{status}, %{name} =item B<--warning-license-status> -Set warning threshold for status (Default: '%{status} =~ /invalid_software_version/'). +Define the conditions to match for the status to be WARNING (Default: '%{status} =~ /invalid_software_version/'). You can use the following variables: %{status}, %{name} =item B<--critical-license-status> -Set critical threshold for status. +Define the conditions to match for the status to be CRITICAL. You can use the following variables: %{status}, %{name} =item B<--unknown-link-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{adminStatus}, %{operationalStatus}, %{name} =item B<--warning-link-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{adminStatus}, %{operationalStatus}, %{name} =item B<--critical-link-status> -Set critical threshold for status (Default: '%{adminStatus} eq "enabled" and %{operationalStatus} ne "up"'). +Define the conditions to match for the status to be CRITICAL (Default: '%{adminStatus} eq "enabled" and %{operationalStatus} ne "up"'). You can use the following variables: %{adminStatus}, %{operationalStatus}, %{name} =item B<--warning-*> B<--critical-*> diff --git a/src/network/keysight/nvos/restapi/mode/time.pm b/src/network/keysight/nvos/restapi/mode/time.pm index 6cd7e3d01..aabd7d899 100644 --- a/src/network/keysight/nvos/restapi/mode/time.pm +++ b/src/network/keysight/nvos/restapi/mode/time.pm @@ -158,30 +158,32 @@ Check time offset of server with ntp server. Use local time if ntp-host option i =item B<--unknown-ntp-status> +Define the conditions to match for the status to be UNKNOWN. + =item B<--warning-ntp-status> +Define the conditions to match for the status to be WARNING. + =item B<--critical-ntp-status> -Set thresholds for status (Default critical: '%{status} !~ /in_reach|in_sync/i') - - +Define the conditions to match for the status to be CRITICAL (default: '%{status} !~ /in_reach|in_sync/i') You can use the following variables: %{status} =item B<--warning-offset> -Time offset warning threshold (in seconds). +Define the time offset (in seconds) that will trigger a WARNING status. =item B<--critical-offset> -Time offset critical Threshold (in seconds). +Define the time offset (in seconds) that will trigger a CRITICAL status. =item B<--ntp-hostname> -Set the ntp hostname (if not set, localtime is used). +Set the NTP hostname (if not set, localtime is used). =item B<--ntp-port> -Set the ntp port (Default: 123). +Set the NTP port (Default: 123). =item B<--timezone> diff --git a/src/network/keysight/nvos/restapi/mode/uptime.pm b/src/network/keysight/nvos/restapi/mode/uptime.pm index 1a07d8e90..1e0faf6e8 100644 --- a/src/network/keysight/nvos/restapi/mode/uptime.pm +++ b/src/network/keysight/nvos/restapi/mode/uptime.pm @@ -130,11 +130,11 @@ Check system uptime. =item B<--warning-uptime> -Threshold warning. +Warning threshold. =item B<--critical-uptime> -Threshold critical. +Critical threshold. =item B<--unit> diff --git a/src/network/lenovo/rackswitch/snmp/mode/hardware.pm b/src/network/lenovo/rackswitch/snmp/mode/hardware.pm index 0e327f6e8..7dd2dd5ac 100644 --- a/src/network/lenovo/rackswitch/snmp/mode/hardware.pm +++ b/src/network/lenovo/rackswitch/snmp/mode/hardware.pm @@ -136,17 +136,17 @@ Check hardware. =item B<--unknown-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{status} =item B<--warning-status> -Set warning threshold for status (Default: '%{status} eq "noncritical"'). +Define the conditions to match for the status to be WARNING (Default: '%{status} eq "noncritical"'). You can use the following variables: %{status} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} eq "critical"'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} eq "critical"'). You can use the following variables: %{status} =item B<--warning-*> B<--critical-*> diff --git a/src/network/lenovo/rackswitch/snmp/mode/interfaces.pm b/src/network/lenovo/rackswitch/snmp/mode/interfaces.pm index 6f73da9b9..7bf5d820c 100644 --- a/src/network/lenovo/rackswitch/snmp/mode/interfaces.pm +++ b/src/network/lenovo/rackswitch/snmp/mode/interfaces.pm @@ -81,12 +81,12 @@ If the expression is true, metrics are checked (Default: '%{opstatus} eq "up"'). =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{admstatus}, %{opstatus}, %{duplexstatus}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: '%{admstatus} eq "up" and %{opstatus} ne "up"'). +Define the conditions to match for the status to be CRITICAL (Default: '%{admstatus} eq "up" and %{opstatus} ne "up"'). You can use the following variables: %{admstatus}, %{opstatus}, %{duplexstatus}, %{display} =item B<--warning-*> B<--critical-*> @@ -115,7 +115,7 @@ Display traffic perfdata to be compatible with nagvis widget. =item B<--interface> -Set the interface (number expected) ex: 1,2,... (empty means 'check all interface'). +Set the interface (number expected) ex: 1,2,... (empty means 'check all interfaces'). =item B<--name> @@ -155,11 +155,11 @@ Time in minutes before reloading cache file (default: 180). =item B<--oid-filter> -Choose OID used to filter interface (default: ifName) (values: ifDesc, ifAlias, ifName, IpAddr). +Define the OID to be used to filter interfaces (default: ifName) (values: ifDesc, ifAlias, ifName, IpAddr). =item B<--oid-display> -Choose OID used to display interface (default: ifName) (values: ifDesc, ifAlias, ifName, IpAddr). +Define the OID that will be used to name the interfaces (default: ifName) (values: ifDesc, ifAlias, ifName, IpAddr). =item B<--oid-extra-display> diff --git a/src/network/lenovo/rackswitch/snmp/mode/uptime.pm b/src/network/lenovo/rackswitch/snmp/mode/uptime.pm index 93868318e..0b292c4ab 100644 --- a/src/network/lenovo/rackswitch/snmp/mode/uptime.pm +++ b/src/network/lenovo/rackswitch/snmp/mode/uptime.pm @@ -45,11 +45,11 @@ Check system uptime. =item B<--warning-uptime> -Threshold warning. +Warning threshold. =item B<--critical-uptime> -Threshold critical. +Critical threshold. =item B<--add-sysdesc> diff --git a/src/network/libraesva/snmp/mode/interfaces.pm b/src/network/libraesva/snmp/mode/interfaces.pm index bd2ac0706..87da50f9b 100644 --- a/src/network/libraesva/snmp/mode/interfaces.pm +++ b/src/network/libraesva/snmp/mode/interfaces.pm @@ -81,12 +81,12 @@ If the expression is true, metrics are checked (Default: '%{opstatus} eq "up"'). =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{admstatus}, %{opstatus}, %{duplexstatus}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: '%{admstatus} eq "up" and %{opstatus} ne "up"'). +Define the conditions to match for the status to be CRITICAL (Default: '%{admstatus} eq "up" and %{opstatus} ne "up"'). You can use the following variables: %{admstatus}, %{opstatus}, %{duplexstatus}, %{display} =item B<--warning-*> B<--critical-*> @@ -115,7 +115,7 @@ Display traffic perfdata to be compatible with nagvis widget. =item B<--interface> -Set the interface (number expected) ex: 1,2,... (empty means 'check all interface'). +Set the interface (number expected) ex: 1,2,... (empty means 'check all interfaces'). =item B<--name> @@ -155,11 +155,11 @@ Time in minutes before reloading cache file (default: 180). =item B<--oid-filter> -Choose OID used to filter interface (default: ifName) (values: ifDesc, ifAlias, ifName, IpAddr). +Define the OID to be used to filter interfaces (default: ifName) (values: ifDesc, ifAlias, ifName, IpAddr). =item B<--oid-display> -Choose OID used to display interface (default: ifName) (values: ifDesc, ifAlias, ifName, IpAddr). +Define the OID that will be used to name the interfaces (default: ifName) (values: ifDesc, ifAlias, ifName, IpAddr). =item B<--oid-extra-display> diff --git a/src/network/libraesva/snmp/mode/load.pm b/src/network/libraesva/snmp/mode/load.pm index b76c369b5..ec4f38ca1 100644 --- a/src/network/libraesva/snmp/mode/load.pm +++ b/src/network/libraesva/snmp/mode/load.pm @@ -45,11 +45,11 @@ Check system load-average. =item B<--warning> -Threshold warning (1min,5min,15min). +Warning threshold (1min,5min,15min). =item B<--critical> -Threshold critical (1min,5min,15min). +Critical threshold (1min,5min,15min). =item B<--average> diff --git a/src/network/libraesva/snmp/mode/storage.pm b/src/network/libraesva/snmp/mode/storage.pm index 43c0158ff..ccedfe2a8 100644 --- a/src/network/libraesva/snmp/mode/storage.pm +++ b/src/network/libraesva/snmp/mode/storage.pm @@ -43,19 +43,19 @@ __END__ =item B<--warning-usage> -Threshold warning. +Warning threshold. =item B<--critical-usage> -Threshold critical. +Critical threshold. =item B<--warning-access> -Threshold warning. +Warning threshold. =item B<--critical-access> -Threshold critical. +Critical threshold. Check if storage is readOnly: --critical-access=readOnly =item B<--add-access> diff --git a/src/network/libraesva/snmp/mode/system.pm b/src/network/libraesva/snmp/mode/system.pm index b3d801b66..7fe75ebaa 100644 --- a/src/network/libraesva/snmp/mode/system.pm +++ b/src/network/libraesva/snmp/mode/system.pm @@ -171,17 +171,17 @@ Example: --filter-counters='^mail-sent$' =item B<--unknown-cluster-status> -Set unknown threshold for status (Default: ''). +Define the conditions to match for the status to be UNKNOWN (Default: ''). You can use the following variables: %{cluster_status} =item B<--warning-cluster-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{cluster_status} =item B<--critical-cluster-status> -Set critical threshold for status (Default: '%{cluster_status} =~ /error/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{cluster_status} =~ /error/i'). You can use the following variables: %{cluster_status} =item B<--warning-*> B<--critical-*> diff --git a/src/network/microsens/g6/snmp/mode/cpudetailed.pm b/src/network/microsens/g6/snmp/mode/cpudetailed.pm index 5afa0dcf7..6a1b5be5c 100644 --- a/src/network/microsens/g6/snmp/mode/cpudetailed.pm +++ b/src/network/microsens/g6/snmp/mode/cpudetailed.pm @@ -46,12 +46,12 @@ An average of all CPUs. =item B<--warning-*> -Threshold warning in percent. +Warning threshold in percent. Can be: 'user', 'nice', 'system', 'idle', 'wait', 'kernel', 'interrupt', 'softirq', 'steal', 'guest', 'guestnice'. =item B<--critical-*> -Threshold critical in percent. +Critical threshold in percent. Can be: 'user', 'nice', 'system', 'idle', 'wait', 'kernel', 'interrupt', 'softirq', 'steal', 'guest', 'guestnice'. =back diff --git a/src/network/microsens/g6/snmp/mode/interfaces.pm b/src/network/microsens/g6/snmp/mode/interfaces.pm index 5f2f20bc4..01d717d56 100644 --- a/src/network/microsens/g6/snmp/mode/interfaces.pm +++ b/src/network/microsens/g6/snmp/mode/interfaces.pm @@ -81,12 +81,12 @@ If the expression is true, metrics are checked (Default: '%{opstatus} eq "up"'). =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{admstatus}, %{opstatus}, %{duplexstatus}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: '%{admstatus} eq "up" and %{opstatus} ne "up"'). +Define the conditions to match for the status to be CRITICAL (Default: '%{admstatus} eq "up" and %{opstatus} ne "up"'). You can use the following variables: %{admstatus}, %{opstatus}, %{duplexstatus}, %{display} =item B<--warning-*> B<--critical-*> @@ -115,7 +115,7 @@ Display traffic perfdata to be compatible with nagvis widget. =item B<--interface> -Set the interface (number expected) ex: 1,2,... (empty means 'check all interface'). +Set the interface (number expected) ex: 1,2,... (empty means 'check all interfaces'). =item B<--name> @@ -155,11 +155,11 @@ Time in minutes before reloading cache file (default: 180). =item B<--oid-filter> -Choose OID used to filter interface (default: ifName) (values: ifDesc, ifAlias, ifName, IpAddr). +Define the OID to be used to filter interfaces (default: ifName) (values: ifDesc, ifAlias, ifName, IpAddr). =item B<--oid-display> -Choose OID used to display interface (default: ifName) (values: ifDesc, ifAlias, ifName, IpAddr). +Define the OID that will be used to name the interfaces (default: ifName) (values: ifDesc, ifAlias, ifName, IpAddr). =item B<--oid-extra-display> diff --git a/src/network/microsens/g6/snmp/mode/load.pm b/src/network/microsens/g6/snmp/mode/load.pm index 8e9e607dc..04bcd0900 100644 --- a/src/network/microsens/g6/snmp/mode/load.pm +++ b/src/network/microsens/g6/snmp/mode/load.pm @@ -45,11 +45,11 @@ Check system load-average. =item B<--warning> -Threshold warning (1min,5min,15min). +Warning threshold (1min,5min,15min). =item B<--critical> -Threshold critical (1min,5min,15min). +Critical threshold (1min,5min,15min). =item B<--average> diff --git a/src/network/microsens/g6/snmp/mode/sfp.pm b/src/network/microsens/g6/snmp/mode/sfp.pm index 0bbc0c24c..c47afd62d 100644 --- a/src/network/microsens/g6/snmp/mode/sfp.pm +++ b/src/network/microsens/g6/snmp/mode/sfp.pm @@ -197,12 +197,12 @@ Filter ports by index (can be a regexp). =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{status}, %{name}, %{location} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} =~ /txFailure|lossOfSignal|readError/'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} =~ /txFailure|lossOfSignal|readError/'). You can use the following variables: %{status}, %{port}, %{location} =item B<--warning-*> B<--critical-*> diff --git a/src/network/microsens/g6/snmp/mode/uptime.pm b/src/network/microsens/g6/snmp/mode/uptime.pm index 44662d839..ffb6e4db2 100644 --- a/src/network/microsens/g6/snmp/mode/uptime.pm +++ b/src/network/microsens/g6/snmp/mode/uptime.pm @@ -45,11 +45,11 @@ Check system uptime. =item B<--warning-uptime> -Threshold warning. +Warning threshold. =item B<--critical-uptime> -Threshold critical. +Critical threshold. =item B<--add-sysdesc> diff --git a/src/network/mikrotik/snmp/mode/disk.pm b/src/network/mikrotik/snmp/mode/disk.pm index 485d6f91d..9402af5e2 100644 --- a/src/network/mikrotik/snmp/mode/disk.pm +++ b/src/network/mikrotik/snmp/mode/disk.pm @@ -57,11 +57,11 @@ Check disk. =item B<--warning-usage> -Threshold warning. +Warning threshold. =item B<--critical-usage> -Threshold critical. +Critical threshold. =item B<--units> diff --git a/src/network/mikrotik/snmp/mode/firmware.pm b/src/network/mikrotik/snmp/mode/firmware.pm index fa277e5c2..efe93c324 100644 --- a/src/network/mikrotik/snmp/mode/firmware.pm +++ b/src/network/mikrotik/snmp/mode/firmware.pm @@ -100,12 +100,12 @@ Check firmware status. =item B<--warning-status> -Set warning threshold for status (Default : '%{firmware_version} ne %{software_version}'). +Define the conditions to match for the status to be WARNING (Default : '%{firmware_version} ne %{software_version}'). You can use the following variables: %{model}, %{software_version}, %{firmware_version}, %{firmware_version_update} =item B<--critical-status> -Set critical threshold for status. +Define the conditions to match for the status to be CRITICAL. You can use the following variables: %{model}, %{software_version}, %{firmware_version}, %{firmware_version_update} =back diff --git a/src/network/mikrotik/snmp/mode/interfaces.pm b/src/network/mikrotik/snmp/mode/interfaces.pm index 6b79d3115..1a5f05841 100644 --- a/src/network/mikrotik/snmp/mode/interfaces.pm +++ b/src/network/mikrotik/snmp/mode/interfaces.pm @@ -179,12 +179,12 @@ If the expression is true, metrics are checked (Default: '%{opstatus} eq "up"'). =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{admstatus}, %{opstatus}, %{duplexstatus}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: '%{admstatus} eq "up" and %{opstatus} ne "up"'). +Define the conditions to match for the status to be CRITICAL (Default: '%{admstatus} eq "up" and %{opstatus} ne "up"'). You can use the following variables: %{admstatus}, %{opstatus}, %{duplexstatus}, %{display} =item B<--warning-errors> @@ -228,7 +228,7 @@ Display traffic perfdata to be compatible with nagvis widget. =item B<--interface> -Set the interface (number expected) ex: 1,2,... (empty means 'check all interface'). +Set the interface (number expected) ex: 1,2,... (empty means 'check all interfaces'). =item B<--name> @@ -256,11 +256,11 @@ Time in minutes before reloading cache file (default: 180). =item B<--oid-filter> -Choose OID used to filter interface (default: ifName) (values: ifDesc, ifAlias, ifName, IpAddr). +Define the OID to be used to filter interfaces (default: ifName) (values: ifDesc, ifAlias, ifName, IpAddr). =item B<--oid-display> -Choose OID used to display interface (default: ifName) (values: ifDesc, ifAlias, ifName, IpAddr). +Define the OID that will be used to name the interfaces (default: ifName) (values: ifDesc, ifAlias, ifName, IpAddr). =item B<--oid-extra-display> diff --git a/src/network/mikrotik/snmp/mode/memory.pm b/src/network/mikrotik/snmp/mode/memory.pm index 4fa96daf5..691ec1990 100644 --- a/src/network/mikrotik/snmp/mode/memory.pm +++ b/src/network/mikrotik/snmp/mode/memory.pm @@ -57,11 +57,11 @@ Check memory. =item B<--warning-usage> -Threshold warning. +Warning threshold. =item B<--critical-usage> -Threshold critical. +Critical threshold. =item B<--units> diff --git a/src/network/mitel/3300icp/snmp/mode/licenses.pm b/src/network/mitel/3300icp/snmp/mode/licenses.pm index 3aa2bb529..af8b9e6a1 100644 --- a/src/network/mitel/3300icp/snmp/mode/licenses.pm +++ b/src/network/mitel/3300icp/snmp/mode/licenses.pm @@ -141,12 +141,12 @@ Check call server licenses used versus purchased. =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'user' (%), 'device' (%). =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'user' (%), 'device' (%). =back diff --git a/src/network/mitel/3300icp/snmp/mode/zapbandwidth.pm b/src/network/mitel/3300icp/snmp/mode/zapbandwidth.pm index ba3b6bca4..755ce35ff 100644 --- a/src/network/mitel/3300icp/snmp/mode/zapbandwidth.pm +++ b/src/network/mitel/3300icp/snmp/mode/zapbandwidth.pm @@ -161,11 +161,11 @@ Filter by zone access points name (can be a regexp). =item B<--warning-usage> -Threshold warning in percentage of bandwidth limit. +Warning threshold in percentage of bandwidth limit. =item B<--critical-usage> -Threshold critical in percentage of bandwidth limit. +Critical threshold in percentage of bandwidth limit. =back diff --git a/src/network/mitel/3300icp/snmp/mode/zapcalls.pm b/src/network/mitel/3300icp/snmp/mode/zapcalls.pm index 51c0c88c7..48d723b66 100644 --- a/src/network/mitel/3300icp/snmp/mode/zapcalls.pm +++ b/src/network/mitel/3300icp/snmp/mode/zapcalls.pm @@ -152,12 +152,12 @@ Filter by zone access points name (can be a regexp). =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'admitted', 'rejected', 'rejection-ratio' (%). =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'admitted', 'rejected', 'rejection-ratio' (%). =back diff --git a/src/network/mrv/optiswitch/snmp/mode/interfaces.pm b/src/network/mrv/optiswitch/snmp/mode/interfaces.pm index df72c2b3c..04979d9fb 100644 --- a/src/network/mrv/optiswitch/snmp/mode/interfaces.pm +++ b/src/network/mrv/optiswitch/snmp/mode/interfaces.pm @@ -462,12 +462,12 @@ If the expression is true, metrics are checked (Default: '%{opstatus} eq "enable =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{linkstatus}, %{admstatus}, %{opstatus}, %{duplexstatus}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: '%{admstatus} eq "enable" and %{opstatus} eq "enabled" and %{linkstatus} ne "true"'). +Define the conditions to match for the status to be CRITICAL (Default: '%{admstatus} eq "enable" and %{opstatus} eq "enabled" and %{linkstatus} ne "true"'). You can use the following variables: %{linkstatus}, %{admstatus}, %{opstatus}, %{duplexstatus}, %{display} =item B<--warning-*> B<--critical-*> @@ -495,7 +495,7 @@ Display traffic perfdata to be compatible with nagvis widget. =item B<--interface> -Set the interface (number expected) ex: 1,2,... (empty means 'check all interface'). +Set the interface (number expected) ex: 1,2,... (empty means 'check all interfaces'). =item B<--name> @@ -519,11 +519,11 @@ Time in minutes before reloading cache file (default: 180). =item B<--oid-filter> -Choose OID used to filter interface (default: ifName) (values: ifDesc, ifAlias, ifName). +Define the OID to be used to filter interfaces (default: ifName) (values: ifDesc, ifAlias, ifName). =item B<--oid-display> -Choose OID used to display interface (default: ifName) (values: ifDesc, ifAlias, ifName). +Define the OID that will be used to name the interfaces (default: ifName) (values: ifDesc, ifAlias, ifName). =item B<--oid-extra-display> diff --git a/src/network/mrv/optiswitch/snmp/mode/listinterfaces.pm b/src/network/mrv/optiswitch/snmp/mode/listinterfaces.pm index 2552de63b..3649f9ca8 100644 --- a/src/network/mrv/optiswitch/snmp/mode/listinterfaces.pm +++ b/src/network/mrv/optiswitch/snmp/mode/listinterfaces.pm @@ -77,7 +77,7 @@ __END__ =item B<--interface> -Set the interface (number expected) ex: 1,2,... (empty means 'check all interface'). +Set the interface (number expected) ex: 1,2,... (empty means 'check all interfaces'). =item B<--name> @@ -101,11 +101,11 @@ Display interfaces with AdminStatus 'enabled'. =item B<--oid-filter> -Choose OID used to filter interface (default: atrConnCepGenDescr) (values: atrConnIngDescr, atrConnCepGenDescr). +Define the OID to be used to filter interfaces (default: atrConnCepGenDescr) (values: atrConnIngDescr, atrConnCepGenDescr). =item B<--oid-display> -Choose OID used to display interface (default: atrConnCepGenDescr) (values: atrConnIngDescr, atrConnCepGenDescr). +Define the OID that will be used to name the interfaces (default: atrConnCepGenDescr) (values: atrConnIngDescr, atrConnCepGenDescr). =item B<--display-transform-src> diff --git a/src/network/mrv/optiswitch/snmp/mode/memory.pm b/src/network/mrv/optiswitch/snmp/mode/memory.pm index 818b3a236..c32d4f3c1 100644 --- a/src/network/mrv/optiswitch/snmp/mode/memory.pm +++ b/src/network/mrv/optiswitch/snmp/mode/memory.pm @@ -77,13 +77,13 @@ Check swap also. =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'usage', 'swap', 'buffer' (absolute), 'cached' (absolute), 'shared' (absolute). =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'usage', 'swap', 'buffer' (absolute), 'cached' (absolute), 'shared' (absolute). diff --git a/src/network/netgear/mseries/snmp/mode/cpu.pm b/src/network/netgear/mseries/snmp/mode/cpu.pm index 130363f7c..8f2e60b72 100644 --- a/src/network/netgear/mseries/snmp/mode/cpu.pm +++ b/src/network/netgear/mseries/snmp/mode/cpu.pm @@ -109,12 +109,12 @@ Example: --filter-counters='5m' =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: '5s', '1m', '5m'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: '5s', '1m', '5m'. =back diff --git a/src/network/netgear/mseries/snmp/mode/memory.pm b/src/network/netgear/mseries/snmp/mode/memory.pm index 27c1938b0..570520f1c 100644 --- a/src/network/netgear/mseries/snmp/mode/memory.pm +++ b/src/network/netgear/mseries/snmp/mode/memory.pm @@ -126,11 +126,11 @@ Check memory usage. =item B<--warning-usage> -Threshold warning (in percent). +Warning threshold (in percent). =item B<--critical-usage> -Threshold critical (in percent). +Critical threshold (in percent). =back diff --git a/src/network/netgear/sseries/snmp/mode/interfaces.pm b/src/network/netgear/sseries/snmp/mode/interfaces.pm index 57bd7161d..d6e6b13d3 100644 --- a/src/network/netgear/sseries/snmp/mode/interfaces.pm +++ b/src/network/netgear/sseries/snmp/mode/interfaces.pm @@ -81,12 +81,12 @@ If the expression is true, metrics are checked (Default: '%{opstatus} eq "up"'). =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{admstatus}, %{opstatus}, %{duplexstatus}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: '%{admstatus} eq "up" and %{opstatus} ne "up"'). +Define the conditions to match for the status to be CRITICAL (Default: '%{admstatus} eq "up" and %{opstatus} ne "up"'). You can use the following variables: %{admstatus}, %{opstatus}, %{duplexstatus}, %{display} =item B<--warning-*> B<--critical-*> @@ -115,7 +115,7 @@ Display traffic perfdata to be compatible with nagvis widget. =item B<--interface> -Set the interface (number expected) ex: 1,2,... (empty means 'check all interface'). +Set the interface (number expected) ex: 1,2,... (empty means 'check all interfaces'). =item B<--name> @@ -155,11 +155,11 @@ Time in minutes before reloading cache file (default: 180). =item B<--oid-filter> -Choose OID used to filter interface (default: ifName) (values: ifDesc, ifAlias, ifName, IpAddr). +Define the OID to be used to filter interfaces (default: ifName) (values: ifDesc, ifAlias, ifName, IpAddr). =item B<--oid-display> -Choose OID used to display interface (default: ifName) (values: ifDesc, ifAlias, ifName, IpAddr). +Define the OID that will be used to name the interfaces (default: ifName) (values: ifDesc, ifAlias, ifName, IpAddr). =item B<--oid-extra-display> diff --git a/src/network/nokia/timos/snmp/mode/bgpusage.pm b/src/network/nokia/timos/snmp/mode/bgpusage.pm index 9df68ad9b..fd73bf701 100644 --- a/src/network/nokia/timos/snmp/mode/bgpusage.pm +++ b/src/network/nokia/timos/snmp/mode/bgpusage.pm @@ -192,22 +192,22 @@ Check BGP usage. =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'active-prefixes', 'sent-prefixes', 'received-prefixes'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'active-prefixes', 'sent-prefixes', 'received-prefixes'. =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{display}, %{state} =item B<--critical-status> -Set critical threshold for status (Default: '%{state} =~ /outOfService/') +Define the conditions to match for the status to be CRITICAL (Default: '%{state} =~ /outOfService/') You can use the following variables: %{display}, %{state} =item B<--filter-name> diff --git a/src/network/nokia/timos/snmp/mode/cpu.pm b/src/network/nokia/timos/snmp/mode/cpu.pm index 528889b2b..413f17738 100644 --- a/src/network/nokia/timos/snmp/mode/cpu.pm +++ b/src/network/nokia/timos/snmp/mode/cpu.pm @@ -84,11 +84,11 @@ Check CPU usage. =item B<--warning-usage> -Threshold warning. +Warning threshold. =item B<--critical-usage> -Threshold critical. +Critical threshold. =back diff --git a/src/network/nokia/timos/snmp/mode/isisusage.pm b/src/network/nokia/timos/snmp/mode/isisusage.pm index dc3adb676..29ae4c3d5 100644 --- a/src/network/nokia/timos/snmp/mode/isisusage.pm +++ b/src/network/nokia/timos/snmp/mode/isisusage.pm @@ -201,22 +201,22 @@ Check IS-IS usage. =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'total-int-inservice', 'total-int-outservice'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'total-int-inservice', 'total-int-outservice'. =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{display}, %{oper_state}, %{admin_state}. =item B<--critical-status> -Set critical threshold for status (Default: '%{admin_state} eq "inService" and %{oper_state} !~ /inService|transition/'). +Define the conditions to match for the status to be CRITICAL (Default: '%{admin_state} eq "inService" and %{oper_state} !~ /inService|transition/'). You can use the following variables: %{display}, %{oper_state}, %{admin_state}. =item B<--filter-name> diff --git a/src/network/nokia/timos/snmp/mode/l2tpusage.pm b/src/network/nokia/timos/snmp/mode/l2tpusage.pm index 9adea3f3f..93291f17f 100644 --- a/src/network/nokia/timos/snmp/mode/l2tpusage.pm +++ b/src/network/nokia/timos/snmp/mode/l2tpusage.pm @@ -286,24 +286,24 @@ Check L2TP usage. =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'vrtr-tunnel-total', 'vrtr-tunnel-active-sessions', 'vrtr-tunnel-total-sessions', 'peer-tunnel-total', 'peer-tunnel-active-sessions', 'peer-tunnel-total-sessions'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'vrtr-tunnel-total', 'vrtr-tunnel-active-sessions', 'vrtr-tunnel-total-sessions', 'peer-tunnel-total', 'peer-tunnel-active-sessions', 'peer-tunnel-total-sessions'. =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{display}, %{state} =item B<--critical-status> -Set critical threshold for status. +Define the conditions to match for the status to be CRITICAL. You can use the following variables: %{display}, %{state} =item B<--filter-vrtr-name> diff --git a/src/network/nokia/timos/snmp/mode/ldpusage.pm b/src/network/nokia/timos/snmp/mode/ldpusage.pm index 54fd1a2d8..1dad9b38c 100644 --- a/src/network/nokia/timos/snmp/mode/ldpusage.pm +++ b/src/network/nokia/timos/snmp/mode/ldpusage.pm @@ -210,24 +210,24 @@ Check LDP usage. =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'ipv4-oper-down-events', 'ipv4-active-sessions', 'ipv4-active-link-adj', 'ipv4-active-target-adj'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'ipv4-oper-down-events', 'ipv4-active-sessions', 'ipv4-active-link-adj', 'ipv4-active-target-adj'. =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{ipv4_oper_state}, %{admin_state}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: '%{admin_state} eq "inService" and %{ipv4_oper_state} !~ /inService|transition/'). +Define the conditions to match for the status to be CRITICAL (Default: '%{admin_state} eq "inService" and %{ipv4_oper_state} !~ /inService|transition/'). You can use the following variables: %{ipv4_oper_state}, %{admin_state}, %{display} =item B<--filter-name> diff --git a/src/network/nokia/timos/snmp/mode/memory.pm b/src/network/nokia/timos/snmp/mode/memory.pm index 53b882ea6..4d916ffab 100644 --- a/src/network/nokia/timos/snmp/mode/memory.pm +++ b/src/network/nokia/timos/snmp/mode/memory.pm @@ -129,11 +129,11 @@ Check memory usage. =item B<--warning-usage> -Threshold warning (in percent). +Warning threshold (in percent). =item B<--critical-usage> -Threshold critical (in percent). +Critical threshold (in percent). =back diff --git a/src/network/nokia/timos/snmp/mode/sapusage.pm b/src/network/nokia/timos/snmp/mode/sapusage.pm index febaa64d8..70e3ebe8d 100644 --- a/src/network/nokia/timos/snmp/mode/sapusage.pm +++ b/src/network/nokia/timos/snmp/mode/sapusage.pm @@ -217,22 +217,22 @@ Check service access point usage. =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{status}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: '%{admin_state} eq "up" and %{oper_state} !~ /up/'). +Define the conditions to match for the status to be CRITICAL (Default: '%{admin_state} eq "up" and %{oper_state} !~ /up/'). You can use the following variables: %{status}, %{display} =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'traffic-in-above-cir', 'traffic-in-below-cir', 'traffic-out-above-cir', 'traffic-out-below-cir'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'traffic-in-above-cir', 'traffic-in-below-cir', 'traffic-out-above-cir', 'traffic-out-below-cir'. =item B<--filter-name> diff --git a/src/network/nortel/standard/snmp/mode/interfaces.pm b/src/network/nortel/standard/snmp/mode/interfaces.pm index 419c7f70f..4e5d2651f 100644 --- a/src/network/nortel/standard/snmp/mode/interfaces.pm +++ b/src/network/nortel/standard/snmp/mode/interfaces.pm @@ -103,12 +103,12 @@ If the expression is true, metrics are checked (Default: '%{opstatus} eq "up"'). =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{admstatus}, %{opstatus}, %{duplexstatus}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: '%{admstatus} eq "up" and %{opstatus} ne "up"'). +Define the conditions to match for the status to be CRITICAL (Default: '%{admstatus} eq "up" and %{opstatus} ne "up"'). You can use the following variables: %{admstatus}, %{opstatus}, %{duplexstatus}, %{display} =item B<--warning-*> B<--critical-*> @@ -137,7 +137,7 @@ Display traffic perfdata to be compatible with nagvis widget. =item B<--interface> -Set the interface (number expected) ex: 1,2,... (empty means 'check all interface'). +Set the interface (number expected) ex: 1,2,... (empty means 'check all interfaces'). =item B<--name> @@ -177,11 +177,11 @@ Time in minutes before reloading cache file (default: 180). =item B<--oid-filter> -Choose OID used to filter interface (default: ifName) (values: ifDesc, ifAlias, ifName, IpAddr). +Define the OID to be used to filter interfaces (default: ifName) (values: ifDesc, ifAlias, ifName, IpAddr). =item B<--oid-display> -Choose OID used to display interface (default: ifName) (values: ifDesc, ifAlias, ifName, IpAddr). +Define the OID that will be used to name the interfaces (default: ifName) (values: ifDesc, ifAlias, ifName, IpAddr). =item B<--oid-extra-display> diff --git a/src/network/nortel/standard/snmp/mode/stack.pm b/src/network/nortel/standard/snmp/mode/stack.pm index e87a91a49..c8427e1f7 100644 --- a/src/network/nortel/standard/snmp/mode/stack.pm +++ b/src/network/nortel/standard/snmp/mode/stack.pm @@ -217,17 +217,17 @@ Check stack units. =item B<--unknown-unit-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{operState}, %{adminState}, %{serial} =item B<--warning-unit-status> -Set warning threshold for status (Default: '%{adminState} eq "enable" && %{operState} =~ /nonFatalErr|warning/i'). +Define the conditions to match for the status to be WARNING (Default: '%{adminState} eq "enable" && %{operState} =~ /nonFatalErr|warning/i'). You can use the following variables: %{operState}, %{adminState}, %{serial} =item B<--critical-unit-status> -Set critical threshold for status (Default: '%{adminState} eq "enable" && %{operState} =~ /fatalErr/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{adminState} eq "enable" && %{operState} =~ /fatalErr/i'). You can use the following variables: %{operState}, %{adminState}, %{serial} =item B<--unit> diff --git a/src/network/oneaccess/snmp/mode/cellsradio.pm b/src/network/oneaccess/snmp/mode/cellsradio.pm index 5fb1e3d4b..7e1743db0 100644 --- a/src/network/oneaccess/snmp/mode/cellsradio.pm +++ b/src/network/oneaccess/snmp/mode/cellsradio.pm @@ -294,17 +294,17 @@ Filter cell modules by id (IMEI or MEID). =item B<--unknown-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{simStatus}, %{signalQuality}, %{cellId}, %{operator}, %{imsi} =item B<--warning-status> -Set warning threshold for status (Default: '%{signalQuality} =~ /poor/'). +Define the conditions to match for the status to be WARNING (Default: '%{signalQuality} =~ /poor/'). You can use the following variables: %{simStatus}, %{signalQuality}, %{cellId}, %{operator}, %{imsi} =item B<--critical-status> -Set critical threshold for status (Default: '%{simStatus} eq "notPresent" || %{signalQuality} =~ /none/'). +Define the conditions to match for the status to be CRITICAL (Default: '%{simStatus} eq "notPresent" || %{signalQuality} =~ /none/'). You can use the following variables: %{simStatus}, %{signalQuality}, %{cellId}, %{operator}, %{imsi} =item B<--warning-*> B<--critical-*> diff --git a/src/network/oneaccess/snmp/mode/cpu.pm b/src/network/oneaccess/snmp/mode/cpu.pm index 4c1e973ae..f5b603d1f 100644 --- a/src/network/oneaccess/snmp/mode/cpu.pm +++ b/src/network/oneaccess/snmp/mode/cpu.pm @@ -92,11 +92,11 @@ Check cpu usage (oneaccess-sys-mib). =item B<--warning> -Threshold warning in percent. +Warning threshold in percent. =item B<--critical> -Threshold critical in percent. +Critical threshold in percent. =back diff --git a/src/network/oneaccess/snmp/mode/interfaces.pm b/src/network/oneaccess/snmp/mode/interfaces.pm index 7a4a4e7ff..0454d1d00 100644 --- a/src/network/oneaccess/snmp/mode/interfaces.pm +++ b/src/network/oneaccess/snmp/mode/interfaces.pm @@ -81,12 +81,12 @@ If the expression is true, metrics are checked (Default: '%{opstatus} eq "up"'). =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{admstatus}, %{opstatus}, %{duplexstatus}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: '%{admstatus} eq "up" and %{opstatus} ne "up"'). +Define the conditions to match for the status to be CRITICAL (Default: '%{admstatus} eq "up" and %{opstatus} ne "up"'). You can use the following variables: %{admstatus}, %{opstatus}, %{duplexstatus}, %{display} =item B<--warning-*> B<--critical-*> @@ -115,7 +115,7 @@ Display traffic perfdata to be compatible with nagvis widget. =item B<--interface> -Set the interface (number expected) ex: 1,2,... (empty means 'check all interface'). +Set the interface (number expected) ex: 1,2,... (empty means 'check all interfaces'). =item B<--name> @@ -155,11 +155,11 @@ Time in minutes before reloading cache file (default: 180). =item B<--oid-filter> -Choose OID used to filter interface (default: ifName) (values: ifDesc, ifAlias, ifName, IpAddr). +Define the OID to be used to filter interfaces (default: ifName) (values: ifDesc, ifAlias, ifName, IpAddr). =item B<--oid-display> -Choose OID used to display interface (default: ifName) (values: ifDesc, ifAlias, ifName, IpAddr). +Define the OID that will be used to name the interfaces (default: ifName) (values: ifDesc, ifAlias, ifName, IpAddr). =item B<--oid-extra-display> diff --git a/src/network/oneaccess/snmp/mode/memory.pm b/src/network/oneaccess/snmp/mode/memory.pm index 6a9a37d32..82957e4aa 100644 --- a/src/network/oneaccess/snmp/mode/memory.pm +++ b/src/network/oneaccess/snmp/mode/memory.pm @@ -108,11 +108,11 @@ Check memory usage (oneaccess-sys-mib). =item B<--warning> -Threshold warning in percent. +Warning threshold in percent. =item B<--critical> -Threshold critical in percent. +Critical threshold in percent. =back diff --git a/src/network/oneaccess/snmp/mode/rttprobes.pm b/src/network/oneaccess/snmp/mode/rttprobes.pm index 58106be5a..0fc3089fa 100644 --- a/src/network/oneaccess/snmp/mode/rttprobes.pm +++ b/src/network/oneaccess/snmp/mode/rttprobes.pm @@ -190,17 +190,17 @@ Filter probes by name. =item B<--unknown-probe-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{adminStatus}, %{status}, %{type}, %{tag} =item B<--warning-probe-estatus> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{adminStatus}, %{status}, %{type}, %{tag} =item B<--critical-probe-status> -Set critical threshold for status (Default: '%{adminStatus} eq "active" and %{status} ne "ok"'). +Define the conditions to match for the status to be CRITICAL (Default: '%{adminStatus} eq "active" and %{status} ne "ok"'). You can use the following variables: %{adminStatus}, %{status}, %{type}, %{tag} =item B<--warning-*> B<--critical-*> diff --git a/src/network/opengear/snmp/mode/cpudetailed.pm b/src/network/opengear/snmp/mode/cpudetailed.pm index 8d5d8c7ee..865ef20e0 100644 --- a/src/network/opengear/snmp/mode/cpudetailed.pm +++ b/src/network/opengear/snmp/mode/cpudetailed.pm @@ -46,12 +46,12 @@ An average of all CPUs. =item B<--warning-*> -Threshold warning in percent. +Warning threshold in percent. Can be: 'user', 'nice', 'system', 'idle', 'wait', 'kernel', 'interrupt', 'softirq', 'steal', 'guest', 'guestnice'. =item B<--critical-*> -Threshold critical in percent. +Critical threshold in percent. Can be: 'user', 'nice', 'system', 'idle', 'wait', 'kernel', 'interrupt', 'softirq', 'steal', 'guest', 'guestnice'. =back diff --git a/src/network/opengear/snmp/mode/interfaces.pm b/src/network/opengear/snmp/mode/interfaces.pm index 63cc2b8bd..d57ed2f6c 100644 --- a/src/network/opengear/snmp/mode/interfaces.pm +++ b/src/network/opengear/snmp/mode/interfaces.pm @@ -81,12 +81,12 @@ If the expression is true, metrics are checked (Default: '%{opstatus} eq "up"'). =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{admstatus}, %{opstatus}, %{duplexstatus}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: '%{admstatus} eq "up" and %{opstatus} ne "up"'). +Define the conditions to match for the status to be CRITICAL (Default: '%{admstatus} eq "up" and %{opstatus} ne "up"'). You can use the following variables: %{admstatus}, %{opstatus}, %{duplexstatus}, %{display} =item B<--warning-*> B<--critical-*> @@ -115,7 +115,7 @@ Display traffic perfdata to be compatible with nagvis widget. =item B<--interface> -Set the interface (number expected) ex: 1,2,... (empty means 'check all interface'). +Set the interface (number expected) ex: 1,2,... (empty means 'check all interfaces'). =item B<--name> @@ -155,11 +155,11 @@ Time in minutes before reloading cache file (default: 180). =item B<--oid-filter> -Choose OID used to filter interface (default: ifName) (values: ifDesc, ifAlias, ifName, IpAddr). +Define the OID to be used to filter interfaces (default: ifName) (values: ifDesc, ifAlias, ifName, IpAddr). =item B<--oid-display> -Choose OID used to display interface (default: ifName) (values: ifDesc, ifAlias, ifName, IpAddr). +Define the OID that will be used to name the interfaces (default: ifName) (values: ifDesc, ifAlias, ifName, IpAddr). =item B<--oid-extra-display> diff --git a/src/network/opengear/snmp/mode/load.pm b/src/network/opengear/snmp/mode/load.pm index a8ea84d63..035aeac94 100644 --- a/src/network/opengear/snmp/mode/load.pm +++ b/src/network/opengear/snmp/mode/load.pm @@ -45,11 +45,11 @@ Check system load-average. =item B<--warning> -Threshold warning (1min,5min,15min). +Warning threshold (1min,5min,15min). =item B<--critical> -Threshold critical (1min,5min,15min). +Critical threshold (1min,5min,15min). =item B<--average> diff --git a/src/network/opengear/snmp/mode/uptime.pm b/src/network/opengear/snmp/mode/uptime.pm index fe4cfe6ab..3a7cc7229 100644 --- a/src/network/opengear/snmp/mode/uptime.pm +++ b/src/network/opengear/snmp/mode/uptime.pm @@ -45,11 +45,11 @@ Check system uptime. =item B<--warning-uptime> -Threshold warning. +Warning threshold. =item B<--critical-uptime> -Threshold critical. +Critical threshold. =item B<--add-sysdesc> diff --git a/src/network/oracle/infiniband/snmp/mode/infinibandusage.pm b/src/network/oracle/infiniband/snmp/mode/infinibandusage.pm index ebe25c97f..e4035845e 100644 --- a/src/network/oracle/infiniband/snmp/mode/infinibandusage.pm +++ b/src/network/oracle/infiniband/snmp/mode/infinibandusage.pm @@ -354,12 +354,12 @@ You can use the following variables: %{status}, %{display} =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'in', 'out'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'in', 'out'. =back diff --git a/src/network/oracle/otd/snmp/mode/vserverusage.pm b/src/network/oracle/otd/snmp/mode/vserverusage.pm index 49edc5dc4..5d7415eb6 100644 --- a/src/network/oracle/otd/snmp/mode/vserverusage.pm +++ b/src/network/oracle/otd/snmp/mode/vserverusage.pm @@ -156,13 +156,13 @@ Filter by vserver name (can be a regexp). =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'in', 'out', 'count-request', 'count-2xx', 'count-3xx', 'count-4xx', 'count-5xx'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'in', 'out', 'count-request', 'count-2xx', 'count-3xx', 'count-4xx', 'count-5xx'. diff --git a/src/network/paloalto/snmp/mode/memory.pm b/src/network/paloalto/snmp/mode/memory.pm index ba77f9830..cc9262feb 100644 --- a/src/network/paloalto/snmp/mode/memory.pm +++ b/src/network/paloalto/snmp/mode/memory.pm @@ -51,11 +51,11 @@ Check memory. =item B<--warning-usage> -Threshold warning. +Warning threshold. =item B<--critical-usage> -Threshold critical. +Critical threshold. =item B<--units> diff --git a/src/network/paloalto/snmp/mode/panorama.pm b/src/network/paloalto/snmp/mode/panorama.pm index c3152e5de..c4e3dd909 100644 --- a/src/network/paloalto/snmp/mode/panorama.pm +++ b/src/network/paloalto/snmp/mode/panorama.pm @@ -111,12 +111,12 @@ Check panorama connection status. =item B<--warning-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{status}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} =~ /not-connected/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} =~ /not-connected/i'). You can use the following variables: %{status}, %{display} =back diff --git a/src/network/paloalto/ssh/mode/ha.pm b/src/network/paloalto/ssh/mode/ha.pm index 23537ede7..4c77a5199 100644 --- a/src/network/paloalto/ssh/mode/ha.pm +++ b/src/network/paloalto/ssh/mode/ha.pm @@ -189,47 +189,47 @@ Check high availability. =item B<--unknown-sync-status> -Set unknown threshold for status (Default: ''). +Define the conditions to match for the status to be UNKNOWN (Default: ''). Can use special variables like: %{enabled}, %{status} =item B<--warning-sync-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). Can use special variables like: %{enabled}, %{status} =item B<--critical-sync-status> -Set critical threshold for status (Default: '%{enabled} eq "yes" and %{status} ne "synchronized"'). +Define the conditions to match for the status to be CRITICAL (Default: '%{enabled} eq "yes" and %{status} ne "synchronized"'). Can use special variables like: %{enabled}, %{status} =item B<--unknown-member-status> -Set unknown threshold for status (Default: ''). +Define the conditions to match for the status to be UNKNOWN (Default: ''). Can use special variables like: %{state}, %{stateLast} =item B<--warning-member-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). Can use special variables like: %{state}, %{stateLast} =item B<--critical-member-status> -Set critical threshold for status (Default: '%{state} ne %{stateLast}'). +Define the conditions to match for the status to be CRITICAL (Default: '%{state} ne %{stateLast}'). Can use special variables like: %{state}, %{stateLast} =item B<--unknown-link-status> -Set unknown threshold for status (Default: ''). +Define the conditions to match for the status to be UNKNOWN (Default: ''). Can use special variables like: %{status}, %{display} =item B<--warning-link-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). Can use special variables like: %{status}, %{display} =item B<--critical-link-status> -Set critical threshold for status (Default: '%{status} ne "up"'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} ne "up"'). Can use special variables like: %{status}, %{display} =back diff --git a/src/network/paloalto/ssh/mode/interfaces.pm b/src/network/paloalto/ssh/mode/interfaces.pm index 308c2723a..0a897598c 100644 --- a/src/network/paloalto/ssh/mode/interfaces.pm +++ b/src/network/paloalto/ssh/mode/interfaces.pm @@ -131,17 +131,17 @@ Filter interface name (can be a regexp). =item B<--unknown-status> -Set unknown threshold for status (Default: ''). +Define the conditions to match for the status to be UNKNOWN (Default: ''). You can use the following variables: %{state}, %{type}, %{ha_state}, %{display} =item B<--warning-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{state}, %{type}, %{ha_state}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: '%{state} ne "active"'). +Define the conditions to match for the status to be CRITICAL (Default: '%{state} ne "active"'). You can use the following variables: %{state}, %{type}, %{ha_state}, %{display} =item B<--warning-*> B<--critical-*> diff --git a/src/network/paloalto/ssh/mode/ipsec.pm b/src/network/paloalto/ssh/mode/ipsec.pm index f0e764003..9ae9619fd 100644 --- a/src/network/paloalto/ssh/mode/ipsec.pm +++ b/src/network/paloalto/ssh/mode/ipsec.pm @@ -149,17 +149,17 @@ Filter tunnels by name (can be a regexp). =item B<--unknown-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{ike_phase1_state}, %{state}, %{monitor_status}, %{display}. =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{ike_phase1_state}, %{state}, %{monitor_status}, %{display}. =item B<--critical-status> -Set critical threshold for status (Default: '%{ike_phase1_state} eq "down" or %{state} ne "active"'). +Define the conditions to match for the status to be CRITICAL (Default: '%{ike_phase1_state} eq "down" or %{state} ne "active"'). You can use the following variables: %{ike_phase1_state}, %{state}, %{monitor_status}, %{display}. =item B<--warning-*> B<--critical-*> diff --git a/src/network/paloalto/ssh/mode/licenses.pm b/src/network/paloalto/ssh/mode/licenses.pm index 8444e0f26..4ff51a445 100644 --- a/src/network/paloalto/ssh/mode/licenses.pm +++ b/src/network/paloalto/ssh/mode/licenses.pm @@ -148,12 +148,12 @@ Filter license by feature (can be a regexp). =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. Can use special variables like: %{expired}, %{expiry_days}, %{feature} =item B<--critical-status> -Set critical threshold for status. (Default: '%{expired} eq "yes"'). +Define the conditions to match for the status to be CRITICAL. (Default: '%{expired} eq "yes"'). Can use special variables like: %{expired}, %{expiry_days}, %{feature} =back diff --git a/src/network/paloalto/ssh/mode/system.pm b/src/network/paloalto/ssh/mode/system.pm index 183c66e7f..4711289bd 100644 --- a/src/network/paloalto/ssh/mode/system.pm +++ b/src/network/paloalto/ssh/mode/system.pm @@ -257,12 +257,12 @@ Timezone options. Default is 'GMT'. =item B<--warning-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{oper_mode} =item B<--critical-status> -Set critical threshold for status (Default: '%{oper_mode} !~ /normal/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{oper_mode} !~ /normal/i'). You can use the following variables: %{oper_mode} =item B<--warning-*> B<--critical-*> diff --git a/src/network/peplink/balance/snmp/mode/cpu.pm b/src/network/peplink/balance/snmp/mode/cpu.pm index ef0a3d594..422326c60 100644 --- a/src/network/peplink/balance/snmp/mode/cpu.pm +++ b/src/network/peplink/balance/snmp/mode/cpu.pm @@ -87,11 +87,11 @@ Check cpu usage (PEPLINK-BALANCE-MIB). =item B<--warning> -Threshold warning in percent. +Warning threshold in percent. =item B<--critical> -Threshold critical in percent. +Critical threshold in percent. =back diff --git a/src/network/peplink/balance/snmp/mode/memory.pm b/src/network/peplink/balance/snmp/mode/memory.pm index e16f4076a..6869a2c2c 100644 --- a/src/network/peplink/balance/snmp/mode/memory.pm +++ b/src/network/peplink/balance/snmp/mode/memory.pm @@ -102,11 +102,11 @@ Check memory usage (PEPLINK-BALANCE-MIB). =item B<--warning> -Threshold warning in percent. +Warning threshold in percent. =item B<--critical> -Threshold critical in percent. +Critical threshold in percent. =back diff --git a/src/network/peplink/pepwave/snmp/mode/cpu.pm b/src/network/peplink/pepwave/snmp/mode/cpu.pm index a2a09c331..49d9439cb 100644 --- a/src/network/peplink/pepwave/snmp/mode/cpu.pm +++ b/src/network/peplink/pepwave/snmp/mode/cpu.pm @@ -78,11 +78,11 @@ Check CPU load. =item B<--warning-usage> -Threshold warning. +Warning threshold. =item B<--critical-usage> -Threshold critical. +Critical threshold. =back diff --git a/src/network/peplink/pepwave/snmp/mode/memory.pm b/src/network/peplink/pepwave/snmp/mode/memory.pm index d615620bf..4cde9bd41 100644 --- a/src/network/peplink/pepwave/snmp/mode/memory.pm +++ b/src/network/peplink/pepwave/snmp/mode/memory.pm @@ -123,11 +123,11 @@ Check memory usage. =item B<--warning-usage> -Threshold warning (in percent). +Warning threshold (in percent). =item B<--critical-usage> -Threshold critical (in percent). +Critical threshold (in percent). =back diff --git a/src/network/peplink/pepwave/snmp/mode/wanusage.pm b/src/network/peplink/pepwave/snmp/mode/wanusage.pm index 45385ff7b..4396baae1 100644 --- a/src/network/peplink/pepwave/snmp/mode/wanusage.pm +++ b/src/network/peplink/pepwave/snmp/mode/wanusage.pm @@ -195,22 +195,22 @@ Filter wan name (can be a regexp). =item B<--warning-health-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{health_status}, %{display} =item B<--critical-health-status> -Set critical threshold for status (Default: '%{health_status} =~ /fail/'). +Define the conditions to match for the status to be CRITICAL (Default: '%{health_status} =~ /fail/'). You can use the following variables: %{health_status}, %{display} =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'traffic-in', 'traffic-out'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: Can be: 'traffic-in', 'traffic-out'. =back diff --git a/src/network/perle/ids/snmp/mode/alarms.pm b/src/network/perle/ids/snmp/mode/alarms.pm index 4a7d27916..f37620e97 100644 --- a/src/network/perle/ids/snmp/mode/alarms.pm +++ b/src/network/perle/ids/snmp/mode/alarms.pm @@ -176,12 +176,12 @@ Filter by message (can be a regexp). =item B<--warning-status> -Set warning threshold for status (Default: '%{severity} =~ /minor/i') +Define the conditions to match for the status to be WARNING (Default: '%{severity} =~ /minor/i') You can use the following variables: %{severity}, %{text}, %{source}, %{since} =item B<--critical-status> -Set critical threshold for status (Default: '%{severity} =~ /critical|major/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{severity} =~ /critical|major/i'). You can use the following variables: %{severity}, %{text}, %{source}, %{since} =item B<--memory> diff --git a/src/network/polycom/rmx/snmp/mode/videoconferencingusage.pm b/src/network/polycom/rmx/snmp/mode/videoconferencingusage.pm index 8047d0f52..1a4279889 100644 --- a/src/network/polycom/rmx/snmp/mode/videoconferencingusage.pm +++ b/src/network/polycom/rmx/snmp/mode/videoconferencingusage.pm @@ -113,12 +113,12 @@ Example: --filter-counters='conferences-active' =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'calls-new', 'calls-voice-active', 'calls-video-active', 'conferences-active'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'calls-new', 'calls-voice-active', 'calls-video-active', 'conferences-active'. =back diff --git a/src/network/rad/airmux/snmp/mode/alarms.pm b/src/network/rad/airmux/snmp/mode/alarms.pm index 7f89c115a..5a279d921 100644 --- a/src/network/rad/airmux/snmp/mode/alarms.pm +++ b/src/network/rad/airmux/snmp/mode/alarms.pm @@ -170,12 +170,12 @@ Filter by message (can be a regexp). =item B<--warning-status> -Set warning threshold for status (Default: '%{severity} =~ /minor|warning/i') +Define the conditions to match for the status to be WARNING (Default: '%{severity} =~ /minor|warning/i') You can use the following variables: %{severity}, %{text}, %{source}, %{since} =item B<--critical-status> -Set critical threshold for status (Default: '%{severity} =~ /critical|major/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{severity} =~ /critical|major/i'). You can use the following variables: %{severity}, %{text}, %{source}, %{since} =item B<--memory> diff --git a/src/network/rad/airmux/snmp/mode/radiostatus.pm b/src/network/rad/airmux/snmp/mode/radiostatus.pm index 8e35609f8..9c7799545 100644 --- a/src/network/rad/airmux/snmp/mode/radiostatus.pm +++ b/src/network/rad/airmux/snmp/mode/radiostatus.pm @@ -125,12 +125,12 @@ Example: --filter-counters='rx-power' =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'tx-power', 'rx-power', 'bad-frames'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'tx-power', 'rx-power', 'bad-frames'. =back diff --git a/src/network/radware/alteon/snmp/mode/cpu.pm b/src/network/radware/alteon/snmp/mode/cpu.pm index b30148ab3..989e22d2f 100644 --- a/src/network/radware/alteon/snmp/mode/cpu.pm +++ b/src/network/radware/alteon/snmp/mode/cpu.pm @@ -224,14 +224,14 @@ Example: --filter-counters='^(64s)$' =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'mp-1s', 'mp-4s', 'mp-64s', 'sp-ga-1s', 'sp-ga-4s', 'sp-ga-64s', 'sp-ga-avg-1s', 'sp-ga-avg-4s', 'sp-ga-avg-64s'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'mp-1s', 'mp-4s', 'mp-64s', 'sp-ga-1s', 'sp-ga-4s', 'sp-ga-64s', 'sp-ga-avg-1s', 'sp-ga-avg-4s', 'sp-ga-avg-64s'. diff --git a/src/network/radware/alteon/snmp/mode/memory.pm b/src/network/radware/alteon/snmp/mode/memory.pm index 2de0bb657..6f34e3b77 100644 --- a/src/network/radware/alteon/snmp/mode/memory.pm +++ b/src/network/radware/alteon/snmp/mode/memory.pm @@ -101,11 +101,11 @@ Check MP memory usage (ALTEON-CHEETAH-SWITCH-MIB). =item B<--warning> -Threshold warning in percent. +Warning threshold in percent. =item B<--critical> -Threshold critical in percent. +Critical threshold in percent. =back diff --git a/src/network/radware/alteon/snmp/mode/vserverstatus.pm b/src/network/radware/alteon/snmp/mode/vserverstatus.pm index 63619f40a..8e59dbc82 100644 --- a/src/network/radware/alteon/snmp/mode/vserverstatus.pm +++ b/src/network/radware/alteon/snmp/mode/vserverstatus.pm @@ -195,22 +195,22 @@ Check vservers status. =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'traffic', 'total-sessions', 'current-sessions'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'traffic', 'total-sessions', 'current-sessions'. =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{state}, %{display} =item B<--critical-status> -Set critical threshold for status. +Define the conditions to match for the status to be CRITICAL. You can use the following variables: %{state}, %{display} =item B<--filter-name> diff --git a/src/network/raisecom/snmp/mode/cpu.pm b/src/network/raisecom/snmp/mode/cpu.pm index 9ea11833e..e76efd87d 100644 --- a/src/network/raisecom/snmp/mode/cpu.pm +++ b/src/network/raisecom/snmp/mode/cpu.pm @@ -155,14 +155,14 @@ Example: --filter-counters='^(1s|1m)$' =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: '1s', '5s', '1m', '10m', '2h' for standard Raisecom devices. Can be: '1s', '10m', '2h' for xPON Raisecom devices. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: '1s', '5s', '1m', '10m', '2h'. Can be: '1s', '10m', '2h' for xPON Raisecom devices. diff --git a/src/network/raisecom/snmp/mode/interfaces.pm b/src/network/raisecom/snmp/mode/interfaces.pm index a536b21dd..e07e091e0 100644 --- a/src/network/raisecom/snmp/mode/interfaces.pm +++ b/src/network/raisecom/snmp/mode/interfaces.pm @@ -81,12 +81,12 @@ If the expression is true, metrics are checked (Default: '%{opstatus} eq "up"'). =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{admstatus}, %{opstatus}, %{duplexstatus}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: '%{admstatus} eq "up" and %{opstatus} ne "up"'). +Define the conditions to match for the status to be CRITICAL (Default: '%{admstatus} eq "up" and %{opstatus} ne "up"'). You can use the following variables: %{admstatus}, %{opstatus}, %{duplexstatus}, %{display} =item B<--warning-*> B<--critical-*> @@ -115,7 +115,7 @@ Display traffic perfdata to be compatible with nagvis widget. =item B<--interface> -Set the interface (number expected) ex: 1,2,... (empty means 'check all interface'). +Set the interface (number expected) ex: 1,2,... (empty means 'check all interfaces'). =item B<--name> @@ -155,11 +155,11 @@ Time in minutes before reloading cache file (default: 180). =item B<--oid-filter> -Choose OID used to filter interface (default: ifName) (values: ifDesc, ifAlias, ifName, IpAddr). +Define the OID to be used to filter interfaces (default: ifName) (values: ifDesc, ifAlias, ifName, IpAddr). =item B<--oid-display> -Choose OID used to display interface (default: ifName) (values: ifDesc, ifAlias, ifName, IpAddr). +Define the OID that will be used to name the interfaces (default: ifName) (values: ifDesc, ifAlias, ifName, IpAddr). =item B<--oid-extra-display> diff --git a/src/network/redback/snmp/mode/cpu.pm b/src/network/redback/snmp/mode/cpu.pm index 45faaff13..7ee22e24f 100644 --- a/src/network/redback/snmp/mode/cpu.pm +++ b/src/network/redback/snmp/mode/cpu.pm @@ -147,11 +147,11 @@ Check cpu usage (RBN-CPU-METER-MIB). =item B<--warning> -Threshold warning in percent (5s,1min,5min). +Warning threshold in percent (5s,1min,5min). =item B<--critical> -Threshold critical in percent (5s,1min,5min). +Critical threshold in percent (5s,1min,5min). =back diff --git a/src/network/redback/snmp/mode/disk.pm b/src/network/redback/snmp/mode/disk.pm index 00d50b20d..f1cb1aa59 100644 --- a/src/network/redback/snmp/mode/disk.pm +++ b/src/network/redback/snmp/mode/disk.pm @@ -157,11 +157,11 @@ Check disk usages. =item B<--warning-usage> -Threshold warning (in percent). +Warning threshold (in percent). =item B<--critical-usage> -Threshold critical (in percent). +Critical threshold (in percent). =item B<--filter-name> diff --git a/src/network/redback/snmp/mode/memory.pm b/src/network/redback/snmp/mode/memory.pm index b0462d8f8..bbb4ea19e 100644 --- a/src/network/redback/snmp/mode/memory.pm +++ b/src/network/redback/snmp/mode/memory.pm @@ -154,11 +154,11 @@ Check memory usages. =item B<--warning-usage> -Threshold warning (in percent). +Warning threshold (in percent). =item B<--critical-usage> -Threshold critical (in percent). +Critical threshold (in percent). =item B<--filter-name> diff --git a/src/network/riverbed/interceptor/snmp/mode/neighborconnections.pm b/src/network/riverbed/interceptor/snmp/mode/neighborconnections.pm index 5c8fe6cc6..aa09971c8 100644 --- a/src/network/riverbed/interceptor/snmp/mode/neighborconnections.pm +++ b/src/network/riverbed/interceptor/snmp/mode/neighborconnections.pm @@ -113,11 +113,11 @@ Check neighbor optimized connections count. =item B<--warning-connection> -Threshold warning. +Warning threshold. =item B<--critical-connection> -Threshold critical. +Critical threshold. =back diff --git a/src/network/ruckus/ap/snmp/mode/cpu.pm b/src/network/ruckus/ap/snmp/mode/cpu.pm index f34599caa..705f9a610 100644 --- a/src/network/ruckus/ap/snmp/mode/cpu.pm +++ b/src/network/ruckus/ap/snmp/mode/cpu.pm @@ -85,11 +85,11 @@ Check CPU usage. =item B<--warning-usage> -Threshold warning. +Warning threshold. =item B<--critical-usage> -Threshold critical. +Critical threshold. =back diff --git a/src/network/ruckus/ap/snmp/mode/memory.pm b/src/network/ruckus/ap/snmp/mode/memory.pm index b023de885..7d29d3bf7 100644 --- a/src/network/ruckus/ap/snmp/mode/memory.pm +++ b/src/network/ruckus/ap/snmp/mode/memory.pm @@ -138,11 +138,11 @@ Check memory usage. =item B<--warning-usage> -Threshold warning (in percent). +Warning threshold (in percent). =item B<--critical-usage> -Threshold critical (in percent). +Critical threshold (in percent). =back diff --git a/src/network/ruckus/ap/snmp/mode/users.pm b/src/network/ruckus/ap/snmp/mode/users.pm index dc7234626..47eb7ba83 100644 --- a/src/network/ruckus/ap/snmp/mode/users.pm +++ b/src/network/ruckus/ap/snmp/mode/users.pm @@ -193,12 +193,12 @@ Example: --filter-counters='^total$' =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'total', 'ssid'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'total', 'ssid'. =item B<--filter-ssid> diff --git a/src/network/ruckus/scg/snmp/mode/apstatus.pm b/src/network/ruckus/scg/snmp/mode/apstatus.pm index cdbe9bbd8..550b8f8dd 100644 --- a/src/network/ruckus/scg/snmp/mode/apstatus.pm +++ b/src/network/ruckus/scg/snmp/mode/apstatus.pm @@ -155,12 +155,12 @@ Filter by AP name (can be a regexp). =item B<--warning-status> -Set warning threshold for status (Default: '%{configuration_status} !~ /^Up-to-date$/i'). +Define the conditions to match for the status to be WARNING (Default: '%{configuration_status} !~ /^Up-to-date$/i'). You can use the following variables: %{connection_status}, %{registration_status}, %{configuration_status}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: '%{connection_status} =~ /^Disconnect$/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{connection_status} =~ /^Disconnect$/i'). You can use the following variables: %{connection_status}, %{registration_status}, %{configuration_status}, %{display} =back diff --git a/src/network/ruckus/scg/snmp/mode/apusage.pm b/src/network/ruckus/scg/snmp/mode/apusage.pm index 817ec06fb..59569f779 100644 --- a/src/network/ruckus/scg/snmp/mode/apusage.pm +++ b/src/network/ruckus/scg/snmp/mode/apusage.pm @@ -158,12 +158,12 @@ Filter by AP name (can be a regexp). =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'users-count', 'traffic-in', 'traffic-out'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'users-count', 'traffic-in', 'traffic-out'. =back diff --git a/src/network/ruckus/scg/snmp/mode/ssidusage.pm b/src/network/ruckus/scg/snmp/mode/ssidusage.pm index 70ea86e26..5a5d1e804 100644 --- a/src/network/ruckus/scg/snmp/mode/ssidusage.pm +++ b/src/network/ruckus/scg/snmp/mode/ssidusage.pm @@ -158,12 +158,12 @@ Filter by SSID name (can be a regexp). =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'users-count', 'traffic-in', 'traffic-out'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'users-count', 'traffic-in', 'traffic-out'. =back diff --git a/src/network/ruckus/scg/snmp/mode/systemstats.pm b/src/network/ruckus/scg/snmp/mode/systemstats.pm index d21301516..98647e7f1 100644 --- a/src/network/ruckus/scg/snmp/mode/systemstats.pm +++ b/src/network/ruckus/scg/snmp/mode/systemstats.pm @@ -190,14 +190,14 @@ Check system statistics. =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'aps-count', 'users-count', 'total-traffic-in', 'total-traffic-out', 'total-packets-in', 'total-mcast-packets-in', 'total-packets-out', 'total-mcast-packets-out', 'total-fail-packets-in', 'total-retry-packets-out'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'aps-count', 'users-count', 'total-traffic-in', 'total-traffic-out', 'total-packets-in', 'total-mcast-packets-in', 'total-packets-out', 'total-mcast-packets-out', 'total-fail-packets-in', 'total-retry-packets-out'. diff --git a/src/network/ruckus/smartzone/snmp/mode/accesspoints.pm b/src/network/ruckus/smartzone/snmp/mode/accesspoints.pm index eba3318ca..1438feaa4 100644 --- a/src/network/ruckus/smartzone/snmp/mode/accesspoints.pm +++ b/src/network/ruckus/smartzone/snmp/mode/accesspoints.pm @@ -220,17 +220,17 @@ Filter by access point name (can be a regexp). =item B<--unknown-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{config_status}, %{connection_status}, %{registration_status} =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{config_status}, %{connection_status}, %{registration_status} =item B<--critical-status> -Set critical threshold for status. +Define the conditions to match for the status to be CRITICAL. You can use the following variables: %{config_status}, %{connection_status}, %{registration_status} =item B<--warning-*> B<--critical-*> diff --git a/src/network/ruckus/zonedirector/snmp/mode/accesspoints.pm b/src/network/ruckus/zonedirector/snmp/mode/accesspoints.pm index 69f295892..ab43360bc 100644 --- a/src/network/ruckus/zonedirector/snmp/mode/accesspoints.pm +++ b/src/network/ruckus/zonedirector/snmp/mode/accesspoints.pm @@ -302,17 +302,17 @@ Filter by access point name (can be a regexp). =item B<--unknown-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{zd_connection_status} =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{zd_connection_status} =item B<--critical-status> -Set critical threshold for status. +Define the conditions to match for the status to be CRITICAL. You can use the following variables: %{zd_connection_status} =item B<--warning-*> B<--critical-*> diff --git a/src/network/ruckus/zonedirector/snmp/mode/system.pm b/src/network/ruckus/zonedirector/snmp/mode/system.pm index 0e7ccea65..6cc03a02b 100644 --- a/src/network/ruckus/zonedirector/snmp/mode/system.pm +++ b/src/network/ruckus/zonedirector/snmp/mode/system.pm @@ -263,17 +263,17 @@ Check system. =item B<--unknown-status> -Set unknown threshold for status (Default: ''). +Define the conditions to match for the status to be UNKNOWN (Default: ''). You can use the following variables: %{system_status}, %{peer_connected_status} =item B<--warning-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{system_status}, %{peer_connected_status} =item B<--critical-status> -Set critical threshold for status. +Define the conditions to match for the status to be CRITICAL. You can use the following variables: %{system_status}, %{peer_connected_status} =item B<--warning-*> B<--critical-*> diff --git a/src/network/ruggedcom/mode/memory.pm b/src/network/ruggedcom/mode/memory.pm index c3187009d..38fae5b65 100644 --- a/src/network/ruggedcom/mode/memory.pm +++ b/src/network/ruggedcom/mode/memory.pm @@ -97,11 +97,11 @@ Check memory usage (RUGGEDCOM-SYS-INFO). =item B<--warning> -Threshold warning in percent. +Warning threshold in percent. =item B<--critical> -Threshold critical in percent. +Critical threshold in percent. =back diff --git a/src/network/ruggedcom/mode/temperature.pm b/src/network/ruggedcom/mode/temperature.pm index 24ba6d800..8ead47fd8 100644 --- a/src/network/ruggedcom/mode/temperature.pm +++ b/src/network/ruggedcom/mode/temperature.pm @@ -90,11 +90,11 @@ Check temperature (RUGGEDCOM-SYS-INFO). =item B<--warning> -Threshold warning in celsius degrees. +Warning threshold in celsius degrees. =item B<--critical> -Threshold critical in celsius degrees. +Critical threshold in celsius degrees. =back diff --git a/src/network/securactive/mode/bca.pm b/src/network/securactive/mode/bca.pm index d09c48c6c..001554edb 100644 --- a/src/network/securactive/mode/bca.pm +++ b/src/network/securactive/mode/bca.pm @@ -187,12 +187,12 @@ Check BCA status. =item B<--warning> -Threshold warning on EURT (End User Response Time). +Warning threshold on EURT (End User Response Time). Permits to add another threshold than snmp. =item B<--critical> -Threshold critical on EURT (End User Response Time). +Critical threshold on EURT (End User Response Time). Permits to add another threshold than snmp. =item B<--name> diff --git a/src/network/silverpeak/snmp/mode/alarms.pm b/src/network/silverpeak/snmp/mode/alarms.pm index 369979236..f6f9f0cf9 100644 --- a/src/network/silverpeak/snmp/mode/alarms.pm +++ b/src/network/silverpeak/snmp/mode/alarms.pm @@ -205,12 +205,12 @@ Filter by message (can be a regexp). =item B<--warning-status> -Set warning threshold for status (Default: '%{severity} =~ /minor|warning/i') +Define the conditions to match for the status to be WARNING (Default: '%{severity} =~ /minor|warning/i') You can use the following variables: %{severity}, %{text}, %{source}, %{since} =item B<--critical-status> -Set critical threshold for status (Default: '%{severity} =~ /critical|major/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{severity} =~ /critical|major/i'). You can use the following variables: %{severity}, %{text}, %{source}, %{since} =item B<--memory> diff --git a/src/network/silverpeak/snmp/mode/uptime.pm b/src/network/silverpeak/snmp/mode/uptime.pm index 0b40f6c6d..a166d56b7 100644 --- a/src/network/silverpeak/snmp/mode/uptime.pm +++ b/src/network/silverpeak/snmp/mode/uptime.pm @@ -194,11 +194,11 @@ Check system uptime. =item B<--warning-uptime> -Threshold warning. +Warning threshold. =item B<--critical-uptime> -Threshold critical. +Critical threshold. =item B<--add-sysdesc> diff --git a/src/network/sonicwall/snmp/mode/connections.pm b/src/network/sonicwall/snmp/mode/connections.pm index 9f49fba05..831d8e50d 100644 --- a/src/network/sonicwall/snmp/mode/connections.pm +++ b/src/network/sonicwall/snmp/mode/connections.pm @@ -93,11 +93,11 @@ Check Sonicwall connections usage =item B<--warning-usage> -Threshold warning. Usage (%) +Warning threshold. Usage (%) =item B<--critical-usage> -Threshold critical. Usage (%) +Critical threshold. Usage (%) =back diff --git a/src/network/sonicwall/snmp/mode/cpu.pm b/src/network/sonicwall/snmp/mode/cpu.pm index d9597ccac..7f8e69367 100644 --- a/src/network/sonicwall/snmp/mode/cpu.pm +++ b/src/network/sonicwall/snmp/mode/cpu.pm @@ -78,11 +78,11 @@ Check CPU usage. =item B<--warning-usage> -Threshold warning. +Warning threshold. =item B<--critical-usage> -Threshold critical. +Critical threshold. =back diff --git a/src/network/sonicwall/snmp/mode/memory.pm b/src/network/sonicwall/snmp/mode/memory.pm index 0b461c4b6..e237c52b5 100644 --- a/src/network/sonicwall/snmp/mode/memory.pm +++ b/src/network/sonicwall/snmp/mode/memory.pm @@ -78,11 +78,11 @@ Check Memory usage. =item B<--warning-usage> -Threshold warning. (percent) +Warning threshold. (percent) =item B<--critical-usage> -Threshold critical. (percent) +Critical threshold. (percent) =back diff --git a/src/network/sonicwall/snmp/mode/vpn.pm b/src/network/sonicwall/snmp/mode/vpn.pm index a01ba75e8..c00068846 100644 --- a/src/network/sonicwall/snmp/mode/vpn.pm +++ b/src/network/sonicwall/snmp/mode/vpn.pm @@ -132,12 +132,12 @@ Filter vpn name with regexp. =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'traffic-in', 'traffic-out'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'traffic-in', 'traffic-out'. =back diff --git a/src/network/sonus/sbc/snmp/mode/channels.pm b/src/network/sonus/sbc/snmp/mode/channels.pm index 7a32aff0d..a11b218ba 100644 --- a/src/network/sonus/sbc/snmp/mode/channels.pm +++ b/src/network/sonus/sbc/snmp/mode/channels.pm @@ -377,12 +377,12 @@ Filter channels by channel id (can be a regexp). =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{admstatus}, %{opstatus}, %{display} =item B<--critical-status> -Set critical threshold for status. +Define the conditions to match for the status to be CRITICAL. You can use the following variables: %{admstatus}, %{opstatus}, %{display} =item B<--warning-*> B<--critical-*> diff --git a/src/network/sonus/sbc/snmp/mode/cpudetailed.pm b/src/network/sonus/sbc/snmp/mode/cpudetailed.pm index 359d0d78b..e24a06250 100644 --- a/src/network/sonus/sbc/snmp/mode/cpudetailed.pm +++ b/src/network/sonus/sbc/snmp/mode/cpudetailed.pm @@ -46,12 +46,12 @@ An average of all CPUs. =item B<--warning-*> -Threshold warning in percent. +Warning threshold in percent. Can be: 'user', 'nice', 'system', 'idle', 'wait', 'kernel', 'interrupt', 'softirq', 'steal', 'guest', 'guestnice'. =item B<--critical-*> -Threshold critical in percent. +Critical threshold in percent. Can be: 'user', 'nice', 'system', 'idle', 'wait', 'kernel', 'interrupt', 'softirq', 'steal', 'guest', 'guestnice'. =back diff --git a/src/network/sonus/sbc/snmp/mode/dspstats.pm b/src/network/sonus/sbc/snmp/mode/dspstats.pm index 11a21da98..c40935ee6 100644 --- a/src/network/sonus/sbc/snmp/mode/dspstats.pm +++ b/src/network/sonus/sbc/snmp/mode/dspstats.pm @@ -135,12 +135,12 @@ Thresholds. Can be: 'cpu-utilization', 'channels-active'. =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{state}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: '%{state} eq "down"'). +Define the conditions to match for the status to be CRITICAL (Default: '%{state} eq "down"'). You can use the following variables: %{state}, %{display} =back diff --git a/src/network/sonus/sbc/snmp/mode/interfaces.pm b/src/network/sonus/sbc/snmp/mode/interfaces.pm index 91ad7b22e..64e41e60f 100644 --- a/src/network/sonus/sbc/snmp/mode/interfaces.pm +++ b/src/network/sonus/sbc/snmp/mode/interfaces.pm @@ -81,12 +81,12 @@ If the expression is true, metrics are checked (Default: '%{opstatus} eq "up"'). =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{admstatus}, %{opstatus}, %{duplexstatus}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: '%{admstatus} eq "up" and %{opstatus} ne "up"'). +Define the conditions to match for the status to be CRITICAL (Default: '%{admstatus} eq "up" and %{opstatus} ne "up"'). You can use the following variables: %{admstatus}, %{opstatus}, %{duplexstatus}, %{display} =item B<--warning-*> B<--critical-*> @@ -115,7 +115,7 @@ Display traffic perfdata to be compatible with nagvis widget. =item B<--interface> -Set the interface (number expected) ex: 1,2,... (empty means 'check all interface'). +Set the interface (number expected) ex: 1,2,... (empty means 'check all interfaces'). =item B<--name> @@ -155,11 +155,11 @@ Time in minutes before reloading cache file (default: 180). =item B<--oid-filter> -Choose OID used to filter interface (default: ifName) (values: ifDesc, ifAlias, ifName, IpAddr). +Define the OID to be used to filter interfaces (default: ifName) (values: ifDesc, ifAlias, ifName, IpAddr). =item B<--oid-display> -Choose OID used to display interface (default: ifName) (values: ifDesc, ifAlias, ifName, IpAddr). +Define the OID that will be used to name the interfaces (default: ifName) (values: ifDesc, ifAlias, ifName, IpAddr). =item B<--oid-extra-display> diff --git a/src/network/sonus/sbc/snmp/mode/load.pm b/src/network/sonus/sbc/snmp/mode/load.pm index de3a90ba7..a8f00a15e 100644 --- a/src/network/sonus/sbc/snmp/mode/load.pm +++ b/src/network/sonus/sbc/snmp/mode/load.pm @@ -45,11 +45,11 @@ Check system load-average. =item B<--warning> -Threshold warning (1min,5min,15min). +Warning threshold (1min,5min,15min). =item B<--critical> -Threshold critical (1min,5min,15min). +Critical threshold (1min,5min,15min). =item B<--average> diff --git a/src/network/sonus/sbc/snmp/mode/storage.pm b/src/network/sonus/sbc/snmp/mode/storage.pm index 1ddae7dff..cf60fb54b 100644 --- a/src/network/sonus/sbc/snmp/mode/storage.pm +++ b/src/network/sonus/sbc/snmp/mode/storage.pm @@ -43,19 +43,19 @@ __END__ =item B<--warning-usage> -Threshold warning. +Warning threshold. =item B<--critical-usage> -Threshold critical. +Critical threshold. =item B<--warning-access> -Threshold warning. +Warning threshold. =item B<--critical-access> -Threshold critical. +Critical threshold. Check if storage is readOnly: --critical-access=readOnly =item B<--add-access> diff --git a/src/network/stonesoft/snmp/mode/clusterstate.pm b/src/network/stonesoft/snmp/mode/clusterstate.pm index 491e61e76..23b075cd6 100644 --- a/src/network/stonesoft/snmp/mode/clusterstate.pm +++ b/src/network/stonesoft/snmp/mode/clusterstate.pm @@ -109,17 +109,17 @@ Check status of clustered node. =item B<--unknown-status> -Set unknown threshold for status (Default: '%{node_status} =~ /unknown/i'). +Define the conditions to match for the status to be UNKNOWN (Default: '%{node_status} =~ /unknown/i'). You can use the following variables: %{node_status}, %{node_member_id}. =item B<--warning-status> -Set warning threshold for status (Default: '%{node_status} =~ /lockedOnline/i'). +Define the conditions to match for the status to be WARNING (Default: '%{node_status} =~ /lockedOnline/i'). You can use the following variables: %{node_status}, %{node_member_id}. =item B<--critical-status> -Set critical threshold for status (Default: '%{node_status} =~ /^(?:offline|goingOffline|lockedOffline|goingLockedOffline|standby|goingStandby)$/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{node_status} =~ /^(?:offline|goingOffline|lockedOffline|goingLockedOffline|standby|goingStandby)$/i'). You can use the following variables: %{node_status}, %{node_member_id}. =back diff --git a/src/network/stonesoft/snmp/mode/connections.pm b/src/network/stonesoft/snmp/mode/connections.pm index ea271ebe7..91e611676 100644 --- a/src/network/stonesoft/snmp/mode/connections.pm +++ b/src/network/stonesoft/snmp/mode/connections.pm @@ -95,12 +95,12 @@ Check firewall connections. =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'connections', 'rate-connections'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'connections', 'rate-connections'. =back diff --git a/src/network/stonesoft/snmp/mode/cpu.pm b/src/network/stonesoft/snmp/mode/cpu.pm index 1443e253f..b833680c3 100644 --- a/src/network/stonesoft/snmp/mode/cpu.pm +++ b/src/network/stonesoft/snmp/mode/cpu.pm @@ -102,11 +102,11 @@ Check firewall CPUs =item B<--warning> -Threshold warning in percent. +Warning threshold in percent. =item B<--critical> -Threshold critical in percent. +Critical threshold in percent. =back diff --git a/src/network/stonesoft/snmp/mode/droppedpackets.pm b/src/network/stonesoft/snmp/mode/droppedpackets.pm index f7e03500b..ef7173b59 100644 --- a/src/network/stonesoft/snmp/mode/droppedpackets.pm +++ b/src/network/stonesoft/snmp/mode/droppedpackets.pm @@ -131,11 +131,11 @@ Check dropped packets per second by firewall. =item B<--warning> -Threshold warning for dropped packets per second. +Warning threshold for dropped packets per second. =item B<--critical> -Threshold critical for dropped packets per second. +Critical threshold for dropped packets per second. =back diff --git a/src/network/stonesoft/snmp/mode/memory.pm b/src/network/stonesoft/snmp/mode/memory.pm index a851fb207..8b402e55b 100644 --- a/src/network/stonesoft/snmp/mode/memory.pm +++ b/src/network/stonesoft/snmp/mode/memory.pm @@ -173,11 +173,11 @@ Check stonesoftFirewall memory usage (STONESOFT-FIREWALL-MIB). =item B<--warning> -Threshold warning in percent. +Warning threshold in percent. =item B<--critical> -Threshold critical in percent. +Critical threshold in percent. =item B<-swap> @@ -185,11 +185,11 @@ Check swap also. =item B<--warning-swap> -Threshold warning in percent. +Warning threshold in percent. =item B<--critical-swap> -Threshold critical in percent. +Critical threshold in percent. =item B<--no-swap> diff --git a/src/network/stonesoft/snmp/mode/rejectedpackets.pm b/src/network/stonesoft/snmp/mode/rejectedpackets.pm index bb2b97d77..2314c63ba 100644 --- a/src/network/stonesoft/snmp/mode/rejectedpackets.pm +++ b/src/network/stonesoft/snmp/mode/rejectedpackets.pm @@ -131,11 +131,11 @@ Check rejected packets per second by firewall. =item B<--warning> -Threshold warning for blocked packets per second. +Warning threshold for blocked packets per second. =item B<--critical> -Threshold critical for blocked packets per second. +Critical threshold for blocked packets per second. =back diff --git a/src/network/stonesoft/snmp/mode/storage.pm b/src/network/stonesoft/snmp/mode/storage.pm index b8058f887..e2cb5ae42 100644 --- a/src/network/stonesoft/snmp/mode/storage.pm +++ b/src/network/stonesoft/snmp/mode/storage.pm @@ -200,11 +200,11 @@ Check usage on partitions. =item B<--warning> -Threshold warning. +Warning threshold. =item B<--critical> -Threshold critical. +Critical threshold. =item B<--units> diff --git a/src/network/stormshield/api/mode/ha.pm b/src/network/stormshield/api/mode/ha.pm index 28130616e..94d7f2933 100644 --- a/src/network/stormshield/api/mode/ha.pm +++ b/src/network/stormshield/api/mode/ha.pm @@ -221,47 +221,47 @@ Check high availability. =item B<--unknown-member-state> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{state}, %{name} =item B<--warning-member-state> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{state}, %{name} =item B<--critical-member-state> -Set critical threshold for status. +Define the conditions to match for the status to be CRITICAL. You can use the following variables: %{state}, %{name} =item B<--unknown-member-link-status> -Set unknown threshold for status (Default: '%{linkStatus} =~ /unknown/i'). +Define the conditions to match for the status to be UNKNOWN (Default: '%{linkStatus} =~ /unknown/i'). You can use the following variables: %{linkStatus}, %{name} =item B<--warning-member-link-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{linkStatus}, %{name} =item B<--critical-member-link-status> -Set critical threshold for status (Default: '%{linkStatus} =~ /failed|failing/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{linkStatus} =~ /failed|failing/i'). You can use the following variables: %{linkStatus}, %{name} =item B<--unknown-member-config> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{isConfigSync}, %{name} =item B<--warning-member-config> -Set warning threshold for status (Default: '%{isConfigSync} eq "no"'). +Define the conditions to match for the status to be WARNING (Default: '%{isConfigSync} eq "no"'). You can use the following variables: %{isConfigSync}, %{name} =item B<--critical-member-config> -Set critical threshold for status. +Define the conditions to match for the status to be CRITICAL. You can use the following variables: %{isConfigSync}, %{name} =item B<--warning-*> B<--critical-*> diff --git a/src/network/stormshield/api/mode/health.pm b/src/network/stormshield/api/mode/health.pm index 486288a03..ea34078f1 100644 --- a/src/network/stormshield/api/mode/health.pm +++ b/src/network/stormshield/api/mode/health.pm @@ -135,17 +135,17 @@ Filter by firewalls by serial (can be a regexp). =item B<--unknown-service-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{health}, %{service} =item B<--warning-service-status> -Set warning threshold for status (Default: '%{health} =~ /minor/i'). +Define the conditions to match for the status to be WARNING (Default: '%{health} =~ /minor/i'). You can use the following variables: %{health}, %{service} =item B<--critical-service-status> -Set critical threshold for status (Default: '%{health} =~ /major/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{health} =~ /major/i'). You can use the following variables: %{health}, %{service} =back diff --git a/src/network/stormshield/api/mode/interfaces.pm b/src/network/stormshield/api/mode/interfaces.pm index 949267290..4bd9b88a5 100644 --- a/src/network/stormshield/api/mode/interfaces.pm +++ b/src/network/stormshield/api/mode/interfaces.pm @@ -434,17 +434,17 @@ Units of thresholds for the traffic (Default: 'percent_delta') ('percent_delta', =item B<--unknown-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{state}, %{plugged}, %{user_name}, %{real_name} =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{state}, %{plugged}, %{user_name}, %{real_name} =item B<--critical-status> -Set critical threshold for status (Default: "%{state} eq 'enabled' and %{plugged} eq 'unplugged'") +Define the conditions to match for the status to be CRITICAL (Default: "%{state} eq 'enabled' and %{plugged} eq 'unplugged'") You can use the following variables: %{state}, %{plugged}, %{user_name}, %{real_name} =item B<--warning-*> B<--critical-*> diff --git a/src/network/stormshield/snmp/mode/connections.pm b/src/network/stormshield/snmp/mode/connections.pm index e9963126c..33ab7183f 100644 --- a/src/network/stormshield/snmp/mode/connections.pm +++ b/src/network/stormshield/snmp/mode/connections.pm @@ -95,12 +95,12 @@ Check connections setup rate on Stormshield Firewall equipments. =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'tcp', 'udp' =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'tcp', 'udp' =back diff --git a/src/network/stormshield/snmp/mode/health.pm b/src/network/stormshield/snmp/mode/health.pm index 3182af885..08cc85d4b 100644 --- a/src/network/stormshield/snmp/mode/health.pm +++ b/src/network/stormshield/snmp/mode/health.pm @@ -171,17 +171,17 @@ Filter by firewall serial (can be a regexp). =item B<--unknown-service-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{health}, %{service} =item B<--warning-service-status> -Set warning threshold for status (Default: '%{health} =~ /minor/i'). +Define the conditions to match for the status to be WARNING (Default: '%{health} =~ /minor/i'). You can use the following variables: %{health}, %{service} =item B<--critical-service-status> -Set critical threshold for status (Default: '%{health} =~ /major/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{health} =~ /major/i'). You can use the following variables: %{health}, %{service} =back diff --git a/src/network/stormshield/snmp/mode/vpnstatus.pm b/src/network/stormshield/snmp/mode/vpnstatus.pm index f0e2a42e3..346037d3e 100644 --- a/src/network/stormshield/snmp/mode/vpnstatus.pm +++ b/src/network/stormshield/snmp/mode/vpnstatus.pm @@ -250,17 +250,17 @@ Filter by dst ip (regexp can be used). =item B<--unknown-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{state}, %{srcIp}, %{dstIp} =item B<--warning-status> -Set warning threshold for status (Default: '%{state} eq "dead"'). +Define the conditions to match for the status to be WARNING (Default: '%{state} eq "dead"'). You can use the following variables: %{state}, %{srcIp}, %{dstIp} =item B<--critical-status> -Set critical threshold for status. +Define the conditions to match for the status to be CRITICAL. You can use the following variables: %{state}, %{srcIp}, %{dstIp} =item B<--warning-*> B<--critical-*> diff --git a/src/network/teltonika/snmp/mode/system.pm b/src/network/teltonika/snmp/mode/system.pm index 6fb50c00f..2535b9fbf 100644 --- a/src/network/teltonika/snmp/mode/system.pm +++ b/src/network/teltonika/snmp/mode/system.pm @@ -183,12 +183,12 @@ Example: --filter-counters='status' =item B<--warning-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{sim_state}, %{pin_state}, %{net_state}, %{connection_state} =item B<--critical-status> -Set critical threshold for status (Default: '%{connection_state} !~ /connected/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{connection_state} !~ /connected/i'). You can use the following variables: %{sim_state}, %{pin_state}, %{net_state}, %{connection_state} =item B<--warning-*> B<--critical-*> diff --git a/src/network/ubiquiti/airfiber/snmp/mode/radios.pm b/src/network/ubiquiti/airfiber/snmp/mode/radios.pm index 2e2fc86d4..a2e23b821 100644 --- a/src/network/ubiquiti/airfiber/snmp/mode/radios.pm +++ b/src/network/ubiquiti/airfiber/snmp/mode/radios.pm @@ -221,17 +221,17 @@ Filter interface by name (can be a regexp). =item B<--unknown-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{enabled}, %{state}, %{name} =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{enabled}, %{state}, %{name} =item B<--critical-status> -Set critical threshold for status (Default: '%{enabled} eq "yes" and %{state} eq "down"'). +Define the conditions to match for the status to be CRITICAL (Default: '%{enabled} eq "yes" and %{state} eq "down"'). You can use the following variables: %{enabled}, %{state}, %{name} =item B<--warning-*> B<--critical-*> diff --git a/src/network/ubiquiti/unifi/snmp/mode/virtualaccesspoints.pm b/src/network/ubiquiti/unifi/snmp/mode/virtualaccesspoints.pm index 57e66fc31..380eeac0f 100644 --- a/src/network/ubiquiti/unifi/snmp/mode/virtualaccesspoints.pm +++ b/src/network/ubiquiti/unifi/snmp/mode/virtualaccesspoints.pm @@ -227,17 +227,17 @@ Filter virtual access points by SSID (can be a regexp). =item B<--unknown-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{name}, %{ssid}, %{status} =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{name}, %{ssid}, %{status} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} eq "down"'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} eq "down"'). You can use the following variables: %{name}, %{ssid}, %{status} =item B<--warning-*> B<--critical-*> diff --git a/src/network/ucopia/wlc/snmp/mode/system.pm b/src/network/ucopia/wlc/snmp/mode/system.pm index 649895ecb..855c26e87 100644 --- a/src/network/ucopia/wlc/snmp/mode/system.pm +++ b/src/network/ucopia/wlc/snmp/mode/system.pm @@ -223,22 +223,22 @@ Example: --filter-counters='service-status' =item B<--warning-service-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{status}, %{display} =item B<--critical-service-status> -Set critical threshold for status (Default: '%{status} eq "stopped"'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} eq "stopped"'). You can use the following variables: %{status}, %{display} =item B<--warning-ha-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{ha_status} =item B<--critical-ha-status> -Set critical threshold for status (Default: '%{ha_status} eq "fault"'). +Define the conditions to match for the status to be CRITICAL (Default: '%{ha_status} eq "fault"'). You can use the following variables: %{ha_status} =item B<--warning-*> B<--critical-*> diff --git a/src/network/vectra/restapi/mode/disk.pm b/src/network/vectra/restapi/mode/disk.pm index efac5d075..231db3c4a 100644 --- a/src/network/vectra/restapi/mode/disk.pm +++ b/src/network/vectra/restapi/mode/disk.pm @@ -133,17 +133,17 @@ Check disks. =item B<--unknown-raid-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{status}, %{name} =item B<--warning-raid-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{status}, %{name} =item B<--critical-raid-status> -Set critical threshold for status (Default: '%{status} !~ /ok/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} !~ /ok/i'). You can use the following variables: %{status}, %{name} =item B<--warning-*> B<--critical-*> diff --git a/src/network/vectra/restapi/mode/interfaces.pm b/src/network/vectra/restapi/mode/interfaces.pm index 5f4474fc1..a7b73b719 100644 --- a/src/network/vectra/restapi/mode/interfaces.pm +++ b/src/network/vectra/restapi/mode/interfaces.pm @@ -119,17 +119,17 @@ Filter interfaces by name (can be a regexp). =item B<--unknown-interface-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{status}, %{name} =item B<--warning-interface-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{status}, %{name} =item B<--critical-interface-status> -Set critical threshold for status (Default: '%{status} =~ /down/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} =~ /down/i'). You can use the following variables: %{status}, %{name} =item B<--warning-*> B<--critical-*> diff --git a/src/network/vectra/restapi/mode/memory.pm b/src/network/vectra/restapi/mode/memory.pm index 014eedfff..1958e3974 100644 --- a/src/network/vectra/restapi/mode/memory.pm +++ b/src/network/vectra/restapi/mode/memory.pm @@ -135,17 +135,17 @@ Check memory usage. =item B<--unknown-dimm-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{status}, %{name} =item B<--warning-dimm-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{status}, %{name} =item B<--critical-dimm-status> -Set critical threshold for status (Default: '%{status} !~ /ok/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} !~ /ok/i'). You can use the following variables: %{status}, %{name} =item B<--warning-*> B<--critical-*> diff --git a/src/network/vectra/restapi/mode/sensors.pm b/src/network/vectra/restapi/mode/sensors.pm index 2dbda1767..c6990639d 100644 --- a/src/network/vectra/restapi/mode/sensors.pm +++ b/src/network/vectra/restapi/mode/sensors.pm @@ -204,62 +204,62 @@ Filter sensors by name (can be a regexp). =item B<--unknown-sensor-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{status}, %{name} =item B<--warning-sensor-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{status}, %{name} =item B<--critical-sensor-status> -Set critical threshold for status (Default: '%{status} !~ /^paired/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} !~ /^paired/i'). You can use the following variables: %{status}, %{name} =item B<--unknown-trafficdrop-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{trafficDropStatus}, %{name} =item B<--warning-trafficdrop-status> -Set warning threshold for status (Default: '%{trafficDropStatus} =~ /warning|unknown|skip/i'). +Define the conditions to match for the status to be WARNING (Default: '%{trafficDropStatus} =~ /warning|unknown|skip/i'). You can use the following variables: %{trafficDropStatus}, %{name} =item B<--critical-trafficdrop-status> -Set critical threshold for status. +Define the conditions to match for the status to be CRITICAL. You can use the following variables: %{trafficDropStatus}, %{name} =item B<--unknown-connectivity-status> -Set warning threshold for status (Default: '%{connectivityStatus} =~ /unknown/i'). +Define the conditions to match for the status to be WARNING (Default: '%{connectivityStatus} =~ /unknown/i'). You can use the following variables: %{connectivityStatus}, %{name} =item B<--warning-connectivity-status> -Set warning threshold for status (Default: '%{connectivityStatus} =~ /warning/i'). +Define the conditions to match for the status to be WARNING (Default: '%{connectivityStatus} =~ /warning/i'). You can use the following variables: %{connectivityStatus}, %{name} =item B<--critical-connectivity-status> -Set critical threshold for status (Default: '%{connectivityStatus} =~ /critical/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{connectivityStatus} =~ /critical/i'). You can use the following variables: %{connectivityStatus}, %{name} =item B<--unknown-interface-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{status}, %{interfaceName}, %{sensorName} =item B<--warning-interface-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{status}, %{interfaceName}, %{sensorName} =item B<--critical-interface-status> -Set critical threshold for status (Default: '%{status} =~ /down/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} =~ /down/i'). You can use the following variables: %{status}, %{interfaceName}, %{sensorName} =item B<--warning-*> B<--critical-*> diff --git a/src/network/versa/director/restapi/mode/devices.pm b/src/network/versa/director/restapi/mode/devices.pm index c9e806957..a55d96e7d 100644 --- a/src/network/versa/director/restapi/mode/devices.pm +++ b/src/network/versa/director/restapi/mode/devices.pm @@ -497,17 +497,17 @@ Add path statuses count. =item B<--unknown-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{ping_status}, %{services_status}, %{sync_status}, %{controller_status}, %{path_status}, %{display} =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{ping_status}, %{service_sstatus}, %{sync_status}, %{controller_status}, %{path_status}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: '%{ping_status} ne "reachable" or %{services_status} ne "good"'). +Define the conditions to match for the status to be CRITICAL (Default: '%{ping_status} ne "reachable" or %{services_status} ne "good"'). You can use the following variables: %{ping_status}, %{services_status}, %{sync_status}, %{controller_status}, %{path_status}, %{display} =item B<--warning-*> B<--critical-*> diff --git a/src/network/versa/snmp/mode/bgppeers.pm b/src/network/versa/snmp/mode/bgppeers.pm index 941a1bbf6..4fbba4509 100644 --- a/src/network/versa/snmp/mode/bgppeers.pm +++ b/src/network/versa/snmp/mode/bgppeers.pm @@ -204,17 +204,17 @@ Critical threshold on last update (seconds) =item B<--unknown-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{local_addr}, %{remote_addr}, %{as}, %{state}, %{display} =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{local_addr}, %{remote_addr}, %{as}, %{state}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: '%{state} !~ /established/'). +Define the conditions to match for the status to be CRITICAL (Default: '%{state} !~ /established/'). You can use the following variables: %{local_addr}, %{remote_addr}, %{as}, %{state}, %{display} =back diff --git a/src/network/viptela/snmp/mode/controlconnections.pm b/src/network/viptela/snmp/mode/controlconnections.pm index 73e169650..32b066a19 100644 --- a/src/network/viptela/snmp/mode/controlconnections.pm +++ b/src/network/viptela/snmp/mode/controlconnections.pm @@ -211,17 +211,17 @@ Filter connections by type. =item B<--unknown-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{status}, %{type}, %{privateIp}, %{publicIp} =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{status}, %{type}, %{privateIp}, %{publicIp} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} !~ /up|connect/'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} !~ /up|connect/'). You can use the following variables: %{status}, %{type}, %{privateIp}, %{publicIp} =item B<--warning-*> B<--critical-*> diff --git a/src/network/viptela/snmp/mode/gretunnels.pm b/src/network/viptela/snmp/mode/gretunnels.pm index 7a96f8c39..769ac5412 100644 --- a/src/network/viptela/snmp/mode/gretunnels.pm +++ b/src/network/viptela/snmp/mode/gretunnels.pm @@ -275,17 +275,17 @@ Filter tunnels by destination ip address. =item B<--unknown-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{adminState}, %{operState}, %{sourceIp}, %{destIp} =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{adminState}, %{operState}, %{sourceIp}, %{destIp} =item B<--critical-status> -Set critical threshold for status (Default: '%{adminState} eq "up" and %{operState} ne "up"'). +Define the conditions to match for the status to be CRITICAL (Default: '%{adminState} eq "up" and %{operState} ne "up"'). You can use the following variables: %{adminState}, %{operState}, %{sourceIp}, %{destIp} =item B<--warning-*> B<--critical-*> diff --git a/src/network/viptela/snmp/mode/interfaces.pm b/src/network/viptela/snmp/mode/interfaces.pm index 768f4b8db..ed40c0ab5 100644 --- a/src/network/viptela/snmp/mode/interfaces.pm +++ b/src/network/viptela/snmp/mode/interfaces.pm @@ -81,12 +81,12 @@ If the expression is true, metrics are checked (Default: '%{opstatus} eq "up"'). =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{admstatus}, %{opstatus}, %{duplexstatus}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: '%{admstatus} eq "up" and %{opstatus} ne "up"'). +Define the conditions to match for the status to be CRITICAL (Default: '%{admstatus} eq "up" and %{opstatus} ne "up"'). You can use the following variables: %{admstatus}, %{opstatus}, %{duplexstatus}, %{display} =item B<--warning-*> B<--critical-*> @@ -115,7 +115,7 @@ Display traffic perfdata to be compatible with nagvis widget. =item B<--interface> -Set the interface (number expected) ex: 1,2,... (empty means 'check all interface'). +Set the interface (number expected) ex: 1,2,... (empty means 'check all interfaces'). =item B<--name> @@ -155,11 +155,11 @@ Time in minutes before reloading cache file (default: 180). =item B<--oid-filter> -Choose OID used to filter interface (default: ifName) (values: ifDesc, ifAlias, ifName, IpAddr). +Define the OID to be used to filter interfaces (default: ifName) (values: ifDesc, ifAlias, ifName, IpAddr). =item B<--oid-display> -Choose OID used to display interface (default: ifName) (values: ifDesc, ifAlias, ifName, IpAddr). +Define the OID that will be used to name the interfaces (default: ifName) (values: ifDesc, ifAlias, ifName, IpAddr). =item B<--oid-extra-display> diff --git a/src/network/viptela/snmp/mode/uptime.pm b/src/network/viptela/snmp/mode/uptime.pm index 44ee35226..9cc89af7d 100644 --- a/src/network/viptela/snmp/mode/uptime.pm +++ b/src/network/viptela/snmp/mode/uptime.pm @@ -45,11 +45,11 @@ Check system uptime. =item B<--warning-uptime> -Threshold warning. +Warning threshold. =item B<--critical-uptime> -Threshold critical. +Critical threshold. =item B<--add-sysdesc> diff --git a/src/network/watchguard/snmp/mode/cluster.pm b/src/network/watchguard/snmp/mode/cluster.pm index 3833d5203..30354e5dc 100644 --- a/src/network/watchguard/snmp/mode/cluster.pm +++ b/src/network/watchguard/snmp/mode/cluster.pm @@ -161,32 +161,32 @@ Check cluster. =item B<--unknown-cluster-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{state} =item B<--warning-cluster-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{state} =item B<--critical-cluster-status> -Set critical threshold for status. +Define the conditions to match for the status to be CRITICAL. You can use the following variables: %{state} =item B<--unknown-member-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{role}, %{serial} =item B<--warning-member-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{role}, %{serial} =item B<--critical-member-status> -Set critical threshold for status. +Define the conditions to match for the status to be CRITICAL. You can use the following variables: %{role}, %{serial} =item B<--warning-*> B<--critical-*> diff --git a/src/network/watchguard/snmp/mode/cpu.pm b/src/network/watchguard/snmp/mode/cpu.pm index c062ac9e2..9dbc77e6f 100644 --- a/src/network/watchguard/snmp/mode/cpu.pm +++ b/src/network/watchguard/snmp/mode/cpu.pm @@ -119,7 +119,7 @@ Example: --filter-counters='^1min|5min$' =item B<--warning-*> B<--critical-*> -Threshold warning. +Warning threshold. Can be: '1min', '5min', '15min'. =back diff --git a/src/network/watchguard/snmp/mode/policyusage.pm b/src/network/watchguard/snmp/mode/policyusage.pm index 63b3dec55..1d6b6253e 100644 --- a/src/network/watchguard/snmp/mode/policyusage.pm +++ b/src/network/watchguard/snmp/mode/policyusage.pm @@ -169,13 +169,13 @@ Filter policy name (can be a regexp). =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'total-connections', 'current-connections' 'l3-traffic' (b/s), 'l2-traffic' (b/s). =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'total-connections', 'current-connections' 'l3-traffic' (b/s), 'l2-traffic' (b/s). diff --git a/src/network/zyxel/snmp/mode/cpu.pm b/src/network/zyxel/snmp/mode/cpu.pm index 8e29405e2..f4c77f387 100644 --- a/src/network/zyxel/snmp/mode/cpu.pm +++ b/src/network/zyxel/snmp/mode/cpu.pm @@ -118,12 +118,12 @@ Example: --filter-counters='5m' =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: '5s', '1m', '5m'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: '5s', '1m', '5m'. =back diff --git a/src/network/zyxel/snmp/mode/memory.pm b/src/network/zyxel/snmp/mode/memory.pm index 44d0fc295..32e16b3e7 100644 --- a/src/network/zyxel/snmp/mode/memory.pm +++ b/src/network/zyxel/snmp/mode/memory.pm @@ -96,12 +96,12 @@ Check memory usage. =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'mem-usage' (%), 'flash-usage' (%). =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'mem-usage' (%), 'flash-usage' (%). diff --git a/src/network/zyxel/snmp/mode/sessions.pm b/src/network/zyxel/snmp/mode/sessions.pm index 02ecb94f4..3d188012b 100644 --- a/src/network/zyxel/snmp/mode/sessions.pm +++ b/src/network/zyxel/snmp/mode/sessions.pm @@ -80,11 +80,11 @@ Check sessions. =item B<--warning-usage> -Threshold warning. +Warning threshold. =item B<--critical-usage> -Threshold critical. +Critical threshold. =back diff --git a/src/network/zyxel/snmp/mode/vpnstatus.pm b/src/network/zyxel/snmp/mode/vpnstatus.pm index 72e668f40..265bdca51 100644 --- a/src/network/zyxel/snmp/mode/vpnstatus.pm +++ b/src/network/zyxel/snmp/mode/vpnstatus.pm @@ -186,22 +186,22 @@ Filter vpn name with regexp. =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'traffic-in', 'traffic-out'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'traffic-in', 'traffic-out'. =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{activestatus}, %{connectstatus}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: '%{connectstatus} eq "disconnected"'). +Define the conditions to match for the status to be CRITICAL (Default: '%{connectstatus} eq "disconnected"'). You can use the following variables: %{activestatus}, %{connectstatus}, %{display} =back diff --git a/src/os/aix/local/mode/inodes.pm b/src/os/aix/local/mode/inodes.pm index fc5ff5554..4f03b027c 100644 --- a/src/os/aix/local/mode/inodes.pm +++ b/src/os/aix/local/mode/inodes.pm @@ -123,11 +123,11 @@ Filter mountpoint (regexp can be used). =item B<--warning-usage> -Threshold warning in percent. +Warning threshold in percent. =item B<--critical-usage> -Threshold critical in percent. +Critical threshold in percent. =back diff --git a/src/os/aix/local/mode/lvsync.pm b/src/os/aix/local/mode/lvsync.pm index 5b9ff0c66..16387e340 100644 --- a/src/os/aix/local/mode/lvsync.pm +++ b/src/os/aix/local/mode/lvsync.pm @@ -145,17 +145,17 @@ Filter storage mount point (regexp can be used). =item B<--unknown-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{state}, %{lv}, %{mount}, %{type}. =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{state}, %{lv}, %{mount}, %{type}. =item B<--critical-status> -Set critical threshold for status (Default: '%{state} =~ /stale/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{state} =~ /stale/i'). You can use the following variables: %{state}, %{lv}, %{mount}, %{type}. =back diff --git a/src/os/aix/local/mode/process.pm b/src/os/aix/local/mode/process.pm index a7148c1eb..d8f149da6 100644 --- a/src/os/aix/local/mode/process.pm +++ b/src/os/aix/local/mode/process.pm @@ -204,12 +204,12 @@ You can use: 'Canceled', 'Nonexistent', 'Active', =item B<--warning-status> -Set warning threshold for status (Default: '') +Define the conditions to match for the status to be WARNING (Default: '') You can use the following variables: %{ppid}, %{state}, %{elapsed}, %{cmd}, %{args} =item B<--critical-status> -Set critical threshold for status (Default: ''). +Define the conditions to match for the status to be CRITICAL (Default: ''). You can use the following variables: %{ppid}, %{state}, %{elapsed}, %{cmd}, %{args} =item B<--warning-*> B<--critical-*> diff --git a/src/os/aix/snmp/mode/swap.pm b/src/os/aix/snmp/mode/swap.pm index a1acab5d4..20f875809 100644 --- a/src/os/aix/snmp/mode/swap.pm +++ b/src/os/aix/snmp/mode/swap.pm @@ -189,27 +189,27 @@ Check AIX swap memory. =item B<--warning-usage> -Threshold warning in percent. +Warning threshold in percent. =item B<--critical-usage> -Threshold critical in percent. +Critical threshold in percent. =item B<--warning-total-usage> -Threshold warning in percent. +Warning threshold in percent. =item B<--critical-total-usage> -Threshold critical in percent. +Critical threshold in percent. =item B<--warning-total-active> -Threshold warning total page space active. +Warning threshold total page space active. =item B<--critical-total-active> -Threshold critical total page space active. +Critical threshold total page space active. =item B<--paging-state-buggy> diff --git a/src/os/as400/connector/mode/command.pm b/src/os/as400/connector/mode/command.pm index 1c19aca4f..88c1d7b7f 100644 --- a/src/os/as400/connector/mode/command.pm +++ b/src/os/as400/connector/mode/command.pm @@ -115,17 +115,17 @@ Specify the command to execute (Required). =item B<--unknown-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{status}, %{name} =item B<--warning--status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{status}, %{name} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} =~ /failed/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} =~ /failed/i'). You can use the following variables: %{status}, %{name} =back diff --git a/src/os/as400/connector/mode/disks.pm b/src/os/as400/connector/mode/disks.pm index a1b291346..938e222fa 100644 --- a/src/os/as400/connector/mode/disks.pm +++ b/src/os/as400/connector/mode/disks.pm @@ -240,17 +240,17 @@ Filter disks by name (can be a regexp). =item B<--unknown-status> -Set unknown threshold for status (Default: '%{status} =~ /unknown/i'). +Define the conditions to match for the status to be UNKNOWN (Default: '%{status} =~ /unknown/i'). You can use the following variables: %{status}, %{name} =item B<--warning--status> -Set warning threshold for status (Default: '%{status} =~ /noReady|busy|hwFailureOk|hwFailurePerf|Protected|rebuilding/i'). +Define the conditions to match for the status to be WARNING (Default: '%{status} =~ /noReady|busy|hwFailureOk|hwFailurePerf|Protected|rebuilding/i'). You can use the following variables: %{status}, %{name} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} =~ /^(noAccess|otherDiskSubFailed|failed|notOperational|noUnitControl)$/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} =~ /^(noAccess|otherDiskSubFailed|failed|notOperational|noUnitControl)$/i'). You can use the following variables: %{status}, %{name} =item B<--warning-*> B<--critical-*> diff --git a/src/os/as400/connector/mode/jobqueues.pm b/src/os/as400/connector/mode/jobqueues.pm index 4c2b8f6af..f41db1b2b 100644 --- a/src/os/as400/connector/mode/jobqueues.pm +++ b/src/os/as400/connector/mode/jobqueues.pm @@ -205,17 +205,17 @@ JOBQ selection. Eg: --jobq="QGPL:QBASE" --jobq="QGPL:QPGMR" =item B<--unknown-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{status}, %{name}, %{library} =item B<--warning--status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{status}, %{name}, %{library} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} =~ /HELD/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} =~ /HELD/i'). You can use the following variables: %{status}, %{name}, %{library} =item B<--warning-*> B<--critical-*> diff --git a/src/os/as400/connector/mode/subsystems.pm b/src/os/as400/connector/mode/subsystems.pm index 9f6d1bf63..db4b784aa 100644 --- a/src/os/as400/connector/mode/subsystems.pm +++ b/src/os/as400/connector/mode/subsystems.pm @@ -187,17 +187,17 @@ Filter subsystems by library (can be a regexp). =item B<--unknown-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{status}, %{name}, %{library} =item B<--warning--status> -Set warning threshold for status (Default: '%{status} =~ /ending|restricted|starting/i'). +Define the conditions to match for the status to be WARNING (Default: '%{status} =~ /ending|restricted|starting/i'). You can use the following variables: %{status}, %{name}, %{library} =item B<--critical-status> -Set critical threshold for status. +Define the conditions to match for the status to be CRITICAL. You can use the following variables: %{status}, %{name}, %{library} =item B<--warning-*> B<--critical-*> diff --git a/src/os/freebsd/snmp/mode/memory.pm b/src/os/freebsd/snmp/mode/memory.pm index 58138bc8c..d482815d0 100644 --- a/src/os/freebsd/snmp/mode/memory.pm +++ b/src/os/freebsd/snmp/mode/memory.pm @@ -192,11 +192,11 @@ Check physical memory (UCD-SNMP-MIB). =item B<--warning> -Threshold warning in percent. +Warning threshold in percent. =item B<--critical> -Threshold critical in percent. +Critical threshold in percent. =item B<--swap> @@ -204,11 +204,11 @@ Check swap also. =item B<--warning-swap> -Threshold warning in percent. +Warning threshold in percent. =item B<--critical-swap> -Threshold critical in percent. +Critical threshold in percent. =item B<--no-swap> diff --git a/src/os/hpux/local/mode/inodes.pm b/src/os/hpux/local/mode/inodes.pm index 256104164..d5aa7b4ff 100644 --- a/src/os/hpux/local/mode/inodes.pm +++ b/src/os/hpux/local/mode/inodes.pm @@ -124,11 +124,11 @@ Command used: bdf -i 2>&1 =item B<--warning-usage> -Threshold warning in percent. +Warning threshold in percent. =item B<--critical-usage> -Threshold critical in percent. +Critical threshold in percent. =item B<--name> diff --git a/src/os/hpux/local/mode/storage.pm b/src/os/hpux/local/mode/storage.pm index 1238f29e2..eb9c1b396 100644 --- a/src/os/hpux/local/mode/storage.pm +++ b/src/os/hpux/local/mode/storage.pm @@ -202,11 +202,11 @@ Command used: bdf 2>&1 =item B<--warning-usage> -Threshold warning. +Warning threshold. =item B<--critical-usage> -Threshold critical. +Critical threshold. =item B<--units> diff --git a/src/os/hpux/snmp/mode/cpu.pm b/src/os/hpux/snmp/mode/cpu.pm index 15d846565..84b33e8d6 100644 --- a/src/os/hpux/snmp/mode/cpu.pm +++ b/src/os/hpux/snmp/mode/cpu.pm @@ -145,12 +145,12 @@ Example : --filter-counters='^idle$' =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'user', 'sys', 'idle', 'nice'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'user', 'sys', 'idle', 'nice'. =back diff --git a/src/os/hpux/snmp/mode/load.pm b/src/os/hpux/snmp/mode/load.pm index b6bd00d46..9e90d4125 100644 --- a/src/os/hpux/snmp/mode/load.pm +++ b/src/os/hpux/snmp/mode/load.pm @@ -127,11 +127,11 @@ Check system load-average. =item B<--warning> -Threshold warning (1min,5min,15min). +Warning threshold (1min,5min,15min). =item B<--critical> -Threshold critical (1min,5min,15min). +Critical threshold (1min,5min,15min). =back diff --git a/src/os/hpux/snmp/mode/memory.pm b/src/os/hpux/snmp/mode/memory.pm index 47da293f5..326b56987 100644 --- a/src/os/hpux/snmp/mode/memory.pm +++ b/src/os/hpux/snmp/mode/memory.pm @@ -161,12 +161,12 @@ Example : --filter-counters='^physical-usage$' =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'physical-usage' (%), 'swap-usage' (%). =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'physical-usage' (%), 'swap-usage' (%). =back diff --git a/src/os/hpux/snmp/mode/process.pm b/src/os/hpux/snmp/mode/process.pm index 84bc2a4fe..bea1af94f 100644 --- a/src/os/hpux/snmp/mode/process.pm +++ b/src/os/hpux/snmp/mode/process.pm @@ -175,11 +175,11 @@ Check system number of processes. =item B<--warning> -Threshold warning (process count). +Warning threshold (process count). =item B<--critical> -Threshold critical (process count). +Critical threshold (process count). =item B<--process-cmd> diff --git a/src/os/hpux/snmp/mode/storage.pm b/src/os/hpux/snmp/mode/storage.pm index 91d947841..291ccbe59 100644 --- a/src/os/hpux/snmp/mode/storage.pm +++ b/src/os/hpux/snmp/mode/storage.pm @@ -184,12 +184,12 @@ Filter path name (can be a regexp). =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'usage'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'usage'. =item B<--units> diff --git a/src/os/linux/local/mode/checkplugin.pm b/src/os/linux/local/mode/checkplugin.pm index cd94380c4..dd205638d 100644 --- a/src/os/linux/local/mode/checkplugin.pm +++ b/src/os/linux/local/mode/checkplugin.pm @@ -191,26 +191,26 @@ command to execute on the remote machine =item B<--unknown-status> -Set unknown threshold for status (Default: '%{exit_code} == 3'). +Define the conditions to match for the status to be UNKNOWN (Default: '%{exit_code} == 3'). You can use the following variables: %{short_message}, %{exit_code} =item B<--warning-status> -Set warning threshold for status (Default: '%{exit_code} == 1'). +Define the conditions to match for the status to be WARNING (Default: '%{exit_code} == 1'). You can use the following variables: %{short_message}, %{exit_code} =item B<--critical-status> -Set critical threshold for status (Default: '%{exit_code} == 2'). +Define the conditions to match for the status to be CRITICAL (Default: '%{exit_code} == 2'). You can use the following variables: %{short_message}, %{exit_code} =item B<--warning-time> -Threshold warning in seconds. +Warning threshold in seconds. =item B<--critical-time> -Threshold critical in seconds. +Critical threshold in seconds. =back diff --git a/src/os/linux/local/mode/connections.pm b/src/os/linux/local/mode/connections.pm index 5e4385d7c..39555213a 100644 --- a/src/os/linux/local/mode/connections.pm +++ b/src/os/linux/local/mode/connections.pm @@ -344,11 +344,11 @@ Command used: 'netstat -antu 2>&1' or 'ss -a -A tcp,udp -n 2>&1' =item B<--warning> -Threshold warning for total connections. +Warning threshold for total connections. =item B<--critical> -Threshold critical for total connections. +Critical threshold for total connections. =item B<--service> diff --git a/src/os/linux/local/mode/cpudetailed.pm b/src/os/linux/local/mode/cpudetailed.pm index 64ce36c44..e6523a583 100644 --- a/src/os/linux/local/mode/cpudetailed.pm +++ b/src/os/linux/local/mode/cpudetailed.pm @@ -215,12 +215,12 @@ Command used: cat /proc/stat 2>&1 =item B<--warning-*> -Threshold warning in percent. +Warning threshold in percent. Can be: 'user', 'nice', 'system', 'idle', 'wait', 'interrupt', 'softirq', 'steal', 'guest', 'guestnice'. =item B<--critical-*> -Threshold critical in percent. +Critical threshold in percent. Can be: 'user', 'nice', 'system', 'idle', 'wait', 'interrupt', 'softirq', 'steal', 'guest', 'guestnice'. =back diff --git a/src/os/linux/local/mode/directlvmusage.pm b/src/os/linux/local/mode/directlvmusage.pm index 379090a76..62a384071 100644 --- a/src/os/linux/local/mode/directlvmusage.pm +++ b/src/os/linux/local/mode/directlvmusage.pm @@ -132,12 +132,12 @@ Command used: lvs --separator="," 2>&1 =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'data-usage' (%), 'meta-usage' (%). =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'data-usage' (%), 'meta-usage' (%). =item B<--filter-vg> diff --git a/src/os/linux/local/mode/filesdate.pm b/src/os/linux/local/mode/filesdate.pm index 8db2bd939..c9ef278db 100644 --- a/src/os/linux/local/mode/filesdate.pm +++ b/src/os/linux/local/mode/filesdate.pm @@ -143,11 +143,11 @@ Files/Directories to check. (Shell expansion is ok) =item B<--warning> -Threshold warning in seconds for each files/directories (diff time). +Warning threshold in seconds for each files/directories (diff time). =item B<--critical> -Threshold critical in seconds for each files/directories (diff time). +Critical threshold in seconds for each files/directories (diff time). =item B<--separate-dirs> diff --git a/src/os/linux/local/mode/filessize.pm b/src/os/linux/local/mode/filessize.pm index 32091b52e..6c1719193 100644 --- a/src/os/linux/local/mode/filessize.pm +++ b/src/os/linux/local/mode/filessize.pm @@ -172,19 +172,19 @@ Files/Directories to check. (Shell expansion is ok) =item B<--warning-one> -Threshold warning in bytes for each files/directories. +Warning threshold in bytes for each files/directories. =item B<--critical-one> -Threshold critical in bytes for each files/directories. +Critical threshold in bytes for each files/directories. =item B<--warning-total> -Threshold warning in bytes for all files/directories. +Warning threshold in bytes for all files/directories. =item B<--critical-total> -Threshold critical in bytes for all files/directories. +Critical threshold in bytes for all files/directories. =item B<--separate-dirs> diff --git a/src/os/linux/local/mode/inodes.pm b/src/os/linux/local/mode/inodes.pm index be6ecbd01..5bfd2b03f 100644 --- a/src/os/linux/local/mode/inodes.pm +++ b/src/os/linux/local/mode/inodes.pm @@ -121,11 +121,11 @@ Command used: df -P -i -T 2>&1 =item B<--warning-usage> -Threshold warning in percent. +Warning threshold in percent. =item B<--critical-usage> -Threshold critical in percent. +Critical threshold in percent. =item B<--filter-mountpoint> diff --git a/src/os/linux/local/mode/loadaverage.pm b/src/os/linux/local/mode/loadaverage.pm index ea3b97f5b..9805006d3 100644 --- a/src/os/linux/local/mode/loadaverage.pm +++ b/src/os/linux/local/mode/loadaverage.pm @@ -211,11 +211,11 @@ Command used: tail -n +1 /proc/loadavg /proc/stat 2>&1 =item B<--warning> -Threshold warning (1min,5min,15min). +Warning threshold (1min,5min,15min). =item B<--critical> -Threshold critical (1min,5min,15min). +Critical threshold (1min,5min,15min). =item B<--average> diff --git a/src/os/linux/local/mode/mountpoint.pm b/src/os/linux/local/mode/mountpoint.pm index 32f7b1955..a7bfc5808 100644 --- a/src/os/linux/local/mode/mountpoint.pm +++ b/src/os/linux/local/mode/mountpoint.pm @@ -150,11 +150,11 @@ Filter mount point type (Can use regexp). =item B<--warning-status> -Threshold warning. +Warning threshold. =item B<--critical-status> -Threshold critical +Critical threshold (Default: '%{options} !~ /^rw/i && %{type} !~ /tmpfs|squashfs/i'). =back diff --git a/src/os/linux/local/mode/ntp.pm b/src/os/linux/local/mode/ntp.pm index f45bc4091..971b4c024 100644 --- a/src/os/linux/local/mode/ntp.pm +++ b/src/os/linux/local/mode/ntp.pm @@ -328,41 +328,41 @@ Filter peer state (can be a regexp). =item B<--warning-peers> -Threshold warning minimum amount of NTP-Server +Warning threshold minimum amount of NTP-Server =item B<--critical-peers> -Threshold critical minimum amount of NTP-Server +Critical threshold minimum amount of NTP-Server =item B<--warning-offset> -Threshold warning offset deviation value in milliseconds +Warning threshold offset deviation value in milliseconds =item B<--critical-offset> -Threshold critical offset deviation value in milliseconds +Critical threshold offset deviation value in milliseconds =item B<--warning-stratum> -Threshold warning. +Warning threshold. =item B<--critical-stratum> -Threshold critical. +Critical threshold. =item B<--unknown-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{state}, %{rawstate}, %{type}, %{rawtype}, %{reach}, %{display} =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{state}, %{rawstate}, %{type}, %{rawtype}, %{reach}, %{display} =item B<--critical-status> -Set critical threshold for status. +Define the conditions to match for the status to be CRITICAL. You can use the following variables: %{state}, %{rawstate}, %{type}, %{rawtype}, %{reach}, %{display} =back diff --git a/src/os/linux/local/mode/packeterrors.pm b/src/os/linux/local/mode/packeterrors.pm index b510ee36a..b610b1dc1 100644 --- a/src/os/linux/local/mode/packeterrors.pm +++ b/src/os/linux/local/mode/packeterrors.pm @@ -237,12 +237,12 @@ Command used: /sbin/ip -s addr 2>&1 =item B<--warning-*> -Threshold warning in percent of total packets. Can be: +Warning threshold in percent of total packets. Can be: in-error, out-error, in-discard, out-discard =item B<--critical-*> -Threshold critical in percent of total packets. Can be: +Critical threshold in percent of total packets. Can be: in-error, out-error, in-discard, out-discard =item B<--filter-interface> diff --git a/src/os/linux/local/mode/paging.pm b/src/os/linux/local/mode/paging.pm index 3707ff379..dd433f14e 100644 --- a/src/os/linux/local/mode/paging.pm +++ b/src/os/linux/local/mode/paging.pm @@ -142,12 +142,12 @@ Command used: cat /proc/vmstat 2>&1 =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'pgpgin', 'pgpgout', 'pswpin', 'pswpout', 'pgfault', 'pgmajfault'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'pgpgin', 'pgpgout', 'pswpin', 'pswpout', 'pgfault', 'pgmajfault'. =back diff --git a/src/os/linux/local/mode/pendingupdates.pm b/src/os/linux/local/mode/pendingupdates.pm index e38783791..184ec6e65 100644 --- a/src/os/linux/local/mode/pendingupdates.pm +++ b/src/os/linux/local/mode/pendingupdates.pm @@ -213,19 +213,19 @@ Default mode for parsing and command: 'rhel' (default), 'debian', 'suse'. =item B<--warning-total> -Threshold warning for total amount of pending updates. +Warning threshold for total amount of pending updates. =item B<--critical-total> -Threshold critical for total amount of pending updates. +Critical threshold for total amount of pending updates. =item B<--warning-security> -Threshold warning for total amount of pending security updates. +Warning threshold for total amount of pending security updates. =item B<--critical-security> -Threshold critical for total amount of pending security updates. +Critical threshold for total amount of pending security updates. =item B<--filter-package> diff --git a/src/os/linux/local/mode/storage.pm b/src/os/linux/local/mode/storage.pm index 8c4c23088..ffa027a99 100644 --- a/src/os/linux/local/mode/storage.pm +++ b/src/os/linux/local/mode/storage.pm @@ -198,11 +198,11 @@ Command used: df -P -k -T 2>&1 =item B<--warning-usage> -Threshold warning. +Warning threshold. =item B<--critical-usage> -Threshold critical. +Critical threshold. =item B<--units> diff --git a/src/os/linux/local/mode/systemdscstatus.pm b/src/os/linux/local/mode/systemdscstatus.pm index 87cf150df..771d6de6f 100644 --- a/src/os/linux/local/mode/systemdscstatus.pm +++ b/src/os/linux/local/mode/systemdscstatus.pm @@ -188,12 +188,12 @@ Can be: 'total-running', 'total-dead', 'total-exited', =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{display}, %{active}, %{sub}, %{load}, %{boot} =item B<--critical-status> -Set critical threshold for status (Default: '%{active} =~ /failed/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{active} =~ /failed/i'). You can use the following variables: %{display}, %{active}, %{sub}, %{load}, %{boot} =back diff --git a/src/os/linux/local/mode/traffic.pm b/src/os/linux/local/mode/traffic.pm index 37d80be82..a81fc5baf 100644 --- a/src/os/linux/local/mode/traffic.pm +++ b/src/os/linux/local/mode/traffic.pm @@ -289,33 +289,33 @@ Command used: /sbin/ip -s addr 2>&1 =item B<--warning-in> -Threshold warning in percent for 'in' traffic. +Warning threshold in percent for 'in' traffic. =item B<--critical-in> -Threshold critical in percent for 'in' traffic. +Critical threshold in percent for 'in' traffic. =item B<--warning-out> -Threshold warning in percent for 'out' traffic. +Warning threshold in percent for 'out' traffic. =item B<--critical-out> -Threshold critical in percent for 'out' traffic. +Critical threshold in percent for 'out' traffic. =item B<--unknown-status> -Set unknown threshold for status (Default: ''). +Define the conditions to match for the status to be UNKNOWN (Default: ''). You can use the following variables: %{status}, %{display} =item B<--warning-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{status}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} ne "RU"'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} ne "RU"'). You can use the following variables: %{status}, %{display} =item B<--units> diff --git a/src/os/linux/local/mode/uptime.pm b/src/os/linux/local/mode/uptime.pm index 28b712364..a85e4fe8e 100644 --- a/src/os/linux/local/mode/uptime.pm +++ b/src/os/linux/local/mode/uptime.pm @@ -111,11 +111,11 @@ Command used: cat /proc/uptime 2>&1 =item B<--warning> -Threshold warning in seconds. +Warning threshold in seconds. =item B<--critical> -Threshold critical in seconds. +Critical threshold in seconds. =item B<--seconds> diff --git a/src/os/mac/snmp/mode/memory.pm b/src/os/mac/snmp/mode/memory.pm index 471194ad7..6b8d4e83a 100644 --- a/src/os/mac/snmp/mode/memory.pm +++ b/src/os/mac/snmp/mode/memory.pm @@ -174,11 +174,11 @@ Check physical memory (UCD-SNMP-MIB). =item B<--warning> -Threshold warning in percent. +Warning threshold in percent. =item B<--critical> -Threshold critical in percent. +Critical threshold in percent. =item B<--swap> @@ -186,11 +186,11 @@ Check swap also. =item B<--warning-swap> -Threshold warning in percent. +Warning threshold in percent. =item B<--critical-swap> -Threshold critical in percent. +Critical threshold in percent. =item B<--no-swap> diff --git a/src/os/picos/snmp/mode/cpu.pm b/src/os/picos/snmp/mode/cpu.pm index 775c3df32..f349a27a0 100644 --- a/src/os/picos/snmp/mode/cpu.pm +++ b/src/os/picos/snmp/mode/cpu.pm @@ -90,19 +90,19 @@ Check CPU usage and temperature. =item B<--warning-cpu-usage> -Threshold warning for CPU usage in percentage. +Warning threshold for CPU usage in percentage. =item B<--critical-cpu-usage> -Threshold critical for CPU usage in percentage. +Critical threshold for CPU usage in percentage. =item B<--warning-temperature> -Threshold warning in celsius degrees for CPU. +Warning threshold in celsius degrees for CPU. =item B<--critical-temperature> -Threshold critical in celsius degrees for CPU. +Critical threshold in celsius degrees for CPU. =back diff --git a/src/os/picos/snmp/mode/interfaces.pm b/src/os/picos/snmp/mode/interfaces.pm index 3c5f61de2..4111a0be4 100644 --- a/src/os/picos/snmp/mode/interfaces.pm +++ b/src/os/picos/snmp/mode/interfaces.pm @@ -225,12 +225,12 @@ If the expression is true, metrics are checked (Default: '%{opstatus} eq "up"'). =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{admstatus}, %{opstatus}, %{duplexstatus}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: '%{admstatus} eq "up" and %{opstatus} ne "up"'). +Define the conditions to match for the status to be CRITICAL (Default: '%{admstatus} eq "up" and %{opstatus} ne "up"'). You can use the following variables: %{admstatus}, %{opstatus}, %{duplexstatus}, %{display} =item B<--warning-*> B<--critical-*> @@ -261,7 +261,7 @@ Display traffic perfdata to be compatible with nagvis widget. =item B<--interface> -Set the interface (number expected) ex: 1,2,... (empty means 'check all interface'). +Set the interface (number expected) ex: 1,2,... (empty means 'check all interfaces'). =item B<--name> @@ -289,11 +289,11 @@ Time in minutes before reloading cache file (default: 180). =item B<--oid-filter> -Choose OID used to filter interface (default: ifName) (values: ifDesc, ifAlias, ifName, IpAddr). +Define the OID to be used to filter interfaces (default: ifName) (values: ifDesc, ifAlias, ifName, IpAddr). =item B<--oid-display> -Choose OID used to display interface (default: ifName) (values: ifDesc, ifAlias, ifName, IpAddr). +Define the OID that will be used to name the interfaces (default: ifName) (values: ifDesc, ifAlias, ifName, IpAddr). =item B<--oid-extra-display> diff --git a/src/os/picos/snmp/mode/listinterfaces.pm b/src/os/picos/snmp/mode/listinterfaces.pm index 3926010df..285a70f2a 100644 --- a/src/os/picos/snmp/mode/listinterfaces.pm +++ b/src/os/picos/snmp/mode/listinterfaces.pm @@ -55,7 +55,7 @@ __END__ =item B<--interface> -Set the interface (number expected) ex: 1,2,... (empty means 'check all interface'). +Set the interface (number expected) ex: 1,2,... (empty means 'check all interfaces'). =item B<--name> @@ -79,11 +79,11 @@ Display interfaces with AdminStatus 'up'. =item B<--oid-filter> -Choose OID used to filter interface (default: ifDesc) (values: ifDesc, ifAlias, ifName). +Define the OID to be used to filter interfaces (default: ifDesc) (values: ifDesc, ifAlias, ifName). =item B<--oid-display> -Choose OID used to display interface (default: ifDesc) (values: ifDesc, ifAlias, ifName). +Define the OID that will be used to name the interfaces (default: ifDesc) (values: ifDesc, ifAlias, ifName). =item B<--display-transform-src> diff --git a/src/os/picos/snmp/mode/temperature.pm b/src/os/picos/snmp/mode/temperature.pm index 79360c85b..3e36f01cd 100644 --- a/src/os/picos/snmp/mode/temperature.pm +++ b/src/os/picos/snmp/mode/temperature.pm @@ -107,27 +107,27 @@ Check temperature. =item B<--warning-switch-temperature> -Threshold warning in celsius degrees for Pica switch. +Warning threshold in celsius degrees for Pica switch. =item B<--critical-switch-temperature> -Threshold critical in celsius degrees for Pica switch. +Critical threshold in celsius degrees for Pica switch. =item B<--warning-chip-temperature> -Threshold warning in celsius degrees for chip. +Warning threshold in celsius degrees for chip. =item B<--critical-chip-temperature> -Threshold critical in celsius degrees for chip. +Critical threshold in celsius degrees for chip. =item B<--warning-cpu-temperature> -Threshold warning in celsius degrees for CPU. +Warning threshold in celsius degrees for CPU. =item B<--critical-cpu-temperature> -Threshold critical in celsius degrees for CPU. +Critical threshold in celsius degrees for CPU. =back diff --git a/src/os/solaris/local/mode/analyzedisks.pm b/src/os/solaris/local/mode/analyzedisks.pm index 7abf49823..75d406af0 100644 --- a/src/os/solaris/local/mode/analyzedisks.pm +++ b/src/os/solaris/local/mode/analyzedisks.pm @@ -114,11 +114,11 @@ EOF' =item B<--warning> -Threshold warning. +Warning threshold. =item B<--critical> -Threshold critical. +Critical threshold. =back diff --git a/src/os/solaris/local/mode/cpu.pm b/src/os/solaris/local/mode/cpu.pm index 8165eff86..18a9e403d 100644 --- a/src/os/solaris/local/mode/cpu.pm +++ b/src/os/solaris/local/mode/cpu.pm @@ -152,11 +152,11 @@ Command used: 'kstat -n sys 2>&1' =item B<--warning> -Threshold warning in percent. +Warning threshold in percent. =item B<--critical> -Threshold critical in percent. +Critical threshold in percent. =back diff --git a/src/os/solaris/local/mode/fcconnected.pm b/src/os/solaris/local/mode/fcconnected.pm index 47445b62e..af7084dfa 100644 --- a/src/os/solaris/local/mode/fcconnected.pm +++ b/src/os/solaris/local/mode/fcconnected.pm @@ -102,11 +102,11 @@ Command used: '/usr/sbin/luxadm -e port 2>&1' =item B<--warning> -Threshold warning. +Warning threshold. =item B<--critical> -Threshold critical. +Critical threshold. =back diff --git a/src/os/solaris/local/mode/fmadm.pm b/src/os/solaris/local/mode/fmadm.pm index 0c888263b..5596d0394 100644 --- a/src/os/solaris/local/mode/fmadm.pm +++ b/src/os/solaris/local/mode/fmadm.pm @@ -101,11 +101,11 @@ Command used: '/usr/sbin/fmadm faulty -r 2>&1' =item B<--warning> -Threshold warning. +Warning threshold. =item B<--critical> -Threshold critical. +Critical threshold. =back diff --git a/src/os/solaris/local/mode/hwraidctl.pm b/src/os/solaris/local/mode/hwraidctl.pm index 3fb293d3a..64dbd91ba 100644 --- a/src/os/solaris/local/mode/hwraidctl.pm +++ b/src/os/solaris/local/mode/hwraidctl.pm @@ -140,11 +140,11 @@ Command used: '/usr/sbin/raidctl -S 2>&1' =item B<--warning> -Threshold warning. +Warning threshold. =item B<--critical> -Threshold critical. +Critical threshold. =back diff --git a/src/os/solaris/local/mode/svmdisks.pm b/src/os/solaris/local/mode/svmdisks.pm index 51c62e421..abbfe976b 100644 --- a/src/os/solaris/local/mode/svmdisks.pm +++ b/src/os/solaris/local/mode/svmdisks.pm @@ -199,11 +199,11 @@ Command used: '/usr/sbin/metastat 2>&1' and '/usr/sbin/metadb 2>&1' =item B<--warning> -Threshold warning. +Warning threshold. =item B<--critical> -Threshold critical. +Critical threshold. =back diff --git a/src/os/solaris/local/mode/vxdisks.pm b/src/os/solaris/local/mode/vxdisks.pm index 114e000a4..c65bb41ea 100644 --- a/src/os/solaris/local/mode/vxdisks.pm +++ b/src/os/solaris/local/mode/vxdisks.pm @@ -147,11 +147,11 @@ Command used: '/usr/sbin/vxdisk list 2>&1' and '/usr/sbin/vxprint -Ath 2>&1' =item B<--warning> -Threshold warning. +Warning threshold. =item B<--critical> -Threshold critical. +Critical threshold. =item B<--skip-vxdisk> diff --git a/src/os/windows/local/mode/cmdreturn.pm b/src/os/windows/local/mode/cmdreturn.pm index c8fe9f9a4..5c23aad0b 100644 --- a/src/os/windows/local/mode/cmdreturn.pm +++ b/src/os/windows/local/mode/cmdreturn.pm @@ -167,11 +167,11 @@ Command options (Default: none). =item B<--warning-time> -Threshold warning in seconds. +Warning threshold in seconds. =item B<--critical-time> -Threshold critical in seconds. +Critical threshold in seconds. =back diff --git a/src/os/windows/local/mode/ntp.pm b/src/os/windows/local/mode/ntp.pm index bbfb5ba11..cf4681828 100644 --- a/src/os/windows/local/mode/ntp.pm +++ b/src/os/windows/local/mode/ntp.pm @@ -172,11 +172,11 @@ Check time offset of server with ntp server. =item B<--warning> -Threshold warning. +Warning threshold. =item B<--critical> -Threshold critical. +Critical threshold. =item B<--ntp-hostname> diff --git a/src/os/windows/local/mode/pendingreboot.pm b/src/os/windows/local/mode/pendingreboot.pm index be99c8485..fd2377165 100644 --- a/src/os/windows/local/mode/pendingreboot.pm +++ b/src/os/windows/local/mode/pendingreboot.pm @@ -198,13 +198,13 @@ Print powershell output. =item B<--warning-status> -Set warning threshold for status (Default: '%{RebootPending} =~ /true/i'). +Define the conditions to match for the status to be WARNING (Default: '%{RebootPending} =~ /true/i'). You can use the following variables: %{RebootPending}, %{WindowsUpdate}, %{CBServicing}, %{CCMClientSDK}, %{PendFileRename}, %{PendComputerRename}. =item B<--critical-status> -Set critical threshold for status (Default: ''). +Define the conditions to match for the status to be CRITICAL (Default: ''). You can use the following variables: %{RebootPending}, %{WindowsUpdate}, %{CBServicing}, %{CCMClientSDK}, %{PendFileRename}, %{PendComputerRename}. diff --git a/src/os/windows/snmp/mode/memory.pm b/src/os/windows/snmp/mode/memory.pm index 21f122d63..319d7c719 100644 --- a/src/os/windows/snmp/mode/memory.pm +++ b/src/os/windows/snmp/mode/memory.pm @@ -186,12 +186,12 @@ Thresholds are on free space left. =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'memory'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'memory'. =back diff --git a/src/os/windows/snmp/mode/service.pm b/src/os/windows/snmp/mode/service.pm index e39758008..6d2e02f0a 100644 --- a/src/os/windows/snmp/mode/service.pm +++ b/src/os/windows/snmp/mode/service.pm @@ -181,11 +181,11 @@ Check Windows Services in SNMP =item B<--warning> -Threshold warning. +Warning threshold. =item B<--critical> -Threshold critical. +Critical threshold. =item B<--service> diff --git a/src/os/windows/snmp/mode/swap.pm b/src/os/windows/snmp/mode/swap.pm index 6535f5444..f4349ddcb 100644 --- a/src/os/windows/snmp/mode/swap.pm +++ b/src/os/windows/snmp/mode/swap.pm @@ -143,11 +143,11 @@ Check Windows swap memory. =item B<--warning> -Threshold warning in percent. +Warning threshold in percent. =item B<--critical> -Threshold critical in percent. +Critical threshold in percent. =item B<--real-swap> diff --git a/src/os/windows/wsman/mode/filesdate.pm b/src/os/windows/wsman/mode/filesdate.pm index d4daf2208..97bf882ca 100644 --- a/src/os/windows/wsman/mode/filesdate.pm +++ b/src/os/windows/wsman/mode/filesdate.pm @@ -191,11 +191,11 @@ Filter files by name. =item B<--warning> -Threshold warning in seconds for each files (diff time). +Warning threshold in seconds for each files (diff time). =item B<--critical> -Threshold critical in seconds for each files (diff time). +Critical threshold in seconds for each files (diff time). =back diff --git a/src/os/windows/wsman/mode/filessize.pm b/src/os/windows/wsman/mode/filessize.pm index 7537899d2..48215823e 100644 --- a/src/os/windows/wsman/mode/filessize.pm +++ b/src/os/windows/wsman/mode/filessize.pm @@ -186,19 +186,19 @@ Filter files by name. =item B<--warning-one> -Threshold warning in bytes for each files/directories. +Warning threshold in bytes for each files/directories. =item B<--critical-one> -Threshold critical in bytes for each files/directories. +Critical threshold in bytes for each files/directories. =item B<--warning-total> -Threshold warning in bytes for all files/directories. +Warning threshold in bytes for all files/directories. =item B<--critical-total> -Threshold critical in bytes for all files/directories. +Critical threshold in bytes for all files/directories. =back diff --git a/src/os/windows/wsman/mode/pendingreboot.pm b/src/os/windows/wsman/mode/pendingreboot.pm index 62e93c81d..9525749ca 100644 --- a/src/os/windows/wsman/mode/pendingreboot.pm +++ b/src/os/windows/wsman/mode/pendingreboot.pm @@ -144,13 +144,13 @@ Print powershell output. =item B<--warning-status> -Set warning threshold for status (Default: '%{RebootPending} =~ /true/i'). +Define the conditions to match for the status to be WARNING (Default: '%{RebootPending} =~ /true/i'). You can use the following variables: %{RebootPending}, %{WindowsUpdate}, %{CBServicing}, %{CCMClientSDK}, %{PendFileRename}, %{PendComputerRename}. =item B<--critical-status> -Set critical threshold for status (Default: ''). +Define the conditions to match for the status to be CRITICAL (Default: ''). You can use the following variables: %{RebootPending}, %{WindowsUpdate}, %{CBServicing}, %{CCMClientSDK}, %{PendFileRename}, %{PendComputerRename}. diff --git a/src/os/windows/wsman/mode/processes.pm b/src/os/windows/wsman/mode/processes.pm index 8adb4dd8e..57e7d4bc0 100644 --- a/src/os/windows/wsman/mode/processes.pm +++ b/src/os/windows/wsman/mode/processes.pm @@ -153,11 +153,11 @@ name (with option --process-name). =item B<--warning> -Threshold warning of matching processes detected. +Warning threshold of matching processes detected. =item B<--critical> -Threshold critical of matching processes detected. +Critical threshold of matching processes detected. =back diff --git a/src/os/windows/wsman/mode/uptime.pm b/src/os/windows/wsman/mode/uptime.pm index a4fe02497..3fe83e216 100644 --- a/src/os/windows/wsman/mode/uptime.pm +++ b/src/os/windows/wsman/mode/uptime.pm @@ -145,11 +145,11 @@ Check system uptime. =item B<--warning-uptime> -Threshold warning. +Warning threshold. =item B<--critical-uptime> -Threshold critical. +Critical threshold. =item B<--unit> diff --git a/src/snmp_standard/mode/cpudetailed.pm b/src/snmp_standard/mode/cpudetailed.pm index 82904a8b3..2452ffb2d 100644 --- a/src/snmp_standard/mode/cpudetailed.pm +++ b/src/snmp_standard/mode/cpudetailed.pm @@ -262,12 +262,12 @@ An average of all CPUs. =item B<--warning-*> -Threshold warning in percent. +Warning threshold in percent. Can be: 'user', 'nice', 'system', 'idle', 'wait', 'kernel', 'interrupt', 'softirq', 'steal', 'guest', 'guestnice'. =item B<--critical-*> -Threshold critical in percent. +Critical threshold in percent. Can be: 'user', 'nice', 'system', 'idle', 'wait', 'kernel', 'interrupt', 'softirq', 'steal', 'guest', 'guestnice'. =back diff --git a/src/snmp_standard/mode/diskio.pm b/src/snmp_standard/mode/diskio.pm index 416817cae..61cb79dbb 100644 --- a/src/snmp_standard/mode/diskio.pm +++ b/src/snmp_standard/mode/diskio.pm @@ -309,14 +309,14 @@ Check read/write I/O disks (bytes per secondes, IOPs). =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'read', 'write', 'read-iops', 'write-iops', 'total-read', 'total-write', 'total-read-iops', 'total-write-iops', 'sum-read-write', 'sum-read-write-iops'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'read', 'write', 'read-iops', 'write-iops', 'total-read', 'total-write', 'total-read-iops', 'total-write-iops', 'sum-read-write', 'sum-read-write-iops'. diff --git a/src/snmp_standard/mode/inodes.pm b/src/snmp_standard/mode/inodes.pm index 85100e80d..52278cfbe 100644 --- a/src/snmp_standard/mode/inodes.pm +++ b/src/snmp_standard/mode/inodes.pm @@ -169,11 +169,11 @@ Need to enable "includeAllDisks 10%" on snmpd.conf. =item B<--warning-usage> -Threshold warning in percent. +Warning threshold in percent. =item B<--critical-usage> -Threshold critical in percent. +Critical threshold in percent. =item B<--diskpath> diff --git a/src/snmp_standard/mode/interfaces.pm b/src/snmp_standard/mode/interfaces.pm index 0f71be87e..040de6cff 100644 --- a/src/snmp_standard/mode/interfaces.pm +++ b/src/snmp_standard/mode/interfaces.pm @@ -1645,12 +1645,12 @@ If the expression is true, metrics are checked (Default: '%{opstatus} eq "up"'). =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{admstatus}, %{opstatus}, %{duplexstatus}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: '%{admstatus} eq "up" and %{opstatus} ne "up"'). +Define the conditions to match for the status to be CRITICAL (Default: '%{admstatus} eq "up" and %{opstatus} ne "up"'). You can use the following variables: %{admstatus}, %{opstatus}, %{duplexstatus}, %{display} =item B<--warning-*> B<--critical-*> @@ -1679,7 +1679,7 @@ Display traffic perfdata to be compatible with nagvis widget. =item B<--interface> -Set the interface (number expected) ex: 1,2,... (empty means 'check all interface'). +Set the interface (number expected) ex: 1,2,... (empty means 'check all interfaces'). =item B<--name> @@ -1719,11 +1719,11 @@ Time in minutes before reloading cache file (default: 180). =item B<--oid-filter> -Choose OID used to filter interface (default: ifName) (values: ifDesc, ifAlias, ifName, IpAddr). +Define the OID to be used to filter interfaces (default: ifName) (values: ifDesc, ifAlias, ifName, IpAddr). =item B<--oid-display> -Choose OID used to display interface (default: ifName) (values: ifDesc, ifAlias, ifName, IpAddr). +Define the OID that will be used to name the interfaces (default: ifName) (values: ifDesc, ifAlias, ifName, IpAddr). =item B<--oid-extra-display> diff --git a/src/snmp_standard/mode/isdnusage.pm b/src/snmp_standard/mode/isdnusage.pm index 49c1eeca9..0c468d1a4 100644 --- a/src/snmp_standard/mode/isdnusage.pm +++ b/src/snmp_standard/mode/isdnusage.pm @@ -172,12 +172,12 @@ Filter by name (regexp can be used). =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'in-calls', 'out-calls', 'current-calls'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'in-calls', 'out-calls', 'current-calls'. =back diff --git a/src/snmp_standard/mode/listinterfaces.pm b/src/snmp_standard/mode/listinterfaces.pm index c67af4684..76308a37a 100644 --- a/src/snmp_standard/mode/listinterfaces.pm +++ b/src/snmp_standard/mode/listinterfaces.pm @@ -385,7 +385,7 @@ __END__ =item B<--interface> -Set the interface (number expected) ex: 1,2,... (empty means 'check all interface'). +Set the interface (number expected) ex: 1,2,... (empty means 'check all interfaces'). =item B<--name> @@ -409,11 +409,11 @@ Display interfaces with AdminStatus 'up'. =item B<--oid-filter> -Choose OID used to filter interface (default: ifName) (values: ifDesc, ifAlias, ifName). +Define the OID to be used to filter interfaces (default: ifName) (values: ifDesc, ifAlias, ifName). =item B<--oid-display> -Choose OID used to display interface (default: ifName) (values: ifDesc, ifAlias, ifName). +Define the OID that will be used to name the interfaces (default: ifName) (values: ifDesc, ifAlias, ifName). =item B<--display-transform-src> diff --git a/src/snmp_standard/mode/loadaverage.pm b/src/snmp_standard/mode/loadaverage.pm index 0d73ef4cb..cc46ef8b1 100644 --- a/src/snmp_standard/mode/loadaverage.pm +++ b/src/snmp_standard/mode/loadaverage.pm @@ -223,11 +223,11 @@ Check system load-average. =item B<--warning> -Threshold warning (1min,5min,15min). +Warning threshold (1min,5min,15min). =item B<--critical> -Threshold critical (1min,5min,15min). +Critical threshold (1min,5min,15min). =item B<--average> diff --git a/src/snmp_standard/mode/mtausage.pm b/src/snmp_standard/mode/mtausage.pm index 9579044d1..b217b446f 100644 --- a/src/snmp_standard/mode/mtausage.pm +++ b/src/snmp_standard/mode/mtausage.pm @@ -280,7 +280,7 @@ Filter MTA group name (can be a regexp). =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'total-received-messages', 'total-received-volume', 'total-stored-messages', 'total-stored-volume', 'total-transmitted-messages', 'total-transmitted-volume', 'received-messages', 'received-volume', 'stored-messages', 'stored-volume', 'transmitted-messages', @@ -288,7 +288,7 @@ Can be: 'total-received-messages', 'total-received-volume', 'total-stored-messag =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'total-received-messages', 'total-received-volume', 'total-stored-messages', 'total-stored-volume', 'total-transmitted-messages', 'total-transmitted-volume', 'received-messages', 'received-volume', 'stored-messages', 'stored-volume', 'transmitted-messages', diff --git a/src/snmp_standard/mode/numericvalue.pm b/src/snmp_standard/mode/numericvalue.pm index 19de7afa1..8f70ed8af 100644 --- a/src/snmp_standard/mode/numericvalue.pm +++ b/src/snmp_standard/mode/numericvalue.pm @@ -259,11 +259,11 @@ OID value to check (numeric format only). =item B<--warning> -Threshold warning. +Warning threshold. =item B<--critical> -Threshold critical. +Critical threshold. =item B<--oid-type> diff --git a/src/snmp_standard/mode/printererror.pm b/src/snmp_standard/mode/printererror.pm index d8731e6c7..9baa0db69 100644 --- a/src/snmp_standard/mode/printererror.pm +++ b/src/snmp_standard/mode/printererror.pm @@ -171,22 +171,22 @@ Use that option if your printer provides big-endian bits ordering. =item B<--ok-status> -Set warning threshold for status (Default: '%{status} =~ /ok/'). +Define the conditions to match for the status to be WARNING (Default: '%{status} =~ /ok/'). You can use the following variables: %{status} =item B<--unknown-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{status} =item B<--warning-status> -Set warning threshold for status (Default: '%{status} =~ /.*/'). +Define the conditions to match for the status to be WARNING (Default: '%{status} =~ /.*/'). You can use the following variables: %{status} =item B<--critical-status> -Set critical threshold for status. +Define the conditions to match for the status to be CRITICAL. You can use the following variables: %{status} =back diff --git a/src/snmp_standard/mode/processcount.pm b/src/snmp_standard/mode/processcount.pm index 468473f40..4f6ac21ec 100644 --- a/src/snmp_standard/mode/processcount.pm +++ b/src/snmp_standard/mode/processcount.pm @@ -392,11 +392,11 @@ arguments (with option --process-args). =item B<--warning> -Threshold warning of matching processes count. +Warning threshold of matching processes count. =item B<--critical> -Threshold critical of matching processes count. +Critical threshold of matching processes count. =item B<--memory> @@ -404,32 +404,32 @@ Check memory usage. =item B<--warning-mem-each> -Threshold warning of memory +Warning threshold of memory used by each matching processes (in Bytes). =item B<--critical-mem-each> -Threshold critical of memory +Critical threshold of memory used by each matching processes (in Bytes). =item B<--warning-mem-total> -Threshold warning of total +Warning threshold of total memory used by matching processes (in Bytes). =item B<--critical-mem-total> -Threshold critical of total +Critical threshold of total memory used by matching processes (in Bytes). =item B<--warning-mem-avg> -Threshold warning of average +Warning threshold of average memory used by matching processes (in Bytes). =item B<--critical-mem-avg> -Threshold critical of average +Critical threshold of average memory used by matching processes (in Bytes). =item B<--cpu> @@ -439,13 +439,13 @@ If processes pid changes too much, the plugin can't compute values. =item B<--warning-cpu-total> -Threshold warning of cpu usage for all processes (in percent). +Warning threshold of cpu usage for all processes (in percent). CPU usage is in % of one cpu, so maximum can be 100% * number of CPU and a process can have a value greater than 100%. =item B<--critical-cpu-total> -Threshold critical of cpu usage for all processes (in percent). +Critical threshold of cpu usage for all processes (in percent). CPU usage is in % of one cpu, so maximum can be 100% * number of CPU and a process can have a value greater than 100%. diff --git a/src/snmp_standard/mode/spanningtree.pm b/src/snmp_standard/mode/spanningtree.pm index 179ccfb5d..343de3348 100644 --- a/src/snmp_standard/mode/spanningtree.pm +++ b/src/snmp_standard/mode/spanningtree.pm @@ -208,13 +208,13 @@ Filter on port description (can be a regexp). =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{state}, %{op_status}, %{admin_status}, %{port}, %{index}. =item B<--critical-status> -Set critical threshold for status (Default: '%{op_status} =~ /up/ && %{state} =~ /blocking|broken/'). +Define the conditions to match for the status to be CRITICAL (Default: '%{op_status} =~ /up/ && %{state} =~ /blocking|broken/'). You can use the following variables: %{state}, %{op_status}, %{admin_status}, %{port}, %{index}. diff --git a/src/snmp_standard/mode/storage.pm b/src/snmp_standard/mode/storage.pm index fadd13738..8b49c6e4e 100644 --- a/src/snmp_standard/mode/storage.pm +++ b/src/snmp_standard/mode/storage.pm @@ -596,19 +596,19 @@ __END__ =item B<--warning-usage> -Threshold warning. +Warning threshold. =item B<--critical-usage> -Threshold critical. +Critical threshold. =item B<--warning-access> -Threshold warning. +Warning threshold. =item B<--critical-access> -Threshold critical. +Critical threshold. Check if storage is readOnly: --critical-access=readOnly =item B<--add-access> diff --git a/src/snmp_standard/mode/tcpcon.pm b/src/snmp_standard/mode/tcpcon.pm index a35fafc96..b578c1898 100644 --- a/src/snmp_standard/mode/tcpcon.pm +++ b/src/snmp_standard/mode/tcpcon.pm @@ -351,11 +351,11 @@ Check tcp connections. =item B<--warning> -Threshold warning for total connections. +Warning threshold for total connections. =item B<--critical> -Threshold critical for total connections. +Critical threshold for total connections. =item B<--service> diff --git a/src/snmp_standard/mode/udpcon.pm b/src/snmp_standard/mode/udpcon.pm index 6659fbec9..b3325570b 100644 --- a/src/snmp_standard/mode/udpcon.pm +++ b/src/snmp_standard/mode/udpcon.pm @@ -307,11 +307,11 @@ Check udp connections. =item B<--warning> -Threshold warning for total connections. +Warning threshold for total connections. =item B<--critical> -Threshold critical for total connections. +Critical threshold for total connections. =item B<--service> diff --git a/src/snmp_standard/mode/uptime.pm b/src/snmp_standard/mode/uptime.pm index 59dfdbfab..ea41517fd 100644 --- a/src/snmp_standard/mode/uptime.pm +++ b/src/snmp_standard/mode/uptime.pm @@ -193,11 +193,11 @@ Check system uptime. =item B<--warning-uptime> -Threshold warning. +Warning threshold. =item B<--critical-uptime> -Threshold critical. +Critical threshold. =item B<--add-sysdesc> diff --git a/src/snmp_standard/mode/vrrp.pm b/src/snmp_standard/mode/vrrp.pm index 45b97e546..a3b6edb6d 100644 --- a/src/snmp_standard/mode/vrrp.pm +++ b/src/snmp_standard/mode/vrrp.pm @@ -143,12 +143,12 @@ Check VRRP status (VRRP-MIB). =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{adminState}, %{operStateLast}, %{operState}, %{masterIpAddr} =item B<--critical-status> -Set critical threshold for status (Default: '%{adminState} eq "up" and %{operState} ne %{operStateLast}'). +Define the conditions to match for the status to be CRITICAL (Default: '%{adminState} eq "up" and %{operState} ne %{operStateLast}'). You can use the following variables: %{adminState}, %{operStateLast}, %{operState}, %{masterIpAddr} =back diff --git a/src/storage/avid/isis/snmp/mode/performance.pm b/src/storage/avid/isis/snmp/mode/performance.pm index ff08b6c51..35d1f323c 100644 --- a/src/storage/avid/isis/snmp/mode/performance.pm +++ b/src/storage/avid/isis/snmp/mode/performance.pm @@ -172,13 +172,13 @@ Check client performances. =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'active-clients' (counter or %), 'open-files', 'processing-speed', 'read-throughput', 'write-throughput'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'active-clients' (counter or %), 'open-files', 'processing-speed', 'read-throughput', 'write-throughput'. diff --git a/src/storage/avid/isis/snmp/mode/status.pm b/src/storage/avid/isis/snmp/mode/status.pm index 512becfb0..20a139710 100644 --- a/src/storage/avid/isis/snmp/mode/status.pm +++ b/src/storage/avid/isis/snmp/mode/status.pm @@ -124,21 +124,21 @@ Check System Director state and workspaces redistributing count. =item B<--warning-status> -Set warning threshold for status. (Default: ''). +Define the conditions to match for the status to be WARNING. (Default: ''). Can use special variables like: %{state} =item B<--critical-status> -Set critical threshold for status. (Default: '%{state} !~ /Online/i'). +Define the conditions to match for the status to be CRITICAL. (Default: '%{state} !~ /Online/i'). Can use special variables like: %{state} =item B<--warning-redistributing-count> -Threshold warning for number of workspaces redistributing. +Warning threshold for number of workspaces redistributing. =item B<--critical-redistributing-count> -Threshold critical for number of workspaces redistributing. +Critical threshold for number of workspaces redistributing. =back diff --git a/src/storage/avid/isis/snmp/mode/usage.pm b/src/storage/avid/isis/snmp/mode/usage.pm index bd13e2a9d..3a6ce40f4 100644 --- a/src/storage/avid/isis/snmp/mode/usage.pm +++ b/src/storage/avid/isis/snmp/mode/usage.pm @@ -196,11 +196,11 @@ Check storage usage. =item B<--warning-usage> -Threshold warning for used allocated storage. +Warning threshold for used allocated storage. =item B<--critical-usage> -Threshold critical for used allocated storage. +Critical threshold for used allocated storage. =item B<--units> diff --git a/src/storage/buffalo/terastation/snmp/mode/arrayusage.pm b/src/storage/buffalo/terastation/snmp/mode/arrayusage.pm index 642768a1f..adb30eb8f 100644 --- a/src/storage/buffalo/terastation/snmp/mode/arrayusage.pm +++ b/src/storage/buffalo/terastation/snmp/mode/arrayusage.pm @@ -150,11 +150,11 @@ Filter by name (regexp can be used). =item B<--warning-usage> -Threshold warning (in percent). +Warning threshold (in percent). =item B<--critical-usage> -Threshold critical (in percent). +Critical threshold (in percent). =back diff --git a/src/storage/dell/compellent/local/mode/hbausage.pm b/src/storage/dell/compellent/local/mode/hbausage.pm index 2c7091ddb..445a991ef 100644 --- a/src/storage/dell/compellent/local/mode/hbausage.pm +++ b/src/storage/dell/compellent/local/mode/hbausage.pm @@ -340,13 +340,13 @@ Example: --filter-counters='^read-iops$' =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'read-iops', 'read-usage', 'read-latency', 'write-iops', 'write-usage', 'write-latency'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'read-iops', 'read-usage', 'read-latency', 'write-iops', 'write-usage', 'write-latency'. diff --git a/src/storage/dell/compellent/local/mode/volumeusage.pm b/src/storage/dell/compellent/local/mode/volumeusage.pm index d20f8b119..7af24a36a 100644 --- a/src/storage/dell/compellent/local/mode/volumeusage.pm +++ b/src/storage/dell/compellent/local/mode/volumeusage.pm @@ -375,12 +375,12 @@ Example: --filter-counters='^sc-total$' =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'sc-total', 'volume-usage', 'volume-overhead', 'volume-replay'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'sc-total', 'volume-usage', 'volume-overhead', 'volume-replay'. =back diff --git a/src/storage/dell/compellent/snmp/mode/globalstatus.pm b/src/storage/dell/compellent/snmp/mode/globalstatus.pm index 24907cb37..6caeb4a59 100644 --- a/src/storage/dell/compellent/snmp/mode/globalstatus.pm +++ b/src/storage/dell/compellent/snmp/mode/globalstatus.pm @@ -130,17 +130,17 @@ Check the overall status of Dell Compellent. =item B<--unknown-status> -Set unknown threshold for status (Default: '%{status} =~ /unknown/'). +Define the conditions to match for the status to be UNKNOWN (Default: '%{status} =~ /unknown/'). You can use the following variables: %{status} =item B<--warning-status> -Set warning threshold for status (Default: '%{status} =~ /nonCritical|other/'). +Define the conditions to match for the status to be WARNING (Default: '%{status} =~ /nonCritical|other/'). You can use the following variables: %{status} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} =~ /critical|nonRecoverable/'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} =~ /critical|nonRecoverable/'). You can use the following variables: %{status} =back diff --git a/src/storage/dell/equallogic/snmp/mode/arrayusage.pm b/src/storage/dell/equallogic/snmp/mode/arrayusage.pm index 34f49f6f8..26c33c71f 100644 --- a/src/storage/dell/equallogic/snmp/mode/arrayusage.pm +++ b/src/storage/dell/equallogic/snmp/mode/arrayusage.pm @@ -340,14 +340,14 @@ Check array member usage. =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'used' (%), 'snapshot' (B), 'replication' (B), 'connections', 'ext-connections', 'global-read-avg-latency' (ms), 'global-write-avg-latency' (ms), 'read-avg-latency' (ms), 'write-avg-latency' (ms), 'read-iops' (iops), 'write-iops' (iops), 'traffic-in' (b/s), 'traffic-out' (b/s). =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'used' (%), 'snapshot' (B), 'replication' (B), 'connections', 'ext-connections', 'global-read-avg-latency' (ms), 'global-write-avg-latency' (ms), 'read-avg-latency' (ms), 'write-avg-latency' (ms), 'read-iops' (iops), 'write-iops' (iops), 'traffic-in' (b/s), 'traffic-out' (b/s). diff --git a/src/storage/dell/equallogic/snmp/mode/diskusage.pm b/src/storage/dell/equallogic/snmp/mode/diskusage.pm index 656f57c6b..7caad69f3 100644 --- a/src/storage/dell/equallogic/snmp/mode/diskusage.pm +++ b/src/storage/dell/equallogic/snmp/mode/diskusage.pm @@ -191,17 +191,17 @@ Filter disk name (can be a regexp). =item B<--unknown-status> -Set unknown threshold for status (Default: ''). +Define the conditions to match for the status to be UNKNOWN (Default: ''). You can use the following variables: %{health}, %{status}, %{display} =item B<--warning-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{health}, %{status}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} !~ /on-line|spare|off-line/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} !~ /on-line|spare|off-line/i'). You can use the following variables: %{health}, %{status}, %{display} =item B<--warning-*> B<--critical-*> diff --git a/src/storage/dell/equallogic/snmp/mode/poolusage.pm b/src/storage/dell/equallogic/snmp/mode/poolusage.pm index 775f3c4c2..20eb6f31b 100644 --- a/src/storage/dell/equallogic/snmp/mode/poolusage.pm +++ b/src/storage/dell/equallogic/snmp/mode/poolusage.pm @@ -175,12 +175,12 @@ Check pool usages. =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'used' (%). =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'used' (%). =item B<--filter-name> diff --git a/src/storage/dell/fluidfs/snmp/mode/volumeusage.pm b/src/storage/dell/fluidfs/snmp/mode/volumeusage.pm index 552b51e54..d6d302a9b 100644 --- a/src/storage/dell/fluidfs/snmp/mode/volumeusage.pm +++ b/src/storage/dell/fluidfs/snmp/mode/volumeusage.pm @@ -186,12 +186,12 @@ Filter volume name (can be a regexp). =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'usage'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'usage'. =item B<--units> diff --git a/src/storage/dell/me4/restapi/mode/interfaces.pm b/src/storage/dell/me4/restapi/mode/interfaces.pm index dc220ff8b..54f8018eb 100644 --- a/src/storage/dell/me4/restapi/mode/interfaces.pm +++ b/src/storage/dell/me4/restapi/mode/interfaces.pm @@ -237,17 +237,17 @@ Filter port name (Can be a regexp). =item B<--unknown-port-status> -Set unknown threshold for status (Default: '%{status} =~ /unknown/i'). +Define the conditions to match for the status to be UNKNOWN (Default: '%{status} =~ /unknown/i'). You can use the following variables: %{status}, %{health}, %{display} =item B<--warning-port-status> -Set warning threshold for status (Default: '%{status} =~ /degraded/i'). +Define the conditions to match for the status to be WARNING (Default: '%{status} =~ /degraded/i'). You can use the following variables: %{status}, %{health}, %{display} =item B<--critical-port-status> -Set critical threshold for status (Default: '%{status} =~ /fault/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} =~ /fault/i'). You can use the following variables: %{status}, %{health}, %{display} =item B<--warning-*> B<--critical-*> diff --git a/src/storage/dell/powerstore/restapi/mode/alerts.pm b/src/storage/dell/powerstore/restapi/mode/alerts.pm index bde98e134..be0ccd2c8 100644 --- a/src/storage/dell/powerstore/restapi/mode/alerts.pm +++ b/src/storage/dell/powerstore/restapi/mode/alerts.pm @@ -183,12 +183,12 @@ Filter alerts by name (can be a regexp). =item B<--warning-status> -Set warning threshold for status (Default: '%{severity} =~ /minor/i') +Define the conditions to match for the status to be WARNING (Default: '%{severity} =~ /minor/i') You can use the following variables: %{severity}, %{resource}, %{name}, %{timeraised}, %{acknowledged} =item B<--critical-status> -Set critical threshold for status (Default: '%{severity} =~ /major|critical/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{severity} =~ /major|critical/i'). You can use the following variables: %{severity}, %{resource}, %{name}, %{timeraised}, %{acknowledged} =item B<--warning-*> B<--critical-*> diff --git a/src/storage/emc/DataDomain/mode/filesystem.pm b/src/storage/emc/DataDomain/mode/filesystem.pm index b71d69bb4..b4c709139 100644 --- a/src/storage/emc/DataDomain/mode/filesystem.pm +++ b/src/storage/emc/DataDomain/mode/filesystem.pm @@ -211,11 +211,11 @@ Check filesystem usages. =item B<--warning-usage> -Threshold warning in percent. +Warning threshold in percent. =item B<--critical-usage> -Threshold critical in percent +Critical threshold in percent =item B<--filesystem> diff --git a/src/storage/emc/DataDomain/mode/replication.pm b/src/storage/emc/DataDomain/mode/replication.pm index 1721b7397..f004ed0ca 100644 --- a/src/storage/emc/DataDomain/mode/replication.pm +++ b/src/storage/emc/DataDomain/mode/replication.pm @@ -160,17 +160,17 @@ Example: --filter-counters='^status$' =item B<--unknown-status> -Set unknown threshold for status (Default: none). +Define the conditions to match for the status to be UNKNOWN (Default: none). You can use the following variables: %{state} =item B<--warning-status> -Set warning threshold for status (Default: '%{state} =~ /initializing|recovering/i'). +Define the conditions to match for the status to be WARNING (Default: '%{state} =~ /initializing|recovering/i'). You can use the following variables: %{state} =item B<--critical-status> -Set critical threshold for status (Default: '%{state} =~ /disabledNeedsResync|uninitialized/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{state} =~ /disabledNeedsResync|uninitialized/i'). You can use the following variables: %{state} =item B<--warning-*> B<--critical-*> diff --git a/src/storage/emc/isilon/snmp/mode/clusterusage.pm b/src/storage/emc/isilon/snmp/mode/clusterusage.pm index 877d4ab2b..263427742 100644 --- a/src/storage/emc/isilon/snmp/mode/clusterusage.pm +++ b/src/storage/emc/isilon/snmp/mode/clusterusage.pm @@ -223,22 +223,22 @@ Example: --filter-counters='^status$' =item B<--warning-status> -Set warning threshold for status (Default: '%{status} =~ /attn/). +Define the conditions to match for the status to be WARNING (Default: '%{status} =~ /attn/). You can use the following variables: %{status} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} =~ /down|invalid/'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} =~ /down|invalid/'). You can use the following variables: %{status} =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'ifs-usage', 'health'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'ifs-usage', 'health'. =item B<--units> diff --git a/src/storage/emc/recoverypoint/ssh/mode/monitoredparameters.pm b/src/storage/emc/recoverypoint/ssh/mode/monitoredparameters.pm index d5dd4799e..b878e4fd2 100644 --- a/src/storage/emc/recoverypoint/ssh/mode/monitoredparameters.pm +++ b/src/storage/emc/recoverypoint/ssh/mode/monitoredparameters.pm @@ -125,11 +125,11 @@ Can be 'minor', 'major' or 'critical'. =item B<--warning> -Threshold warning. +Warning threshold. =item B<--critical> -Threshold critical. +Critical threshold. =back diff --git a/src/storage/emc/unisphere/restapi/mode/pools.pm b/src/storage/emc/unisphere/restapi/mode/pools.pm index 74202357b..70aa4a8bf 100644 --- a/src/storage/emc/unisphere/restapi/mode/pools.pm +++ b/src/storage/emc/unisphere/restapi/mode/pools.pm @@ -207,17 +207,17 @@ Filter pool name (can be a regexp). =item B<--unknown-status> -Set unknown threshold for status (Default: '%{status} =~ /unknown/i'). +Define the conditions to match for the status to be UNKNOWN (Default: '%{status} =~ /unknown/i'). You can use the following variables: %{status}, %{display} =item B<--warning-status> -Set warning threshold for status (Default: '%{status} =~ /ok_but|degraded|minor/i'). +Define the conditions to match for the status to be WARNING (Default: '%{status} =~ /ok_but|degraded|minor/i'). You can use the following variables: %{status}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} =~ /major|critical|non_recoverable/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} =~ /major|critical|non_recoverable/i'). You can use the following variables: %{status}, %{display} =item B<--warning-*> B<--critical-*> diff --git a/src/storage/emc/unisphere/restapi/mode/replications.pm b/src/storage/emc/unisphere/restapi/mode/replications.pm index 93ed37dbe..109945080 100644 --- a/src/storage/emc/unisphere/restapi/mode/replications.pm +++ b/src/storage/emc/unisphere/restapi/mode/replications.pm @@ -141,32 +141,32 @@ Filter replication name (can be a regexp). =item B<--unknown-health-status> -Set unknown threshold for status (Default: '%{health_status} =~ /unknown/i'). +Define the conditions to match for the status to be UNKNOWN (Default: '%{health_status} =~ /unknown/i'). You can use the following variables: %{health_status}, %{display} =item B<--warning-health-status> -Set warning threshold for status (Default: '%{health_status} =~ /ok_but|degraded|minor/i'). +Define the conditions to match for the status to be WARNING (Default: '%{health_status} =~ /ok_but|degraded|minor/i'). You can use the following variables: %{health_status}, %{display} =item B<--critical-health-status> -Set critical threshold for status (Default: '%{health_status} =~ /major|critical|non_recoverable/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{health_status} =~ /major|critical|non_recoverable/i'). You can use the following variables: %{health_status}, %{display} =item B<--unknown-repl-status> -Set unknown threshold for status (Default: '%{repl_status} =~ /unknown/i'). +Define the conditions to match for the status to be UNKNOWN (Default: '%{repl_status} =~ /unknown/i'). You can use the following variables: %{repl_status}, %{display} =item B<--warning-repl-status> -Set warning threshold for status (Default: '%{repl_status} =~ /syncing/i'). +Define the conditions to match for the status to be WARNING (Default: '%{repl_status} =~ /syncing/i'). You can use the following variables: %{repl_status}, %{display} =item B<--critical-repl-status> -Set critical threshold for status (Default: '%{repl_status} =~ /inconsistent/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{repl_status} =~ /inconsistent/i'). You can use the following variables: %{repl_status}, %{display} =back diff --git a/src/storage/emc/unisphere/restapi/mode/storageresources.pm b/src/storage/emc/unisphere/restapi/mode/storageresources.pm index 41325df5e..817cf6cfe 100644 --- a/src/storage/emc/unisphere/restapi/mode/storageresources.pm +++ b/src/storage/emc/unisphere/restapi/mode/storageresources.pm @@ -210,17 +210,17 @@ Filter name (can be a regexp). =item B<--unknown-status> -Set unknown threshold for status (Default: '%{status} =~ /unknown/i'). +Define the conditions to match for the status to be UNKNOWN (Default: '%{status} =~ /unknown/i'). You can use the following variables: %{status}, %{display} =item B<--warning-status> -Set warning threshold for status (Default: '%{status} =~ /ok_but|degraded|minor/i'). +Define the conditions to match for the status to be WARNING (Default: '%{status} =~ /ok_but|degraded|minor/i'). You can use the following variables: %{status}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} =~ /major|critical|non_recoverable/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} =~ /major|critical|non_recoverable/i'). You can use the following variables: %{status}, %{display} =item B<--warning-*> B<--critical-*> diff --git a/src/storage/emc/vplex/restapi/mode/clustercommunication.pm b/src/storage/emc/vplex/restapi/mode/clustercommunication.pm index e24d1616d..d99858b8d 100644 --- a/src/storage/emc/vplex/restapi/mode/clustercommunication.pm +++ b/src/storage/emc/vplex/restapi/mode/clustercommunication.pm @@ -102,12 +102,12 @@ Filter components by name (can be a regexp). =item B<--warning-operational-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{operational_state}, %{admin_state}, %{name} =item B<--critical-operational-status> -Set critical threshold for status (Default: '%{admin_state} eq "enabled" and %{operational_state} !~ /cluster-in-contact|in-contact/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{admin_state} eq "enabled" and %{operational_state} !~ /cluster-in-contact|in-contact/i'). You can use the following variables: %{operational_state}, %{admin_state}, %{name} =back diff --git a/src/storage/emc/vplex/restapi/mode/clusterdevices.pm b/src/storage/emc/vplex/restapi/mode/clusterdevices.pm index 9f26d441d..02c050174 100644 --- a/src/storage/emc/vplex/restapi/mode/clusterdevices.pm +++ b/src/storage/emc/vplex/restapi/mode/clusterdevices.pm @@ -113,12 +113,12 @@ Filter devices by device name (can be a regexp). =item B<--warning-health-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{health_state}, %{cluster_name}, %{device_name} =item B<--critical-health-status> -Set critical threshold for status (Default: '%{health_state} ne "ok"'). +Define the conditions to match for the status to be CRITICAL (Default: '%{health_state} ne "ok"'). You can use the following variables: %{health_state}, %{cluster_name}, %{device_name} =back diff --git a/src/storage/emc/vplex/restapi/mode/directors.pm b/src/storage/emc/vplex/restapi/mode/directors.pm index d5ec9e9b8..4507709c5 100644 --- a/src/storage/emc/vplex/restapi/mode/directors.pm +++ b/src/storage/emc/vplex/restapi/mode/directors.pm @@ -136,52 +136,52 @@ Filter directors by director name (can be a regexp). =item B<--warning-health-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{operational_status}, %{engine_id}, %{director_name} =item B<--critical-health-status> -Set critical threshold for status (Default: '%{health_state} ne "ok"'). +Define the conditions to match for the status to be CRITICAL (Default: '%{health_state} ne "ok"'). You can use the following variables: %{operational_status}, %{engine_id}, %{director_name} =item B<--warning-communication-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{communication_status}, %{engine_id}, %{director_name} =item B<--critical-communication-status> -Set critical threshold for status (Default: '%{communication_status} ne "ok"'). +Define the conditions to match for the status to be CRITICAL (Default: '%{communication_status} ne "ok"'). You can use the following variables: %{communication_status}, %{engine_id}, %{director_name} =item B<--warning-temperature-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{temperature_threshold_exceeded}, %{engine_id}, %{director_name} =item B<--critical-temperature-status> -Set critical threshold for status (Default: '%{temperature_threshold_exceeded} ne "false"'). +Define the conditions to match for the status to be CRITICAL (Default: '%{temperature_threshold_exceeded} ne "false"'). You can use the following variables: %{temperature_threshold_exceeded}, %{engine_id}, %{director_name} =item B<--warning-voltage-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{voltage_threshold_exceeded}, %{engine_id}, %{director_name} =item B<--critical-voltage-status> -Set critical threshold for status (Default: '%{voltage_threshold_exceeded} ne "false"'). +Define the conditions to match for the status to be CRITICAL (Default: '%{voltage_threshold_exceeded} ne "false"'). You can use the following variables: %{voltage_threshold_exceeded}, %{engine_id}, %{director_name} =item B<--warning-vplex-kdriver-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{vplex_kdriver_status}, %{engine_id}, %{director_name} =item B<--critical-vplex-kdriver-status> -Set critical threshold for status (Default: '%{vplex_kdriver_status} ne "ok"'). +Define the conditions to match for the status to be CRITICAL (Default: '%{vplex_kdriver_status} ne "ok"'). You can use the following variables: %{vplex_kdriver_status}, %{engine_id}, %{director_name} =back diff --git a/src/storage/emc/vplex/restapi/mode/distributeddevices.pm b/src/storage/emc/vplex/restapi/mode/distributeddevices.pm index 8649da724..0c69903a6 100644 --- a/src/storage/emc/vplex/restapi/mode/distributeddevices.pm +++ b/src/storage/emc/vplex/restapi/mode/distributeddevices.pm @@ -110,32 +110,32 @@ Filter devices by device name (can be a regexp). =item B<--warning-operational-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{operational_status}, %{device_name} =item B<--critical-operational-status> -Set critical threshold for status (Default: '%{operational_status} ne "ok"'). +Define the conditions to match for the status to be CRITICAL (Default: '%{operational_status} ne "ok"'). You can use the following variables: %{operational_status}, %{device_name} =item B<--warning-health-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{health_state}, %{device_name} =item B<--critical-health-status> -Set critical threshold for status (Default: '%{health_state} ne "ok"'). +Define the conditions to match for the status to be CRITICAL (Default: '%{health_state} ne "ok"'). You can use the following variables: %{health_state}, %{device_name} =item B<--warning-service-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{service_status}, %{device_name} =item B<--critical-service-status> -Set critical threshold for status (Default: '%{service_status} ne "running"'). +Define the conditions to match for the status to be CRITICAL (Default: '%{service_status} ne "running"'). You can use the following variables: %{service_status}, %{device_name} =back diff --git a/src/storage/emc/vplex/restapi/mode/fans.pm b/src/storage/emc/vplex/restapi/mode/fans.pm index fa464a343..8dd754da4 100644 --- a/src/storage/emc/vplex/restapi/mode/fans.pm +++ b/src/storage/emc/vplex/restapi/mode/fans.pm @@ -111,22 +111,22 @@ Filter fans by fan name (can be a regexp). =item B<--warning-operational-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{operational_status}, %{engine_id}, %{fan_name} =item B<--critical-operational-status> -Set critical threshold for status (Default: '%{operational_status} ne "online"'). +Define the conditions to match for the status to be CRITICAL (Default: '%{operational_status} ne "online"'). You can use the following variables: %{operational_status}, %{engine_id}, %{fan_name} =item B<--warning-speed-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{speed_threshold_exceeded}, %{engine_id}, %{fan_name} =item B<--critical-speed-status> -Set critical threshold for status (Default: '%{operational_status} ne "online"'). +Define the conditions to match for the status to be CRITICAL (Default: '%{operational_status} ne "online"'). You can use the following variables: %{speed_threshold_exceeded}, %{engine_id}, %{fan_name} =back diff --git a/src/storage/emc/vplex/restapi/mode/psus.pm b/src/storage/emc/vplex/restapi/mode/psus.pm index cde4c3a04..5d16cb58a 100644 --- a/src/storage/emc/vplex/restapi/mode/psus.pm +++ b/src/storage/emc/vplex/restapi/mode/psus.pm @@ -110,22 +110,22 @@ Filter power supplies by power supply name (can be a regexp). =item B<--warning-operational-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{operational_status}, %{engine_id}, %{psu_name} =item B<--critical-operational-status> -Set critical threshold for status (Default: '%{operational_status} ne "online"'). +Define the conditions to match for the status to be CRITICAL (Default: '%{operational_status} ne "online"'). You can use the following variables: %{operational_status}, %{engine_id}, %{psu_name} =item B<--warning-temperature-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{temperature_threshold_exceeded}, %{engine_id}, %{psu_name} =item B<--critical-temperature-status> -Set critical threshold for status (Default: '%{operational_status} ne "online"'). +Define the conditions to match for the status to be CRITICAL (Default: '%{operational_status} ne "online"'). You can use the following variables: %{temperature_threshold_exceeded}, %{engine_id}, %{psu_name} =back diff --git a/src/storage/emc/vplex/restapi/mode/storagevolumes.pm b/src/storage/emc/vplex/restapi/mode/storagevolumes.pm index 8e205697e..9b45def23 100644 --- a/src/storage/emc/vplex/restapi/mode/storagevolumes.pm +++ b/src/storage/emc/vplex/restapi/mode/storagevolumes.pm @@ -113,12 +113,12 @@ Filter volumes by volume name (can be a regexp). =item B<--warning-health-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{health_state}, %{cluster_name}, %{volume_name} =item B<--critical-health-status> -Set critical threshold for status (Default: '%{health_state} ne "ok"'). +Define the conditions to match for the status to be CRITICAL (Default: '%{health_state} ne "ok"'). You can use the following variables: %{health_state}, %{cluster_name}, %{volume_name} =back diff --git a/src/storage/emc/xtremio/restapi/mode/dpg.pm b/src/storage/emc/xtremio/restapi/mode/dpg.pm index 18909eab7..cbd53a90d 100644 --- a/src/storage/emc/xtremio/restapi/mode/dpg.pm +++ b/src/storage/emc/xtremio/restapi/mode/dpg.pm @@ -145,17 +145,17 @@ Filter data protection groups by name (can be a regexp). =item B<--unknown-health-indicator> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{health}, %{indicator} =item B<--warning-health-indicator> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{health}, %{indicator} =item B<--critical-health-indicator> -Set critical threshold for status (Default: '%{health} !~ /done|normal|null/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{health} !~ /done|normal|null/i'). You can use the following variables: %{health}, %{indicator} =back diff --git a/src/storage/emc/xtremio/restapi/mode/ssdiops.pm b/src/storage/emc/xtremio/restapi/mode/ssdiops.pm index 403467204..006bd296f 100644 --- a/src/storage/emc/xtremio/restapi/mode/ssdiops.pm +++ b/src/storage/emc/xtremio/restapi/mode/ssdiops.pm @@ -165,7 +165,7 @@ Check SSDs usage. =item B<--warning-*> B<--critical-*> -Threshold warning (number of iops) +Warning threshold (number of iops) Can be: 'total', 'total-read', 'total-write', 'global', 'read', 'write'. diff --git a/src/storage/emc/xtremio/restapi/mode/storagecontrollers.pm b/src/storage/emc/xtremio/restapi/mode/storagecontrollers.pm index 250e94f3f..2571cb2bf 100644 --- a/src/storage/emc/xtremio/restapi/mode/storagecontrollers.pm +++ b/src/storage/emc/xtremio/restapi/mode/storagecontrollers.pm @@ -148,17 +148,17 @@ Filter storage controllers by name (can be a regexp). =item B<--unknown-health-indicator> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{health}, %{indicator} =item B<--warning-health-indicator> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{health}, %{indicator} =item B<--critical-health-indicator> -Set critical threshold for status (Default: '%{health} !~ /done|normal|null/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{health} !~ /done|normal|null/i'). You can use the following variables: %{health}, %{indicator} =back diff --git a/src/storage/exagrid/snmp/mode/serverusage.pm b/src/storage/exagrid/snmp/mode/serverusage.pm index 9b7324d1b..1bf8ac96c 100644 --- a/src/storage/exagrid/snmp/mode/serverusage.pm +++ b/src/storage/exagrid/snmp/mode/serverusage.pm @@ -189,12 +189,12 @@ Example: --filter-counters='^status$' =item B<--warning-status> -Set warning threshold for status (Default: '%{status} =~ /warning/i'). +Define the conditions to match for the status to be WARNING (Default: '%{status} =~ /warning/i'). You can use the following variables: %{status} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} =~ /error/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} =~ /error/i'). You can use the following variables: %{status} =item B<--warning-*> B<--critical-*> diff --git a/src/storage/fujitsu/eternus/dx/ssh/mode/cpu.pm b/src/storage/fujitsu/eternus/dx/ssh/mode/cpu.pm index 93164d11a..9fd875bb1 100644 --- a/src/storage/fujitsu/eternus/dx/ssh/mode/cpu.pm +++ b/src/storage/fujitsu/eternus/dx/ssh/mode/cpu.pm @@ -122,11 +122,11 @@ Filter by name (regexp can be used). =item B<--warning-usage> -Threshold warning (in percent). +Warning threshold (in percent). =item B<--critical-usage> -Threshold critical (in percent). +Critical threshold (in percent). =back diff --git a/src/storage/fujitsu/eternus/dx/ssh/mode/portstats.pm b/src/storage/fujitsu/eternus/dx/ssh/mode/portstats.pm index a3352bb8f..90ddd2b84 100644 --- a/src/storage/fujitsu/eternus/dx/ssh/mode/portstats.pm +++ b/src/storage/fujitsu/eternus/dx/ssh/mode/portstats.pm @@ -149,12 +149,12 @@ Filter by name (regexp can be used). =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'read-iops', 'write-iops', 'read-traffic', 'write-traffic'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'read-iops', 'write-iops', 'read-traffic', 'write-traffic'. =back diff --git a/src/storage/fujitsu/eternus/dx/ssh/mode/raidgroups.pm b/src/storage/fujitsu/eternus/dx/ssh/mode/raidgroups.pm index f9a5be85b..a5b5d8043 100644 --- a/src/storage/fujitsu/eternus/dx/ssh/mode/raidgroups.pm +++ b/src/storage/fujitsu/eternus/dx/ssh/mode/raidgroups.pm @@ -246,11 +246,11 @@ Filter by raid level (regexp can be used). =item B<--warning-usage> -Threshold warning (in percent). +Warning threshold (in percent). =item B<--critical-usage> -Threshold critical (in percent). +Critical threshold (in percent). =back diff --git a/src/storage/hitachi/hcp/snmp/mode/nodes.pm b/src/storage/hitachi/hcp/snmp/mode/nodes.pm index 2fe512320..80fcdf9ff 100644 --- a/src/storage/hitachi/hcp/snmp/mode/nodes.pm +++ b/src/storage/hitachi/hcp/snmp/mode/nodes.pm @@ -411,62 +411,62 @@ Filter nodes by id (can be a regexp). =item B<--unknown-node-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{node_status}, %{node_id} =item B<--warning-node-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{node_status}, %{node_id} =item B<--critical-node-status> -Set critical threshold for status (Default: '%{node_status} eq "unavailable"'). +Define the conditions to match for the status to be CRITICAL (Default: '%{node_status} eq "unavailable"'). You can use the following variables: %{node_status}, %{node_id} =item B<--unknown-nic-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{nic_status}, %{node_id} =item B<--warning-nic-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{nic_status}, %{node_id} =item B<--critical-nic-status> -Set critical threshold for status (Default: '%{nic_status} eq "failed"'). +Define the conditions to match for the status to be CRITICAL (Default: '%{nic_status} eq "failed"'). You can use the following variables: %{nic_status}, %{node_id} =item B<--unknown-san-path-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{san_path_status}, %{node_id} =item B<--warning-san-path-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{san_path_status}, %{node_id} =item B<--critical-san-path-status> -Set critical threshold for status (Default: '%{san_path_status} eq "error"'). +Define the conditions to match for the status to be CRITICAL (Default: '%{san_path_status} eq "error"'). You can use the following variables: %{san_path_status}, %{node_id} =item B<--unknown-bbu-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{bbu_status}, %{node_id} =item B<--warning-bbu-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{bbu_status}, %{node_id} =item B<--critical-bbu-status> -Set critical threshold for status (Default: '%{bbu_status} !~ /healthy/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{bbu_status} !~ /healthy/i'). You can use the following variables: %{bbu_status}, %{node_id} =item B<--warning-*> B<--critical-*> diff --git a/src/storage/hitachi/hcp/snmp/mode/volumes.pm b/src/storage/hitachi/hcp/snmp/mode/volumes.pm index 0a97dfaea..885526363 100644 --- a/src/storage/hitachi/hcp/snmp/mode/volumes.pm +++ b/src/storage/hitachi/hcp/snmp/mode/volumes.pm @@ -231,17 +231,17 @@ Filter volumes by node id (can be a regexp). =item B<--unknown-volume-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{status}, %{node_id}, %{label} =item B<--warning-volume-status> -Set warning threshold for status (Default: '%{status} =~ /degraded/'). +Define the conditions to match for the status to be WARNING (Default: '%{status} =~ /degraded/'). You can use the following variables: %{status}, %{node_id}, %{label} =item B<--critical-volume-status> -Set critical threshold for status (Default: '%{status} =~ /broken/'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} =~ /broken/'). You can use the following variables: %{status}, %{node_id}, %{label} =item B<--warning-*> B<--critical-*> diff --git a/src/storage/hp/3par/ssh/mode/afc.pm b/src/storage/hp/3par/ssh/mode/afc.pm index b2e904eb4..2c6a229e5 100644 --- a/src/storage/hp/3par/ssh/mode/afc.pm +++ b/src/storage/hp/3par/ssh/mode/afc.pm @@ -274,19 +274,27 @@ Filter volumes by name (can be a regexp). =item B<--unknown-status> +Define the conditions to match for the status to be UNKNOWN. + =item B<--warning-status> +Define the conditions to match for the status to be WARNING. + =item B<--critical-status> -Set thresholds for status (Default critical: '%{status} !~ /normal/i') - - +Define the conditions to match for the status to be CRITICAL (default: '%{status} !~ /normal/i') You can use the following variables: %{status}, %{node_id} -=item B<--warning-*> B<--critical-*> +=item B<--warning-*> -Thresholds. -Can be: 'flashcache-usage', 'flashcache-usage-free', 'flashcache-usage-prct'. +Define the WARNING thresholds for the following components: +'flashcache-usage', 'flashcache-usage-free', 'flashcache-usage-prct', +'flashcache-node-readhits', 'flashcache-volume-readhits'. + +=item B<--critical-*> + +Define the CRITICAL thresholds for the following components: +'flashcache-usage', 'flashcache-usage-free', 'flashcache-usage-prct', 'flashcache-node-readhits', 'flashcache-volume-readhits'. =back diff --git a/src/storage/hp/3par/ssh/mode/cages.pm b/src/storage/hp/3par/ssh/mode/cages.pm index 1de203892..996ead316 100644 --- a/src/storage/hp/3par/ssh/mode/cages.pm +++ b/src/storage/hp/3par/ssh/mode/cages.pm @@ -317,91 +317,103 @@ Filter cages by id (can be a regexp). =item B<--unknown-status> +Define the conditions to match for the status to be UNKNOWN. + =item B<--warning-status> +Define the conditions to match for the status to be WARNING. + =item B<--critical-status> -Set thresholds for status (Default critical: '%{status} !~ /Normal/i') - - +Define the conditions to match for the status to be CRITICAL (default: '%{status} !~ /Normal/i') You can use the following variables: %{status}, %{cage_id} - =item B<--unknown-board-firmware-status> +Define the conditions to match for the status to be UNKNOWN. + =item B<--warning-board-firmware-status> +Define the conditions to match for the status to be WARNING. + =item B<--critical-board-firmware-status> -Set thresholds for status (Default critical: '%{status} !~ /Current/i') - - +Define the conditions to match for the status to be CRITICAL (default: '%{status} !~ /Current/i') You can use the following variables: %{status}, %{cage_id}, %{board_id} - =item B<--unknown-board-[self|partner]-status> +Define the conditions to match for the status to be UNKNOWN. + =item B<--warning-board-[self|partner]-status> +Define the conditions to match for the status to be WARNING. + =item B<--critical-board-[self|partner]-status> -Set thresholds for status (Default critical: '%{status} !~ /ok/i') - - +Define the conditions to match for the status to be CRITICAL (default: '%{status} !~ /ok/i') You can use the following variables: %{status}, %{cage_id}, %{board_id} =item B<--unknown-psu-status> +Define the conditions to match for the status to be UNKNOWN. + =item B<--warning-psu-status> +Define the conditions to match for the status to be WARNING. + =item B<--critical-psu-status> -Set thresholds for status (Default critical: '%{status} !~ /ok/i') - - +Define the conditions to match for the status to be CRITICAL (default: '%{status} !~ /ok/i') You can use the following variables: %{status}, %{cage_id}, %{psu_id} - =item B<--unknown-psu-[ac|dc|fan]-status> +Define the conditions to match for the status to be UNKNOWN. + =item B<--warning-psu-[ac|dc|fan]-status> +Define the conditions to match for the status to be WARNING. + =item B<--critical-psu-[ac|dc|fan]-status> -Set thresholds for status (Default critical: '%{status} !~ /ok/i') - - +Define the conditions to match for the status to be CRITICAL (default: '%{status} !~ /ok/i') You can use the following variables: %{status}, %{cage_id}, %{psu_id} - =item B<--unknown-drive-status> +Define the conditions to match for the status to be UNKNOWN. + =item B<--warning-drive-status> +Define the conditions to match for the status to be WARNING. + =item B<--critical-drive-status> -Set thresholds for status (Default critical: '%{status} !~ /normal/i') - - +Define the conditions to match for the status to be CRITICAL (default: '%{status} !~ /normal/i') You can use the following variables: %{status}, %{cage_id}, %{drive_id} - =item B<--unknown-drive-[porta|portb]-status> +Define the conditions to match for the status to be UNKNOWN. + =item B<--warning-drive-[porta|portb]-status> +Define the conditions to match for the status to be WARNING. + =item B<--critical-drive-[porta|portb]-status> -Set thresholds for status (Default critical: '%{status} !~ /ok/i') - - +Define the conditions to match for the status to be CRITICAL (default: '%{status} !~ /ok/i') You can use the following variables: %{status}, %{cage_id}, %{drive_id} -=item B<--warning-*> B<--critical-*> +=item B<--warning-drive-temperature> -Thresholds. -Can be: 'drive-temperature'. +Define WARNING threshold for the temperature of the drives. + +=item B<--critical-drive-temperature> + +Define CRITICAL threshold for the temperature of the drives. =back diff --git a/src/storage/hp/3par/ssh/mode/diskusage.pm b/src/storage/hp/3par/ssh/mode/diskusage.pm index ba8f8e1d9..2745c0828 100644 --- a/src/storage/hp/3par/ssh/mode/diskusage.pm +++ b/src/storage/hp/3par/ssh/mode/diskusage.pm @@ -166,17 +166,17 @@ Filter disk name (can be a regexp). =item B<--warning-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{status}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} !~ /normal/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} !~ /normal/i'). You can use the following variables: %{status}, %{display} =item B<--warning-*> B<--critical-*> -Threshold warning. +Warning threshold. Can be: 'usage' (B), 'usage-free' (B), 'usage-prct' (%). =back diff --git a/src/storage/hp/3par/ssh/mode/nodes.pm b/src/storage/hp/3par/ssh/mode/nodes.pm index 1031cc427..bd4027f28 100644 --- a/src/storage/hp/3par/ssh/mode/nodes.pm +++ b/src/storage/hp/3par/ssh/mode/nodes.pm @@ -191,17 +191,17 @@ Filter nodes by id (can be a regexp). =item B<--unknown-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{status}, %{node_id} =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{status}, %{node_id} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} !~ /ok/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} !~ /ok/i'). You can use the following variables: %{status}, %{node_id} =item B<--warning-*> B<--critical-*> diff --git a/src/storage/hp/3par/ssh/mode/psu.pm b/src/storage/hp/3par/ssh/mode/psu.pm index 978efb2d4..b0f424055 100644 --- a/src/storage/hp/3par/ssh/mode/psu.pm +++ b/src/storage/hp/3par/ssh/mode/psu.pm @@ -239,17 +239,17 @@ Filter power supplies by id (can be a regexp). =item B<--unknown-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{status}, %{node_id}, %{psu_id} =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{status}, %{node_id}, %{psu_id} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} !~ /ok/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} !~ /ok/i'). You can use the following variables: %{status}, %{node_id}, %{psu_id} =item B<--unknown-ac-status> diff --git a/src/storage/hp/eva/cli/mode/storageusage.pm b/src/storage/hp/eva/cli/mode/storageusage.pm index 41519068b..2166b99d9 100644 --- a/src/storage/hp/eva/cli/mode/storageusage.pm +++ b/src/storage/hp/eva/cli/mode/storageusage.pm @@ -157,11 +157,11 @@ Thresholds are on free space left. =item B<--warning-usage> -Threshold warning. +Warning threshold. =item B<--critical-usage> -Threshold critical. +Critical threshold. =back diff --git a/src/storage/hp/lefthand/snmp/mode/volumeusage.pm b/src/storage/hp/lefthand/snmp/mode/volumeusage.pm index 302eb1c0f..ef48ba681 100644 --- a/src/storage/hp/lefthand/snmp/mode/volumeusage.pm +++ b/src/storage/hp/lefthand/snmp/mode/volumeusage.pm @@ -301,23 +301,23 @@ Filter volume name (can be a regexp). =item B<--warning-replication-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{status}, %{display} =item B<--critical-replication-status> -Set critical threshold for status (Default: '%{status} !~ /normal/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} !~ /normal/i'). You can use the following variables: %{status}, %{display} =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'read' (b/s), 'write' (b/s), 'read-iops', 'write-iops', 'read-latency', 'write-latency', 'usage'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'read' (b/s), 'write' (b/s), 'read-iops', 'write-iops', 'read-latency', 'write-latency', 'usage'. diff --git a/src/storage/hp/p2000/xmlapi/mode/controllers.pm b/src/storage/hp/p2000/xmlapi/mode/controllers.pm index 51ea2754e..3579729c3 100644 --- a/src/storage/hp/p2000/xmlapi/mode/controllers.pm +++ b/src/storage/hp/p2000/xmlapi/mode/controllers.pm @@ -391,77 +391,77 @@ Filter controllers by controller name (can be a regexp). =item B<--unknown-controller-status> -Set unknown threshold for status (Default: '%{status} =~ /unknown/i'). +Define the conditions to match for the status to be UNKNOWN (Default: '%{status} =~ /unknown/i'). You can use the following variables: %{status}, %{name} =item B<--warning-controller-status> -Set warning threshold for status (Default: '%{status} =~ /degraded/i'). +Define the conditions to match for the status to be WARNING (Default: '%{status} =~ /degraded/i'). You can use the following variables: %{status}, %{name} =item B<--critical-controller-status> -Set critical threshold for status (Default: '%{status} =~ /failed/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} =~ /failed/i'). You can use the following variables: %{status}, %{name} =item B<--unknown-network-status> -Set unknown threshold for status (Default: '%{status} =~ /unknown/i'). +Define the conditions to match for the status to be UNKNOWN (Default: '%{status} =~ /unknown/i'). You can use the following variables: %{status}, %{name} =item B<--warning-network-status> -Set warning threshold for status (Default: '%{status} =~ /degraded/i'). +Define the conditions to match for the status to be WARNING (Default: '%{status} =~ /degraded/i'). You can use the following variables: %{status}, %{name} =item B<--critical-network-status> -Set critical threshold for status (Default: '%{status} =~ /failed/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} =~ /failed/i'). You can use the following variables: %{status}, %{name} =item B<--unknown-port-status> -Set unknown threshold for status (Default: '%{status} =~ /unknown/i'). +Define the conditions to match for the status to be UNKNOWN (Default: '%{status} =~ /unknown/i'). You can use the following variables: %{status}, %{name} =item B<--warning-port-status> -Set warning threshold for status (Default: '%{status} =~ /degraded/i'). +Define the conditions to match for the status to be WARNING (Default: '%{status} =~ /degraded/i'). You can use the following variables: %{status}, %{name} =item B<--critical-port-status> -Set critical threshold for status (Default: '%{status} =~ /failed/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} =~ /failed/i'). You can use the following variables: %{status}, %{name} =item B<--unknown-expander-port-status> -Set unknown threshold for status (Default: '%{status} =~ /unknown/i'). +Define the conditions to match for the status to be UNKNOWN (Default: '%{status} =~ /unknown/i'). You can use the following variables: %{status}, %{name} =item B<--warning-expander-port-status> -Set warning threshold for status (Default: '%{status} =~ /degraded/i'). +Define the conditions to match for the status to be WARNING (Default: '%{status} =~ /degraded/i'). You can use the following variables: %{status}, %{name} =item B<--critical-expander-port-status> -Set critical threshold for status (Default: '%{status} =~ /failed/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} =~ /failed/i'). You can use the following variables: %{status}, %{name} =item B<--unknown-compact-flash-status> -Set unknown threshold for status (Default: '%{status} =~ /unknown/i'). +Define the conditions to match for the status to be UNKNOWN (Default: '%{status} =~ /unknown/i'). You can use the following variables: %{status}, %{name} =item B<--warning-compact-flash-status> -Set warning threshold for status (Default: '%{status} =~ /degraded/i'). +Define the conditions to match for the status to be WARNING (Default: '%{status} =~ /degraded/i'). You can use the following variables: %{status}, %{name} =item B<--critical-compact-flash-status> -Set critical threshold for status (Default: '%{status} =~ /failed/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} =~ /failed/i'). You can use the following variables: %{status}, %{name} =item B<--warning-*> B<--critical-*> diff --git a/src/storage/hp/p2000/xmlapi/mode/ntp.pm b/src/storage/hp/p2000/xmlapi/mode/ntp.pm index dce00fe59..80b77dc13 100644 --- a/src/storage/hp/p2000/xmlapi/mode/ntp.pm +++ b/src/storage/hp/p2000/xmlapi/mode/ntp.pm @@ -189,12 +189,12 @@ Example: --filter-counters='status' =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. Can use special variables like: %{status} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} =~ /deactivated/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} =~ /deactivated/i'). Can use special variables like: %{status} =item B<--timezone> diff --git a/src/storage/hp/p2000/xmlapi/mode/vdisks.pm b/src/storage/hp/p2000/xmlapi/mode/vdisks.pm index 8db795db3..fcaa738d4 100644 --- a/src/storage/hp/p2000/xmlapi/mode/vdisks.pm +++ b/src/storage/hp/p2000/xmlapi/mode/vdisks.pm @@ -193,17 +193,17 @@ Filter virtual disk name (can be a regexp). =item B<--unknown-status> -Set unknown threshold for status (Default: '%{status} =~ /unknown/i'). +Define the conditions to match for the status to be UNKNOWN (Default: '%{status} =~ /unknown/i'). You can use the following variables: %{status}, %{display} =item B<--warning-status> -Set warning threshold for status (Default: '%{status} =~ /degraded/i'). +Define the conditions to match for the status to be WARNING (Default: '%{status} =~ /degraded/i'). You can use the following variables: %{status}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} =~ /failed/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} =~ /failed/i'). You can use the following variables: %{status}, %{display} =item B<--warning-*> B<--critical-*> diff --git a/src/storage/hp/p2000/xmlapi/mode/volumesstats.pm b/src/storage/hp/p2000/xmlapi/mode/volumesstats.pm index 9a65f20ed..b6a1a6037 100644 --- a/src/storage/hp/p2000/xmlapi/mode/volumesstats.pm +++ b/src/storage/hp/p2000/xmlapi/mode/volumesstats.pm @@ -180,12 +180,12 @@ Check volume statistics. =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'read', 'write', 'iops', 'write-cache-hits', 'read-cache-hits'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'read', 'write', 'iops', 'write-cache-hits', 'read-cache-hits'. =item B<--name> diff --git a/src/storage/hp/storeonce/3/restapi/mode/clusterusage.pm b/src/storage/hp/storeonce/3/restapi/mode/clusterusage.pm index d68f4ada6..e139f71af 100644 --- a/src/storage/hp/storeonce/3/restapi/mode/clusterusage.pm +++ b/src/storage/hp/storeonce/3/restapi/mode/clusterusage.pm @@ -226,22 +226,22 @@ Filter cluster name (can be a regexp). =item B<--warning-status> -Set warning threshold for status (Default: '%{health} =~ /warning/'). +Define the conditions to match for the status to be WARNING (Default: '%{health} =~ /warning/'). You can use the following variables: %{health}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: '%{health} =~ /critical/'). +Define the conditions to match for the status to be CRITICAL (Default: '%{health} =~ /critical/'). You can use the following variables: %{health}, %{display} =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'usage', 'dedup'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'usage', 'dedup'. =item B<--units> diff --git a/src/storage/hp/storeonce/3/restapi/mode/fcsusage.pm b/src/storage/hp/storeonce/3/restapi/mode/fcsusage.pm index 819e7b978..29a066a5c 100644 --- a/src/storage/hp/storeonce/3/restapi/mode/fcsusage.pm +++ b/src/storage/hp/storeonce/3/restapi/mode/fcsusage.pm @@ -157,22 +157,22 @@ Filter name (can be a regexp). =item B<--warning-status> -Set warning threshold for status (Default: '%{is_online} == 1 and %{health} =~ /warning/i'). +Define the conditions to match for the status to be WARNING (Default: '%{is_online} == 1 and %{health} =~ /warning/i'). You can use the following variables: %{health}, %{is_online}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: '%{is_online} == 1 and %{health} =~ /critical/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{is_online} == 1 and %{health} =~ /critical/i'). You can use the following variables: %{health}, %{is_online}, %{display} =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'usage', 'dedup', 'items'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'usage', 'dedup', 'items'. =back diff --git a/src/storage/hp/storeonce/3/restapi/mode/nasusage.pm b/src/storage/hp/storeonce/3/restapi/mode/nasusage.pm index a9ff7fa08..119c35d4a 100644 --- a/src/storage/hp/storeonce/3/restapi/mode/nasusage.pm +++ b/src/storage/hp/storeonce/3/restapi/mode/nasusage.pm @@ -170,22 +170,22 @@ Filter nas name (can be a regexp). =item B<--warning-nas-status> -Set warning threshold for status (Default: '%{health} =~ /warning/i'). +Define the conditions to match for the status to be WARNING (Default: '%{health} =~ /warning/i'). You can use the following variables: %{health}, %{replication_health}, %{display} =item B<--critical-nas-status> -Set critical threshold for status (Default: '%{health} =~ /critical/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{health} =~ /critical/i'). You can use the following variables: %{health}, %{replication_health}, %{display} =item B<--warning-share-status> -Set warning threshold for status (Default: '%{health} =~ /warning/i'). +Define the conditions to match for the status to be WARNING (Default: '%{health} =~ /warning/i'). You can use the following variables: %{health}, %{replication_health}, %{display} =item B<--critical-share-status> -Set critical threshold for status (Default: '%{health} =~ /critical/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{health} =~ /critical/i'). You can use the following variables: %{health}, %{replication_health}, %{display} =back diff --git a/src/storage/hp/storeonce/3/restapi/mode/servicesetusage.pm b/src/storage/hp/storeonce/3/restapi/mode/servicesetusage.pm index 2f72470ab..974407c9d 100644 --- a/src/storage/hp/storeonce/3/restapi/mode/servicesetusage.pm +++ b/src/storage/hp/storeonce/3/restapi/mode/servicesetusage.pm @@ -224,22 +224,22 @@ Filter service set name (can be a regexp). =item B<--warning-status> -Set warning threshold for status (Default: '%{health} =~ /warning/). +Define the conditions to match for the status to be WARNING (Default: '%{health} =~ /warning/). You can use the following variables: %{health}, %{replication_health}, %{housekeeping_health}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: '%{health} =~ /critical/'). +Define the conditions to match for the status to be CRITICAL (Default: '%{health} =~ /critical/'). You can use the following variables: %{health}, %{replication_health}, %{housekeeping_health}, %{display} =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'usage', 'dedup'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'usage', 'dedup'. =item B<--units> diff --git a/src/storage/hp/storeonce/4/restapi/mode/appliances.pm b/src/storage/hp/storeonce/4/restapi/mode/appliances.pm index 70c799ff8..7d1462f8b 100644 --- a/src/storage/hp/storeonce/4/restapi/mode/appliances.pm +++ b/src/storage/hp/storeonce/4/restapi/mode/appliances.pm @@ -231,17 +231,17 @@ Filter appliances by hostname. =item B<--unknown-service-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{service}, %{status} =item B<--warning-service-status> -Set warning threshold for status (Default: '%{status} =~ /warning/i'). +Define the conditions to match for the status to be WARNING (Default: '%{status} =~ /warning/i'). You can use the following variables: %{service}, %{status} =item B<--critical-service-status> -Set critical threshold for status (Default: '%{status} =~ /critical/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} =~ /critical/i'). You can use the following variables: %{service}, %{status} =item B<--warning-*> B<--critical-*> diff --git a/src/storage/hp/storeonce/4/restapi/mode/stores.pm b/src/storage/hp/storeonce/4/restapi/mode/stores.pm index c1a3cd2e0..3ac0d9eca 100644 --- a/src/storage/hp/storeonce/4/restapi/mode/stores.pm +++ b/src/storage/hp/storeonce/4/restapi/mode/stores.pm @@ -201,17 +201,17 @@ Filter stores by hostname. =item B<--unknown-health> -Set unknown threshold for status (Default: '%{health} =~ /unknown/i'). +Define the conditions to match for the status to be UNKNOWN (Default: '%{health} =~ /unknown/i'). You can use the following variables: %{health}, %{name} =item B<--warning-health> -Set warning threshold for status (Default: '%{health} =~ /warning/i'). +Define the conditions to match for the status to be WARNING (Default: '%{health} =~ /warning/i'). You can use the following variables: %{health}, %{name} =item B<--critical-health> -Set critical threshold for status (Default: '%{health} =~ /critical/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{health} =~ /critical/i'). You can use the following variables: %{health}, %{name} =item B<--warning-*> B<--critical-*> diff --git a/src/storage/huawei/oceanstor/snmp/mode/controllers.pm b/src/storage/huawei/oceanstor/snmp/mode/controllers.pm index a3ea04983..5533b1c9c 100644 --- a/src/storage/huawei/oceanstor/snmp/mode/controllers.pm +++ b/src/storage/huawei/oceanstor/snmp/mode/controllers.pm @@ -190,17 +190,17 @@ Filter controller by ID (can be a regexp). =item B<--unknown-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{health_status}, %{running_status}, %{id} =item B<--warning-status> -Set warning threshold for status (Default: '%{health_status} =~ /degraded|partially broken/i'). +Define the conditions to match for the status to be WARNING (Default: '%{health_status} =~ /degraded|partially broken/i'). You can use the following variables: %{health_status}, %{running_status}, %{id} =item B<--critical-status> -Set critical threshold for status (Default: '%{health_status} =~ /fault|fail/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{health_status} =~ /fault|fail/i'). You can use the following variables: %{health_status}, %{running_status}, %{id} =item B<--warning-*> B<--critical-*> diff --git a/src/storage/huawei/oceanstor/snmp/mode/storagepools.pm b/src/storage/huawei/oceanstor/snmp/mode/storagepools.pm index 7f703d4bd..2cc8d357d 100644 --- a/src/storage/huawei/oceanstor/snmp/mode/storagepools.pm +++ b/src/storage/huawei/oceanstor/snmp/mode/storagepools.pm @@ -236,17 +236,17 @@ Filter storage pool by domain name (can be a regexp). =item B<--unknown-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{health_status}, %{running_status}, %{name} =item B<--warning-status> -Set warning threshold for status (Default: '%{health_status} =~ /degraded|partially broken/i'). +Define the conditions to match for the status to be WARNING (Default: '%{health_status} =~ /degraded|partially broken/i'). You can use the following variables: %{health_status}, %{running_status}, %{name} =item B<--critical-status> -Set critical threshold for status (Default: '%{health_status} =~ /fault|fail/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{health_status} =~ /fault|fail/i'). You can use the following variables: %{health_status}, %{running_status}, %{name} =item B<--warning-*> B<--critical-*> diff --git a/src/storage/ibm/fs900/snmp/mode/arraysstatus.pm b/src/storage/ibm/fs900/snmp/mode/arraysstatus.pm index 3322ca26c..f031ec882 100644 --- a/src/storage/ibm/fs900/snmp/mode/arraysstatus.pm +++ b/src/storage/ibm/fs900/snmp/mode/arraysstatus.pm @@ -132,21 +132,21 @@ Check arrays status. =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. 'status' can be: 'online', 'offline', 'excluded', 'degraded'. =item B<--critical-status> -Set critical threshold for status (Default: '%{status} =~ /degraded/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} =~ /degraded/i'). 'status' can be: 'online', 'offline', 'excluded', 'degraded'. =item B<--warning-vdisk-count> -Threshold warning for VDisks count. +Warning threshold for VDisks count. =item B<--critical-vdisk-count> -Threshold critical for VDisks count. +Critical threshold for VDisks count. =back diff --git a/src/storage/ibm/fs900/snmp/mode/arraysusage.pm b/src/storage/ibm/fs900/snmp/mode/arraysusage.pm index 79716aead..9037c5884 100644 --- a/src/storage/ibm/fs900/snmp/mode/arraysusage.pm +++ b/src/storage/ibm/fs900/snmp/mode/arraysusage.pm @@ -168,11 +168,11 @@ Check arrays usage. =item B<--warning-usage> -Threshold warning. +Warning threshold. =item B<--critical-usage> -Threshold critical. +Critical threshold. =back diff --git a/src/storage/ibm/fs900/snmp/mode/fcusage.pm b/src/storage/ibm/fs900/snmp/mode/fcusage.pm index 39bc0a91b..2371f58e7 100644 --- a/src/storage/ibm/fs900/snmp/mode/fcusage.pm +++ b/src/storage/ibm/fs900/snmp/mode/fcusage.pm @@ -190,12 +190,12 @@ Check fibre channels usage. =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'read-bandwidth', 'write-bandwidth', 'read-iops', 'write-iops', 'read-queue-depth', 'write-queue-depth'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'read-bandwidth', 'write-bandwidth', 'read-iops', 'write-iops', 'read-queue-depth', 'write-queue-depth'. =back diff --git a/src/storage/ibm/storwize/ssh/mode/eventlog.pm b/src/storage/ibm/storwize/ssh/mode/eventlog.pm index e361eef6e..58c4faf70 100644 --- a/src/storage/ibm/storwize/ssh/mode/eventlog.pm +++ b/src/storage/ibm/storwize/ssh/mode/eventlog.pm @@ -125,11 +125,11 @@ Check eventlogs. =item B<--warning> -Threshold warning. +Warning threshold. =item B<--critical> -Threshold critical. +Critical threshold. =item B<--filter-event-id> diff --git a/src/storage/ibm/storwize/ssh/mode/poolusage.pm b/src/storage/ibm/storwize/ssh/mode/poolusage.pm index 36d7b4587..42f8a247a 100644 --- a/src/storage/ibm/storwize/ssh/mode/poolusage.pm +++ b/src/storage/ibm/storwize/ssh/mode/poolusage.pm @@ -201,12 +201,12 @@ Filter pool name (can be a regexp). =item B<--warning-status> -Set warning threshold for status (Default: '%{status} =~ /degraded/i'). +Define the conditions to match for the status to be WARNING (Default: '%{status} =~ /degraded/i'). You can use the following variables: %{status}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} =~ /offline/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} =~ /offline/i'). You can use the following variables: %{status}, %{display} =item B<--warning-*> B<--critical-*> diff --git a/src/storage/ibm/storwize/ssh/mode/replication.pm b/src/storage/ibm/storwize/ssh/mode/replication.pm index 77da26df4..8d943f588 100644 --- a/src/storage/ibm/storwize/ssh/mode/replication.pm +++ b/src/storage/ibm/storwize/ssh/mode/replication.pm @@ -112,12 +112,12 @@ Filter group name (can be a regexp). =item B<--warning-status> -Set warning threshold for status (Default: '%{status} =~ /idling/i'). +Define the conditions to match for the status to be WARNING (Default: '%{status} =~ /idling/i'). You can use the following variables: %{status} =item B<--critical-status> -Set critical threshold for status. +Define the conditions to match for the status to be CRITICAL. You can use the following variables: %{status} =back diff --git a/src/storage/kaminario/restapi/mode/systemusage.pm b/src/storage/kaminario/restapi/mode/systemusage.pm index c1b0aadba..0aaa08973 100644 --- a/src/storage/kaminario/restapi/mode/systemusage.pm +++ b/src/storage/kaminario/restapi/mode/systemusage.pm @@ -170,13 +170,13 @@ Example: --filter-counters='^iops$' =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'latency-inner', 'latency-outer', 'iops', 'throughput', 'bs-latency-inner', 'bs-latency-outer', 'bs-iops', 'bs-throughput', =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'latency-inner', 'latency-outer', 'iops', 'throughput', 'bs-latency-inner', 'bs-latency-outer', 'bs-iops', 'bs-throughput', diff --git a/src/storage/kaminario/restapi/mode/volumeusage.pm b/src/storage/kaminario/restapi/mode/volumeusage.pm index c3a4e4f22..25075c93e 100644 --- a/src/storage/kaminario/restapi/mode/volumeusage.pm +++ b/src/storage/kaminario/restapi/mode/volumeusage.pm @@ -131,12 +131,12 @@ Filter volume name (can be a regexp). =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'latency-inner', 'latency-outer', 'iops', 'throughput' =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'latency-inner', 'latency-outer', 'iops', 'throughput' =back diff --git a/src/storage/lenovo/iomega/snmp/mode/interfaces.pm b/src/storage/lenovo/iomega/snmp/mode/interfaces.pm index 267ef890e..1ec9db8f2 100644 --- a/src/storage/lenovo/iomega/snmp/mode/interfaces.pm +++ b/src/storage/lenovo/iomega/snmp/mode/interfaces.pm @@ -94,12 +94,12 @@ If the expression is true, metrics are checked (Default: '%{opstatus} eq "up"'). =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{admstatus}, %{opstatus}, %{duplexstatus}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: '%{admstatus} eq "up" and %{opstatus} ne "up"'). +Define the conditions to match for the status to be CRITICAL (Default: '%{admstatus} eq "up" and %{opstatus} ne "up"'). You can use the following variables: %{admstatus}, %{opstatus}, %{duplexstatus}, %{display} =item B<--warning-*> B<--critical-*> @@ -128,7 +128,7 @@ Display traffic perfdata to be compatible with nagvis widget. =item B<--interface> -Set the interface (number expected) ex: 1,2,... (empty means 'check all interface'). +Set the interface (number expected) ex: 1,2,... (empty means 'check all interfaces'). =item B<--name> @@ -156,11 +156,11 @@ Time in minutes before reloading cache file (default: 180). =item B<--oid-filter> -Choose OID used to filter interface (default: ifDesc) (values: ifDesc, ifAlias, ifName, IpAddr). +Define the OID to be used to filter interfaces (default: ifDesc) (values: ifDesc, ifAlias, ifName, IpAddr). =item B<--oid-display> -Choose OID used to display interface (default: ifDesc) (values: ifDesc, ifAlias, ifName, IpAddr). +Define the OID that will be used to name the interfaces (default: ifDesc) (values: ifDesc, ifAlias, ifName, IpAddr). =item B<--oid-extra-display> diff --git a/src/storage/netapp/ontap/oncommandapi/mode/aggregateraidstatus.pm b/src/storage/netapp/ontap/oncommandapi/mode/aggregateraidstatus.pm index 446c43d2d..548727f45 100644 --- a/src/storage/netapp/ontap/oncommandapi/mode/aggregateraidstatus.pm +++ b/src/storage/netapp/ontap/oncommandapi/mode/aggregateraidstatus.pm @@ -159,12 +159,12 @@ Can be: 'name', 'node', 'cluster' (can be a regexp). =item B<--warning-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{status}, %{type}, %{size} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} !~ /normal/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} !~ /normal/i'). You can use the following variables: %{status}, %{type}, %{size} =back diff --git a/src/storage/netapp/ontap/oncommandapi/mode/aggregatestatus.pm b/src/storage/netapp/ontap/oncommandapi/mode/aggregatestatus.pm index 8f48347eb..2b6a7c6c4 100644 --- a/src/storage/netapp/ontap/oncommandapi/mode/aggregatestatus.pm +++ b/src/storage/netapp/ontap/oncommandapi/mode/aggregatestatus.pm @@ -157,12 +157,12 @@ Can be: 'name', 'node', 'cluster' (can be a regexp). =item B<--warning-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{state}, %{mirror_status} =item B<--critical-status> -Set critical threshold for status (Default: '%{state} !~ /online/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{state} !~ /online/i'). You can use the following variables: %{state}, %{mirror_status} =back diff --git a/src/storage/netapp/ontap/oncommandapi/mode/aggregateusage.pm b/src/storage/netapp/ontap/oncommandapi/mode/aggregateusage.pm index fb759bec0..f67c4f239 100644 --- a/src/storage/netapp/ontap/oncommandapi/mode/aggregateusage.pm +++ b/src/storage/netapp/ontap/oncommandapi/mode/aggregateusage.pm @@ -281,12 +281,12 @@ Can be: 'name', 'node', 'cluster', 'state', 'type' (can be a regexp). =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'usage', 'snapshot'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'usage', 'snapshot'. =item B<--units> diff --git a/src/storage/netapp/ontap/oncommandapi/mode/clusterio.pm b/src/storage/netapp/ontap/oncommandapi/mode/clusterio.pm index 2095e087f..79b56a2f6 100644 --- a/src/storage/netapp/ontap/oncommandapi/mode/clusterio.pm +++ b/src/storage/netapp/ontap/oncommandapi/mode/clusterio.pm @@ -129,12 +129,12 @@ Filter snapmirror name (can be a regexp). =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'total-throughput', 'total-ops'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'total-throughput', 'total-ops'. =back diff --git a/src/storage/netapp/ontap/oncommandapi/mode/clusterstatus.pm b/src/storage/netapp/ontap/oncommandapi/mode/clusterstatus.pm index 7994adc43..007ded825 100644 --- a/src/storage/netapp/ontap/oncommandapi/mode/clusterstatus.pm +++ b/src/storage/netapp/ontap/oncommandapi/mode/clusterstatus.pm @@ -135,12 +135,12 @@ Filter snapmirror name (can be a regexp). =item B<--warning-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{status}, %{metro_cluster_mode}, %{metro_cluster_configuration_state} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} !~ /ok/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} !~ /ok/i'). You can use the following variables: %{status}, %{metro_cluster_mode}, %{metro_cluster_configuration_state} =back diff --git a/src/storage/netapp/ontap/oncommandapi/mode/clusterusage.pm b/src/storage/netapp/ontap/oncommandapi/mode/clusterusage.pm index c9491c1b1..196f4344c 100644 --- a/src/storage/netapp/ontap/oncommandapi/mode/clusterusage.pm +++ b/src/storage/netapp/ontap/oncommandapi/mode/clusterusage.pm @@ -128,12 +128,12 @@ Filter snapmirror name (can be a regexp). =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'max-node-utilization', 'max-aggregate-utilization'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'max-node-utilization', 'max-aggregate-utilization'. =back diff --git a/src/storage/netapp/ontap/oncommandapi/mode/diskfailed.pm b/src/storage/netapp/ontap/oncommandapi/mode/diskfailed.pm index 2d7109118..417aa326e 100644 --- a/src/storage/netapp/ontap/oncommandapi/mode/diskfailed.pm +++ b/src/storage/netapp/ontap/oncommandapi/mode/diskfailed.pm @@ -132,12 +132,12 @@ Can be: 'node', 'cluster' (can be a regexp). =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'failed', 'pre-failed'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'failed', 'pre-failed'. =back diff --git a/src/storage/netapp/ontap/oncommandapi/mode/diskspare.pm b/src/storage/netapp/ontap/oncommandapi/mode/diskspare.pm index c49ab2928..4963c1ca0 100644 --- a/src/storage/netapp/ontap/oncommandapi/mode/diskspare.pm +++ b/src/storage/netapp/ontap/oncommandapi/mode/diskspare.pm @@ -146,12 +146,12 @@ Can be: 'node', 'cluster' (can be a regexp). =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'spare', 'zeroed', 'not-zeroed'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'spare', 'zeroed', 'not-zeroed'. =back diff --git a/src/storage/netapp/ontap/oncommandapi/mode/fcportstatus.pm b/src/storage/netapp/ontap/oncommandapi/mode/fcportstatus.pm index 0f46283d2..86c60409e 100644 --- a/src/storage/netapp/ontap/oncommandapi/mode/fcportstatus.pm +++ b/src/storage/netapp/ontap/oncommandapi/mode/fcportstatus.pm @@ -140,12 +140,12 @@ Can be: 'name', 'volume' (can be a regexp). =item B<--warning-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{state}, %{state} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} !~ /online/i || %{state} !~ /online/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} !~ /online/i || %{state} !~ /online/i'). You can use the following variables: %{status}, %{state} =back diff --git a/src/storage/netapp/ontap/oncommandapi/mode/lunalignment.pm b/src/storage/netapp/ontap/oncommandapi/mode/lunalignment.pm index 347fbef10..7f94dbab0 100644 --- a/src/storage/netapp/ontap/oncommandapi/mode/lunalignment.pm +++ b/src/storage/netapp/ontap/oncommandapi/mode/lunalignment.pm @@ -155,12 +155,12 @@ Can be: 'volume' (can be a regexp). =item B<--warning-*> -Threshold warning. +Warning threshold. 'aligned', 'misaligned', 'possibly-misaligned', 'indeterminate', 'partial-writes', 'not-mapped'. =item B<--critical-*> -Threshold critical. +Critical threshold. 'aligned', 'misaligned', 'possibly-misaligned', 'indeterminate', 'partial-writes', 'not-mapped'. =back diff --git a/src/storage/netapp/ontap/oncommandapi/mode/lunonline.pm b/src/storage/netapp/ontap/oncommandapi/mode/lunonline.pm index f64b95806..e36df3663 100644 --- a/src/storage/netapp/ontap/oncommandapi/mode/lunonline.pm +++ b/src/storage/netapp/ontap/oncommandapi/mode/lunonline.pm @@ -144,12 +144,12 @@ Can be: 'volume' (can be a regexp). =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'online', 'not-online', 'mapped', 'not-mapped'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'online', 'not-online', 'mapped', 'not-mapped'. =back diff --git a/src/storage/netapp/ontap/oncommandapi/mode/lunusage.pm b/src/storage/netapp/ontap/oncommandapi/mode/lunusage.pm index b0d77649e..c6c41799f 100644 --- a/src/storage/netapp/ontap/oncommandapi/mode/lunusage.pm +++ b/src/storage/netapp/ontap/oncommandapi/mode/lunusage.pm @@ -168,11 +168,11 @@ Filter lun name (can be a regexp). =item B<--warning-usage> -Threshold warning. +Warning threshold. =item B<--critical-usage> -Threshold critical. +Critical threshold. =item B<--units> diff --git a/src/storage/netapp/ontap/oncommandapi/mode/nodefailoverstatus.pm b/src/storage/netapp/ontap/oncommandapi/mode/nodefailoverstatus.pm index a94f3ff1a..04f6821d9 100644 --- a/src/storage/netapp/ontap/oncommandapi/mode/nodefailoverstatus.pm +++ b/src/storage/netapp/ontap/oncommandapi/mode/nodefailoverstatus.pm @@ -153,12 +153,12 @@ Can be: 'name', 'clusters' (can be a regexp). =item B<--warning-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{state}, %{interconnect}, %{current_mode}, %{take_over_possible} =item B<--critical-status> -Set critical threshold for status (Default: '%{state} !~ /connected/i || %{interconnect} !~ /up/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{state} !~ /connected/i || %{interconnect} !~ /up/i'). You can use the following variables: %{state}, %{interconnect}, %{current_mode}, %{take_over_possible} =back diff --git a/src/storage/netapp/ontap/oncommandapi/mode/nodehardwarestatus.pm b/src/storage/netapp/ontap/oncommandapi/mode/nodehardwarestatus.pm index b7ab839b8..3ea0fc625 100644 --- a/src/storage/netapp/ontap/oncommandapi/mode/nodehardwarestatus.pm +++ b/src/storage/netapp/ontap/oncommandapi/mode/nodehardwarestatus.pm @@ -171,22 +171,22 @@ Can be: 'name', 'clusters' (can be a regexp). =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'failed-fans', 'psu'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'failed-fans', 'psu'. =item B<--warning-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{status}, %{temperature}, %{battery_status} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} =~ /not healthy/i || %{temperature} !~ /ok/i || +Define the conditions to match for the status to be CRITICAL (Default: '%{status} =~ /not healthy/i || %{temperature} !~ /ok/i || %{battery_status} !~ /battery_ok|battery_fully_charge|battery_over_charged/i'). You can use the following variables: %{status}, %{temperature}, %{battery_status} diff --git a/src/storage/netapp/ontap/oncommandapi/mode/qtreestatus.pm b/src/storage/netapp/ontap/oncommandapi/mode/qtreestatus.pm index 304390fdc..849be5e27 100644 --- a/src/storage/netapp/ontap/oncommandapi/mode/qtreestatus.pm +++ b/src/storage/netapp/ontap/oncommandapi/mode/qtreestatus.pm @@ -145,12 +145,12 @@ Can be: 'name', 'volume' (can be a regexp). =item B<--warning-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{state} =item B<--critical-status> -Set critical threshold for status (Default: ''). +Define the conditions to match for the status to be CRITICAL (Default: ''). You can use the following variables: %{status} =back diff --git a/src/storage/netapp/ontap/oncommandapi/mode/snapmirrorstatus.pm b/src/storage/netapp/ontap/oncommandapi/mode/snapmirrorstatus.pm index 356fb695f..044cbf6f6 100644 --- a/src/storage/netapp/ontap/oncommandapi/mode/snapmirrorstatus.pm +++ b/src/storage/netapp/ontap/oncommandapi/mode/snapmirrorstatus.pm @@ -130,12 +130,12 @@ Filter snapmirror name (can be a regexp). =item B<--warning-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{state}, %{update} =item B<--critical-status> -Set critical threshold for status (Default: '%{state} !~ /snapmirrored/i || %{update} =~ /not healthy/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{state} !~ /snapmirrored/i || %{update} =~ /not healthy/i'). You can use the following variables: %{state}, %{update} =back diff --git a/src/storage/netapp/ontap/oncommandapi/mode/snapmirrorusage.pm b/src/storage/netapp/ontap/oncommandapi/mode/snapmirrorusage.pm index fb62c40cd..18a2bfd89 100644 --- a/src/storage/netapp/ontap/oncommandapi/mode/snapmirrorusage.pm +++ b/src/storage/netapp/ontap/oncommandapi/mode/snapmirrorusage.pm @@ -129,12 +129,12 @@ Filter snapmirror name (can be a regexp). =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'last-transfer-duration', 'last-transfer-size', 'lag-time'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'last-transfer-duration', 'last-transfer-size', 'lag-time'. =back diff --git a/src/storage/netapp/ontap/oncommandapi/mode/volumes.pm b/src/storage/netapp/ontap/oncommandapi/mode/volumes.pm index c281e43a3..4593c27c1 100644 --- a/src/storage/netapp/ontap/oncommandapi/mode/volumes.pm +++ b/src/storage/netapp/ontap/oncommandapi/mode/volumes.pm @@ -432,17 +432,17 @@ Filter volumes by storage virtual machine name. =item B<--unknown-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{state}, %{volumeName}, %{svmName} =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{state}, %{volumeName}, %{svmName} =item B<--critical-status> -Set critical threshold for status (Default: '%{state} !~ /online/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{state} !~ /online/i'). You can use the following variables: %{state}, %{volumeName}, %{svmName} =item B<--warning-*> B<--critical-*> diff --git a/src/storage/netapp/ontap/restapi/mode/aggregates.pm b/src/storage/netapp/ontap/restapi/mode/aggregates.pm index f210897e4..6a9962e0e 100644 --- a/src/storage/netapp/ontap/restapi/mode/aggregates.pm +++ b/src/storage/netapp/ontap/restapi/mode/aggregates.pm @@ -282,17 +282,17 @@ Filter aggregates by aggregate name (can be a regexp). =item B<--unknown-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{state}, %{display} =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{state}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: '%{state} !~ /online/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{state} !~ /online/i'). You can use the following variables: %{state}, %{display} =item B<--warning-*> B<--critical-*> diff --git a/src/storage/netapp/ontap/restapi/mode/cluster.pm b/src/storage/netapp/ontap/restapi/mode/cluster.pm index e246cc8ed..0de47311f 100644 --- a/src/storage/netapp/ontap/restapi/mode/cluster.pm +++ b/src/storage/netapp/ontap/restapi/mode/cluster.pm @@ -249,17 +249,17 @@ Example: --filter-counters='node-status' =item B<--unknown-node-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{state}, %{link_status}, %{display} =item B<--warning-node-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{state}, %{link_status}, %{display} =item B<--critical-node-status> -Set critical threshold for status (Default: '%{state} ne "online"'). +Define the conditions to match for the status to be CRITICAL (Default: '%{state} ne "online"'). You can use the following variables: %{state}, %{link_status}, %{display} =item B<--warning-*> B<--critical-*> diff --git a/src/storage/netapp/ontap/restapi/mode/luns.pm b/src/storage/netapp/ontap/restapi/mode/luns.pm index 52f55f157..4969eb38d 100644 --- a/src/storage/netapp/ontap/restapi/mode/luns.pm +++ b/src/storage/netapp/ontap/restapi/mode/luns.pm @@ -114,17 +114,17 @@ Filter LUN name (can be a regexp). =item B<--unknown-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{state}, %{container_state}, %{display} =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{state}, %{container_state}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: '%{state} !~ /online/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{state} !~ /online/i'). You can use the following variables: %{state}, %{container_state}, %{display} =back diff --git a/src/storage/netapp/ontap/restapi/mode/snapmirrors.pm b/src/storage/netapp/ontap/restapi/mode/snapmirrors.pm index bfff2e735..7c9b3ba35 100644 --- a/src/storage/netapp/ontap/restapi/mode/snapmirrors.pm +++ b/src/storage/netapp/ontap/restapi/mode/snapmirrors.pm @@ -117,17 +117,17 @@ Filter snapmirror name (can be a regexp). =item B<--unknown-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{healthy}, %{state}, %{transfer_state}, %{display} =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{healthy}, %{state}, %{transfer_state}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: '%{healthy} ne "true" or %{state} eq "broken_off"'). +Define the conditions to match for the status to be CRITICAL (Default: '%{healthy} ne "true" or %{state} eq "broken_off"'). You can use the following variables: %{healthy}, %{state}, %{transfer_state}, %{display} =back diff --git a/src/storage/netapp/ontap/restapi/mode/volumes.pm b/src/storage/netapp/ontap/restapi/mode/volumes.pm index 4a1aed3b2..ac0fe4b1f 100644 --- a/src/storage/netapp/ontap/restapi/mode/volumes.pm +++ b/src/storage/netapp/ontap/restapi/mode/volumes.pm @@ -287,17 +287,17 @@ Filter volumes by vserver name (can be a regexp). =item B<--unknown-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{state}, %{display} =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{state}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: '%{state} !~ /online/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{state} !~ /online/i'). You can use the following variables: %{state}, %{display} =item B<--warning-*> B<--critical-*> diff --git a/src/storage/netapp/ontap/snmp/mode/aggregates.pm b/src/storage/netapp/ontap/snmp/mode/aggregates.pm index d48a15b95..01181a310 100644 --- a/src/storage/netapp/ontap/snmp/mode/aggregates.pm +++ b/src/storage/netapp/ontap/snmp/mode/aggregates.pm @@ -133,17 +133,17 @@ Filter aggregates by name. =item B<--unknown-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{status}, %{name} =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{status}, %{name} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} !~ /normal|mirrored/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} !~ /normal|mirrored/i'). You can use the following variables: %{status}, %{name} =item B<--unknown-state> diff --git a/src/storage/netapp/ontap/snmp/mode/cacheage.pm b/src/storage/netapp/ontap/snmp/mode/cacheage.pm index 931be7a7f..b5dfddd34 100644 --- a/src/storage/netapp/ontap/snmp/mode/cacheage.pm +++ b/src/storage/netapp/ontap/snmp/mode/cacheage.pm @@ -87,11 +87,11 @@ Check age in minutes of the oldest read-only blocks in the buffer cache. =item B<--warning> -Threshold warning in minutes +Warning threshold in minutes =item B<--critical> -Threshold critical in minutes +Critical threshold in minutes =back diff --git a/src/storage/netapp/ontap/snmp/mode/clusternodes.pm b/src/storage/netapp/ontap/snmp/mode/clusternodes.pm index d57d3d9a3..dd721661c 100644 --- a/src/storage/netapp/ontap/snmp/mode/clusternodes.pm +++ b/src/storage/netapp/ontap/snmp/mode/clusternodes.pm @@ -390,62 +390,62 @@ Filter ports by role (can be a regexp). =item B<--unknown-node-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{node_status}, %{node_name} =item B<--warning-node-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{node_status}, %{node_name} =item B<--critical-node-status> -Set critical threshold for status (Default: '%{node_status} eq "clusterComLost"'). +Define the conditions to match for the status to be CRITICAL (Default: '%{node_status} eq "clusterComLost"'). You can use the following variables: %{node_status}, %{node_name} =item B<--unknown-bbu-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{bbu_status}, %{node_name} =item B<--warning-bbu-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{bbu_status}, %{node_name} =item B<--critical-bbu-status> -Set critical threshold for status (Default: '%{bbu_status} !~ /fullyCharged|ok/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{bbu_status} !~ /fullyCharged|ok/i'). You can use the following variables: %{bbu_status}, %{node_name} =item B<--unknown-port-link-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{admstatus}, %{opstatus}, %{port_id}, %{node_name} =item B<--warning-port-link-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{admstatus}, %{opstatus}, %{port_id}, %{node_name} =item B<--critical-port-link-status> -Set critical threshold for status (Default: '%{admstatus} eq "up" and %{opstatus} ne "up"'). +Define the conditions to match for the status to be CRITICAL (Default: '%{admstatus} eq "up" and %{opstatus} ne "up"'). You can use the following variables: %{admstatus}, %{opstatus}, %{port_id}, %{node_name} =item B<--unknown-port-health> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{health}, %{port_id}, %{node_name} =item B<--warning-port-health> -Set warning threshold for status (Default: '%{health} eq "degraded"'). +Define the conditions to match for the status to be WARNING (Default: '%{health} eq "degraded"'). You can use the following variables: %{health}, %{port_id}, %{node_name} =item B<--critical-port-health> -Set critical threshold for status. +Define the conditions to match for the status to be CRITICAL. You can use the following variables: %{health}, %{port_id}, %{node_name} =item B<--warning-*> B<--critical-*> diff --git a/src/storage/netapp/ontap/snmp/mode/cpstatistics.pm b/src/storage/netapp/ontap/snmp/mode/cpstatistics.pm index 8bc086531..10438866e 100644 --- a/src/storage/netapp/ontap/snmp/mode/cpstatistics.pm +++ b/src/storage/netapp/ontap/snmp/mode/cpstatistics.pm @@ -197,13 +197,13 @@ Check consistency point metrics. =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'timer', 'snapshot', 'lowerwater', 'highwater', 'logfull', 'back', 'flush', 'sync', 'lowvbuf', 'deferred', 'lowdatavecs'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'timer', 'snapshot', 'lowerwater', 'highwater', 'logfull', 'back', 'flush', 'sync', 'lowvbuf', 'deferred', 'lowdatavecs'. diff --git a/src/storage/netapp/ontap/snmp/mode/cpuload.pm b/src/storage/netapp/ontap/snmp/mode/cpuload.pm index 60e50b844..81d8c501a 100644 --- a/src/storage/netapp/ontap/snmp/mode/cpuload.pm +++ b/src/storage/netapp/ontap/snmp/mode/cpuload.pm @@ -84,11 +84,11 @@ Check CPU usage. =item B<--warning> -Threshold warning in percent. +Warning threshold in percent. =item B<--critical> -Threshold critical in percent. +Critical threshold in percent. =back diff --git a/src/storage/netapp/ontap/snmp/mode/failover.pm b/src/storage/netapp/ontap/snmp/mode/failover.pm index fb629bb64..adba527e8 100644 --- a/src/storage/netapp/ontap/snmp/mode/failover.pm +++ b/src/storage/netapp/ontap/snmp/mode/failover.pm @@ -202,32 +202,32 @@ Filter name with regexp (based on serial) =item B<--unknown-cluster-status> -Set unknown threshold for status (Default: ''). +Define the conditions to match for the status to be UNKNOWN (Default: ''). You can use the following variables: %{cluster_status}, %{reason_cannot_takeover}, %{partner_status} =item B<--warning-cluster-status> -Set warning threshold for status (Default: '%{cluster_status} =~ /^takeover|partialGiveback/i'). +Define the conditions to match for the status to be WARNING (Default: '%{cluster_status} =~ /^takeover|partialGiveback/i'). You can use the following variables: %{cluster_status}, %{reason_cannot_takeover}, %{partner_status} =item B<--critical-cluster-status> -Set critical threshold for status (Default: '%{cluster_status} =~ /dead|cannotTakeover/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{cluster_status} =~ /dead|cannotTakeover/i'). You can use the following variables: %{cluster_status}, %{reason_cannot_takeover}, %{partner_status} =item B<--unknown-node-status> -Set unknown threshold for status (Default: ''). +Define the conditions to match for the status to be UNKNOWN (Default: ''). You can use the following variables: %{status}, %{reason_cannot_takeover}, %{partner_status}, %{display} =item B<--warning-node-status> -Set warning threshold for status (Default: '%{status} =~ /^takeover|partialGiveback/i'). +Define the conditions to match for the status to be WARNING (Default: '%{status} =~ /^takeover|partialGiveback/i'). You can use the following variables: %{status}, %{reason_cannot_takeover}, %{partner_status}, %{display} =item B<--critical-node-status> -Set critical threshold for status (Default: '%{status} =~ /dead|cannotTakeover/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} =~ /dead|cannotTakeover/i'). You can use the following variables: %{status}, %{reason_cannot_takeover}, %{partner_status}, %{display} =back diff --git a/src/storage/netapp/ontap/snmp/mode/filesys.pm b/src/storage/netapp/ontap/snmp/mode/filesys.pm index 89bd19442..57c934c1b 100644 --- a/src/storage/netapp/ontap/snmp/mode/filesys.pm +++ b/src/storage/netapp/ontap/snmp/mode/filesys.pm @@ -368,27 +368,27 @@ Check filesystem usage (volumes, snapshots and aggregates also). =item B<--unknown-vserver-status> -Set unknown threshold for status (Default: ''). +Define the conditions to match for the status to be UNKNOWN (Default: ''). You can use the following variables: %{vserver_status}, %{vserver_name} =item B<--warning-vserver-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{vserver_status}, %{vserver_name} =item B<--critical-vserver-status> -Set critical threshold for status (Default: ''). +Define the conditions to match for the status to be CRITICAL (Default: ''). You can use the following variables: %{vserver_status}, %{vserver_name} =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: usage, inodes (%), compresssaved (%), dedupsaved (%). =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: usage, inodes (%), compresssaved (%), dedupsaved (%). =item B<--units> diff --git a/src/storage/netapp/ontap/snmp/mode/ndmpsessions.pm b/src/storage/netapp/ontap/snmp/mode/ndmpsessions.pm index d2ae71d72..e582625c3 100644 --- a/src/storage/netapp/ontap/snmp/mode/ndmpsessions.pm +++ b/src/storage/netapp/ontap/snmp/mode/ndmpsessions.pm @@ -84,11 +84,11 @@ Check current total of ndmp sessions opened. =item B<--warning> -Threshold warning. +Warning threshold. =item B<--critical> -Threshold critical. +Critical threshold. =back diff --git a/src/storage/netapp/ontap/snmp/mode/plexes.pm b/src/storage/netapp/ontap/snmp/mode/plexes.pm index 1c6189295..5c54e3c13 100644 --- a/src/storage/netapp/ontap/snmp/mode/plexes.pm +++ b/src/storage/netapp/ontap/snmp/mode/plexes.pm @@ -220,17 +220,17 @@ Filter plexes by aggregate name. =item B<--unknown-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{status}, %{name}, %{aggregate} =item B<--warning-status> -Set warning threshold for status (Default: '%{status} eq "resyncing"'). +Define the conditions to match for the status to be WARNING (Default: '%{status} eq "resyncing"'). You can use the following variables: %{status}, %{name}, %{aggregate} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} eq "offline"'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} eq "offline"'). You can use the following variables: %{status}, %{name}, %{aggregate} =item B<--warning-*> B<--critical-*> diff --git a/src/storage/netapp/ontap/snmp/mode/sharecalls.pm b/src/storage/netapp/ontap/snmp/mode/sharecalls.pm index e2dd4389a..d1b9bffbe 100644 --- a/src/storage/netapp/ontap/snmp/mode/sharecalls.pm +++ b/src/storage/netapp/ontap/snmp/mode/sharecalls.pm @@ -109,12 +109,12 @@ If you are in cluster mode, the following mode doesn't work. Ask to netapp to ad =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'cifs', 'nfs'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'cifs', 'nfs'. =back diff --git a/src/storage/netapp/ontap/snmp/mode/sis.pm b/src/storage/netapp/ontap/snmp/mode/sis.pm index de81c55a7..d54d7dfe3 100644 --- a/src/storage/netapp/ontap/snmp/mode/sis.pm +++ b/src/storage/netapp/ontap/snmp/mode/sis.pm @@ -174,17 +174,17 @@ Filter name (can be a regexp). =item B<--unknown-status> -Set unknown threshold for status (Default: ''). +Define the conditions to match for the status to be UNKNOWN (Default: ''). You can use the following variables: %{state}, %{status}, %{lastOpError}, %{display} =item B<--warning-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{state}, %{status}, %{lastOpError}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: '%{state} eq "enabled" and %{lastOpError} !~ /-|Success/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{state} eq "enabled" and %{lastOpError} !~ /-|Success/i'). You can use the following variables: %{state}, %{status}, %{lastOpError}, %{display} =back diff --git a/src/storage/netapp/ontap/snmp/mode/snapmirrorlag.pm b/src/storage/netapp/ontap/snmp/mode/snapmirrorlag.pm index c21647c6d..cca200463 100644 --- a/src/storage/netapp/ontap/snmp/mode/snapmirrorlag.pm +++ b/src/storage/netapp/ontap/snmp/mode/snapmirrorlag.pm @@ -245,26 +245,26 @@ Example: --filter-counters='^status$' =item B<--unknown-status> -Set unknown threshold for status (Default: ''). +Define the conditions to match for the status to be UNKNOWN (Default: ''). You can use the following variables: %{state}, %{display} =item B<--warning-status> -Set warning threshold for status (Default: '%{state} =~ /quiesced/i'). +Define the conditions to match for the status to be WARNING (Default: '%{state} =~ /quiesced/i'). You can use the following variables: %{state}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: '%{state} =~ /unknown|brokenOff|uninitialized/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{state} =~ /unknown|brokenOff|uninitialized/i'). You can use the following variables: %{state}, %{display} =item B<--warning-lag> -Threshold warning. +Warning threshold. =item B<--critical-lag> -Threshold critical. +Critical threshold. =back diff --git a/src/storage/netapp/ontap/snmp/mode/snapshotage.pm b/src/storage/netapp/ontap/snmp/mode/snapshotage.pm index 5326f530e..4b00dc03e 100644 --- a/src/storage/netapp/ontap/snmp/mode/snapshotage.pm +++ b/src/storage/netapp/ontap/snmp/mode/snapshotage.pm @@ -177,11 +177,11 @@ Check snapshot age of volumes. =item B<--warning> -Threshold warning in seconds. +Warning threshold in seconds. =item B<--critical> -Threshold critical in seconds. +Critical threshold in seconds. =item B<--name> diff --git a/src/storage/netapp/ontap/snmp/mode/snapvaultusage.pm b/src/storage/netapp/ontap/snmp/mode/snapvaultusage.pm index 4c4a11d9b..fab2abb8b 100644 --- a/src/storage/netapp/ontap/snmp/mode/snapvaultusage.pm +++ b/src/storage/netapp/ontap/snmp/mode/snapvaultusage.pm @@ -219,22 +219,22 @@ Filter snapvault name (can be a regexp). =item B<--unknown-status> -Set unknown threshold for status (Default: ''). +Define the conditions to match for the status to be UNKNOWN (Default: ''). You can use the following variables: %{state}, %{status}, %{display} =item B<--warning-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{state}, %{status}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: ''). +Define the conditions to match for the status to be CRITICAL (Default: ''). You can use the following variables: %{state}, %{status}, %{display} =item B<--warning-*> B<--critical-*> -Threshold warning. +Warning threshold. Can be: 'lag' (s), 'transfer-traffic' (B/s), 'transfer-succeed', 'transfer-failed'. diff --git a/src/storage/netapp/ontap/snmp/mode/volumeoptions.pm b/src/storage/netapp/ontap/snmp/mode/volumeoptions.pm index b9ac7d921..5752524eb 100644 --- a/src/storage/netapp/ontap/snmp/mode/volumeoptions.pm +++ b/src/storage/netapp/ontap/snmp/mode/volumeoptions.pm @@ -197,32 +197,32 @@ Filter on volume status (can be a regexp). =item B<--unknown-status> -Set unknown threshold for status (Default: ''). +Define the conditions to match for the status to be UNKNOWN (Default: ''). You can use the following variables: %{status}, %{display} =item B<--warning-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{status}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: ''). +Define the conditions to match for the status to be CRITICAL (Default: ''). You can use the following variables: %{status}, %{display} =item B<--unknown-options> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{options}, %{display} =item B<--warning-options> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{options}, %{display} =item B<--critical-options> -Set critical threshold for status (Default: ''). +Define the conditions to match for the status to be CRITICAL (Default: ''). You can use the following variables: %{options}, %{display} =back diff --git a/src/storage/netapp/santricity/restapi/mode/storagecontrollers.pm b/src/storage/netapp/santricity/restapi/mode/storagecontrollers.pm index 90e95665d..cf680ad39 100644 --- a/src/storage/netapp/santricity/restapi/mode/storagecontrollers.pm +++ b/src/storage/netapp/santricity/restapi/mode/storagecontrollers.pm @@ -216,17 +216,17 @@ Filter controller name (can be a regexp). =item B<--unknown-controller-status> -Set unknown threshold for status (Default: '%{status} =~ /unknown/i'). +Define the conditions to match for the status to be UNKNOWN (Default: '%{status} =~ /unknown/i'). You can use the following variables: %{status}, %{display} =item B<--warning-controller-status> -Set warning threshold for status (Default: '%{status} =~ /rpaParErr|degraded/i'). +Define the conditions to match for the status to be WARNING (Default: '%{status} =~ /rpaParErr|degraded/i'). You can use the following variables: %{status}, %{display} =item B<--critical-controller-status> -Set critical threshold for status (Default: '%{status} =~ /failed/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} =~ /failed/i'). You can use the following variables: %{status}, %{display} =item B<--warning-*> B<--critical-*> diff --git a/src/storage/netapp/santricity/restapi/mode/storagepools.pm b/src/storage/netapp/santricity/restapi/mode/storagepools.pm index ca453daea..2ac3bb6e1 100644 --- a/src/storage/netapp/santricity/restapi/mode/storagepools.pm +++ b/src/storage/netapp/santricity/restapi/mode/storagepools.pm @@ -199,17 +199,17 @@ Filter pool name (can be a regexp). =item B<--unknown-pool-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{raid_status}, %{state}, %{display} =item B<--warning-pool-status> -Set warning threshold for status (Default: '%{raid_status} =~ /degraded/i'). +Define the conditions to match for the status to be WARNING (Default: '%{raid_status} =~ /degraded/i'). You can use the following variables: %{raid_status}, %{state}, %{display} =item B<--critical-pool-status> -Set critical threshold for status (Default: '%{raid_status} =~ /failed/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{raid_status} =~ /failed/i'). You can use the following variables: %{raid_status}, %{state}, %{display} =item B<--warning-*> B<--critical-*> diff --git a/src/storage/netapp/santricity/restapi/mode/storagesystems.pm b/src/storage/netapp/santricity/restapi/mode/storagesystems.pm index 073bae8ac..fc6fe4eff 100644 --- a/src/storage/netapp/santricity/restapi/mode/storagesystems.pm +++ b/src/storage/netapp/santricity/restapi/mode/storagesystems.pm @@ -160,17 +160,17 @@ Filter storage name (can be a regexp). =item B<--unknown-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{status}, %{state}, %{display} =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{status}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} =~ /needsAttn/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} =~ /needsAttn/i'). You can use the following variables: %{status}, %{display} =item B<--warning-*> B<--critical-*> diff --git a/src/storage/netapp/santricity/restapi/mode/storagevolumes.pm b/src/storage/netapp/santricity/restapi/mode/storagevolumes.pm index 1627a340f..21ee2e2ee 100644 --- a/src/storage/netapp/santricity/restapi/mode/storagevolumes.pm +++ b/src/storage/netapp/santricity/restapi/mode/storagevolumes.pm @@ -202,17 +202,17 @@ Filter volume name (can be a regexp). =item B<--unknown-volume-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{status}, %{display} =item B<--warning-volume-status> -Set warning threshold for status (Default: '%{status} =~ /degraded/i'). +Define the conditions to match for the status to be WARNING (Default: '%{status} =~ /degraded/i'). You can use the following variables: %{status}, %{display} =item B<--critical-volume-status> -Set critical threshold for status (Default: '%{status} =~ /failed/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} =~ /failed/i'). You can use the following variables: %{status}, %{display} =item B<--warning-*> B<--critical-*> diff --git a/src/storage/nimble/restapi/mode/arrays.pm b/src/storage/nimble/restapi/mode/arrays.pm index 94f573323..3de20bb1d 100644 --- a/src/storage/nimble/restapi/mode/arrays.pm +++ b/src/storage/nimble/restapi/mode/arrays.pm @@ -181,17 +181,17 @@ Filter array name (can be a regexp). =item B<--unknown-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{status}, %{display} =item B<--warning-status> -Set warning threshold for status. +Define the conditions to match for the status to be WARNING. You can use the following variables: %{status}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} =~ /unreachable/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} =~ /unreachable/i'). You can use the following variables: %{status}, %{display} =item B<--warning-*> B<--critical-*> diff --git a/src/storage/nimble/restapi/mode/volumes.pm b/src/storage/nimble/restapi/mode/volumes.pm index 1b56918b5..433ef17ed 100644 --- a/src/storage/nimble/restapi/mode/volumes.pm +++ b/src/storage/nimble/restapi/mode/volumes.pm @@ -201,17 +201,17 @@ Filter volumes by replication role (can be a regexp). =item B<--unknown-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{state}, %{space_level_usage}, %{display} =item B<--warning-status> -Set warning threshold for status (Default: '%{space_usage_level} =~ /warning/'). +Define the conditions to match for the status to be WARNING (Default: '%{space_usage_level} =~ /warning/'). You can use the following variables: %{state}, %{space_level_usage}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: '%{state} !~ /online/i || %{space_usage_level} =~ /critical/'). +Define the conditions to match for the status to be CRITICAL (Default: '%{state} !~ /online/i || %{space_usage_level} =~ /critical/'). You can use the following variables: %{state}, %{space_level_usage}, %{display} =item B<--warning-*> B<--critical-*> diff --git a/src/storage/nimble/snmp/mode/globalstats.pm b/src/storage/nimble/snmp/mode/globalstats.pm index fea8383ed..9282b41fe 100644 --- a/src/storage/nimble/snmp/mode/globalstats.pm +++ b/src/storage/nimble/snmp/mode/globalstats.pm @@ -141,13 +141,13 @@ Check global statistics of storage. =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'read', 'read-iops', 'write', 'write-iops', 'read-time', 'write-time'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'read', 'read-iops', 'write', 'write-iops', 'read-time', 'write-time'. diff --git a/src/storage/nimble/snmp/mode/volumeusage.pm b/src/storage/nimble/snmp/mode/volumeusage.pm index 5dd38bdd0..5f8352784 100644 --- a/src/storage/nimble/snmp/mode/volumeusage.pm +++ b/src/storage/nimble/snmp/mode/volumeusage.pm @@ -162,11 +162,11 @@ Filter by name (regexp can be used). =item B<--warning-usage> -Threshold warning (in percent). +Warning threshold (in percent). =item B<--critical-usage> -Threshold critical (in percent). +Critical threshold (in percent). =back diff --git a/src/storage/oracle/zs/restapi/mode/pools.pm b/src/storage/oracle/zs/restapi/mode/pools.pm index f1416a2ec..d9fa4bee7 100644 --- a/src/storage/oracle/zs/restapi/mode/pools.pm +++ b/src/storage/oracle/zs/restapi/mode/pools.pm @@ -174,17 +174,17 @@ Filter pool name (can be a regexp). =item B<--unknown-status> -Set unknon threshold for status (Default: ''). +Define the conditions to match for the status to be UNKNOWN (Default: ''). You can use the following variables: %{status}, %{display} =item B<--warning-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{status}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} !~ /online|exported/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} !~ /online|exported/i'). You can use the following variables: %{status}, %{display} =item B<--warning-*> B<--critical-*> diff --git a/src/storage/oracle/zs/snmp/mode/shareusage.pm b/src/storage/oracle/zs/snmp/mode/shareusage.pm index b2da790d1..dbd26743f 100644 --- a/src/storage/oracle/zs/snmp/mode/shareusage.pm +++ b/src/storage/oracle/zs/snmp/mode/shareusage.pm @@ -225,12 +225,12 @@ Filter project name (can be a regexp). =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'share-usage', 'project-usage'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'share-usage', 'project-usage'. =item B<--units> diff --git a/src/storage/panzura/snmp/mode/cpucloud.pm b/src/storage/panzura/snmp/mode/cpucloud.pm index 47a195b60..40e194bba 100644 --- a/src/storage/panzura/snmp/mode/cpucloud.pm +++ b/src/storage/panzura/snmp/mode/cpucloud.pm @@ -86,11 +86,11 @@ Check cpu usage of cloud controller (panzura-systemext). =item B<--warning> -Threshold warning in percent. +Warning threshold in percent. =item B<--critical> -Threshold critical in percent. +Critical threshold in percent. =back diff --git a/src/storage/panzura/snmp/mode/diskusagelocal.pm b/src/storage/panzura/snmp/mode/diskusagelocal.pm index e3bda9c9b..f95a1d810 100644 --- a/src/storage/panzura/snmp/mode/diskusagelocal.pm +++ b/src/storage/panzura/snmp/mode/diskusagelocal.pm @@ -107,11 +107,11 @@ Check disk local usage (panzura-systemext). =item B<--warning> -Threshold warning in percent. +Warning threshold in percent. =item B<--critical> -Threshold critical in percent. +Critical threshold in percent. =back diff --git a/src/storage/panzura/snmp/mode/memory.pm b/src/storage/panzura/snmp/mode/memory.pm index 6e4972479..1561610be 100644 --- a/src/storage/panzura/snmp/mode/memory.pm +++ b/src/storage/panzura/snmp/mode/memory.pm @@ -109,11 +109,11 @@ Check memory (panzura-systemext). =item B<--warning> -Threshold warning in percent. +Warning threshold in percent. =item B<--critical> -Threshold critical in percent. +Critical threshold in percent. =back diff --git a/src/storage/panzura/snmp/mode/ratios.pm b/src/storage/panzura/snmp/mode/ratios.pm index 91782ff25..201172703 100644 --- a/src/storage/panzura/snmp/mode/ratios.pm +++ b/src/storage/panzura/snmp/mode/ratios.pm @@ -102,12 +102,12 @@ Check deduplication, compression and save ratios (panzura-systemext). =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'dedup', 'comp', 'save'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'dedup', 'comp', 'save'. =back diff --git a/src/storage/purestorage/flasharray/legacy/restapi/mode/alarms.pm b/src/storage/purestorage/flasharray/legacy/restapi/mode/alarms.pm index e549d0c92..acebfa35f 100644 --- a/src/storage/purestorage/flasharray/legacy/restapi/mode/alarms.pm +++ b/src/storage/purestorage/flasharray/legacy/restapi/mode/alarms.pm @@ -175,12 +175,12 @@ Filter by category name (can be a regexp). =item B<--warning-status> -Set warning threshold for status (Default: '%{severity} =~ /warning/i') +Define the conditions to match for the status to be WARNING (Default: '%{severity} =~ /warning/i') You can use the following variables: %{category}, %{code}, %{severity}, %{opened}, %{event}, %{component_name} =item B<--critical-status> -Set critical threshold for status (Default: '%{severity} =~ /critical/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{severity} =~ /critical/i'). You can use the following variables: %{category}, %{code}, %{severity}, %{opened}, %{event}, %{component_name} =item B<--memory> diff --git a/src/storage/purestorage/flasharray/legacy/restapi/mode/pgroupreplication.pm b/src/storage/purestorage/flasharray/legacy/restapi/mode/pgroupreplication.pm index 99510ed68..3b3c87b80 100644 --- a/src/storage/purestorage/flasharray/legacy/restapi/mode/pgroupreplication.pm +++ b/src/storage/purestorage/flasharray/legacy/restapi/mode/pgroupreplication.pm @@ -174,13 +174,13 @@ Filter protection group name (Can be a regexp). =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'progress' (%), 'creation' (s), 'duration' (s), 'physical-bytes-written' (B), 'data-transferred' (B). =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'progress' (%), 'creation' (s), 'duration' (s), 'physical-bytes-written' (B), 'data-transferred' (B). diff --git a/src/storage/purestorage/flasharray/legacy/restapi/mode/volumeusage.pm b/src/storage/purestorage/flasharray/legacy/restapi/mode/volumeusage.pm index d79ae3951..ac3cde781 100644 --- a/src/storage/purestorage/flasharray/legacy/restapi/mode/volumeusage.pm +++ b/src/storage/purestorage/flasharray/legacy/restapi/mode/volumeusage.pm @@ -207,12 +207,12 @@ Filter volume name (can be a regexp). =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'usage', 'data-reduction', 'total-reduction'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'usage', 'data-reduction', 'total-reduction'. =item B<--units> diff --git a/src/storage/purestorage/flasharray/v2/restapi/mode/alerts.pm b/src/storage/purestorage/flasharray/v2/restapi/mode/alerts.pm index 89a7ba4cf..f1e1f3e57 100644 --- a/src/storage/purestorage/flasharray/v2/restapi/mode/alerts.pm +++ b/src/storage/purestorage/flasharray/v2/restapi/mode/alerts.pm @@ -165,12 +165,12 @@ Filter by category name (can be a regexp). =item B<--warning-status> -Set warning threshold for status (Default: '%{state} ne "closed" and %{severity} =~ /warning/i') +Define the conditions to match for the status to be WARNING (Default: '%{state} ne "closed" and %{severity} =~ /warning/i') You can use the following variables: %{category}, %{code}, %{severity}, %{opened}, %{state}, %{issue}, %{component_name} =item B<--critical-status> -Set critical threshold for status (Default: '%{state} ne "closed" and %{severity} =~ /critical/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{state} ne "closed" and %{severity} =~ /critical/i'). You can use the following variables: %{category}, %{code}, %{severity}, %{opened}, %{state}, %{issue}, %{component_name} =item B<--memory> diff --git a/src/storage/purestorage/flashblade/v2/restapi/mode/alerts.pm b/src/storage/purestorage/flashblade/v2/restapi/mode/alerts.pm index 174772ecc..55dc69201 100644 --- a/src/storage/purestorage/flashblade/v2/restapi/mode/alerts.pm +++ b/src/storage/purestorage/flashblade/v2/restapi/mode/alerts.pm @@ -160,12 +160,12 @@ Check alerts. =item B<--warning-status> -Set warning threshold for status (Default: '%{state} ne "closed" and %{severity} =~ /warning/i') +Define the conditions to match for the status to be WARNING (Default: '%{state} ne "closed" and %{severity} =~ /warning/i') You can use the following variables: %{code}, %{severity}, %{opened}, %{state}, %{component_name} =item B<--critical-status> -Set critical threshold for status (Default: '%{state} ne "closed" and %{severity} =~ /critical/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{state} ne "closed" and %{severity} =~ /critical/i'). You can use the following variables: %{code}, %{severity}, %{opened}, %{state}, %{component_name} =item B<--memory> diff --git a/src/storage/purestorage/snmp/mode/stats.pm b/src/storage/purestorage/snmp/mode/stats.pm index 13f129359..eafbe8e89 100644 --- a/src/storage/purestorage/snmp/mode/stats.pm +++ b/src/storage/purestorage/snmp/mode/stats.pm @@ -144,13 +144,13 @@ Example: --filter-counters='bandwidth' =item B<--warning-*> -Threshold warning. +Warning threshold. Can be: 'read-bandwidth', 'write-bandwidth', 'read-iops', 'write-iops', 'read-latency', 'write-latency'. =item B<--critical-*> -Threshold critical. +Critical threshold. Can be: 'read-bandwidth', 'write-bandwidth', 'read-iops', 'write-iops', 'read-latency', 'write-latency'. diff --git a/src/storage/qnap/snmp/mode/pools.pm b/src/storage/qnap/snmp/mode/pools.pm index 80238b029..e795d1d41 100644 --- a/src/storage/qnap/snmp/mode/pools.pm +++ b/src/storage/qnap/snmp/mode/pools.pm @@ -257,17 +257,17 @@ Filter pools by name (can be a regexp). =item B<--unknown-pool-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{status}, %{name} =item B<--warning-pool-status> -Set warning threshold for status (Default: '%{status} =~ /degraded|warning/i'). +Define the conditions to match for the status to be WARNING (Default: '%{status} =~ /degraded|warning/i'). You can use the following variables: %{status}, %{name} =item B<--critical-pool-status> -Set critical threshold for status (Default: '%{status} =~ /error|critical/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} =~ /error|critical/i'). You can use the following variables: %{status}, %{name} =item B<--warning-*> B<--critical-*> diff --git a/src/storage/qnap/snmp/mode/upgrade.pm b/src/storage/qnap/snmp/mode/upgrade.pm index d209b030f..3d1cf7389 100644 --- a/src/storage/qnap/snmp/mode/upgrade.pm +++ b/src/storage/qnap/snmp/mode/upgrade.pm @@ -98,12 +98,12 @@ Check upgrade status (only works with QTS OS). =item B<--warning-status> -Set warning threshold for status (Default : '%{upgrade} eq "available"'). +Define the conditions to match for the status to be WARNING (Default : '%{upgrade} eq "available"'). You can use the following variables: %{model}, %{version}, %{upgrade} =item B<--critical-status> -Set critical threshold for status. +Define the conditions to match for the status to be CRITICAL. You can use the following variables: %{model}, %{version}, %{upgrade} =back diff --git a/src/storage/qnap/snmp/mode/volumes.pm b/src/storage/qnap/snmp/mode/volumes.pm index 903bd9fcb..c745fd882 100644 --- a/src/storage/qnap/snmp/mode/volumes.pm +++ b/src/storage/qnap/snmp/mode/volumes.pm @@ -269,17 +269,17 @@ Force to use legacy counters. Should be used when EX/QTS counters are buggy. =item B<--unknown-volume-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{status}, %{name} =item B<--warning-volume-status> -Set warning threshold for status (Default: '%{status} =~ /degraded|warning/i'). +Define the conditions to match for the status to be WARNING (Default: '%{status} =~ /degraded|warning/i'). You can use the following variables: %{status}, %{name} =item B<--critical-volume-status> -Set critical threshold for status (Default: '%{status} =~ /critical/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} =~ /critical/i'). You can use the following variables: %{status}, %{name} =item B<--warning-*> B<--critical-*> diff --git a/src/storage/quantum/dxi/ssh/mode/compaction.pm b/src/storage/quantum/dxi/ssh/mode/compaction.pm index df9005739..b66c24477 100644 --- a/src/storage/quantum/dxi/ssh/mode/compaction.pm +++ b/src/storage/quantum/dxi/ssh/mode/compaction.pm @@ -172,12 +172,12 @@ Example: --filter-counters='status' =item B<--warning-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{compaction_status} =item B<--critical-status> -Set critical threshold for status (Default: '%{compaction_status} !~ /ready/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{compaction_status} !~ /ready/i'). You can use the following variables: %{compaction_status} =item B<--warning-*> B<--critical-*> diff --git a/src/storage/quantum/dxi/ssh/mode/dedupnas.pm b/src/storage/quantum/dxi/ssh/mode/dedupnas.pm index 57d20604f..f7311f0fc 100644 --- a/src/storage/quantum/dxi/ssh/mode/dedupnas.pm +++ b/src/storage/quantum/dxi/ssh/mode/dedupnas.pm @@ -200,12 +200,12 @@ Example: --filter-counters='status' =item B<--warning-status> -Set warning threshold for status (Default: '%{state} !~ /Enabled/i'). +Define the conditions to match for the status to be WARNING (Default: '%{state} !~ /Enabled/i'). You can use the following variables: %{status}, %{state}, %{duration}, %{percent_complete}. =item B<--critical-status> -Set critical threshold for status (Default: ''). +Define the conditions to match for the status to be CRITICAL (Default: ''). You can use the following variables: %{status}, %{state}, %{duration}, %{percent_complete}. =item B<--warning-*> B<--critical-*> diff --git a/src/storage/quantum/dxi/ssh/mode/dedupvtl.pm b/src/storage/quantum/dxi/ssh/mode/dedupvtl.pm index 6f37fe8d4..8920b92c1 100644 --- a/src/storage/quantum/dxi/ssh/mode/dedupvtl.pm +++ b/src/storage/quantum/dxi/ssh/mode/dedupvtl.pm @@ -201,12 +201,12 @@ Example: --filter-counters='status' =item B<--warning-status> -Set warning threshold for status (Default: '%{state} !~ /Enabled/i'). +Define the conditions to match for the status to be WARNING (Default: '%{state} !~ /Enabled/i'). You can use the following variables: %{status}, %{state}, %{duration}, %{percent_complete}. =item B<--critical-status> -Set critical threshold for status (Default: ''). +Define the conditions to match for the status to be CRITICAL (Default: ''). You can use the following variables: %{status}, %{state}, %{duration}, %{percent_complete}. =item B<--warning-*> B<--critical-*> diff --git a/src/storage/quantum/dxi/ssh/mode/health.pm b/src/storage/quantum/dxi/ssh/mode/health.pm index 2824ca20e..9390c7f53 100644 --- a/src/storage/quantum/dxi/ssh/mode/health.pm +++ b/src/storage/quantum/dxi/ssh/mode/health.pm @@ -118,12 +118,12 @@ Check health status. =item B<--warning-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{name}, %{status}, %{state} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} !~ /Ready|Success/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} !~ /Ready|Success/i'). You can use the following variables: %{name}, %{status}, %{state} =back diff --git a/src/storage/quantum/dxi/ssh/mode/hostbusadapterstatus.pm b/src/storage/quantum/dxi/ssh/mode/hostbusadapterstatus.pm index 0277f0760..9afef8ab8 100644 --- a/src/storage/quantum/dxi/ssh/mode/hostbusadapterstatus.pm +++ b/src/storage/quantum/dxi/ssh/mode/hostbusadapterstatus.pm @@ -117,12 +117,12 @@ Check hostbus adapters status. =item B<--warning-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{name}, %{status} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} !~ /Normal/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} !~ /Normal/i'). You can use the following variables: %{name}, %{status} =back diff --git a/src/storage/quantum/dxi/ssh/mode/memory.pm b/src/storage/quantum/dxi/ssh/mode/memory.pm index 4c8117d7c..e4b6061bf 100644 --- a/src/storage/quantum/dxi/ssh/mode/memory.pm +++ b/src/storage/quantum/dxi/ssh/mode/memory.pm @@ -168,11 +168,11 @@ Check memory usage. =item B<--warning-usage> -Threshold warning. +Warning threshold. =item B<--critical-usage> -Threshold critical. +Critical threshold. =back diff --git a/src/storage/quantum/dxi/ssh/mode/network.pm b/src/storage/quantum/dxi/ssh/mode/network.pm index 8b898eeb2..275744459 100644 --- a/src/storage/quantum/dxi/ssh/mode/network.pm +++ b/src/storage/quantum/dxi/ssh/mode/network.pm @@ -118,12 +118,12 @@ Check network ports status. =item B<--warning-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{name}, %{status} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} !~ /Up/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} !~ /Up/i'). You can use the following variables: %{name}, %{status} =back diff --git a/src/storage/quantum/dxi/ssh/mode/reclamation.pm b/src/storage/quantum/dxi/ssh/mode/reclamation.pm index 36b1164a8..00ed503b3 100644 --- a/src/storage/quantum/dxi/ssh/mode/reclamation.pm +++ b/src/storage/quantum/dxi/ssh/mode/reclamation.pm @@ -185,12 +185,12 @@ Example: --filter-counters='status' =item B<--warning-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{reclamation_status} =item B<--critical-status> -Set critical threshold for status (Default: '%{reclamation_status} !~ /ready/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{reclamation_status} !~ /ready/i'). You can use the following variables: %{reclamation_status} =item B<--warning-*> B<--critical-*> diff --git a/src/storage/quantum/dxi/ssh/mode/storagearraystatus.pm b/src/storage/quantum/dxi/ssh/mode/storagearraystatus.pm index e14f8e82d..dd58d175b 100644 --- a/src/storage/quantum/dxi/ssh/mode/storagearraystatus.pm +++ b/src/storage/quantum/dxi/ssh/mode/storagearraystatus.pm @@ -111,12 +111,12 @@ Check storage array status. =item B<--warning-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{name}, %{status} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} !~ /Normal/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} !~ /Normal/i'). You can use the following variables: %{name}, %{status} =back diff --git a/src/storage/quantum/dxi/ssh/mode/systemstatus.pm b/src/storage/quantum/dxi/ssh/mode/systemstatus.pm index f45d4d3d2..d65cb2db3 100644 --- a/src/storage/quantum/dxi/ssh/mode/systemstatus.pm +++ b/src/storage/quantum/dxi/ssh/mode/systemstatus.pm @@ -122,12 +122,12 @@ Check system board status. =item B<--warning-status> -Set warning threshold for status (Default: ''). +Define the conditions to match for the status to be WARNING (Default: ''). You can use the following variables: %{name}, %{status} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} !~ /Normal/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{status} !~ /Normal/i'). You can use the following variables: %{name}, %{status} =back diff --git a/src/storage/synology/snmp/mode/ha.pm b/src/storage/synology/snmp/mode/ha.pm index cb998cedc..cfc46fd8c 100644 --- a/src/storage/synology/snmp/mode/ha.pm +++ b/src/storage/synology/snmp/mode/ha.pm @@ -131,17 +131,17 @@ Example: --filter-counters='^status$' =item B<--unknown-status> -Set unknown threshold for status. +Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{cluster_status}, %{heartbeat_status}, %{active_node_name}, %{passive_node_name} =item B<--warning-status> -Set warning threshold for status (Default: '%{cluster_status} =~ /warning/i || %{heartbeat_status} =~ /abnormal/i'). +Define the conditions to match for the status to be WARNING (Default: '%{cluster_status} =~ /warning/i || %{heartbeat_status} =~ /abnormal/i'). You can use the following variables: %{cluster_status}, %{heartbeat_status}, %{active_node_name}, %{passive_node_name} =item B<--critical-status> -Set critical threshold for status (Default: '%{cluster_status} =~ /critical/i || %{heartbeat_status} =~ /disconnected/i'). +Define the conditions to match for the status to be CRITICAL (Default: '%{cluster_status} =~ /critical/i || %{heartbeat_status} =~ /disconnected/i'). You can use the following variables: %{cluster_status}, %{heartbeat_status}, %{active_node_name}, %{passive_node_name} =item B<--warning-*> B<--critical-*> diff --git a/src/storage/synology/snmp/mode/temperature.pm b/src/storage/synology/snmp/mode/temperature.pm index 64accb043..a181422f1 100644 --- a/src/storage/synology/snmp/mode/temperature.pm +++ b/src/storage/synology/snmp/mode/temperature.pm @@ -93,11 +93,11 @@ Check temperature (SYNOLOGY-SYSTEM-MIB). =item B<--warning-temperature> -Threshold warning in celsius degrees. +Warning threshold in celsius degrees. =item B<--critical-temperature> -Threshold critical in celsius degrees. +Critical threshold in celsius degrees. =back diff --git a/src/storage/synology/snmp/mode/upgrade.pm b/src/storage/synology/snmp/mode/upgrade.pm index c89d8739b..6735a3123 100644 --- a/src/storage/synology/snmp/mode/upgrade.pm +++ b/src/storage/synology/snmp/mode/upgrade.pm @@ -103,12 +103,12 @@ Check upgrade status =item B<--warning-status> -Set warning threshold for status (Default : '%{upgrade} ne "unavailable"'). +Define the conditions to match for the status to be WARNING (Default : '%{upgrade} ne "unavailable"'). You can use the following variables: %{model}, %{version}, %{upgrade} =item B<--critical-status> -Set critical threshold for status. +Define the conditions to match for the status to be CRITICAL. You can use the following variables: %{model}, %{version}, %{upgrade} =back diff --git a/src/storage/wd/nas/snmp/mode/hardware.pm b/src/storage/wd/nas/snmp/mode/hardware.pm index 4f4686b1f..abc694024 100644 --- a/src/storage/wd/nas/snmp/mode/hardware.pm +++ b/src/storage/wd/nas/snmp/mode/hardware.pm @@ -203,12 +203,12 @@ Check hardware. =item B<--warning-fan-status> -Set warning threshold for status (Default : '%{status} ne "running"'). +Define the conditions to match for the status to be WARNING (Default : '%{status} ne "running"'). You can use the following variables: %{status} =item B<--critical-fan-status> -Set critical threshold for status. +Define the conditions to match for the status to be CRITICAL. You can use the following variables: %{status} =item B<--warning-*> B<--critical-*> From f01050dce8f4ff0e1e27f465eebeb1ceb422e48d Mon Sep 17 00:00:00 2001 From: omercier <32134301+omercier@users.noreply.github.com> Date: Thu, 29 Jun 2023 09:59:26 +0200 Subject: [PATCH 20/39] (help) update hardware modes --- src/apps/github/mode/status.pm | 3 +-- src/apps/inin/mediaserver/snmp/mode/component.pm | 6 ++---- src/apps/java/weblogic/jmx/mode/workmanager.pm | 3 +-- src/apps/jive/sql/mode/etljobstatus.pm | 3 +-- src/apps/lmsensors/snmp/mode/sensors.pm | 7 +++---- src/apps/vmware/vcsa/snmp/mode/interfaces.pm | 2 +- src/apps/vmware/vcsa/snmp/mode/listinterfaces.pm | 2 +- src/apps/vmware/wsman/mode/hardware.pm | 10 ++++------ src/centreon/common/adic/tape/snmp/mode/hardware.pm | 11 +++++------ src/centreon/common/airespace/snmp/mode/hardware.pm | 11 +++++------ src/centreon/common/aruba/snmp/mode/hardware.pm | 11 +++++------ src/centreon/common/bluearc/snmp/mode/hardware.pm | 11 +++++------ src/centreon/common/bluearc/snmp/mode/interfaces.pm | 2 +- .../common/bluearc/snmp/mode/listinterfaces.pm | 2 +- .../common/broadcom/fastpath/snmp/mode/hardware.pm | 11 +++++------ .../common/broadcom/megaraid/snmp/mode/hardware.pm | 11 +++++------ .../common/cisco/ironport/snmp/mode/hardware.pm | 11 +++++------ .../cisco/smallbusiness/snmp/mode/environment.pm | 11 +++++------ .../common/cisco/standard/snmp/mode/environment.pm | 11 +++++------ .../common/cisco/standard/snmp/mode/interfaces.pm | 2 +- .../common/cisco/standard/snmp/mode/ipsla.pm | 3 +-- .../common/dell/fastpath/snmp/mode/environment.pm | 11 +++++------ src/centreon/common/emc/navisphere/mode/sp.pm | 8 ++++---- src/centreon/common/force10/snmp/mode/hardware.pm | 11 +++++------ .../common/fortinet/fortigate/snmp/mode/hardware.pm | 9 ++++----- .../fortinet/fortigate/snmp/mode/interfaces.pm | 2 +- src/centreon/common/foundry/snmp/mode/hardware.pm | 11 +++++------ src/centreon/common/h3c/snmp/mode/hardware.pm | 11 +++++------ src/centreon/common/h3c/snmp/mode/interfaces.pm | 2 +- src/centreon/common/ibm/nos/snmp/mode/environment.pm | 7 +++---- .../common/ibm/tapelibrary/snmp/mode/hardware.pm | 11 +++++------ .../common/polycom/endpoint/snmp/mode/hardware.pm | 11 +++++------ src/centreon/common/radlan/snmp/mode/environment.pm | 11 +++++------ src/centreon/common/redfish/restapi/mode/hardware.pm | 9 ++++----- src/centreon/common/sun/snmp/mode/hardware.pm | 9 ++++----- src/centreon/common/violin/snmp/mode/hardware.pm | 11 +++++------ src/centreon/plugins/output.pm | 2 +- src/centreon/plugins/snmp.pm | 6 +++--- src/centreon/plugins/templates/hardware.pm | 11 +++++------ src/hardware/ats/apc/snmp/mode/devicestatus.pm | 10 ++++------ .../devices/aeg/acm/snmp/mode/alarmsstatus.pm | 10 ++++------ .../devices/camera/hanwha/snmp/mode/hardware.pm | 8 +++----- .../devices/cisco/ces/restapi/mode/components.pm | 8 +++----- .../safenet/hsm/protecttoolkit/mode/hardware.pm | 5 ++--- .../devices/video/axis/snmp/mode/environment.pm | 10 ++++------ .../kvm/avocent/acs/6000/snmp/mode/hardware.pm | 10 ++++------ .../kvm/avocent/acs/8000/snmp/mode/hardware.pm | 10 ++++------ src/hardware/pdu/apc/snmp/mode/hardware.pm | 10 ++++------ .../pdu/raritan/snmp/mode/externalsensors.pm | 10 ++++------ src/hardware/pdu/raritan/snmp/mode/inletsensors.pm | 10 ++++------ src/hardware/pdu/raritan/snmp/mode/ocprotsensors.pm | 10 ++++------ src/hardware/pdu/raritan/snmp/mode/outletsensors.pm | 10 ++++------ .../pdu/schleifenbauer/gateway/snmp/mode/sensors.pm | 7 +++---- src/hardware/sensors/akcp/snmp/mode/sensors.pm | 10 ++++------ src/hardware/sensors/apc/snmp/mode/sensors.pm | 10 ++++------ src/hardware/sensors/hwgste/snmp/mode/sensors.pm | 5 ++--- src/hardware/sensors/jacarta/snmp/mode/sensors.pm | 10 ++++------ src/hardware/sensors/netbotz/snmp/mode/sensors.pm | 10 ++++------ src/hardware/sensors/sensorip/snmp/mode/sensors.pm | 10 ++++------ .../serverscheck/sensorgateway/snmp/mode/sensors.pm | 10 ++++------ src/hardware/server/cisco/ucs/snmp/mode/equipment.pm | 10 ++++------ src/hardware/server/dell/cmc/snmp/mode/hardware.pm | 10 ++++------ src/hardware/server/dell/idrac/snmp/mode/hardware.pm | 10 ++++------ src/hardware/server/dell/omem/snmp/mode/hardware.pm | 10 ++++------ .../server/dell/openmanage/snmp/mode/hardware.pm | 10 ++++------ src/hardware/server/fujitsu/snmp/mode/hardware.pm | 10 ++++------ .../server/hp/bladechassis/snmp/mode/hardware.pm | 10 ++++------ src/hardware/server/hp/ilo/xmlapi/mode/hardware.pm | 10 ++++------ .../server/hp/oneview/restapi/mode/hardware.pm | 8 +++----- .../server/hp/proliant/snmp/mode/globalstatus.pm | 3 +-- .../server/hp/proliant/snmp/mode/hardware.pm | 10 ++++------ src/hardware/server/huawei/hmm/snmp/mode/blade.pm | 10 ++++------ src/hardware/server/huawei/hmm/snmp/mode/chassis.pm | 10 ++++------ .../server/huawei/ibmc/snmp/mode/hardware.pm | 8 +++----- .../server/ibm/bladecenter/snmp/mode/hardware.pm | 12 +++++------- .../ibm/mgmt_cards/imm/snmp/mode/environment.pm | 10 ++++------ src/hardware/server/lenovo/xcc/snmp/mode/hardware.pm | 10 ++++------ .../server/sun/mgmt_cards/mode/showboards.pm | 3 +-- .../server/sun/mgmt_cards/mode/showenvironment.pm | 10 ++++------ .../server/sun/mgmt_cards/mode/showstatus.pm | 3 +-- .../server/supermicro/bmc/snmp/mode/hardware.pm | 5 ++--- .../supermicro/superdoctor/snmp/mode/hardware.pm | 8 +++----- .../server/xfusion/ibmc/snmp/mode/hardware.pm | 8 +++----- .../avaya/mediagateway/snmp/mode/hardware.pm | 10 ++++------ src/hardware/ups/alpha/snmp/mode/alarms.pm | 8 +++----- src/hardware/ups/apc/snmp/mode/sensors.pm | 8 +++----- src/hardware/ups/powerware/snmp/mode/outputsource.pm | 3 +-- src/network/3com/snmp/mode/hardware.pm | 11 +++++------ src/network/a10/ax/snmp/mode/hardware.pm | 9 ++++----- src/network/acmepacket/snmp/mode/hardware.pm | 11 +++++------ src/network/adva/fsp150/snmp/mode/hardware.pm | 11 +++++------ src/network/adva/fsp3000/snmp/mode/interfaces.pm | 2 +- src/network/adva/fsp3000/snmp/mode/listinterfaces.pm | 2 +- src/network/alcatel/isam/snmp/mode/hardware.pm | 11 +++++------ src/network/alcatel/omniswitch/snmp/mode/hardware.pm | 11 +++++------ src/network/alcatel/oxe/snmp/mode/pbxrole.pm | 3 +-- src/network/alcatel/oxe/snmp/mode/pbxstate.pm | 3 +-- src/network/allied/snmp/mode/hardware.pm | 11 +++++------ src/network/aruba/aoscx/restapi/mode/hardware.pm | 11 +++++------ src/network/aruba/aoscx/snmp/mode/hardware.pm | 11 +++++------ src/network/aruba/cppm/snmp/mode/interfaces.pm | 2 +- src/network/atrica/snmp/mode/connections.pm | 2 +- src/network/atrica/snmp/mode/listconnections.pm | 2 +- src/network/atto/fibrebridge/snmp/mode/hardware.pm | 11 +++++------ src/network/audiocodes/snmp/mode/hardware.pm | 11 +++++------ src/network/barracuda/cloudgen/snmp/mode/hardware.pm | 11 +++++------ src/network/bluecoat/snmp/mode/hardware.pm | 11 +++++------ src/network/brocade/snmp/mode/hardware.pm | 9 ++++----- src/network/brocade/snmp/mode/interfaces.pm | 2 +- src/network/brocade/snmp/mode/listinterfaces.pm | 2 +- src/network/cambium/cnpilot/snmp/mode/interfaces.pm | 2 +- src/network/cambium/epmp/snmp/mode/interfaces.pm | 2 +- src/network/checkpoint/snmp/mode/hardware.pm | 11 +++++------ .../cisco/firepower/fxos/snmp/mode/hardware.pm | 11 +++++------ src/network/citrix/netscaler/snmp/mode/health.pm | 11 +++++------ .../citrix/netscaler/snmp/mode/vserverstatus.pm | 3 +-- src/network/citrix/sdx/snmp/mode/hardware.pm | 9 ++++----- src/network/cyberoam/snmp/mode/services.pm | 9 ++++----- src/network/dell/nseries/snmp/mode/interfaces.pm | 2 +- src/network/dell/os10/snmp/mode/hardware.pm | 11 +++++------ src/network/dlink/dgs3100/snmp/mode/hardware.pm | 11 +++++------ src/network/dlink/standard/snmp/mode/hardware.pm | 11 +++++------ src/network/dlink/standard/snmp/mode/interfaces.pm | 2 +- src/network/enterasys/snmp/mode/interfaces.pm | 2 +- src/network/evertz/FC7800/snmp/mode/hardware.pm | 9 ++++----- src/network/extreme/snmp/mode/hardware.pm | 11 +++++------ src/network/extreme/snmp/mode/interfaces.pm | 2 +- src/network/f5/bigip/snmp/mode/hardware.pm | 11 +++++------ src/network/fiberstore/snmp/mode/hardware.pm | 11 +++++------ src/network/fortinet/fortiadc/snmp/mode/hardware.pm | 11 +++++------ .../fortinet/fortiadc/snmp/mode/interfaces.pm | 2 +- .../fortinet/fortiswitch/snmp/mode/interfaces.pm | 2 +- .../hirschmann/standard/snmp/mode/hardware.pm | 11 +++++------ src/network/hp/moonshot/snmp/mode/interfaces.pm | 2 +- src/network/hp/procurve/snmp/mode/environment.pm | 11 +++++------ src/network/hp/procurve/snmp/mode/interfaces.pm | 2 +- src/network/hp/vc/snmp/mode/hardware.pm | 11 +++++------ src/network/huawei/snmp/mode/hardware.pm | 11 +++++------ src/network/huawei/snmp/mode/interfaces.pm | 2 +- src/network/infoblox/snmp/mode/services.pm | 7 +++---- src/network/juniper/common/junos/mode/hardware.pm | 11 +++++------ src/network/juniper/common/junos/mode/interfaces.pm | 2 +- .../juniper/common/screenos/snmp/mode/hardware.pm | 9 ++++----- .../lenovo/flexsystem/snmp/mode/environment.pm | 7 +++---- .../lenovo/rackswitch/snmp/mode/interfaces.pm | 2 +- src/network/libraesva/snmp/mode/interfaces.pm | 2 +- src/network/microsens/g6/snmp/mode/hardware.pm | 11 +++++------ src/network/microsens/g6/snmp/mode/interfaces.pm | 2 +- src/network/mikrotik/snmp/mode/environment.pm | 8 ++++---- src/network/mikrotik/snmp/mode/interfaces.pm | 2 +- src/network/mrv/optiswitch/snmp/mode/environment.pm | 11 +++++------ src/network/mrv/optiswitch/snmp/mode/interfaces.pm | 2 +- .../mrv/optiswitch/snmp/mode/listinterfaces.pm | 2 +- src/network/netgear/mseries/snmp/mode/hardware.pm | 11 +++++------ src/network/netgear/sseries/snmp/mode/hardware.pm | 11 +++++------ src/network/netgear/sseries/snmp/mode/interfaces.pm | 2 +- src/network/nokia/timos/snmp/mode/hardware.pm | 8 +++----- src/network/nortel/standard/snmp/mode/hardware.pm | 10 ++++------ src/network/nortel/standard/snmp/mode/interfaces.pm | 2 +- src/network/oneaccess/snmp/mode/interfaces.pm | 2 +- src/network/opengear/snmp/mode/interfaces.pm | 2 +- src/network/paloalto/ssh/mode/environment.pm | 11 +++++------ src/network/perle/ids/snmp/mode/hardware.pm | 11 +++++------ src/network/polycom/rmx/snmp/mode/hardware.pm | 9 ++++----- src/network/radware/alteon/snmp/mode/hardware.pm | 9 ++++----- src/network/raisecom/snmp/mode/hardware.pm | 11 +++++------ src/network/raisecom/snmp/mode/interfaces.pm | 2 +- src/network/redback/snmp/mode/hardware.pm | 10 ++++------ src/network/ruggedcom/mode/errors.pm | 2 +- src/network/ruggedcom/mode/hardware.pm | 11 +++++------ src/network/sonus/sbc/snmp/mode/interfaces.pm | 2 +- src/network/sophos/es/snmp/mode/health.pm | 8 +++----- src/network/stormshield/api/mode/hardware.pm | 11 +++++------ src/network/stormshield/snmp/mode/hardware.pm | 11 +++++------ src/network/viptela/snmp/mode/hardware.pm | 11 +++++------ src/network/viptela/snmp/mode/interfaces.pm | 2 +- src/os/picos/snmp/mode/hardware.pm | 11 +++++------ src/os/picos/snmp/mode/interfaces.pm | 2 +- src/os/picos/snmp/mode/listinterfaces.pm | 2 +- src/os/solaris/local/mode/lomv120.pm | 11 +++++------ src/snmp_standard/mode/entity.pm | 8 +++----- src/snmp_standard/mode/hardwaredevice.pm | 8 +++----- src/snmp_standard/mode/hardwarefibrealliance.pm | 8 +++----- src/snmp_standard/mode/interfaces.pm | 2 +- src/snmp_standard/mode/listinterfaces.pm | 2 +- src/storage/bdt/multistak/snmp/mode/hardware.pm | 10 ++++------ .../buffalo/terastation/snmp/mode/hardware.pm | 10 ++++------ src/storage/dell/compellent/snmp/mode/hardware.pm | 10 ++++------ src/storage/dell/equallogic/snmp/mode/hardware.pm | 10 ++++------ src/storage/dell/fluidfs/snmp/mode/hardware.pm | 10 ++++------ src/storage/dell/me4/restapi/mode/hardware.pm | 8 +++----- src/storage/dell/powerstore/restapi/mode/hardware.pm | 8 +++----- src/storage/emc/DataDomain/mode/hardware.pm | 10 ++++------ src/storage/emc/celerra/local/mode/getreason.pm | 10 ++++------ src/storage/emc/isilon/snmp/mode/hardware.pm | 10 ++++------ .../emc/symmetrix/dmx34/local/mode/hardware.pm | 10 ++++------ .../emc/symmetrix/vmax/local/mode/hardware.pm | 10 ++++------ src/storage/emc/unisphere/restapi/mode/hardware.pm | 8 +++----- .../emc/xtremio/restapi/mode/clusterhealth.pm | 2 +- src/storage/emc/xtremio/restapi/mode/ssdendurance.pm | 2 +- src/storage/emc/xtremio/restapi/mode/xenvscpu.pm | 2 +- src/storage/emc/xtremio/restapi/mode/xenvsstate.pm | 5 ++--- .../fujitsu/eternus/dx/ssh/mode/physicaldisk.pm | 8 +++----- src/storage/fujitsu/eternus/dx/ssh/mode/psu.pm | 8 +++----- .../fujitsu/eternus/dx/ssh/mode/raidgroups.pm | 3 +-- src/storage/hitachi/standard/snmp/mode/hardware.pm | 10 ++++------ src/storage/hp/3par/ssh/mode/hardware.pm | 10 ++++------ src/storage/hp/eva/cli/mode/hardware.pm | 10 ++++------ src/storage/hp/lefthand/snmp/mode/hardware.pm | 10 ++++------ src/storage/hp/msl/snmp/mode/hardware.pm | 6 ++---- src/storage/hp/p2000/xmlapi/mode/health.pm | 10 ++++------ .../hp/storeonce/4/restapi/mode/hardwarestorage.pm | 10 ++++------ src/storage/hp/storeonce/ssh/mode/hardware.pm | 10 ++++------ src/storage/huawei/oceanstor/snmp/mode/hardware.pm | 10 ++++------ src/storage/ibm/fs900/snmp/mode/hardware.pm | 10 ++++------ src/storage/ibm/storwize/ssh/mode/hardware.pm | 10 ++++------ src/storage/ibm/ts2900/snmp/mode/hardware.pm | 8 +++----- src/storage/lenovo/iomega/snmp/mode/hardware.pm | 10 ++++------ src/storage/lenovo/iomega/snmp/mode/interfaces.pm | 2 +- src/storage/netapp/ontap/restapi/mode/hardware.pm | 8 +++----- src/storage/netapp/ontap/snmp/mode/nvram.pm | 3 +-- src/storage/netapp/ontap/snmp/mode/partnerstatus.pm | 3 +-- src/storage/netapp/ontap/snmp/mode/shelf.pm | 10 ++++------ .../netapp/santricity/restapi/mode/hardware.pm | 8 +++----- src/storage/netgear/readynas/snmp/mode/hardware.pm | 10 ++++------ src/storage/nimble/restapi/mode/hardware.pm | 10 ++++------ src/storage/oracle/zs/restapi/mode/hardware.pm | 8 +++----- src/storage/oracle/zs/snmp/mode/hardware.pm | 8 +++----- src/storage/overland/neo/snmp/mode/hardware.pm | 10 ++++------ .../flasharray/legacy/restapi/mode/hardware.pm | 8 +++----- .../flasharray/v2/restapi/mode/hardware.pm | 10 ++++------ .../flashblade/v2/restapi/mode/hardware.pm | 10 ++++------ src/storage/qnap/snmp/mode/hardware.pm | 10 ++++------ src/storage/qsan/nas/snmp/mode/hardware.pm | 10 ++++------ src/storage/quantum/scalar/snmp/mode/hardware.pm | 10 ++++------ src/storage/storagetek/sl/snmp/mode/hardware.pm | 10 ++++------ src/storage/synology/snmp/mode/hardware.pm | 10 ++++------ 237 files changed, 776 insertions(+), 1054 deletions(-) diff --git a/src/apps/github/mode/status.pm b/src/apps/github/mode/status.pm index 8eeef3f5f..cb47bcada 100644 --- a/src/apps/github/mode/status.pm +++ b/src/apps/github/mode/status.pm @@ -153,8 +153,7 @@ Threshold for HTTP timeout (Default: 5) =item B<--threshold-overload> -Set to overload default threshold values (syntax: status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: status,regexp). Example: --threshold-overload='CRITICAL,^(?!(good)$)' =back diff --git a/src/apps/inin/mediaserver/snmp/mode/component.pm b/src/apps/inin/mediaserver/snmp/mode/component.pm index abd0f271b..dbd84c567 100644 --- a/src/apps/inin/mediaserver/snmp/mode/component.pm +++ b/src/apps/inin/mediaserver/snmp/mode/component.pm @@ -80,13 +80,11 @@ Can be: 'device'. =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='device,WARNING,restarting' =back diff --git a/src/apps/java/weblogic/jmx/mode/workmanager.pm b/src/apps/java/weblogic/jmx/mode/workmanager.pm index 47c02fabf..96e0d7317 100644 --- a/src/apps/java/weblogic/jmx/mode/workmanager.pm +++ b/src/apps/java/weblogic/jmx/mode/workmanager.pm @@ -257,8 +257,7 @@ Filter by server runtime. =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,status,regexp). Example: --threshold-overload='health,CRITICAL,^(?!(HEALTH_OK)$)' =back diff --git a/src/apps/jive/sql/mode/etljobstatus.pm b/src/apps/jive/sql/mode/etljobstatus.pm index 21ca8a120..27fb66b54 100644 --- a/src/apps/jive/sql/mode/etljobstatus.pm +++ b/src/apps/jive/sql/mode/etljobstatus.pm @@ -143,8 +143,7 @@ Retention in days (default : 1). =item B<--threshold-overload> -Set to overload default threshold values (syntax: status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: status,regexp). Example: --threshold-overload='CRITICAL,^(?!(1)$)' =back diff --git a/src/apps/lmsensors/snmp/mode/sensors.pm b/src/apps/lmsensors/snmp/mode/sensors.pm index 593cb2332..af2aecf91 100644 --- a/src/apps/lmsensors/snmp/mode/sensors.pm +++ b/src/apps/lmsensors/snmp/mode/sensors.pm @@ -75,13 +75,12 @@ Can be: 'fan', 'voltage', 'temperature', 'misc'. =item B<--filter> -Exclude some parts (comma seperated list) (Example: --filter=fan --filter=power) -Can also exclude specific instance: --filter=power,3.3 +Exclude the items given as a comma-separated list (example: --filter=fan --filter=power). +You can also exclude items from specific instances: --filter=power,3.3 =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). =item B<--warning> diff --git a/src/apps/vmware/vcsa/snmp/mode/interfaces.pm b/src/apps/vmware/vcsa/snmp/mode/interfaces.pm index f932cfd1b..63832be13 100644 --- a/src/apps/vmware/vcsa/snmp/mode/interfaces.pm +++ b/src/apps/vmware/vcsa/snmp/mode/interfaces.pm @@ -131,7 +131,7 @@ Set the interface (number expected) ex: 1,2,... (empty means 'check all interfac =item B<--name> -Allows to use interface name with option --interface instead of interface oid index (Can be a regexp) +Allows you to define the interface (in option --interface) by name instead of OID index. The name matching mode supports regular expressions. =item B<--speed> diff --git a/src/apps/vmware/vcsa/snmp/mode/listinterfaces.pm b/src/apps/vmware/vcsa/snmp/mode/listinterfaces.pm index ecc99bea1..67f31f66f 100644 --- a/src/apps/vmware/vcsa/snmp/mode/listinterfaces.pm +++ b/src/apps/vmware/vcsa/snmp/mode/listinterfaces.pm @@ -59,7 +59,7 @@ Set the interface (number expected) ex: 1,2,... (empty means 'check all interfac =item B<--name> -Allows to use interface name with option --interface instead of interface oid index (Can be a regexp) +Allows you to define the interface (in option --interface) by name instead of OID index. The name matching mode supports regular expressions. =item B<--speed> diff --git a/src/apps/vmware/wsman/mode/hardware.pm b/src/apps/vmware/wsman/mode/hardware.pm index ffbf9c954..98e020f70 100644 --- a/src/apps/vmware/wsman/mode/hardware.pm +++ b/src/apps/vmware/wsman/mode/hardware.pm @@ -133,18 +133,16 @@ Can be: 'omc_discretesensor', 'omc_fan', 'omc_psu', 'vmware_storageextent', 'vmw =item B<--filter> -Exclude some parts (comma seperated list) (Example: --filter=cim_card --filter=cim_recordlog) -Can also exclude specific instance: --filter='omc_psu,Power Supply 1' +Exclude the items given as a comma-separated list (example: --filter=cim_card --filter=cim_recordlog). +You can also exclude items from specific instances: --filter='omc_psu,Power Supply 1' =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='cim_card,CRITICAL,^(?!(OK)$)' =item B<--warning> diff --git a/src/centreon/common/adic/tape/snmp/mode/hardware.pm b/src/centreon/common/adic/tape/snmp/mode/hardware.pm index 0d1c6b0e4..b8329fc52 100644 --- a/src/centreon/common/adic/tape/snmp/mode/hardware.pm +++ b/src/centreon/common/adic/tape/snmp/mode/hardware.pm @@ -104,18 +104,17 @@ Can be: 'global', 'physicaldrive', 'subsystem', 'component', 'temperature', 'fan =item B<--filter> -Exclude some parts (comma seperated list) (Example: --filter=subsystem) -Can also exclude specific instance: --filter=physicaldrive,1 +Exclude the items given as a comma-separated list (example: --filter=subsystem). +You can also exclude items from specific instances: --filter=physicaldrive,1 =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). + =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='physicaldrive,OK,invalid' =item B<--warning> diff --git a/src/centreon/common/airespace/snmp/mode/hardware.pm b/src/centreon/common/airespace/snmp/mode/hardware.pm index 9e4e02c15..0da974a1b 100644 --- a/src/centreon/common/airespace/snmp/mode/hardware.pm +++ b/src/centreon/common/airespace/snmp/mode/hardware.pm @@ -76,8 +76,8 @@ Can be: 'psu'. =item B<--filter> -Exclude some parts (comma seperated list) (Example: --filter=psu) -Can also exclude specific instance: --filter=psu,1 +Exclude the items given as a comma-separated list (example: --filter=psu). +You can also exclude items from specific instances: --filter=psu,1 =item B<--absent-problem> @@ -86,13 +86,12 @@ Can be specific or global: --absent-problem=psu,1 =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). + =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='psu,WARNING,not operational' =back diff --git a/src/centreon/common/aruba/snmp/mode/hardware.pm b/src/centreon/common/aruba/snmp/mode/hardware.pm index 2600da319..582b580b6 100644 --- a/src/centreon/common/aruba/snmp/mode/hardware.pm +++ b/src/centreon/common/aruba/snmp/mode/hardware.pm @@ -83,18 +83,17 @@ Can be: 'fan', 'psu', 'module'. =item B<--filter> -Exclude some parts (comma seperated list) (Example: --filter=fan --filter=psu) -Can also exclude specific instance: --filter=fan,1 +Exclude the items given as a comma-separated list (example: --filter=fan --filter=psu). +You can also exclude items from specific instances: --filter=fan,1 =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). + =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='fan,OK,inactive' =back diff --git a/src/centreon/common/bluearc/snmp/mode/hardware.pm b/src/centreon/common/bluearc/snmp/mode/hardware.pm index e7f5ed616..4c05d411c 100644 --- a/src/centreon/common/bluearc/snmp/mode/hardware.pm +++ b/src/centreon/common/bluearc/snmp/mode/hardware.pm @@ -126,18 +126,17 @@ Can be: 'temperature', 'fan', 'psu', 'sysdrive', 'battery'. =item B<--filter> -Exclude some parts (comma seperated list) (Example: --filter=sysdrive) -Can also exclude specific instance: --filter=sysdrive,1 +Exclude the items given as a comma-separated list (example: --filter=sysdrive). +You can also exclude items from specific instances: --filter=sysdrive,1 =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). + =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='sysdrive,OK,formatting' =item B<--warning> diff --git a/src/centreon/common/bluearc/snmp/mode/interfaces.pm b/src/centreon/common/bluearc/snmp/mode/interfaces.pm index 2b4d1b063..9a7822ace 100644 --- a/src/centreon/common/bluearc/snmp/mode/interfaces.pm +++ b/src/centreon/common/bluearc/snmp/mode/interfaces.pm @@ -131,7 +131,7 @@ Set the interface (number expected) ex: 1,2,... (empty means 'check all interfac =item B<--name> -Allows to use interface name with option --interface instead of interface oid index (Can be a regexp) +Allows you to define the interface (in option --interface) by name instead of OID index. The name matching mode supports regular expressions. =item B<--speed> diff --git a/src/centreon/common/bluearc/snmp/mode/listinterfaces.pm b/src/centreon/common/bluearc/snmp/mode/listinterfaces.pm index 17bd62774..32b9df694 100644 --- a/src/centreon/common/bluearc/snmp/mode/listinterfaces.pm +++ b/src/centreon/common/bluearc/snmp/mode/listinterfaces.pm @@ -59,7 +59,7 @@ Set the interface (number expected) ex: 1,2,... (empty means 'check all interfac =item B<--name> -Allows to use interface name with option --interface instead of interface oid index (Can be a regexp) +Allows you to define the interface (in option --interface) by name instead of OID index. The name matching mode supports regular expressions. =item B<--speed> diff --git a/src/centreon/common/broadcom/fastpath/snmp/mode/hardware.pm b/src/centreon/common/broadcom/fastpath/snmp/mode/hardware.pm index 07289cb70..88bfc9999 100644 --- a/src/centreon/common/broadcom/fastpath/snmp/mode/hardware.pm +++ b/src/centreon/common/broadcom/fastpath/snmp/mode/hardware.pm @@ -92,8 +92,8 @@ Can be: 'fan', 'psu', 'temperature'. =item B<--filter> -Exclude some parts (comma seperated list) (Example: --filter=fan --filter=psu) -Can also exclude specific instance: --filter=fan,1.1 +Exclude the items given as a comma-separated list (example: --filter=fan --filter=psu). +You can also exclude items from specific instances: --filter=fan,1.1 =item B<--absent-problem> @@ -102,13 +102,12 @@ Can be specific or global: --absent-problem=fan,1 =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). + =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='psu,CRITICAL,^(?!(operational)$)' =item B<--warning> diff --git a/src/centreon/common/broadcom/megaraid/snmp/mode/hardware.pm b/src/centreon/common/broadcom/megaraid/snmp/mode/hardware.pm index d80b983bc..93d88043d 100644 --- a/src/centreon/common/broadcom/megaraid/snmp/mode/hardware.pm +++ b/src/centreon/common/broadcom/megaraid/snmp/mode/hardware.pm @@ -105,8 +105,8 @@ Can be: 'alarm', 'fan', 'sim', 'slot', 'psu', =item B<--filter> -Exclude some parts (comma seperated list) (Example: --filter=fan --filter=psu) -Can also exclude specific instance: --filter=fan,3 +Exclude the items given as a comma-separated list (example: --filter=fan --filter=psu). +You can also exclude items from specific instances: --filter=fan,3 =item B<--absent-problem> @@ -115,13 +115,12 @@ Can be specific or global: --absent-problem=fan,1 =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). + =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='psu,OK,^(?!(status-unrecoverable)$)' =item B<--warning> diff --git a/src/centreon/common/cisco/ironport/snmp/mode/hardware.pm b/src/centreon/common/cisco/ironport/snmp/mode/hardware.pm index 536815e88..a946fabbd 100644 --- a/src/centreon/common/cisco/ironport/snmp/mode/hardware.pm +++ b/src/centreon/common/cisco/ironport/snmp/mode/hardware.pm @@ -85,8 +85,8 @@ Can be: 'fan', 'temperature', 'psu', 'raid'. =item B<--filter> -Exclude some parts (comma seperated list) (Example: --filter=fan --filter=temperature) -Can also exclude specific instance: --filter=fan,1 +Exclude the items given as a comma-separated list (example: --filter=fan --filter=temperature). +You can also exclude items from specific instances: --filter=fan,1 =item B<--absent-problem> @@ -95,13 +95,12 @@ Can be specific or global: --absent-problem=psu#1# =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). + =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='psu,CRITICAL,^(?!(powerSupplyHealthy)$)' =item B<--warning> diff --git a/src/centreon/common/cisco/smallbusiness/snmp/mode/environment.pm b/src/centreon/common/cisco/smallbusiness/snmp/mode/environment.pm index 99e67d6fe..f11a1347f 100644 --- a/src/centreon/common/cisco/smallbusiness/snmp/mode/environment.pm +++ b/src/centreon/common/cisco/smallbusiness/snmp/mode/environment.pm @@ -103,8 +103,8 @@ Can be: 'fan', 'psu', 'temperature'. =item B<--filter> -Exclude some parts (comma seperated list) (Example: --filter=psu) -Can also exclude specific instance: --filter=psu,0 +Exclude the items given as a comma-separated list (example: --filter=psu). +You can also exclude items from specific instances: --filter=psu,0 =item B<--absent-problem> @@ -113,13 +113,12 @@ Can be specific or global: --absent-problem=fan#2# =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). + =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='fan,CRITICAL,^(?!(normal)$)' =item B<--warning> diff --git a/src/centreon/common/cisco/standard/snmp/mode/environment.pm b/src/centreon/common/cisco/standard/snmp/mode/environment.pm index 8dd079383..b94f7f56a 100644 --- a/src/centreon/common/cisco/standard/snmp/mode/environment.pm +++ b/src/centreon/common/cisco/standard/snmp/mode/environment.pm @@ -165,8 +165,8 @@ Can be: 'fan', 'psu', 'temperature', 'voltage', 'module', 'physical', 'sensor'. =item B<--filter> -Exclude some parts (comma seperated list) (Example: --filter=fan --filter=psu) -Can also exclude specific instance: --filter=fan,1 +Exclude the items given as a comma-separated list (example: --filter=fan --filter=psu). +You can also exclude items from specific instances: --filter=fan,1 =item B<--add-name-instance> @@ -187,13 +187,12 @@ Can be specific or global: --absent-problem=fan,1 =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). + =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,status,regexp). Example: --threshold-overload='fan,CRITICAL,^(?!(up|normal)$)' =item B<--warning> diff --git a/src/centreon/common/cisco/standard/snmp/mode/interfaces.pm b/src/centreon/common/cisco/standard/snmp/mode/interfaces.pm index 9fe4b3da7..101c11dad 100644 --- a/src/centreon/common/cisco/standard/snmp/mode/interfaces.pm +++ b/src/centreon/common/cisco/standard/snmp/mode/interfaces.pm @@ -414,7 +414,7 @@ Set the interface (number expected) ex: 1,2,... (empty means 'check all interfac =item B<--name> -Allows to use interface name with option --interface instead of interface oid index (Can be a regexp) +Allows you to define the interface (in option --interface) by name instead of OID index. The name matching mode supports regular expressions. =item B<--speed> diff --git a/src/centreon/common/cisco/standard/snmp/mode/ipsla.pm b/src/centreon/common/cisco/standard/snmp/mode/ipsla.pm index 6e2d68b1f..e15f0a2ff 100644 --- a/src/centreon/common/cisco/standard/snmp/mode/ipsla.pm +++ b/src/centreon/common/cisco/standard/snmp/mode/ipsla.pm @@ -953,8 +953,7 @@ Filter tag (Default: '.*') =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,status,regexp). Example: --threshold-overload='opersense,CRITICAL,^(?!(ok)$)' =item B<--warning-*> diff --git a/src/centreon/common/dell/fastpath/snmp/mode/environment.pm b/src/centreon/common/dell/fastpath/snmp/mode/environment.pm index e4f893259..2c4e61d37 100644 --- a/src/centreon/common/dell/fastpath/snmp/mode/environment.pm +++ b/src/centreon/common/dell/fastpath/snmp/mode/environment.pm @@ -91,8 +91,8 @@ Can be: 'fan', 'psu', 'temperature'. =item B<--filter> -Exclude some parts (comma seperated list) (Example: --filter=fan --filter=psu) -Can also exclude specific instance: --filter=fan,1 +Exclude the items given as a comma-separated list (example: --filter=fan --filter=psu). +You can also exclude items from specific instances: --filter=fan,1 =item B<--absent-problem> @@ -101,13 +101,12 @@ Can be specific or global: --absent-problem=psu,1 =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). + =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='psu,CRITICAL,^(?!(operational)$)' =item B<--warning> diff --git a/src/centreon/common/emc/navisphere/mode/sp.pm b/src/centreon/common/emc/navisphere/mode/sp.pm index 5a4f18036..80fb22002 100644 --- a/src/centreon/common/emc/navisphere/mode/sp.pm +++ b/src/centreon/common/emc/navisphere/mode/sp.pm @@ -116,13 +116,13 @@ Can be: 'fan', 'lcc', 'psu', 'battery', 'memory', 'cpu', 'iomodule', 'cable'. =item B<--filter> -Exclude some parts (comma seperated list) (Example: --filter=lcc --filter=fan) -Can also exclude specific instance: --filter=fan,1.2 +Exclude the items given as a comma-separated list (example: --filter=lcc --filter=fan). +You can also exclude items from specific instances: --filter=fan,1.2 =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). + =back diff --git a/src/centreon/common/force10/snmp/mode/hardware.pm b/src/centreon/common/force10/snmp/mode/hardware.pm index 66256bb8d..9e0e1ef69 100644 --- a/src/centreon/common/force10/snmp/mode/hardware.pm +++ b/src/centreon/common/force10/snmp/mode/hardware.pm @@ -99,8 +99,8 @@ Can be: 'temperature', 'fan', 'psu'. =item B<--filter> -Exclude some parts (comma seperated list) (Example: --filter=temperature --filter=psu) -Can also exclude specific instance: --filter=fan,1 +Exclude the items given as a comma-separated list (example: --filter=temperature --filter=psu). +You can also exclude items from specific instances: --filter=fan,1 =item B<--absent-problem> @@ -109,13 +109,12 @@ Can be specific or global: --absent-problem=fan,1 =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). + =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='psu,WARNING,^(?!(up)$)' =item B<--warning> diff --git a/src/centreon/common/fortinet/fortigate/snmp/mode/hardware.pm b/src/centreon/common/fortinet/fortigate/snmp/mode/hardware.pm index 2542f0eba..9a44d02c4 100644 --- a/src/centreon/common/fortinet/fortigate/snmp/mode/hardware.pm +++ b/src/centreon/common/fortinet/fortigate/snmp/mode/hardware.pm @@ -99,17 +99,16 @@ Add literal description for instance value (used in filter, and threshold option =item B<--filter> Exclude some parts (comma seperated list) -Can also exclude specific instance: --filter=sensors,1 +You can also exclude items from specific instances: --filter=sensors,1 =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). + =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='sensors,WARNING,off' =item B<--warning> diff --git a/src/centreon/common/fortinet/fortigate/snmp/mode/interfaces.pm b/src/centreon/common/fortinet/fortigate/snmp/mode/interfaces.pm index 64189c1f6..df62ccd96 100644 --- a/src/centreon/common/fortinet/fortigate/snmp/mode/interfaces.pm +++ b/src/centreon/common/fortinet/fortigate/snmp/mode/interfaces.pm @@ -142,7 +142,7 @@ Set the interface (number expected) ex: 1,2,... (empty means 'check all interfac =item B<--name> -Allows to use interface name with option --interface instead of interface oid index (Can be a regexp) +Allows you to define the interface (in option --interface) by name instead of OID index. The name matching mode supports regular expressions. =item B<--speed> diff --git a/src/centreon/common/foundry/snmp/mode/hardware.pm b/src/centreon/common/foundry/snmp/mode/hardware.pm index fccb51919..2d30b6af2 100644 --- a/src/centreon/common/foundry/snmp/mode/hardware.pm +++ b/src/centreon/common/foundry/snmp/mode/hardware.pm @@ -88,18 +88,17 @@ Can be: 'board', 'fan', 'temperature', 'psu'. =item B<--filter> -Exclude some parts (comma seperated list) (Example: --filter=fan --filter=psu) -Can also exclude specific instance: --filter=fan,1.1 +Exclude the items given as a comma-separated list (example: --filter=fan --filter=psu). +You can also exclude items from specific instances: --filter=fan,1.1 =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). + =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='psu,CRITICAL,fail' =item B<--warning> diff --git a/src/centreon/common/h3c/snmp/mode/hardware.pm b/src/centreon/common/h3c/snmp/mode/hardware.pm index 6ef22bf96..7194db1dc 100644 --- a/src/centreon/common/h3c/snmp/mode/hardware.pm +++ b/src/centreon/common/h3c/snmp/mode/hardware.pm @@ -285,8 +285,8 @@ Can be: 'fan', 'psu', 'other', 'unknown', 'sensor', 'chassis', 'backplane', =item B<--filter> -Exclude some parts (comma seperated list) (Example: --filter=fan --filter=psu) -Can also exclude specific instance: --filter=fan,101 +Exclude the items given as a comma-separated list (example: --filter=fan --filter=psu). +You can also exclude items from specific instances: --filter=fan,101 =item B<--absent-problem> @@ -295,13 +295,12 @@ Can be specific or global: --absent-problem=psu#44# =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). + =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='psu,CRITICAL,^(?!(normal)$)' =item B<--warning> diff --git a/src/centreon/common/h3c/snmp/mode/interfaces.pm b/src/centreon/common/h3c/snmp/mode/interfaces.pm index 497fe2b07..5fa18ce3a 100644 --- a/src/centreon/common/h3c/snmp/mode/interfaces.pm +++ b/src/centreon/common/h3c/snmp/mode/interfaces.pm @@ -265,7 +265,7 @@ Set the interface (number expected) ex: 1,2,... (empty means 'check all interfac =item B<--name> -Allows to use interface name with option --interface instead of interface oid index (Can be a regexp) +Allows you to define the interface (in option --interface) by name instead of OID index. The name matching mode supports regular expressions. =item B<--speed> diff --git a/src/centreon/common/ibm/nos/snmp/mode/environment.pm b/src/centreon/common/ibm/nos/snmp/mode/environment.pm index 0ee65b61f..5a48d39a5 100644 --- a/src/centreon/common/ibm/nos/snmp/mode/environment.pm +++ b/src/centreon/common/ibm/nos/snmp/mode/environment.pm @@ -76,13 +76,12 @@ Can be: 'faultled', 'temperature'. =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). + =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,status,regexp). Example: --threshold-overload='faulted,WARNING,on' =item B<--warning> diff --git a/src/centreon/common/ibm/tapelibrary/snmp/mode/hardware.pm b/src/centreon/common/ibm/tapelibrary/snmp/mode/hardware.pm index 7c88e19b1..882d29bd9 100644 --- a/src/centreon/common/ibm/tapelibrary/snmp/mode/hardware.pm +++ b/src/centreon/common/ibm/tapelibrary/snmp/mode/hardware.pm @@ -98,18 +98,17 @@ Can be: 'chassis', 'drive', 'changer', 'psu'. =item B<--filter> -Exclude some parts (comma seperated list) (Example: --filter=drive) -Can also exclude specific instance: --filter=drive,1 +Exclude the items given as a comma-separated list (example: --filter=drive). +You can also exclude items from specific instances: --filter=drive,1 =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). + =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='chassis,CRITICAL,degraded' =back diff --git a/src/centreon/common/polycom/endpoint/snmp/mode/hardware.pm b/src/centreon/common/polycom/endpoint/snmp/mode/hardware.pm index f47af4896..b4a15d390 100644 --- a/src/centreon/common/polycom/endpoint/snmp/mode/hardware.pm +++ b/src/centreon/common/polycom/endpoint/snmp/mode/hardware.pm @@ -76,18 +76,17 @@ Can be: 'global', 'microphone', 'camera', 'nic', 'ptc', 'board'. =item B<--filter> -Exclude some parts (comma seperated list) (Example: --filter=camera) -Can also exclude specific instance: --filter=camera,1 +Exclude the items given as a comma-separated list (example: --filter=camera). +You can also exclude items from specific instances: --filter=camera,1 =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). + =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='camera,WARNING,disabled' =back diff --git a/src/centreon/common/radlan/snmp/mode/environment.pm b/src/centreon/common/radlan/snmp/mode/environment.pm index 6fc83e208..7a7ba0bd9 100644 --- a/src/centreon/common/radlan/snmp/mode/environment.pm +++ b/src/centreon/common/radlan/snmp/mode/environment.pm @@ -104,8 +104,8 @@ Can be: 'fan', 'psu', 'temperature'. =item B<--filter> -Exclude some parts (comma seperated list) (Example: --filter=psu) -Can also exclude specific instance: --filter=psu,0 +Exclude the items given as a comma-separated list (example: --filter=psu). +You can also exclude items from specific instances: --filter=psu,0 =item B<--absent-problem> @@ -114,13 +114,12 @@ Can be specific or global: --absent-problem=fan#2# =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). + =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='fan,CRITICAL,^(?!(normal)$)' =item B<--warning> diff --git a/src/centreon/common/redfish/restapi/mode/hardware.pm b/src/centreon/common/redfish/restapi/mode/hardware.pm index 348d5e6e6..143c06b03 100644 --- a/src/centreon/common/redfish/restapi/mode/hardware.pm +++ b/src/centreon/common/redfish/restapi/mode/hardware.pm @@ -175,17 +175,16 @@ Can be: 'chassis', 'device', 'drive', 'fan', 'psu', 'sc', 'storage', 'temperatur =item B<--filter> Exclude some parts (comma seperated list) -Can also exclude specific instance: --filter='fan,1.2' +You can also exclude items from specific instances: --filter='fan,1.2' =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). + =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='chassis.state,WARNING,inTest' =item B<--warning> diff --git a/src/centreon/common/sun/snmp/mode/hardware.pm b/src/centreon/common/sun/snmp/mode/hardware.pm index e0ab3ec2e..f253fdd9a 100644 --- a/src/centreon/common/sun/snmp/mode/hardware.pm +++ b/src/centreon/common/sun/snmp/mode/hardware.pm @@ -84,17 +84,16 @@ Can be: 'entity'. =item B<--filter> Exclude some parts (comma seperated list) -Can also exclude specific instance: --filter=entity,sensor.18 +You can also exclude items from specific instances: --filter=entity,sensor.18 =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). + =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='entity,sensor..*,CRITICAL,minor' =item B<--warning> diff --git a/src/centreon/common/violin/snmp/mode/hardware.pm b/src/centreon/common/violin/snmp/mode/hardware.pm index bf84ec663..82f9393e6 100644 --- a/src/centreon/common/violin/snmp/mode/hardware.pm +++ b/src/centreon/common/violin/snmp/mode/hardware.pm @@ -133,8 +133,8 @@ Can be: 'psu', 'fan', 'ca', 'vimm', 'lfc', 'gfc', 'temperature'. =item B<--filter> -Exclude some parts (comma seperated list) (Example: --filter=fan --filter=psu) -Can also exclude specific instance: --filter=fan,41239F00647-A +Exclude the items given as a comma-separated list (example: --filter=fan --filter=psu). +You can also exclude items from specific instances: --filter=fan,41239F00647-A =item B<--absent-problem> @@ -143,13 +143,12 @@ Can be specific or global: --absent-problem=fan,41239F00647-fan02 =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). + =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='gfc,CRITICAL,^(?!(Online)$)' =item B<--warning> diff --git a/src/centreon/plugins/output.pm b/src/centreon/plugins/output.pm index 3b89a98ff..bd07b87da 100644 --- a/src/centreon/plugins/output.pm +++ b/src/centreon/plugins/output.pm @@ -1608,7 +1608,7 @@ Rewrite the ranges displayed in the perfdata. Accepted values: =item B<--filter-uom> -Masks the units when they don't match the given regular expression. +Mask the units when they don't match the given regular expression. =item B<--opt-exit> diff --git a/src/centreon/plugins/snmp.pm b/src/centreon/plugins/snmp.pm index 14e5afcc4..0bf7c0cfb 100644 --- a/src/centreon/plugins/snmp.pm +++ b/src/centreon/plugins/snmp.pm @@ -1137,16 +1137,16 @@ Max repetitions value (default: 50) (only for SNMP v2 and v3). =item B<--subsetleef> -How many oid values per SNMP request (default: 50) (for get_leef method. Be cautious when you set it. Prefer to let the default value). +How many OID values per SNMP request (default: 50) (for get_leef method. Be cautious when you set it. Prefer to let the default value). =item B<--snmp-autoreduce> -Progressively reduce the number requested OIDs in bulk mode. Use it in case of +Progressively reduce the number of requested OIDs in bulk mode. Use it in case of SNMP errors (By default, the number is divided by 2). =item B<--snmp-force-getnext> -Use snmp getnext function in snmp v2c and v3. This will request one OID at a +Use SNMP getnext function in SNMP v2c and v3. This will request one OID at a time. =item B<--snmp-cache-file> diff --git a/src/centreon/plugins/templates/hardware.pm b/src/centreon/plugins/templates/hardware.pm index 923ef69a3..6a571f444 100644 --- a/src/centreon/plugins/templates/hardware.pm +++ b/src/centreon/plugins/templates/hardware.pm @@ -493,8 +493,8 @@ Can be: 'xxx', 'yyy'. =item B<--filter> -Exclude some parts (comma seperated list) (Example: --filter=xxx --filter=yyyy) -Can also exclude specific instance: --filter=xxxxx,instancevalue +Exclude the items given as a comma-separated list (example: --filter=xxx --filter=yyyy). +You can also exclude items from specific instances: --filter=xxxxx,instancevalue =item B<--absent-problem> @@ -503,13 +503,12 @@ Can be specific or global: --absent-problem=xxxx,instancevalue =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). + =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='xxxxx,CRITICAL,^(?!(normal)$)' =item B<--warning> diff --git a/src/hardware/ats/apc/snmp/mode/devicestatus.pm b/src/hardware/ats/apc/snmp/mode/devicestatus.pm index aa7904e32..0372c1e90 100644 --- a/src/hardware/ats/apc/snmp/mode/devicestatus.pm +++ b/src/hardware/ats/apc/snmp/mode/devicestatus.pm @@ -86,18 +86,16 @@ Can be: 'entity'. =item B<--filter> -Exclude some parts (comma seperated list) (Example: --filter=entity) -Can also exclude specific instance: --filter=entity,CommStatus +Exclude the items given as a comma-separated list (example: --filter=entity). +You can also exclude items from specific instances: --filter=entity,CommStatus =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='entity,SourceBStatus,WARNING,fail' =back diff --git a/src/hardware/devices/aeg/acm/snmp/mode/alarmsstatus.pm b/src/hardware/devices/aeg/acm/snmp/mode/alarmsstatus.pm index d4faba0d6..26ce59166 100644 --- a/src/hardware/devices/aeg/acm/snmp/mode/alarmsstatus.pm +++ b/src/hardware/devices/aeg/acm/snmp/mode/alarmsstatus.pm @@ -81,18 +81,16 @@ Can be: 'alarm'. =item B<--filter> -Exclude some parts (comma seperated list) (Example: --filter=simple) -Can also exclude specific instance: --filter=simple,3 +Exclude the items given as a comma-separated list (example: --filter=simple). +You can also exclude items from specific instances: --filter=simple,3 =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='multiple,2,OK,true' =back diff --git a/src/hardware/devices/camera/hanwha/snmp/mode/hardware.pm b/src/hardware/devices/camera/hanwha/snmp/mode/hardware.pm index 79adb2e15..7e96d02ea 100644 --- a/src/hardware/devices/camera/hanwha/snmp/mode/hardware.pm +++ b/src/hardware/devices/camera/hanwha/snmp/mode/hardware.pm @@ -80,17 +80,15 @@ Can be: 'service', 'sdcard'. =item B<--filter> Exclude some parts (comma seperated list) -Can also exclude specific instance: --filter=instance,relayOutput1 +You can also exclude items from specific instances: --filter=instance,relayOutput1 =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='service,relayOutpu1,OK,high' =back diff --git a/src/hardware/devices/cisco/ces/restapi/mode/components.pm b/src/hardware/devices/cisco/ces/restapi/mode/components.pm index dbb35e2c3..4be5bf4d8 100644 --- a/src/hardware/devices/cisco/ces/restapi/mode/components.pm +++ b/src/hardware/devices/cisco/ces/restapi/mode/components.pm @@ -143,17 +143,15 @@ Can be: 'ad' (audio device), 'aic' (audio input connectors), 'aoc' (audio output =item B<--filter> Exclude some parts (comma seperated list) -Can also exclude specific instance: --filter='aic,Microphone.1' +You can also exclude items from specific instances: --filter='aic,Microphone.1' =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='ad.status,CRITICAL,NotConnected' =item B<--warning> diff --git a/src/hardware/devices/safenet/hsm/protecttoolkit/mode/hardware.pm b/src/hardware/devices/safenet/hsm/protecttoolkit/mode/hardware.pm index c683cffae..261aa2566 100644 --- a/src/hardware/devices/safenet/hsm/protecttoolkit/mode/hardware.pm +++ b/src/hardware/devices/safenet/hsm/protecttoolkit/mode/hardware.pm @@ -111,12 +111,11 @@ Can be: 'hwstatus', 'temperature', 'memory'. =item B<--filter> -Exclude some parts (comma seperated list) (Example: --filter=temperature) +Exclude the items given as a comma-separated list (example: --filter=temperature). =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,status,regexp). Example: --threshold-overload='hwstats,CRITICAL,^(?!(OK)$)' =item B<--warning> diff --git a/src/hardware/devices/video/axis/snmp/mode/environment.pm b/src/hardware/devices/video/axis/snmp/mode/environment.pm index 6e2f0a168..839bcc837 100644 --- a/src/hardware/devices/video/axis/snmp/mode/environment.pm +++ b/src/hardware/devices/video/axis/snmp/mode/environment.pm @@ -102,8 +102,8 @@ Can be: 'video', 'psu', 'fan', 'temperature', 'audio', 'storage', 'casing'. =item B<--filter> -Exclude some parts (comma seperated list) (Example: --filter=video) -Can also exclude specific instance: --filter=video,fan.1 +Exclude the items given as a comma-separated list (example: --filter=video). +You can also exclude items from specific instances: --filter=video,fan.1 =item B<--absent-problem> @@ -112,13 +112,11 @@ Can be specific or global: --absent-problem=video,temperature.2 =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='video,CRITICAL,^(?!(good)$)' =back diff --git a/src/hardware/kvm/avocent/acs/6000/snmp/mode/hardware.pm b/src/hardware/kvm/avocent/acs/6000/snmp/mode/hardware.pm index 3d8d6e4a1..904204e0c 100644 --- a/src/hardware/kvm/avocent/acs/6000/snmp/mode/hardware.pm +++ b/src/hardware/kvm/avocent/acs/6000/snmp/mode/hardware.pm @@ -76,8 +76,8 @@ Can be: 'psu'. =item B<--filter> -Exclude some parts (comma seperated list) (Example: --filter=psu) -Can also exclude specific instance: --filter=psu,1 +Exclude the items given as a comma-separated list (example: --filter=psu). +You can also exclude items from specific instances: --filter=psu,1 =item B<--absent-problem> @@ -86,13 +86,11 @@ Can be specific or global: --absent-problem=psu =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='psu,CRITICAL,^(?!(statePowerOn)$)' =back diff --git a/src/hardware/kvm/avocent/acs/8000/snmp/mode/hardware.pm b/src/hardware/kvm/avocent/acs/8000/snmp/mode/hardware.pm index 4366f0043..5aa62ac2f 100644 --- a/src/hardware/kvm/avocent/acs/8000/snmp/mode/hardware.pm +++ b/src/hardware/kvm/avocent/acs/8000/snmp/mode/hardware.pm @@ -76,8 +76,8 @@ Can be: 'psu'. =item B<--filter> -Exclude some parts (comma seperated list) (Example: --filter=psu) -Can also exclude specific instance: --filter=psu,1 +Exclude the items given as a comma-separated list (example: --filter=psu). +You can also exclude items from specific instances: --filter=psu,1 =item B<--absent-problem> @@ -86,13 +86,11 @@ Can be specific or global: --absent-problem=psu =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='psu,CRITICAL,^(?!(statePowerOn)$)' =back diff --git a/src/hardware/pdu/apc/snmp/mode/hardware.pm b/src/hardware/pdu/apc/snmp/mode/hardware.pm index b73d82a8a..a7abf231d 100644 --- a/src/hardware/pdu/apc/snmp/mode/hardware.pm +++ b/src/hardware/pdu/apc/snmp/mode/hardware.pm @@ -94,8 +94,8 @@ Can be: 'psu', 'humidity', 'temperature'. =item B<--filter> -Exclude some parts (comma seperated list) (Example: --filter=temperature --filter=humidity) -Can also exclude specific instance: --filter=temperature,1 +Exclude the items given as a comma-separated list (example: --filter=temperature --filter=humidity). +You can also exclude items from specific instances: --filter=temperature,1 =item B<--absent-problem> @@ -104,13 +104,11 @@ Can be specific or global: --absent-problem=psu =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='temperature,CRITICAL,^(?!(normal)$)' =item B<--warning> diff --git a/src/hardware/pdu/raritan/snmp/mode/externalsensors.pm b/src/hardware/pdu/raritan/snmp/mode/externalsensors.pm index 419244cb1..669bf2fc7 100644 --- a/src/hardware/pdu/raritan/snmp/mode/externalsensors.pm +++ b/src/hardware/pdu/raritan/snmp/mode/externalsensors.pm @@ -118,18 +118,16 @@ Which component to check (Default: '.*'). =item B<--filter> -Exclude some parts (comma seperated list) (Example: --filter=airPressure --filter=rmsVoltage) -Can also exclude specific instance: --filter=rmsVoltage,I1 +Exclude the items given as a comma-separated list (example: --filter=airPressure --filter=rmsVoltage). +You can also exclude items from specific instances: --filter=rmsVoltage,I1 =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='powerQuality,CRITICAL,^(?!(normal)$)' =item B<--warning> diff --git a/src/hardware/pdu/raritan/snmp/mode/inletsensors.pm b/src/hardware/pdu/raritan/snmp/mode/inletsensors.pm index 585e41d57..2a5b3d996 100644 --- a/src/hardware/pdu/raritan/snmp/mode/inletsensors.pm +++ b/src/hardware/pdu/raritan/snmp/mode/inletsensors.pm @@ -110,18 +110,16 @@ Which component to check (Default: '.*'). =item B<--filter> -Exclude some parts (comma seperated list) (Example: --filter=airPressure --filter=rmsVoltage) -Can also exclude specific instance: --filter=rmsVoltage,I1 +Exclude the items given as a comma-separated list (example: --filter=airPressure --filter=rmsVoltage). +You can also exclude items from specific instances: --filter=rmsVoltage,I1 =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='powerQuality,CRITICAL,^(?!(normal)$)' =item B<--warning> diff --git a/src/hardware/pdu/raritan/snmp/mode/ocprotsensors.pm b/src/hardware/pdu/raritan/snmp/mode/ocprotsensors.pm index acaeb3764..20abb3983 100644 --- a/src/hardware/pdu/raritan/snmp/mode/ocprotsensors.pm +++ b/src/hardware/pdu/raritan/snmp/mode/ocprotsensors.pm @@ -110,18 +110,16 @@ Which component to check (Default: '.*'). =item B<--filter> -Exclude some parts (comma seperated list) (Example: --filter=airPressure --filter=rmsVoltage) -Can also exclude specific instance: --filter=rmsVoltage,C1 +Exclude the items given as a comma-separated list (example: --filter=airPressure --filter=rmsVoltage). +You can also exclude items from specific instances: --filter=rmsVoltage,C1 =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='powerQuality,CRITICAL,^(?!(normal)$)' =item B<--warning> diff --git a/src/hardware/pdu/raritan/snmp/mode/outletsensors.pm b/src/hardware/pdu/raritan/snmp/mode/outletsensors.pm index 69d3b4296..1b21577f6 100644 --- a/src/hardware/pdu/raritan/snmp/mode/outletsensors.pm +++ b/src/hardware/pdu/raritan/snmp/mode/outletsensors.pm @@ -110,18 +110,16 @@ Which component to check (Default: '.*'). =item B<--filter> -Exclude some parts (comma seperated list) (Example: --filter=airPressure --filter=rmsVoltage) -Can also exclude specific instance: --filter=rmsVoltage,I1 +Exclude the items given as a comma-separated list (example: --filter=airPressure --filter=rmsVoltage). +You can also exclude items from specific instances: --filter=rmsVoltage,I1 =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='powerQuality,CRITICAL,^(?!(normal)$)' =item B<--warning> diff --git a/src/hardware/pdu/schleifenbauer/gateway/snmp/mode/sensors.pm b/src/hardware/pdu/schleifenbauer/gateway/snmp/mode/sensors.pm index 350155663..4a9c1170b 100644 --- a/src/hardware/pdu/schleifenbauer/gateway/snmp/mode/sensors.pm +++ b/src/hardware/pdu/schleifenbauer/gateway/snmp/mode/sensors.pm @@ -74,13 +74,12 @@ Can be: 'temperature', 'humidity', 'contact'. =item B<--filter> -Exclude some parts (comma seperated list) (Example: --filter=temperature --filter=contact) -Can also exclude specific instance: --filter=temperature,1 +Exclude the items given as a comma-separated list (example: --filter=temperature --filter=contact). +You can also exclude items from specific instances: --filter=temperature,1 =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). =item B<--warning> diff --git a/src/hardware/sensors/akcp/snmp/mode/sensors.pm b/src/hardware/sensors/akcp/snmp/mode/sensors.pm index 02fbb0adc..fd0e87956 100644 --- a/src/hardware/sensors/akcp/snmp/mode/sensors.pm +++ b/src/hardware/sensors/akcp/snmp/mode/sensors.pm @@ -90,18 +90,16 @@ Can be: 'temperature', 'humidity', 'switch', 'serial', 'water'. =item B<--filter> -Exclude some parts (comma seperated list) (Example: --filter=temperature --filter=humidity) -Can also exclude specific instance: --filter=fan,1 +Exclude the items given as a comma-separated list (example: --filter=temperature --filter=humidity). +You can also exclude items from specific instances: --filter=fan,1 =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='temperature,CRITICAL,^(?!(normal)$)' =item B<--warning> diff --git a/src/hardware/sensors/apc/snmp/mode/sensors.pm b/src/hardware/sensors/apc/snmp/mode/sensors.pm index cb55cddd4..5853aff9d 100644 --- a/src/hardware/sensors/apc/snmp/mode/sensors.pm +++ b/src/hardware/sensors/apc/snmp/mode/sensors.pm @@ -98,18 +98,16 @@ Can be: 'temperature', 'humidity', 'fluid'. =item B<--filter> -Exclude some parts (comma seperated list) (Example: --filter=temperature --filter=humidity) -Can also exclude specific instance: --filter=temperature,1 +Exclude the items given as a comma-separated list (example: --filter=temperature --filter=humidity). +You can also exclude items from specific instances: --filter=temperature,1 =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='temperature,CRITICAL,^(?!(warning)$)' =item B<--warning> diff --git a/src/hardware/sensors/hwgste/snmp/mode/sensors.pm b/src/hardware/sensors/hwgste/snmp/mode/sensors.pm index aa87a5d90..dfc38293f 100644 --- a/src/hardware/sensors/hwgste/snmp/mode/sensors.pm +++ b/src/hardware/sensors/hwgste/snmp/mode/sensors.pm @@ -90,12 +90,11 @@ Can be: 'temperature', 'humidity'. =item B<--filter> Exclude some parts. -Can also exclude specific instance: --filter=sensor,10 +You can also exclude items from specific instances: --filter=sensor,10 =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='sensor,CRITICAL,^(?!(normal)$)' =item B<--warning> diff --git a/src/hardware/sensors/jacarta/snmp/mode/sensors.pm b/src/hardware/sensors/jacarta/snmp/mode/sensors.pm index 25c505c5b..989238040 100644 --- a/src/hardware/sensors/jacarta/snmp/mode/sensors.pm +++ b/src/hardware/sensors/jacarta/snmp/mode/sensors.pm @@ -121,18 +121,16 @@ Can be: 'temperature', 'humidity', 'input'. =item B<--filter> -Exclude some parts (comma seperated list) (Example: --filter=temperature --filter=input) -Can also exclude specific instance: --filter=temperature,1 +Exclude the items given as a comma-separated list (example: --filter=temperature --filter=input). +You can also exclude items from specific instances: --filter=temperature,1 =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='temperature,CRITICAL,^(?!(normal)$)' =item B<--warning> diff --git a/src/hardware/sensors/netbotz/snmp/mode/sensors.pm b/src/hardware/sensors/netbotz/snmp/mode/sensors.pm index 0e32ee8ed..b1c8dc199 100644 --- a/src/hardware/sensors/netbotz/snmp/mode/sensors.pm +++ b/src/hardware/sensors/netbotz/snmp/mode/sensors.pm @@ -106,18 +106,16 @@ Can be: 'temperature', 'humidity', 'dewpoint', 'airflow', =item B<--filter> -Exclude some parts (comma seperated list) (Example: --filter=temperature --filter=humidity) -Can also exclude specific instance: --filter=temperature,1 +Exclude the items given as a comma-separated list (example: --filter=temperature --filter=humidity). +You can also exclude items from specific instances: --filter=temperature,1 =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='temperature,CRITICAL,^(?!(normal)$)' =item B<--warning> diff --git a/src/hardware/sensors/sensorip/snmp/mode/sensors.pm b/src/hardware/sensors/sensorip/snmp/mode/sensors.pm index 198faf54e..79d2e9b90 100644 --- a/src/hardware/sensors/sensorip/snmp/mode/sensors.pm +++ b/src/hardware/sensors/sensorip/snmp/mode/sensors.pm @@ -89,8 +89,8 @@ Can be: 'sp', 'temperature', 'humidity', 'switch'. =item B<--filter> -Exclude some parts (comma seperated list) (Example: --filter=psu) -Can also exclude specific instance: --filter=humidty,0 +Exclude the items given as a comma-separated list (example: --filter=psu). +You can also exclude items from specific instances: --filter=humidty,0 =item B<--absent-problem> @@ -99,13 +99,11 @@ Can be specific or global: --absent-problem=temperature#2# =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,status,regexp). Example: --threshold-overload='temperature,CRITICAL,^(?!(normal)$)' =item B<--warning> diff --git a/src/hardware/sensors/serverscheck/sensorgateway/snmp/mode/sensors.pm b/src/hardware/sensors/serverscheck/sensorgateway/snmp/mode/sensors.pm index 7a1d6a0dd..ba23f7c12 100644 --- a/src/hardware/sensors/serverscheck/sensorgateway/snmp/mode/sensors.pm +++ b/src/hardware/sensors/serverscheck/sensorgateway/snmp/mode/sensors.pm @@ -77,18 +77,16 @@ Can be: 'sensors'. =item B<--filter> -Exclude some parts (comma seperated list) (Example: --filter=sensors) -Can also exclude specific instance: --filter=sensors,Inter +Exclude the items given as a comma-separated list (example: --filter=sensors). +You can also exclude items from specific instances: --filter=sensors,Inter =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,status,regexp). Example: --threshold-overload='output,CRITICAL,^(?!(off)$)' =item B<--warning> diff --git a/src/hardware/server/cisco/ucs/snmp/mode/equipment.pm b/src/hardware/server/cisco/ucs/snmp/mode/equipment.pm index 31ea5d345..73054b957 100644 --- a/src/hardware/server/cisco/ucs/snmp/mode/equipment.pm +++ b/src/hardware/server/cisco/ucs/snmp/mode/equipment.pm @@ -71,8 +71,8 @@ Can be: 'fan', 'psu', 'chassis', 'iocard', 'blade', 'fex', 'cpu', 'memory', 'loc =item B<--filter> -Exclude some parts (comma seperated list) (Example: --filter=fan --filter=psu) -Can also exclude specific instance: --filter=fan,/sys/chassis-7/fan-module-1-7/fan-1 +Exclude the items given as a comma-separated list (example: --filter=fan --filter=psu). +You can also exclude items from specific instances: --filter=fan,/sys/chassis-7/fan-module-1-7/fan-1 =item B<--absent-problem> @@ -81,13 +81,11 @@ Can be specific or global: --absent-problem=fan,/sys/chassis-7/fan-module-1-7/fa =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Eg: --threshold-overload='fan.operability,OK,poweredOff|removed' --threshold-overload='presence,OK,missing' --threshold-overload='operability,OK,removed' diff --git a/src/hardware/server/dell/cmc/snmp/mode/hardware.pm b/src/hardware/server/dell/cmc/snmp/mode/hardware.pm index 5227a03ff..bb61b77f8 100644 --- a/src/hardware/server/dell/cmc/snmp/mode/hardware.pm +++ b/src/hardware/server/dell/cmc/snmp/mode/hardware.pm @@ -106,18 +106,16 @@ Can be: 'chassis', 'disk', 'health', 'psu', 'temperature', 'vdisk'. =item B<--filter> -Exclude some parts (comma seperated list) (Example: --filter=fan) -Can also exclude specific instance: --filter=health,2 +Exclude the items given as a comma-separated list (example: --filter=fan). +You can also exclude items from specific instances: --filter=health,2 =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,status,regexp). Example: --threshold-overload='health,CRITICAL,^(?!(ok)$)' =item B<--warning> diff --git a/src/hardware/server/dell/idrac/snmp/mode/hardware.pm b/src/hardware/server/dell/idrac/snmp/mode/hardware.pm index f5561ef0a..8102328b2 100644 --- a/src/hardware/server/dell/idrac/snmp/mode/hardware.pm +++ b/src/hardware/server/dell/idrac/snmp/mode/hardware.pm @@ -164,8 +164,8 @@ Can be: 'amperage', 'coolingdevice', 'coolingunit', 'enclosure', =item B<--filter> -Exclude some parts (comma seperated list) (Example: --filter=temperature --filter=psu) -Can also exclude specific instance: --filter=temperature,1.1 +Exclude the items given as a comma-separated list (example: --filter=temperature --filter=psu). +You can also exclude items from specific instances: --filter=temperature,1.1 =item B<--add-name-instance> @@ -173,13 +173,11 @@ Add literal description for instance value (used in filter and threshold options =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='temperature.state,CRITICAL,^(?!(enabled)$)' =item B<--warning> diff --git a/src/hardware/server/dell/omem/snmp/mode/hardware.pm b/src/hardware/server/dell/omem/snmp/mode/hardware.pm index 5de4ba68b..c01ef4265 100644 --- a/src/hardware/server/dell/omem/snmp/mode/hardware.pm +++ b/src/hardware/server/dell/omem/snmp/mode/hardware.pm @@ -105,18 +105,16 @@ Can be: 'health', 'temperature', 'chassis', 'psu'. =item B<--filter> -Exclude some parts (comma seperated list) (Example: --filter=fan) -Can also exclude specific instance: --filter=health,2 +Exclude the items given as a comma-separated list (example: --filter=fan). +You can also exclude items from specific instances: --filter=health,2 =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,status,regexp). Example: --threshold-overload='health,CRITICAL,^(?!(ok)$)' =item B<--warning> diff --git a/src/hardware/server/dell/openmanage/snmp/mode/hardware.pm b/src/hardware/server/dell/openmanage/snmp/mode/hardware.pm index 79473370c..d6147a72f 100644 --- a/src/hardware/server/dell/openmanage/snmp/mode/hardware.pm +++ b/src/hardware/server/dell/openmanage/snmp/mode/hardware.pm @@ -101,18 +101,16 @@ Can be: 'globalstatus', 'fan', 'cpu', 'psu', 'temperature', 'cachebattery', =item B<--filter> -Exclude some parts (comma seperated list) (Example: --filter=fan) -Can also exclude specific instance: --filter=fan,1 +Exclude the items given as a comma-separated list (example: --filter=fan). +You can also exclude items from specific instances: --filter=fan,1 =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,status,regexp). Example: --threshold-overload='temperature,CRITICAL,^(?!(ok)$)' =item B<--warning> diff --git a/src/hardware/server/fujitsu/snmp/mode/hardware.pm b/src/hardware/server/fujitsu/snmp/mode/hardware.pm index 17ab03533..3c18c1b97 100644 --- a/src/hardware/server/fujitsu/snmp/mode/hardware.pm +++ b/src/hardware/server/fujitsu/snmp/mode/hardware.pm @@ -176,8 +176,8 @@ Can be: 'temperature', 'fan', 'psu', 'voltage', 'cpu', 'memory'. =item B<--filter> -Exclude some parts (comma seperated list) (Example: --filter=temperature) -Can also exclude specific instance: --filter=temperature,1 +Exclude the items given as a comma-separated list (example: --filter=temperature). +You can also exclude items from specific instances: --filter=temperature,1 =item B<--absent-problem> @@ -186,13 +186,11 @@ Can be specific or global: --absent-problem="fan,1.1" =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='psu,CRITICAL,^(?!(ok)$)' =item B<--warning> diff --git a/src/hardware/server/hp/bladechassis/snmp/mode/hardware.pm b/src/hardware/server/hp/bladechassis/snmp/mode/hardware.pm index aaf86a399..62673c57e 100644 --- a/src/hardware/server/hp/bladechassis/snmp/mode/hardware.pm +++ b/src/hardware/server/hp/bladechassis/snmp/mode/hardware.pm @@ -81,8 +81,8 @@ Can be: 'enclosure', 'manager', 'fan', 'blade', 'network', 'psu', 'temperature', =item B<--filter> -Exclude some parts (comma seperated list) (Example: --filter=psu) -Can also exclude specific instance: --filter=temperature,1 +Exclude the items given as a comma-separated list (example: --filter=psu). +You can also exclude items from specific instances: --filter=temperature,1 =item B<--absent-problem> @@ -91,13 +91,11 @@ Can be specific or global: --absent-problem="blade,12" =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='temperature,OK,other' =back diff --git a/src/hardware/server/hp/ilo/xmlapi/mode/hardware.pm b/src/hardware/server/hp/ilo/xmlapi/mode/hardware.pm index a5dfd8145..fe34b7ae6 100644 --- a/src/hardware/server/hp/ilo/xmlapi/mode/hardware.pm +++ b/src/hardware/server/hp/ilo/xmlapi/mode/hardware.pm @@ -92,8 +92,8 @@ Can be: 'fan', 'temperature', 'vrm', 'psu', 'cpu', 'memory', 'nic', 'battery', ' =item B<--filter> -Exclude some parts (comma seperated list) (Example: --filter=temperature --filter=fan) -Can also exclude specific instance: --filter="fan,Fan Block 1" +Exclude the items given as a comma-separated list (example: --filter=temperature --filter=fan). +You can also exclude items from specific instances: --filter="fan,Fan Block 1" =item B<--absent-problem> @@ -102,13 +102,11 @@ Can be specific or global: --absent-problem="fan,Fan Block 1" =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='fan,OK,degraded' =item B<--warning> diff --git a/src/hardware/server/hp/oneview/restapi/mode/hardware.pm b/src/hardware/server/hp/oneview/restapi/mode/hardware.pm index a3555b693..191358d93 100644 --- a/src/hardware/server/hp/oneview/restapi/mode/hardware.pm +++ b/src/hardware/server/hp/oneview/restapi/mode/hardware.pm @@ -82,17 +82,15 @@ Can be: 'enclosure', 'server'. =item B<--filter> Exclude some parts (comma seperated list) -Can also exclude specific instance: --filter='enclosure.fan,:1' +You can also exclude items from specific instances: --filter='enclosure.fan,:1' =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='server,WARNING,disabled' =back diff --git a/src/hardware/server/hp/proliant/snmp/mode/globalstatus.pm b/src/hardware/server/hp/proliant/snmp/mode/globalstatus.pm index e35f55db4..90267c8b7 100644 --- a/src/hardware/server/hp/proliant/snmp/mode/globalstatus.pm +++ b/src/hardware/server/hp/proliant/snmp/mode/globalstatus.pm @@ -123,8 +123,7 @@ Check the overall status of the server. =item B<--threshold-overload> -Set to overload default threshold values (syntax: status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: status,regexp). Example: --threshold-overload='CRITICAL,^(?!(ok)$)' =back diff --git a/src/hardware/server/hp/proliant/snmp/mode/hardware.pm b/src/hardware/server/hp/proliant/snmp/mode/hardware.pm index 0320a027c..61d4462a6 100644 --- a/src/hardware/server/hp/proliant/snmp/mode/hardware.pm +++ b/src/hardware/server/hp/proliant/snmp/mode/hardware.pm @@ -232,8 +232,8 @@ There are some magic words like: 'network', 'storage'. =item B<--filter> -Exclude some parts (comma seperated list) (Example: --filter=fan --filter=temperature) -Can also exclude specific instance: --filter=fan,1.2 --filter=lnic,1 +Exclude the items given as a comma-separated list (example: --filter=fan --filter=temperature). +You can also exclude items from specific instances: --filter=fan,1.2 --filter=lnic,1 =item B<--absent-problem> @@ -242,13 +242,11 @@ Can be specific or global: --absent-problem=fan,1.2 =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,status,regexp). Example: --threshold-overload='temperature,CRITICAL,^(?!(ok)$)' =item B<--warning> diff --git a/src/hardware/server/huawei/hmm/snmp/mode/blade.pm b/src/hardware/server/huawei/hmm/snmp/mode/blade.pm index b92ea8ab9..6f5a55802 100644 --- a/src/hardware/server/huawei/hmm/snmp/mode/blade.pm +++ b/src/hardware/server/huawei/hmm/snmp/mode/blade.pm @@ -97,18 +97,16 @@ Can be: 'cpu', 'disk', 'memory', 'mezz', 'raidcontroller', 'temperature'. =item B<--filter> -Exclude some parts (comma seperated list) (Example: --filter=cpu) -Can also exclude specific instance: --filter=cpu,1 +Exclude the items given as a comma-separated list (example: --filter=cpu). +You can also exclude items from specific instances: --filter=cpu,1 =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='cpu,CRITICAL,^(?!(ok)$)' =item B<--warning> diff --git a/src/hardware/server/huawei/hmm/snmp/mode/chassis.pm b/src/hardware/server/huawei/hmm/snmp/mode/chassis.pm index eec2ea34d..38a90e638 100644 --- a/src/hardware/server/huawei/hmm/snmp/mode/chassis.pm +++ b/src/hardware/server/huawei/hmm/snmp/mode/chassis.pm @@ -77,18 +77,16 @@ Can be: 'blade', 'fan', 'psu', 'switch'. =item B<--filter> -Exclude some parts (comma seperated list) (Example: --filter=psu) -Can also exclude specific instance: --filter=psu,1 +Exclude the items given as a comma-separated list (example: --filter=psu). +You can also exclude items from specific instances: --filter=psu,1 =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='psu,CRITICAL,^(?!(ok)$)' =back diff --git a/src/hardware/server/huawei/ibmc/snmp/mode/hardware.pm b/src/hardware/server/huawei/ibmc/snmp/mode/hardware.pm index 9a107dbaa..f2d4fb993 100644 --- a/src/hardware/server/huawei/ibmc/snmp/mode/hardware.pm +++ b/src/hardware/server/huawei/ibmc/snmp/mode/hardware.pm @@ -100,18 +100,16 @@ Can be: 'component', 'cpu', 'harddisk', 'fan', 'logicaldrive', =item B<--filter> -Exclude some parts (comma seperated list) (Example: --filter=psu) -Can also exclude specific instance: --filter=psu,1 +Exclude the items given as a comma-separated list (example: --filter=psu). +You can also exclude items from specific instances: --filter=psu,1 =item B<--no-component> Return an error if no components are checked. -If total (with skipped) is 0. (Default: 'critical' returns). =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='psu,CRITICAL,^(?!(ok)$)' =item B<--warning> diff --git a/src/hardware/server/ibm/bladecenter/snmp/mode/hardware.pm b/src/hardware/server/ibm/bladecenter/snmp/mode/hardware.pm index f6615de34..9def18993 100644 --- a/src/hardware/server/ibm/bladecenter/snmp/mode/hardware.pm +++ b/src/hardware/server/ibm/bladecenter/snmp/mode/hardware.pm @@ -137,8 +137,8 @@ Can be: 'ambient', 'powermodule', 'fanpack', 'chassisfan', =item B<--filter> -Exclude some parts (comma seperated list) (Example: --filter=blower --filter=powermodule) -Can also exclude specific instance: --filter=blower,1 +Exclude the items given as a comma-separated list (example: --filter=blower --filter=powermodule). +You can also exclude items from specific instances: --filter=blower,1 =item B<--absent-problem> @@ -147,13 +147,11 @@ Can be specific or global: --absent-problem=powermodule,2 =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='blade,OK,unknown' =item B<--warning> @@ -168,4 +166,4 @@ Example: --critical='blower,1,50' =back -=cut \ No newline at end of file +=cut diff --git a/src/hardware/server/ibm/mgmt_cards/imm/snmp/mode/environment.pm b/src/hardware/server/ibm/mgmt_cards/imm/snmp/mode/environment.pm index 727ab7ae5..2209c7de3 100644 --- a/src/hardware/server/ibm/mgmt_cards/imm/snmp/mode/environment.pm +++ b/src/hardware/server/ibm/mgmt_cards/imm/snmp/mode/environment.pm @@ -84,18 +84,16 @@ Can be: 'cpu', 'disk', 'fan', 'global', 'memory', 'power', 'temperature', 'volta =item B<--filter> -Exclude some parts (comma seperated list) (Example: --filter=fan --filter=temperature) -Can also exclude specific instance: --filter=fan,1 +Exclude the items given as a comma-separated list (example: --filter=fan --filter=temperature). +You can also exclude items from specific instances: --filter=fan,1 =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='fan,OK,offline' =item B<--warning> diff --git a/src/hardware/server/lenovo/xcc/snmp/mode/hardware.pm b/src/hardware/server/lenovo/xcc/snmp/mode/hardware.pm index 195258b0a..de0dd6d17 100644 --- a/src/hardware/server/lenovo/xcc/snmp/mode/hardware.pm +++ b/src/hardware/server/lenovo/xcc/snmp/mode/hardware.pm @@ -81,18 +81,16 @@ Can be: 'temperature', 'voltage', 'fan', 'psu', 'disk', 'raidvolume'. =item B<--filter> -Exclude some parts (comma seperated list) (Example: --filter=fan --filter=temperature) -Can also exclude specific instance: --filter=fan,1 +Exclude the items given as a comma-separated list (example: --filter=fan --filter=temperature). +You can also exclude items from specific instances: --filter=fan,1 =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='fan,OK,offline' =item B<--warning> diff --git a/src/hardware/server/sun/mgmt_cards/mode/showboards.pm b/src/hardware/server/sun/mgmt_cards/mode/showboards.pm index 34c2d51d6..7281e73a0 100644 --- a/src/hardware/server/sun/mgmt_cards/mode/showboards.pm +++ b/src/hardware/server/sun/mgmt_cards/mode/showboards.pm @@ -297,8 +297,7 @@ Exclude some slots (comma seperated list) (Example: --exclude=IDO,PS0) =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). =back diff --git a/src/hardware/server/sun/mgmt_cards/mode/showenvironment.pm b/src/hardware/server/sun/mgmt_cards/mode/showenvironment.pm index 51940485f..dd2cf8267 100644 --- a/src/hardware/server/sun/mgmt_cards/mode/showenvironment.pm +++ b/src/hardware/server/sun/mgmt_cards/mode/showenvironment.pm @@ -218,18 +218,16 @@ Can be: 'temperature', 'si', 'disk', 'fan', 'voltage', 'psu', 'sensors'. =item B<--filter> -Exclude some parts (comma seperated list) (Example: --filter=fan) -Can also exclude specific instance: --filter=fan,F1.RS +Exclude the items given as a comma-separated list (example: --filter=fan). +You can also exclude items from specific instances: --filter=fan,F1.RS =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,status,regexp). Example: --threshold-overload='fan,CRITICAL,^(?!(OK|NOT PRESENT)$)' =back diff --git a/src/hardware/server/sun/mgmt_cards/mode/showstatus.pm b/src/hardware/server/sun/mgmt_cards/mode/showstatus.pm index 62c3c8ed8..2a6cf9fef 100644 --- a/src/hardware/server/sun/mgmt_cards/mode/showstatus.pm +++ b/src/hardware/server/sun/mgmt_cards/mode/showstatus.pm @@ -260,8 +260,7 @@ Timeout in seconds for the command (Default: 30). =item B<--threshold-overload> -Set to overload default threshold values (syntax: status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: status,regexp). Example: --threshold-overload='UNKNOWN,Normal' =item B<--exclude> diff --git a/src/hardware/server/supermicro/bmc/snmp/mode/hardware.pm b/src/hardware/server/supermicro/bmc/snmp/mode/hardware.pm index 3feab6b1b..827c6a409 100644 --- a/src/hardware/server/supermicro/bmc/snmp/mode/hardware.pm +++ b/src/hardware/server/supermicro/bmc/snmp/mode/hardware.pm @@ -72,12 +72,11 @@ Can be: 'sensor'. =item B<--filter> -Can also exclude specific instance: --filter=sensor,fan +You can also exclude items from specific instances: --filter=sensor,fan =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). =item B<--warning> diff --git a/src/hardware/server/supermicro/superdoctor/snmp/mode/hardware.pm b/src/hardware/server/supermicro/superdoctor/snmp/mode/hardware.pm index 3c607c7cd..8ea4e0ffa 100644 --- a/src/hardware/server/supermicro/superdoctor/snmp/mode/hardware.pm +++ b/src/hardware/server/supermicro/superdoctor/snmp/mode/hardware.pm @@ -81,17 +81,15 @@ Can be: 'sensor', 'disk', 'memory'. =item B<--filter> Exclude some parts (comma seperated list) -Can also exclude specific instance: --filter=sensor,temperature.* +You can also exclude items from specific instances: --filter=sensor,temperature.* =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='sensor.temperature,OK,warning' =item B<--warning> diff --git a/src/hardware/server/xfusion/ibmc/snmp/mode/hardware.pm b/src/hardware/server/xfusion/ibmc/snmp/mode/hardware.pm index 5373b393f..7d53d9cbb 100644 --- a/src/hardware/server/xfusion/ibmc/snmp/mode/hardware.pm +++ b/src/hardware/server/xfusion/ibmc/snmp/mode/hardware.pm @@ -100,18 +100,16 @@ Can be: 'component', 'cpu', 'harddisk', 'fan', 'logicaldrive', =item B<--filter> -Exclude some parts (comma seperated list) (Example: --filter=psu) -Can also exclude specific instance: --filter=psu,1 +Exclude the items given as a comma-separated list (example: --filter=psu). +You can also exclude items from specific instances: --filter=psu,1 =item B<--no-component> Return an error if no components are checked. -If total (with skipped) is 0. (Default: 'critical' returns). =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='psu,CRITICAL,^(?!(ok)$)' =item B<--warning> diff --git a/src/hardware/telephony/avaya/mediagateway/snmp/mode/hardware.pm b/src/hardware/telephony/avaya/mediagateway/snmp/mode/hardware.pm index b383596f5..9abd2e70c 100644 --- a/src/hardware/telephony/avaya/mediagateway/snmp/mode/hardware.pm +++ b/src/hardware/telephony/avaya/mediagateway/snmp/mode/hardware.pm @@ -75,18 +75,16 @@ Can be: 'alarm'. =item B<--filter> -Exclude some parts (comma seperated list) (Example: --filter=alarm) -Can also exclude specific instance: --filter=alarm,1 +Exclude the items given as a comma-separated list (example: --filter=alarm). +You can also exclude items from specific instances: --filter=alarm,1 =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='alarm,1,OK,enabled' =back diff --git a/src/hardware/ups/alpha/snmp/mode/alarms.pm b/src/hardware/ups/alpha/snmp/mode/alarms.pm index eb3d1db10..e34b95337 100644 --- a/src/hardware/ups/alpha/snmp/mode/alarms.pm +++ b/src/hardware/ups/alpha/snmp/mode/alarms.pm @@ -69,17 +69,15 @@ Check alarms. =item B<--filter> Exclude some parts (comma seperated list) -Can also exclude specific instance: --filter="alarm,FAN Alarm" +You can also exclude items from specific instances: --filter="alarm,FAN Alarm" =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='alarm,FAN Alarm,OK,on' =back diff --git a/src/hardware/ups/apc/snmp/mode/sensors.pm b/src/hardware/ups/apc/snmp/mode/sensors.pm index 70dbff9b6..ac28efd7d 100644 --- a/src/hardware/ups/apc/snmp/mode/sensors.pm +++ b/src/hardware/ups/apc/snmp/mode/sensors.pm @@ -75,17 +75,15 @@ Check sensors. =item B<--filter> Exclude some parts (comma seperated list) -Can also exclude specific instance: --filter=sensor,1.1 +You can also exclude items from specific instances: --filter=sensor,1.1 =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='sensor,CRITICAL,sensorStatusNotApplicable' =item B<--warning> diff --git a/src/hardware/ups/powerware/snmp/mode/outputsource.pm b/src/hardware/ups/powerware/snmp/mode/outputsource.pm index 421786934..dbab7dcef 100644 --- a/src/hardware/ups/powerware/snmp/mode/outputsource.pm +++ b/src/hardware/ups/powerware/snmp/mode/outputsource.pm @@ -135,8 +135,7 @@ Check output source status (XUPS-MIB). =item B<--threshold-overload> -Set to overload default threshold values (syntax: status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: status,regexp). Example: --threshold-overload='WARNING,bypass|booster' =back diff --git a/src/network/3com/snmp/mode/hardware.pm b/src/network/3com/snmp/mode/hardware.pm index 80cfb9481..4cfe7f5df 100644 --- a/src/network/3com/snmp/mode/hardware.pm +++ b/src/network/3com/snmp/mode/hardware.pm @@ -77,8 +77,8 @@ Can be: 'fan', 'psu'. =item B<--filter> -Exclude some parts (comma seperated list) (Example: --filter=fan) -Can also exclude specific instance: --filter=fan,1 +Exclude the items given as a comma-separated list (example: --filter=fan). +You can also exclude items from specific instances: --filter=fan,1 =item B<--absent-problem> @@ -87,13 +87,12 @@ Can be specific or global: --absent-problem=fan,2 =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). + =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='fan,CRITICAL,^(?!(active)$)' =back diff --git a/src/network/a10/ax/snmp/mode/hardware.pm b/src/network/a10/ax/snmp/mode/hardware.pm index 9a35740f9..8c579ba80 100644 --- a/src/network/a10/ax/snmp/mode/hardware.pm +++ b/src/network/a10/ax/snmp/mode/hardware.pm @@ -87,17 +87,16 @@ Can be: 'psu', 'fan', 'temperature'. =item B<--filter> Exclude some parts (comma seperated list) -Can also exclude specific instance: --filter=psu,1 +You can also exclude items from specific instances: --filter=psu,1 =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). + =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='psu,OK,off' =item B<--warning> diff --git a/src/network/acmepacket/snmp/mode/hardware.pm b/src/network/acmepacket/snmp/mode/hardware.pm index f46f9cdc5..fdcfebf9d 100644 --- a/src/network/acmepacket/snmp/mode/hardware.pm +++ b/src/network/acmepacket/snmp/mode/hardware.pm @@ -83,8 +83,8 @@ Can be: 'voltage', 'temperature', 'fan', 'psu'. =item B<--filter> -Exclude some parts (comma seperated list) (Example: --filter=fan --filter=psu) -Can also exclude specific instance: --filter=fan,1 +Exclude the items given as a comma-separated list (example: --filter=fan --filter=psu). +You can also exclude items from specific instances: --filter=fan,1 =item B<--absent-problem> @@ -93,13 +93,12 @@ Can be specific or global: --absent-problem=psu,1 =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). + =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='psu,CRITICAL,^(?!(normal|initial)$)' =item B<--warning> diff --git a/src/network/adva/fsp150/snmp/mode/hardware.pm b/src/network/adva/fsp150/snmp/mode/hardware.pm index 4c4c5116d..9b6174e9f 100644 --- a/src/network/adva/fsp150/snmp/mode/hardware.pm +++ b/src/network/adva/fsp150/snmp/mode/hardware.pm @@ -85,18 +85,17 @@ Can be: 'shelf', 'card'. =item B<--filter> -Exclude some parts (comma seperated list) (Example: --filter=shelf) -Can also exclude specific instance: --filter=card,psu.1.1.4 +Exclude the items given as a comma-separated list (example: --filter=shelf). +You can also exclude items from specific instances: --filter=card,psu.1.1.4 =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). + =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='card,WARNING,initializing' =back diff --git a/src/network/adva/fsp3000/snmp/mode/interfaces.pm b/src/network/adva/fsp3000/snmp/mode/interfaces.pm index ebd15ef13..9fd2c7d18 100644 --- a/src/network/adva/fsp3000/snmp/mode/interfaces.pm +++ b/src/network/adva/fsp3000/snmp/mode/interfaces.pm @@ -345,7 +345,7 @@ Set the interface (number expected) ex: 1,2,... (empty means 'check all interfac =item B<--name> -Allows to use interface name with option --interface instead of interface oid index (Can be a regexp) +Allows you to define the interface (in option --interface) by name instead of OID index. The name matching mode supports regular expressions. =item B<--speed> diff --git a/src/network/adva/fsp3000/snmp/mode/listinterfaces.pm b/src/network/adva/fsp3000/snmp/mode/listinterfaces.pm index b04dd7f4b..43adb562c 100644 --- a/src/network/adva/fsp3000/snmp/mode/listinterfaces.pm +++ b/src/network/adva/fsp3000/snmp/mode/listinterfaces.pm @@ -115,7 +115,7 @@ Set the interface (number expected) ex: 1,2,... (empty means 'check all interfac =item B<--name> -Allows to use interface name with option --interface instead of interface oid index (Can be a regexp) +Allows you to define the interface (in option --interface) by name instead of OID index. The name matching mode supports regular expressions. =item B<--speed> diff --git a/src/network/alcatel/isam/snmp/mode/hardware.pm b/src/network/alcatel/isam/snmp/mode/hardware.pm index 72d92913d..5256fc9bc 100644 --- a/src/network/alcatel/isam/snmp/mode/hardware.pm +++ b/src/network/alcatel/isam/snmp/mode/hardware.pm @@ -81,18 +81,17 @@ Can be: 'cardtemperature', 'sfp'. =item B<--filter> -Exclude some parts (comma seperated list) (Example: --filter=cardtemperature) -Can also exclude specific instance: --filter=cardtemperature,1080.1 +Exclude the items given as a comma-separated list (example: --filter=cardtemperature). +You can also exclude items from specific instances: --filter=cardtemperature,1080.1 =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). + =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='sfp,OK,^los$' =item B<--warning> diff --git a/src/network/alcatel/omniswitch/snmp/mode/hardware.pm b/src/network/alcatel/omniswitch/snmp/mode/hardware.pm index 87d0b1106..7244bfdeb 100644 --- a/src/network/alcatel/omniswitch/snmp/mode/hardware.pm +++ b/src/network/alcatel/omniswitch/snmp/mode/hardware.pm @@ -139,18 +139,17 @@ Some not exists ;) =item B<--filter> -Exclude some parts (comma seperated list) (Example: --filter=fan) -Can also exclude specific instance: --filter=fan,1.2 +Exclude the items given as a comma-separated list (example: --filter=fan). +You can also exclude items from specific instances: --filter=fan,1.2 =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). + =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='psu.oper,CRITICAL,standby' =back diff --git a/src/network/alcatel/oxe/snmp/mode/pbxrole.pm b/src/network/alcatel/oxe/snmp/mode/pbxrole.pm index f305e5b82..52f4ca10a 100644 --- a/src/network/alcatel/oxe/snmp/mode/pbxrole.pm +++ b/src/network/alcatel/oxe/snmp/mode/pbxrole.pm @@ -126,8 +126,7 @@ Check PBX Role. =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,status,regexp). Example: --threshold-overload='role,CRITICAL,^(?!(main)$)' =back diff --git a/src/network/alcatel/oxe/snmp/mode/pbxstate.pm b/src/network/alcatel/oxe/snmp/mode/pbxstate.pm index e40b4c452..ea87da232 100644 --- a/src/network/alcatel/oxe/snmp/mode/pbxstate.pm +++ b/src/network/alcatel/oxe/snmp/mode/pbxstate.pm @@ -128,8 +128,7 @@ Check PBX State. =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,status,regexp). Example: --threshold-overload='state,CRITICAL,^(?!(normal)$)' =back diff --git a/src/network/allied/snmp/mode/hardware.pm b/src/network/allied/snmp/mode/hardware.pm index 33bd69e11..00cd04f9b 100644 --- a/src/network/allied/snmp/mode/hardware.pm +++ b/src/network/allied/snmp/mode/hardware.pm @@ -86,18 +86,17 @@ Can be: 'voltage', 'fan', 'temperature', 'psu'. =item B<--filter> -Exclude some parts (comma seperated list) (Example: --filter=psu) -Can also exclude specific instance: --filter=fan,1.1.1 +Exclude the items given as a comma-separated list (example: --filter=psu). +You can also exclude items from specific instances: --filter=fan,1.1.1 =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). + =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,status,regexp). Example: --threshold-overload='fan,WARNING,failed' =item B<--warning> diff --git a/src/network/aruba/aoscx/restapi/mode/hardware.pm b/src/network/aruba/aoscx/restapi/mode/hardware.pm index ec3cb3b73..9eeccd2ab 100644 --- a/src/network/aruba/aoscx/restapi/mode/hardware.pm +++ b/src/network/aruba/aoscx/restapi/mode/hardware.pm @@ -83,18 +83,17 @@ Can be: 'fan', 'psu', 'temperature', 'fan'. =item B<--filter> -Exclude some parts (comma seperated list) (Example: --filter=psu) -Can also exclude specific instance: --filter=fan,chassis:1:1/1 +Exclude the items given as a comma-separated list (example: --filter=psu). +You can also exclude items from specific instances: --filter=fan,chassis:1:1/1 =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). + =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,status,regexp). Example: --threshold-overload='fan,WARNING,string' =item B<--warning> diff --git a/src/network/aruba/aoscx/snmp/mode/hardware.pm b/src/network/aruba/aoscx/snmp/mode/hardware.pm index 7f8f9ea7d..8ab56995d 100644 --- a/src/network/aruba/aoscx/snmp/mode/hardware.pm +++ b/src/network/aruba/aoscx/snmp/mode/hardware.pm @@ -78,18 +78,17 @@ Can be: 'psu', 'temperature', 'fan', 'fantry'. =item B<--filter> -Exclude some parts (comma seperated list) (Example: --filter=psu) -Can also exclude specific instance: --filter=fan,1.1 +Exclude the items given as a comma-separated list (example: --filter=psu). +You can also exclude items from specific instances: --filter=fan,1.1 =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). + =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,status,regexp). Example: --threshold-overload='fan,WARNING,string' =item B<--warning> diff --git a/src/network/aruba/cppm/snmp/mode/interfaces.pm b/src/network/aruba/cppm/snmp/mode/interfaces.pm index 465d7e712..cb2f39952 100644 --- a/src/network/aruba/cppm/snmp/mode/interfaces.pm +++ b/src/network/aruba/cppm/snmp/mode/interfaces.pm @@ -119,7 +119,7 @@ Set the interface (number expected) ex: 1,2,... (empty means 'check all interfac =item B<--name> -Allows to use interface name with option --interface instead of interface oid index (Can be a regexp) +Allows you to define the interface (in option --interface) by name instead of OID index. The name matching mode supports regular expressions. =item B<--speed> diff --git a/src/network/atrica/snmp/mode/connections.pm b/src/network/atrica/snmp/mode/connections.pm index 42d8b650e..500ed774d 100644 --- a/src/network/atrica/snmp/mode/connections.pm +++ b/src/network/atrica/snmp/mode/connections.pm @@ -439,7 +439,7 @@ Set the interface (number expected) ex: 1,2,... (empty means 'check all interfac =item B<--name> -Allows to use interface name with option --interface instead of interface oid index (Can be a regexp) +Allows you to define the interface (in option --interface) by name instead of OID index. The name matching mode supports regular expressions. =item B<--speed> diff --git a/src/network/atrica/snmp/mode/listconnections.pm b/src/network/atrica/snmp/mode/listconnections.pm index 0ff678a0c..853bc43eb 100644 --- a/src/network/atrica/snmp/mode/listconnections.pm +++ b/src/network/atrica/snmp/mode/listconnections.pm @@ -105,7 +105,7 @@ Set the interface (number expected) ex: 1,2,... (empty means 'check all interfac =item B<--name> -Allows to use interface name with option --interface instead of interface oid index (Can be a regexp) +Allows you to define the interface (in option --interface) by name instead of OID index. The name matching mode supports regular expressions. =item B<--speed> diff --git a/src/network/atto/fibrebridge/snmp/mode/hardware.pm b/src/network/atto/fibrebridge/snmp/mode/hardware.pm index 09fb7ef9c..47b4e9b3e 100644 --- a/src/network/atto/fibrebridge/snmp/mode/hardware.pm +++ b/src/network/atto/fibrebridge/snmp/mode/hardware.pm @@ -84,18 +84,17 @@ Can be: 'psu', 'alarm'. =item B<--filter> -Exclude some parts (comma seperated list) (Example: --filter=psu) -Can also exclude specific instance: --filter=psu,1 +Exclude the items given as a comma-separated list (example: --filter=psu). +You can also exclude items from specific instances: --filter=psu,1 =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). + =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='alarm,OK,warning' =item B<--warning> diff --git a/src/network/audiocodes/snmp/mode/hardware.pm b/src/network/audiocodes/snmp/mode/hardware.pm index aa241b19b..8a05179d3 100644 --- a/src/network/audiocodes/snmp/mode/hardware.pm +++ b/src/network/audiocodes/snmp/mode/hardware.pm @@ -88,8 +88,8 @@ Can be: 'fantray', 'module', 'psu'. =item B<--filter> -Exclude some parts (comma seperated list) (Example: --filter=fan --filter=psu) -Can also exclude specific instance: --filter=fantray,1 +Exclude the items given as a comma-separated list (example: --filter=fan --filter=psu). +You can also exclude items from specific instances: --filter=fantray,1 =item B<--absent-problem> @@ -98,13 +98,12 @@ Can be specific or global: --absent-problem=psu,1 =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). + =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='psu,CRITICAL,^(?!(cleared)$)' =back diff --git a/src/network/barracuda/cloudgen/snmp/mode/hardware.pm b/src/network/barracuda/cloudgen/snmp/mode/hardware.pm index dc9c069e0..982c45af0 100644 --- a/src/network/barracuda/cloudgen/snmp/mode/hardware.pm +++ b/src/network/barracuda/cloudgen/snmp/mode/hardware.pm @@ -78,18 +78,17 @@ Can be: 'fan', 'temperature', 'psu', 'voltage'. =item B<--filter> -Exclude some parts (comma seperated list) (Example: --filter=psu) -Can also exclude specific instance: --filter=psu,1 +Exclude the items given as a comma-separated list (example: --filter=psu). +You can also exclude items from specific instances: --filter=psu,1 =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). + =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='psu,CRITICAL,^(?!(ok)$)' =item B<--warning> diff --git a/src/network/bluecoat/snmp/mode/hardware.pm b/src/network/bluecoat/snmp/mode/hardware.pm index c05e9beb4..12d308e62 100644 --- a/src/network/bluecoat/snmp/mode/hardware.pm +++ b/src/network/bluecoat/snmp/mode/hardware.pm @@ -108,8 +108,8 @@ Can be: 'sensor', 'disk'. =item B<--filter> -Exclude some parts (comma seperated list) (Example: --filter=disk --filter=sensor) -Can also exclude specific instance: --filter=rmsVoltage,I1 +Exclude the items given as a comma-separated list (example: --filter=disk --filter=sensor). +You can also exclude items from specific instances: --filter=rmsVoltage,I1 =item B<--absent-problem> @@ -118,13 +118,12 @@ Can be specific or global: --absent-problem=disk,1 =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). + =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='sensor,CRITICAL,^(?!(ok)$)' =item B<--warning> diff --git a/src/network/brocade/snmp/mode/hardware.pm b/src/network/brocade/snmp/mode/hardware.pm index dc26f4ea3..969aec06a 100644 --- a/src/network/brocade/snmp/mode/hardware.pm +++ b/src/network/brocade/snmp/mode/hardware.pm @@ -87,7 +87,7 @@ Can be: 'switch', 'sensor'. =item B<--filter> Exclude some parts (comma seperated list) -Can also exclude specific instance: --filter=sensor,1.1 +You can also exclude items from specific instances: --filter=sensor,1.1 =item B<--absent-problem> @@ -96,13 +96,12 @@ Can be specific or global: --absent-problem=sensor,1.2 =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). + =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='sensor,OK,unknown' =item B<--warning> diff --git a/src/network/brocade/snmp/mode/interfaces.pm b/src/network/brocade/snmp/mode/interfaces.pm index 192faf1b6..78b160222 100644 --- a/src/network/brocade/snmp/mode/interfaces.pm +++ b/src/network/brocade/snmp/mode/interfaces.pm @@ -335,7 +335,7 @@ Set the interface (number expected) ex: 1,2,... (empty means 'check all interfac =item B<--name> -Allows to use interface name with option --interface instead of interface oid index (Can be a regexp) +Allows you to define the interface (in option --interface) by name instead of OID index. The name matching mode supports regular expressions. =item B<--speed> diff --git a/src/network/brocade/snmp/mode/listinterfaces.pm b/src/network/brocade/snmp/mode/listinterfaces.pm index a55167b50..0291fc74d 100644 --- a/src/network/brocade/snmp/mode/listinterfaces.pm +++ b/src/network/brocade/snmp/mode/listinterfaces.pm @@ -136,7 +136,7 @@ Set the interface (number expected) ex: 1,2,... (empty means 'check all interfac =item B<--name> -Allows to use interface name with option --interface instead of interface oid index (Can be a regexp) +Allows you to define the interface (in option --interface) by name instead of OID index. The name matching mode supports regular expressions. =item B<--speed> diff --git a/src/network/cambium/cnpilot/snmp/mode/interfaces.pm b/src/network/cambium/cnpilot/snmp/mode/interfaces.pm index ad6a78acd..8cf064f16 100644 --- a/src/network/cambium/cnpilot/snmp/mode/interfaces.pm +++ b/src/network/cambium/cnpilot/snmp/mode/interfaces.pm @@ -119,7 +119,7 @@ Set the interface (number expected) ex: 1,2,... (empty means 'check all interfac =item B<--name> -Allows to use interface name with option --interface instead of interface oid index (Can be a regexp) +Allows you to define the interface (in option --interface) by name instead of OID index. The name matching mode supports regular expressions. =item B<--speed> diff --git a/src/network/cambium/epmp/snmp/mode/interfaces.pm b/src/network/cambium/epmp/snmp/mode/interfaces.pm index 9e4386d06..f0db08188 100644 --- a/src/network/cambium/epmp/snmp/mode/interfaces.pm +++ b/src/network/cambium/epmp/snmp/mode/interfaces.pm @@ -119,7 +119,7 @@ Set the interface (number expected) ex: 1,2,... (empty means 'check all interfac =item B<--name> -Allows to use interface name with option --interface instead of interface oid index (Can be a regexp) +Allows you to define the interface (in option --interface) by name instead of OID index. The name matching mode supports regular expressions. =item B<--speed> diff --git a/src/network/checkpoint/snmp/mode/hardware.pm b/src/network/checkpoint/snmp/mode/hardware.pm index 6a5419a1e..6639b2492 100644 --- a/src/network/checkpoint/snmp/mode/hardware.pm +++ b/src/network/checkpoint/snmp/mode/hardware.pm @@ -117,18 +117,17 @@ Add literal description for instance value (used in filter and threshold options =item B<--filter> -Exclude some parts (comma seperated list) (Example: --filter=fan --filter=psu) -Can also exclude specific instance: --filter=psu,1 +Exclude the items given as a comma-separated list (example: --filter=fan --filter=psu). +You can also exclude items from specific instances: --filter=psu,1 =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). + =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='fan,CRITICAL,^(?!(false)$)' =item B<--warning> B<--critical> diff --git a/src/network/cisco/firepower/fxos/snmp/mode/hardware.pm b/src/network/cisco/firepower/fxos/snmp/mode/hardware.pm index 9b6edf2bc..aaf15e48b 100644 --- a/src/network/cisco/firepower/fxos/snmp/mode/hardware.pm +++ b/src/network/cisco/firepower/fxos/snmp/mode/hardware.pm @@ -122,18 +122,17 @@ Can be: 'chassis', 'fan', 'fanmodule', 'psu', 'cpuunit', 'memoryunit'. =item B<--filter> -Exclude some parts (comma seperated list) (Example: --filter=fan) -Can also exclude specific instance: --filter=fan,chassis-1 +Exclude the items given as a comma-separated list (example: --filter=fan). +You can also exclude items from specific instances: --filter=fan,chassis-1 =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). + =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='fan,WARNING,removed' =item B<--warning> diff --git a/src/network/citrix/netscaler/snmp/mode/health.pm b/src/network/citrix/netscaler/snmp/mode/health.pm index 627d8a354..3c0231f36 100644 --- a/src/network/citrix/netscaler/snmp/mode/health.pm +++ b/src/network/citrix/netscaler/snmp/mode/health.pm @@ -91,13 +91,13 @@ Can be: 'temperature', 'voltage', 'fanspeed', 'psu'. =item B<--filter> -Exclude some parts (comma seperated list) (Example: --filter=psu) -Can also exclude specific instance: --filter=fan,1 +Exclude the items given as a comma-separated list (example: --filter=psu). +You can also exclude items from specific instances: --filter=fan,1 =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). + =item B<--absent-problem> @@ -106,8 +106,7 @@ Can be specific or global: --absent-problem=psu,1 =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='psu,CRITICAL,^(?!(normal)$)' =item B<--warning> diff --git a/src/network/citrix/netscaler/snmp/mode/vserverstatus.pm b/src/network/citrix/netscaler/snmp/mode/vserverstatus.pm index 78e908a13..f67ff5216 100644 --- a/src/network/citrix/netscaler/snmp/mode/vserverstatus.pm +++ b/src/network/citrix/netscaler/snmp/mode/vserverstatus.pm @@ -324,8 +324,7 @@ or to solve a missing counters bug. =item B<--threshold-overload> -Set to overload default threshold values (syntax: status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: status,regexp). Example: --threshold-overload='CRITICAL,^(?!(green)$)' =back diff --git a/src/network/citrix/sdx/snmp/mode/hardware.pm b/src/network/citrix/sdx/snmp/mode/hardware.pm index 267d9ce33..2f659ac03 100644 --- a/src/network/citrix/sdx/snmp/mode/hardware.pm +++ b/src/network/citrix/sdx/snmp/mode/hardware.pm @@ -71,17 +71,16 @@ Can be: 'hardware', 'software'. =item B<--filter> Exclude some parts (comma seperated list) -Can also exclude specific instance: --filter=hardware,name +You can also exclude items from specific instances: --filter=hardware,name =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). + =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='hardware,WARNING,ERROR' =back diff --git a/src/network/cyberoam/snmp/mode/services.pm b/src/network/cyberoam/snmp/mode/services.pm index 82bb7a758..b6f9c7bc5 100644 --- a/src/network/cyberoam/snmp/mode/services.pm +++ b/src/network/cyberoam/snmp/mode/services.pm @@ -85,17 +85,16 @@ Can be: 'service'. =item B<--filter> Exclude some parts (comma seperated list) -Can also exclude specific instance: --filter=service,pop +You can also exclude items from specific instances: --filter=service,pop =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). + =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='service,imap4,OK,stopped' =back diff --git a/src/network/dell/nseries/snmp/mode/interfaces.pm b/src/network/dell/nseries/snmp/mode/interfaces.pm index 67bf8c4af..dc18bb6de 100644 --- a/src/network/dell/nseries/snmp/mode/interfaces.pm +++ b/src/network/dell/nseries/snmp/mode/interfaces.pm @@ -119,7 +119,7 @@ Set the interface (number expected) ex: 1,2,... (empty means 'check all interfac =item B<--name> -Allows to use interface name with option --interface instead of interface oid index (Can be a regexp) +Allows you to define the interface (in option --interface) by name instead of OID index. The name matching mode supports regular expressions. =item B<--speed> diff --git a/src/network/dell/os10/snmp/mode/hardware.pm b/src/network/dell/os10/snmp/mode/hardware.pm index 9fa199415..bc34292fb 100644 --- a/src/network/dell/os10/snmp/mode/hardware.pm +++ b/src/network/dell/os10/snmp/mode/hardware.pm @@ -114,18 +114,17 @@ Can be: 'card', 'temperature', 'fan', 'fantray', 'psu'. =item B<--filter> -Exclude some parts (comma seperated list) (Example: --filter=fan) -Can also exclude specific instance: --filter=fan,1 +Exclude the items given as a comma-separated list (example: --filter=fan). +You can also exclude items from specific instances: --filter=fan,1 =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). + =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='fan,CRITICAL,lowerLayerDown' =item B<--warning> diff --git a/src/network/dlink/dgs3100/snmp/mode/hardware.pm b/src/network/dlink/dgs3100/snmp/mode/hardware.pm index 475a84948..67abfba91 100644 --- a/src/network/dlink/dgs3100/snmp/mode/hardware.pm +++ b/src/network/dlink/dgs3100/snmp/mode/hardware.pm @@ -87,8 +87,8 @@ Can be: 'psu', 'fan'. =item B<--filter> -Exclude some parts (comma seperated list) (Example: --filter=psu) -Can also exclude specific instance: --filter=fan,fan1_unit2 +Exclude the items given as a comma-separated list (example: --filter=psu). +You can also exclude items from specific instances: --filter=fan,fan1_unit2 =item B<--absent-problem> @@ -97,13 +97,12 @@ Can be specific or global: --absent-problem=psu =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). + =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='psu,CRITICAL,^(?!(normal)$)' =back diff --git a/src/network/dlink/standard/snmp/mode/hardware.pm b/src/network/dlink/standard/snmp/mode/hardware.pm index 57afef8ad..8f31e4003 100644 --- a/src/network/dlink/standard/snmp/mode/hardware.pm +++ b/src/network/dlink/standard/snmp/mode/hardware.pm @@ -102,18 +102,17 @@ Can be: 'psu', 'fan', 'temperature'. =item B<--filter> -Exclude some parts (comma seperated list) (Example: --filter=psu) -Can also exclude specific instance: --filter=fan,1.1 +Exclude the items given as a comma-separated list (example: --filter=psu). +You can also exclude items from specific instances: --filter=fan,1.1 =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). + =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,status,regexp). Example: --threshold-overload='fan,CRITICAL,^(?!(working)$)' =item B<--warning> diff --git a/src/network/dlink/standard/snmp/mode/interfaces.pm b/src/network/dlink/standard/snmp/mode/interfaces.pm index 944bf73a1..2df17e02d 100644 --- a/src/network/dlink/standard/snmp/mode/interfaces.pm +++ b/src/network/dlink/standard/snmp/mode/interfaces.pm @@ -206,7 +206,7 @@ Set the interface (number expected) ex: 1,2,... (empty means 'check all interfac =item B<--name> -Allows to use interface name with option --interface instead of interface oid index (Can be a regexp) +Allows you to define the interface (in option --interface) by name instead of OID index. The name matching mode supports regular expressions. =item B<--speed> diff --git a/src/network/enterasys/snmp/mode/interfaces.pm b/src/network/enterasys/snmp/mode/interfaces.pm index 6c03fc16f..ff3ee112a 100644 --- a/src/network/enterasys/snmp/mode/interfaces.pm +++ b/src/network/enterasys/snmp/mode/interfaces.pm @@ -119,7 +119,7 @@ Set the interface (number expected) ex: 1,2,... (empty means 'check all interfac =item B<--name> -Allows to use interface name with option --interface instead of interface oid index (Can be a regexp) +Allows you to define the interface (in option --interface) by name instead of OID index. The name matching mode supports regular expressions. =item B<--speed> diff --git a/src/network/evertz/FC7800/snmp/mode/hardware.pm b/src/network/evertz/FC7800/snmp/mode/hardware.pm index 5d21eedf8..4730e5d05 100644 --- a/src/network/evertz/FC7800/snmp/mode/hardware.pm +++ b/src/network/evertz/FC7800/snmp/mode/hardware.pm @@ -77,17 +77,16 @@ Can be: 'psu', 'frameline'. =item B<--filter> Exclude some parts (comma seperated list) -Can also exclude specific instance: --filter=psu,1 +You can also exclude items from specific instances: --filter=psu,1 =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). + =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='psu,OK,notAvailable' =back diff --git a/src/network/extreme/snmp/mode/hardware.pm b/src/network/extreme/snmp/mode/hardware.pm index 31b1e676c..b6359cc6f 100644 --- a/src/network/extreme/snmp/mode/hardware.pm +++ b/src/network/extreme/snmp/mode/hardware.pm @@ -112,8 +112,8 @@ Can be: 'fan', 'psu', 'slot', 'temperature', 'poe'. =item B<--filter> -Exclude some parts (comma seperated list) (Example: --filter=fan --filter=psu) -Can also exclude specific instance: --filter=fan,101 +Exclude the items given as a comma-separated list (example: --filter=fan --filter=psu). +You can also exclude items from specific instances: --filter=fan,101 =item B<--absent-problem> @@ -122,13 +122,12 @@ Can be specific or global: --absent-problem=psu,1 =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). + =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='psu,CRITICAL,^(?!(presentOK)$)' =item B<--warning> diff --git a/src/network/extreme/snmp/mode/interfaces.pm b/src/network/extreme/snmp/mode/interfaces.pm index 9e4b11525..8619303b0 100644 --- a/src/network/extreme/snmp/mode/interfaces.pm +++ b/src/network/extreme/snmp/mode/interfaces.pm @@ -159,7 +159,7 @@ Set the interface (number expected) ex: 1,2,... (empty means 'check all interfac =item B<--name> -Allows to use interface name with option --interface instead of interface oid index (Can be a regexp) +Allows you to define the interface (in option --interface) by name instead of OID index. The name matching mode supports regular expressions. =item B<--speed> diff --git a/src/network/f5/bigip/snmp/mode/hardware.pm b/src/network/f5/bigip/snmp/mode/hardware.pm index a4906e734..3d831bea5 100644 --- a/src/network/f5/bigip/snmp/mode/hardware.pm +++ b/src/network/f5/bigip/snmp/mode/hardware.pm @@ -83,18 +83,17 @@ Can be: 'fan', 'psu', 'temperature'. =item B<--filter> -Exclude some parts (comma seperated list) (Example: --filter=fan --filter=psu) -Can also exclude specific instance: --filter=fan,1 +Exclude the items given as a comma-separated list (example: --filter=fan --filter=psu). +You can also exclude items from specific instances: --filter=fan,1 =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). + =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='fan,CRITICAL,^(?!(good)$)' =item B<--warning> diff --git a/src/network/fiberstore/snmp/mode/hardware.pm b/src/network/fiberstore/snmp/mode/hardware.pm index 9d8863ee2..6e9df49f4 100644 --- a/src/network/fiberstore/snmp/mode/hardware.pm +++ b/src/network/fiberstore/snmp/mode/hardware.pm @@ -114,18 +114,17 @@ Can be: 'fan', 'power', 'slot'. =item B<--filter> -Exclude some parts (comma seperated list) (Example: --filter=power) -Can also exclude specific instance: --filter=power,1 +Exclude the items given as a comma-separated list (example: --filter=power). +You can also exclude items from specific instances: --filter=power,1 =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). + =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,status,regexp). Example: --threshold-overload='fan,CRITICAL,notInstall' =item B<--warning> diff --git a/src/network/fortinet/fortiadc/snmp/mode/hardware.pm b/src/network/fortinet/fortiadc/snmp/mode/hardware.pm index bcd197074..43e45420e 100644 --- a/src/network/fortinet/fortiadc/snmp/mode/hardware.pm +++ b/src/network/fortinet/fortiadc/snmp/mode/hardware.pm @@ -82,18 +82,17 @@ Add literal description for instance value (used in filter and threshold options =item B<--filter> -Exclude some parts (comma seperated list) (Example: --filter=fan) -Can also exclude specific instance: --filter=fan,1 +Exclude the items given as a comma-separated list (example: --filter=fan). +You can also exclude items from specific instances: --filter=fan,1 =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). + =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,status,regexp). Example: --threshold-overload='fan,CRITICAL,removed' =item B<--warning> diff --git a/src/network/fortinet/fortiadc/snmp/mode/interfaces.pm b/src/network/fortinet/fortiadc/snmp/mode/interfaces.pm index 164442e26..6f522638c 100644 --- a/src/network/fortinet/fortiadc/snmp/mode/interfaces.pm +++ b/src/network/fortinet/fortiadc/snmp/mode/interfaces.pm @@ -119,7 +119,7 @@ Set the interface (number expected) ex: 1,2,... (empty means 'check all interfac =item B<--name> -Allows to use interface name with option --interface instead of interface oid index (Can be a regexp) +Allows you to define the interface (in option --interface) by name instead of OID index. The name matching mode supports regular expressions. =item B<--speed> diff --git a/src/network/fortinet/fortiswitch/snmp/mode/interfaces.pm b/src/network/fortinet/fortiswitch/snmp/mode/interfaces.pm index fd8654414..edd4f3b9c 100644 --- a/src/network/fortinet/fortiswitch/snmp/mode/interfaces.pm +++ b/src/network/fortinet/fortiswitch/snmp/mode/interfaces.pm @@ -119,7 +119,7 @@ Set the interface (number expected) ex: 1,2,... (empty means 'check all interfac =item B<--name> -Allows to use interface name with option --interface instead of interface oid index (Can be a regexp) +Allows you to define the interface (in option --interface) by name instead of OID index. The name matching mode supports regular expressions. =item B<--speed> diff --git a/src/network/hirschmann/standard/snmp/mode/hardware.pm b/src/network/hirschmann/standard/snmp/mode/hardware.pm index 7e8dd50aa..6b7dd5fb9 100644 --- a/src/network/hirschmann/standard/snmp/mode/hardware.pm +++ b/src/network/hirschmann/standard/snmp/mode/hardware.pm @@ -122,8 +122,8 @@ Can be: 'fan', 'psu', 'temperature', 'led'. =item B<--filter> -Exclude some parts (comma seperated list) (Example: --filter=fan) -Can also exclude specific instance: --filter=fan,1.1 +Exclude the items given as a comma-separated list (example: --filter=fan). +You can also exclude items from specific instances: --filter=fan,1.1 =item B<--absent-problem> @@ -132,13 +132,12 @@ Can be specific or global: --absent-problem=psu,1.1 =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). + =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='psu,CRITICAL,^(?!(ok)$)' =item B<--warning> diff --git a/src/network/hp/moonshot/snmp/mode/interfaces.pm b/src/network/hp/moonshot/snmp/mode/interfaces.pm index d4d9493db..245030ac4 100644 --- a/src/network/hp/moonshot/snmp/mode/interfaces.pm +++ b/src/network/hp/moonshot/snmp/mode/interfaces.pm @@ -119,7 +119,7 @@ Set the interface (number expected) ex: 1,2,... (empty means 'check all interfac =item B<--name> -Allows to use interface name with option --interface instead of interface oid index (Can be a regexp) +Allows you to define the interface (in option --interface) by name instead of OID index. The name matching mode supports regular expressions. =item B<--speed> diff --git a/src/network/hp/procurve/snmp/mode/environment.pm b/src/network/hp/procurve/snmp/mode/environment.pm index 867a6703b..683f155a6 100644 --- a/src/network/hp/procurve/snmp/mode/environment.pm +++ b/src/network/hp/procurve/snmp/mode/environment.pm @@ -101,8 +101,8 @@ Can be: 'fan', 'psu', 'sensor', 'temperature'. =item B<--filter> -Exclude some parts (comma seperated list) (Example: --filter=sensor) -Can also exclude specific instance: --filter=sensor,fan.1 +Exclude the items given as a comma-separated list (example: --filter=sensor). +You can also exclude items from specific instances: --filter=sensor,fan.1 =item B<--absent-problem> @@ -111,13 +111,12 @@ Can be specific or global: --absent-problem=sensor,temperature.2 =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). + =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='sensor,CRITICAL,^(?!(good)$)' =item B<--warning> diff --git a/src/network/hp/procurve/snmp/mode/interfaces.pm b/src/network/hp/procurve/snmp/mode/interfaces.pm index be22fc7c5..e8cf04aa0 100644 --- a/src/network/hp/procurve/snmp/mode/interfaces.pm +++ b/src/network/hp/procurve/snmp/mode/interfaces.pm @@ -352,7 +352,7 @@ Set the interface (number expected) ex: 1,2,... (empty means 'check all interfac =item B<--name> -Allows to use interface name with option --interface instead of interface oid index (Can be a regexp) +Allows you to define the interface (in option --interface) by name instead of OID index. The name matching mode supports regular expressions. =item B<--speed> diff --git a/src/network/hp/vc/snmp/mode/hardware.pm b/src/network/hp/vc/snmp/mode/hardware.pm index 4c0efe8f8..47f83db76 100644 --- a/src/network/hp/vc/snmp/mode/hardware.pm +++ b/src/network/hp/vc/snmp/mode/hardware.pm @@ -91,18 +91,17 @@ Can be: 'domain', 'enclosure', 'module', 'moduleport', 'port', 'physicalserver', =item B<--filter> -Exclude some parts (comma seperated list) (Example: --filter=enet --filter=fc) -Can also exclude specific instance: --filter=fc,1 +Exclude the items given as a comma-separated list (example: --filter=enet --filter=fc). +You can also exclude items from specific instances: --filter=fc,1 =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). + =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='module,CRITICAL,^(?!(normal)$)' =back diff --git a/src/network/huawei/snmp/mode/hardware.pm b/src/network/huawei/snmp/mode/hardware.pm index 293134ceb..c88f6b399 100644 --- a/src/network/huawei/snmp/mode/hardware.pm +++ b/src/network/huawei/snmp/mode/hardware.pm @@ -157,8 +157,8 @@ Can be: 'fan'. =item B<--filter> -Exclude some parts (comma seperated list) (Example: --filter=fan --filter=psu) -Can also exclude specific instance: --filter=fan,1.0 +Exclude the items given as a comma-separated list (example: --filter=fan --filter=psu). +You can also exclude items from specific instances: --filter=fan,1.0 =item B<--absent-problem> @@ -167,13 +167,12 @@ Can be specific or global: --absent-problem=fan,1.0 =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). + =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='fan,WARNING,abnormal' =item B<--warning> diff --git a/src/network/huawei/snmp/mode/interfaces.pm b/src/network/huawei/snmp/mode/interfaces.pm index 4ad36dc23..e610acfa8 100644 --- a/src/network/huawei/snmp/mode/interfaces.pm +++ b/src/network/huawei/snmp/mode/interfaces.pm @@ -261,7 +261,7 @@ Set the interface (number expected) ex: 1,2,... (empty means 'check all interfac =item B<--name> -Allows to use interface name with option --interface instead of interface oid index (Can be a regexp) +Allows you to define the interface (in option --interface) by name instead of OID index. The name matching mode supports regular expressions. =item B<--speed> diff --git a/src/network/infoblox/snmp/mode/services.pm b/src/network/infoblox/snmp/mode/services.pm index ba3839d12..a19d4f3dd 100644 --- a/src/network/infoblox/snmp/mode/services.pm +++ b/src/network/infoblox/snmp/mode/services.pm @@ -81,13 +81,12 @@ E.g: --filter=service,fan1 =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). + =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='service,OK,warning' =back diff --git a/src/network/juniper/common/junos/mode/hardware.pm b/src/network/juniper/common/junos/mode/hardware.pm index 4cc8a470d..0015211bd 100644 --- a/src/network/juniper/common/junos/mode/hardware.pm +++ b/src/network/juniper/common/junos/mode/hardware.pm @@ -215,8 +215,8 @@ Add literal description for instance value (used in filter, absent-problem and t =item B<--filter> -Exclude some parts (comma seperated list) (Example: --filter=fru) -Can also exclude specific instance: --filter=fru,7.3.0.0 +Exclude the items given as a comma-separated list (example: --filter=fru). +You can also exclude items from specific instances: --filter=fru,7.3.0.0 =item B<--absent-problem> @@ -225,13 +225,12 @@ Can be specific or global: --absent-problem=fru,7.1.0.0 =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). + =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='operating,CRITICAL,^(?!(running)$)' =item B<--warning> diff --git a/src/network/juniper/common/junos/mode/interfaces.pm b/src/network/juniper/common/junos/mode/interfaces.pm index c43050bbf..92934463e 100644 --- a/src/network/juniper/common/junos/mode/interfaces.pm +++ b/src/network/juniper/common/junos/mode/interfaces.pm @@ -336,7 +336,7 @@ Set the interface (number expected) ex: 1,2,... (empty means 'check all interfac =item B<--name> -Allows to use interface name with option --interface instead of interface oid index (Can be a regexp) +Allows you to define the interface (in option --interface) by name instead of OID index. The name matching mode supports regular expressions. =item B<--speed> diff --git a/src/network/juniper/common/screenos/snmp/mode/hardware.pm b/src/network/juniper/common/screenos/snmp/mode/hardware.pm index 05b50038a..648430976 100644 --- a/src/network/juniper/common/screenos/snmp/mode/hardware.pm +++ b/src/network/juniper/common/screenos/snmp/mode/hardware.pm @@ -86,17 +86,16 @@ Can be: 'fan', 'psu', 'module', 'temperature'. =item B<--filter> Exclude some parts (Example: --filter=psu --filter=module) -Can also exclude specific instance: --filter=fan,1 +You can also exclude items from specific instances: --filter=fan,1 =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). + =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='psu,WARNING,^(?!(active)$)' =item B<--warning> diff --git a/src/network/lenovo/flexsystem/snmp/mode/environment.pm b/src/network/lenovo/flexsystem/snmp/mode/environment.pm index 24bcea65a..b18e07f66 100644 --- a/src/network/lenovo/flexsystem/snmp/mode/environment.pm +++ b/src/network/lenovo/flexsystem/snmp/mode/environment.pm @@ -76,13 +76,12 @@ Can be: 'faultled', 'temperature'. =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). + =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,status,regexp). Example: --threshold-overload='faulted,WARNING,on' =item B<--warning> diff --git a/src/network/lenovo/rackswitch/snmp/mode/interfaces.pm b/src/network/lenovo/rackswitch/snmp/mode/interfaces.pm index 7bf5d820c..35b8e8c2c 100644 --- a/src/network/lenovo/rackswitch/snmp/mode/interfaces.pm +++ b/src/network/lenovo/rackswitch/snmp/mode/interfaces.pm @@ -119,7 +119,7 @@ Set the interface (number expected) ex: 1,2,... (empty means 'check all interfac =item B<--name> -Allows to use interface name with option --interface instead of interface oid index (Can be a regexp) +Allows you to define the interface (in option --interface) by name instead of OID index. The name matching mode supports regular expressions. =item B<--speed> diff --git a/src/network/libraesva/snmp/mode/interfaces.pm b/src/network/libraesva/snmp/mode/interfaces.pm index 87da50f9b..3735b4322 100644 --- a/src/network/libraesva/snmp/mode/interfaces.pm +++ b/src/network/libraesva/snmp/mode/interfaces.pm @@ -119,7 +119,7 @@ Set the interface (number expected) ex: 1,2,... (empty means 'check all interfac =item B<--name> -Allows to use interface name with option --interface instead of interface oid index (Can be a regexp) +Allows you to define the interface (in option --interface) by name instead of OID index. The name matching mode supports regular expressions. =item B<--speed> diff --git a/src/network/microsens/g6/snmp/mode/hardware.pm b/src/network/microsens/g6/snmp/mode/hardware.pm index 925a51777..75ce63a70 100644 --- a/src/network/microsens/g6/snmp/mode/hardware.pm +++ b/src/network/microsens/g6/snmp/mode/hardware.pm @@ -115,18 +115,17 @@ Can be: 'fan', 'psu', 'sdcard', 'temperature'. =item B<--filter> -Exclude some parts (comma seperated list) (Example: --filter=fan) -Can also exclude specific instance: --filter=psu,2 +Exclude the items given as a comma-separated list (example: --filter=fan). +You can also exclude items from specific instances: --filter=psu,2 =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). + =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='sdcard,WARNING,empty' =item B<--warning> diff --git a/src/network/microsens/g6/snmp/mode/interfaces.pm b/src/network/microsens/g6/snmp/mode/interfaces.pm index 01d717d56..ee430b2f2 100644 --- a/src/network/microsens/g6/snmp/mode/interfaces.pm +++ b/src/network/microsens/g6/snmp/mode/interfaces.pm @@ -119,7 +119,7 @@ Set the interface (number expected) ex: 1,2,... (empty means 'check all interfac =item B<--name> -Allows to use interface name with option --interface instead of interface oid index (Can be a regexp) +Allows you to define the interface (in option --interface) by name instead of OID index. The name matching mode supports regular expressions. =item B<--speed> diff --git a/src/network/mikrotik/snmp/mode/environment.pm b/src/network/mikrotik/snmp/mode/environment.pm index f1a59f9a3..cab085f0f 100644 --- a/src/network/mikrotik/snmp/mode/environment.pm +++ b/src/network/mikrotik/snmp/mode/environment.pm @@ -86,13 +86,13 @@ Can be: 'current', 'fan', 'power', 'status', 'temperature', 'voltage'. =item B<--filter> -Exclude some parts (comma seperated list) (Example: --filter=fan --filter=voltage) -Can also exclude specific instance: --filter=fan,fan2 +Exclude the items given as a comma-separated list (example: --filter=fan --filter=voltage). +You can also exclude items from specific instances: --filter=fan,fan2 =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). + =item B<--warning> diff --git a/src/network/mikrotik/snmp/mode/interfaces.pm b/src/network/mikrotik/snmp/mode/interfaces.pm index 1a5f05841..02a33dd67 100644 --- a/src/network/mikrotik/snmp/mode/interfaces.pm +++ b/src/network/mikrotik/snmp/mode/interfaces.pm @@ -232,7 +232,7 @@ Set the interface (number expected) ex: 1,2,... (empty means 'check all interfac =item B<--name> -Allows to use interface name with option --interface instead of interface oid index (Can be a regexp) +Allows you to define the interface (in option --interface) by name instead of OID index. The name matching mode supports regular expressions. =item B<--speed> diff --git a/src/network/mrv/optiswitch/snmp/mode/environment.pm b/src/network/mrv/optiswitch/snmp/mode/environment.pm index d6ed60633..950119542 100644 --- a/src/network/mrv/optiswitch/snmp/mode/environment.pm +++ b/src/network/mrv/optiswitch/snmp/mode/environment.pm @@ -86,8 +86,8 @@ Can be: 'cpu', 'psu', 'fan'. =item B<--filter> -Exclude some parts (comma seperated list) (Example: --filter=cpu) -Can also exclude specific instance: --filter=cpu,1 +Exclude the items given as a comma-separated list (example: --filter=cpu). +You can also exclude items from specific instances: --filter=cpu,1 =item B<--absent-problem> @@ -96,13 +96,12 @@ Can be specific or global: --absent-problem=psu,2 =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). + =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='fan,CRITICAL,^(?!(notActive)$)' =back diff --git a/src/network/mrv/optiswitch/snmp/mode/interfaces.pm b/src/network/mrv/optiswitch/snmp/mode/interfaces.pm index 04979d9fb..25aeddae0 100644 --- a/src/network/mrv/optiswitch/snmp/mode/interfaces.pm +++ b/src/network/mrv/optiswitch/snmp/mode/interfaces.pm @@ -499,7 +499,7 @@ Set the interface (number expected) ex: 1,2,... (empty means 'check all interfac =item B<--name> -Allows to use interface name with option --interface instead of interface oid index (Can be a regexp) +Allows you to define the interface (in option --interface) by name instead of OID index. The name matching mode supports regular expressions. =item B<--speed> diff --git a/src/network/mrv/optiswitch/snmp/mode/listinterfaces.pm b/src/network/mrv/optiswitch/snmp/mode/listinterfaces.pm index 3649f9ca8..b25186f5a 100644 --- a/src/network/mrv/optiswitch/snmp/mode/listinterfaces.pm +++ b/src/network/mrv/optiswitch/snmp/mode/listinterfaces.pm @@ -81,7 +81,7 @@ Set the interface (number expected) ex: 1,2,... (empty means 'check all interfac =item B<--name> -Allows to use interface name with option --interface instead of interface oid index (Can be a regexp) +Allows you to define the interface (in option --interface) by name instead of OID index. The name matching mode supports regular expressions. =item B<--speed> diff --git a/src/network/netgear/mseries/snmp/mode/hardware.pm b/src/network/netgear/mseries/snmp/mode/hardware.pm index 552fb4123..fb572e7b8 100644 --- a/src/network/netgear/mseries/snmp/mode/hardware.pm +++ b/src/network/netgear/mseries/snmp/mode/hardware.pm @@ -91,8 +91,8 @@ Can be: 'fan', 'psu', 'temperature'. =item B<--filter> -Exclude some parts (comma seperated list) (Example: --filter=fan --filter=psu) -Can also exclude specific instance: --filter=fan,1.1 +Exclude the items given as a comma-separated list (example: --filter=fan --filter=psu). +You can also exclude items from specific instances: --filter=fan,1.1 =item B<--absent-problem> @@ -101,13 +101,12 @@ Can be specific or global: --absent-problem=fan,1 =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). + =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='psu,CRITICAL,^(?!(operational)$)' =item B<--warning> diff --git a/src/network/netgear/sseries/snmp/mode/hardware.pm b/src/network/netgear/sseries/snmp/mode/hardware.pm index b06820711..397d43caa 100644 --- a/src/network/netgear/sseries/snmp/mode/hardware.pm +++ b/src/network/netgear/sseries/snmp/mode/hardware.pm @@ -91,8 +91,8 @@ Can be: 'fan', 'psu', 'temperature'. =item B<--filter> -Exclude some parts (comma seperated list) (Example: --filter=fan --filter=psu) -Can also exclude specific instance: --filter=fan,1.1 +Exclude the items given as a comma-separated list (example: --filter=fan --filter=psu). +You can also exclude items from specific instances: --filter=fan,1.1 =item B<--absent-problem> @@ -101,13 +101,12 @@ Can be specific or global: --absent-problem=fan,1 =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). + =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='psu,CRITICAL,^(?!(operational)$)' =item B<--warning> diff --git a/src/network/netgear/sseries/snmp/mode/interfaces.pm b/src/network/netgear/sseries/snmp/mode/interfaces.pm index d6e6b13d3..2f4891ec1 100644 --- a/src/network/netgear/sseries/snmp/mode/interfaces.pm +++ b/src/network/netgear/sseries/snmp/mode/interfaces.pm @@ -119,7 +119,7 @@ Set the interface (number expected) ex: 1,2,... (empty means 'check all interfac =item B<--name> -Allows to use interface name with option --interface instead of interface oid index (Can be a regexp) +Allows you to define the interface (in option --interface) by name instead of OID index. The name matching mode supports regular expressions. =item B<--speed> diff --git a/src/network/nokia/timos/snmp/mode/hardware.pm b/src/network/nokia/timos/snmp/mode/hardware.pm index 64b3c5a92..bad7cbd06 100644 --- a/src/network/nokia/timos/snmp/mode/hardware.pm +++ b/src/network/nokia/timos/snmp/mode/hardware.pm @@ -88,17 +88,15 @@ Can be: 'entity'. =item B<--filter> Exclude some parts (comma seperated list) -Can also exclude specific instance: --filter=entity,fan.1 +You can also exclude items from specific instances: --filter=entity,fan.1 =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='entity,fan..*,CRITICAL,booting' =item B<--warning> diff --git a/src/network/nortel/standard/snmp/mode/hardware.pm b/src/network/nortel/standard/snmp/mode/hardware.pm index 744a1916c..2fddf8320 100644 --- a/src/network/nortel/standard/snmp/mode/hardware.pm +++ b/src/network/nortel/standard/snmp/mode/hardware.pm @@ -115,18 +115,16 @@ Can be: 'fan', 'psu', 'card', 'entity', 'led'. =item B<--filter> -Exclude some parts (comma seperated list) (Example: --filter=psu) -Can also exclude specific instance: --filter=psu,1 +Exclude the items given as a comma-separated list (example: --filter=psu). +You can also exclude items from specific instances: --filter=psu,1 =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='entity,WARNING,disabled' =item B<--warning> diff --git a/src/network/nortel/standard/snmp/mode/interfaces.pm b/src/network/nortel/standard/snmp/mode/interfaces.pm index 4e5d2651f..8a031fd14 100644 --- a/src/network/nortel/standard/snmp/mode/interfaces.pm +++ b/src/network/nortel/standard/snmp/mode/interfaces.pm @@ -141,7 +141,7 @@ Set the interface (number expected) ex: 1,2,... (empty means 'check all interfac =item B<--name> -Allows to use interface name with option --interface instead of interface oid index (Can be a regexp) +Allows you to define the interface (in option --interface) by name instead of OID index. The name matching mode supports regular expressions. =item B<--speed> diff --git a/src/network/oneaccess/snmp/mode/interfaces.pm b/src/network/oneaccess/snmp/mode/interfaces.pm index 0454d1d00..00007056e 100644 --- a/src/network/oneaccess/snmp/mode/interfaces.pm +++ b/src/network/oneaccess/snmp/mode/interfaces.pm @@ -119,7 +119,7 @@ Set the interface (number expected) ex: 1,2,... (empty means 'check all interfac =item B<--name> -Allows to use interface name with option --interface instead of interface oid index (Can be a regexp) +Allows you to define the interface (in option --interface) by name instead of OID index. The name matching mode supports regular expressions. =item B<--speed> diff --git a/src/network/opengear/snmp/mode/interfaces.pm b/src/network/opengear/snmp/mode/interfaces.pm index d57ed2f6c..1da4435a9 100644 --- a/src/network/opengear/snmp/mode/interfaces.pm +++ b/src/network/opengear/snmp/mode/interfaces.pm @@ -119,7 +119,7 @@ Set the interface (number expected) ex: 1,2,... (empty means 'check all interfac =item B<--name> -Allows to use interface name with option --interface instead of interface oid index (Can be a regexp) +Allows you to define the interface (in option --interface) by name instead of OID index. The name matching mode supports regular expressions. =item B<--speed> diff --git a/src/network/paloalto/ssh/mode/environment.pm b/src/network/paloalto/ssh/mode/environment.pm index e2cf970f1..54b53eca3 100644 --- a/src/network/paloalto/ssh/mode/environment.pm +++ b/src/network/paloalto/ssh/mode/environment.pm @@ -81,18 +81,17 @@ Can be: 'psu', 'temperature', 'voltage'. =item B<--filter> -Exclude some parts (comma seperated list) (Example: --filter=temperature) -Can also exclude specific instance: --filter='temperature,Temperature @ U48' +Exclude the items given as a comma-separated list (example: --filter=temperature). +You can also exclude items from specific instances: --filter='temperature,Temperature @ U48' =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). + =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='temperture,OK,true' =item B<--warning> diff --git a/src/network/perle/ids/snmp/mode/hardware.pm b/src/network/perle/ids/snmp/mode/hardware.pm index d84ffc030..3ec85554d 100644 --- a/src/network/perle/ids/snmp/mode/hardware.pm +++ b/src/network/perle/ids/snmp/mode/hardware.pm @@ -84,8 +84,8 @@ Add literal description for instance value (used in filter, absent-problem and t =item B<--filter> -Exclude some parts (comma seperated list) (Example: --filter=psu) -Can also exclude specific instance: --filter=psu,1 +Exclude the items given as a comma-separated list (example: --filter=psu). +You can also exclude items from specific instances: --filter=psu,1 =item B<--absent-problem> @@ -94,13 +94,12 @@ Can be specific or global: --absent-problem=psu,1 =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). + =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='psu,CRITICAL,^(?!(normal|initial)$)' =item B<--warning> diff --git a/src/network/polycom/rmx/snmp/mode/hardware.pm b/src/network/polycom/rmx/snmp/mode/hardware.pm index 22dff63c5..02bb2e0c2 100644 --- a/src/network/polycom/rmx/snmp/mode/hardware.pm +++ b/src/network/polycom/rmx/snmp/mode/hardware.pm @@ -85,17 +85,16 @@ Can be: 'fan', 'psu', 'board'. =item B<--filter> -Exclude some parts (comma seperated list) (Example: --filter=board --filter=psu) +Exclude the items given as a comma-separated list (example: --filter=board --filter=psu). =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). + =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='psu,CRITICAL,disabled' =back diff --git a/src/network/radware/alteon/snmp/mode/hardware.pm b/src/network/radware/alteon/snmp/mode/hardware.pm index 25e00cf93..d15614767 100644 --- a/src/network/radware/alteon/snmp/mode/hardware.pm +++ b/src/network/radware/alteon/snmp/mode/hardware.pm @@ -87,17 +87,16 @@ Can be: 'cpu', 'temperature', 'psu', 'fan'. =item B<--filter> Exclude some parts (comma seperated list) -Can also exclude specific instance: --filter=cpu,1 +You can also exclude items from specific instances: --filter=cpu,1 =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). + =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='psu,OK,unknownPowerSupplyFailed' =back diff --git a/src/network/raisecom/snmp/mode/hardware.pm b/src/network/raisecom/snmp/mode/hardware.pm index 30f64a9b3..92e1db1f2 100644 --- a/src/network/raisecom/snmp/mode/hardware.pm +++ b/src/network/raisecom/snmp/mode/hardware.pm @@ -76,18 +76,17 @@ Can be: 'temperature', 'fan', 'voltage'. =item B<--filter> -Exclude some parts (comma seperated list) (Example: --filter=fan -Can also exclude specific instance: --filter=fan,1 +Exclude the items given as a comma-separated list (example: --filter=fan. +You can also exclude items from specific instances: --filter=fan,1 =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). + =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='fan,WARNING,twoHour' =item B<--warning> diff --git a/src/network/raisecom/snmp/mode/interfaces.pm b/src/network/raisecom/snmp/mode/interfaces.pm index e07e091e0..b56005bfc 100644 --- a/src/network/raisecom/snmp/mode/interfaces.pm +++ b/src/network/raisecom/snmp/mode/interfaces.pm @@ -119,7 +119,7 @@ Set the interface (number expected) ex: 1,2,... (empty means 'check all interfac =item B<--name> -Allows to use interface name with option --interface instead of interface oid index (Can be a regexp) +Allows you to define the interface (in option --interface) by name instead of OID index. The name matching mode supports regular expressions. =item B<--speed> diff --git a/src/network/redback/snmp/mode/hardware.pm b/src/network/redback/snmp/mode/hardware.pm index ca0f12af2..57535fafa 100644 --- a/src/network/redback/snmp/mode/hardware.pm +++ b/src/network/redback/snmp/mode/hardware.pm @@ -91,8 +91,8 @@ Can be: 'fan', 'psu', 'temperature', 'voltage', 'disk'. =item B<--filter> -Exclude some parts (comma seperated list) (Example: --filter=fan --filter=psu) -Can also exclude specific instance: --filter=fan,1 +Exclude the items given as a comma-separated list (example: --filter=fan --filter=psu). +You can also exclude items from specific instances: --filter=fan,1 =item B<--absent-problem> @@ -101,13 +101,11 @@ Can be specific or global: --absent-problem=fan,1 =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='fan,CRITICAL,^(?!(normal)$)' =item B<--warning> diff --git a/src/network/ruggedcom/mode/errors.pm b/src/network/ruggedcom/mode/errors.pm index 36f0a379a..7816d2eb4 100644 --- a/src/network/ruggedcom/mode/errors.pm +++ b/src/network/ruggedcom/mode/errors.pm @@ -173,7 +173,7 @@ Exclude some instance (Example: --exclude='#WatchdogReset#CrashLogCreated#') =item B<--no-errors> Return an error if no errors are checked. -If total (with skipped) is 0. (Default: 'critical' returns). + =back diff --git a/src/network/ruggedcom/mode/hardware.pm b/src/network/ruggedcom/mode/hardware.pm index 10237d83c..64a62f5e3 100644 --- a/src/network/ruggedcom/mode/hardware.pm +++ b/src/network/ruggedcom/mode/hardware.pm @@ -85,8 +85,8 @@ Can be: 'psu', 'fan'. =item B<--filter> -Exclude some parts (comma seperated list) (Example: --filter=psu) -Can also exclude specific instance: --filter=psu,1 +Exclude the items given as a comma-separated list (example: --filter=psu). +You can also exclude items from specific instances: --filter=psu,1 =item B<--absent-problem> @@ -95,13 +95,12 @@ Can be specific or global: --absent-problem=fan,1 =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). + =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,status,regexp). Example: --threshold-overload='psu,CRITICAL,^(?!(on)$)' =back diff --git a/src/network/sonus/sbc/snmp/mode/interfaces.pm b/src/network/sonus/sbc/snmp/mode/interfaces.pm index 64e41e60f..d8c8f1e6f 100644 --- a/src/network/sonus/sbc/snmp/mode/interfaces.pm +++ b/src/network/sonus/sbc/snmp/mode/interfaces.pm @@ -119,7 +119,7 @@ Set the interface (number expected) ex: 1,2,... (empty means 'check all interfac =item B<--name> -Allows to use interface name with option --interface instead of interface oid index (Can be a regexp) +Allows you to define the interface (in option --interface) by name instead of OID index. The name matching mode supports regular expressions. =item B<--speed> diff --git a/src/network/sophos/es/snmp/mode/health.pm b/src/network/sophos/es/snmp/mode/health.pm index b8602732c..7a928f9a2 100644 --- a/src/network/sophos/es/snmp/mode/health.pm +++ b/src/network/sophos/es/snmp/mode/health.pm @@ -80,17 +80,15 @@ Can be: 'component', 'system'. =item B<--filter> Exclude some parts (comma seperated list) -Can also exclude specific instance: --filter=system,MailDiskUsage +You can also exclude items from specific instances: --filter=system,MailDiskUsage =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='component,UNKNOWN,unknown' =back diff --git a/src/network/stormshield/api/mode/hardware.pm b/src/network/stormshield/api/mode/hardware.pm index c4cb8a339..37f13984e 100644 --- a/src/network/stormshield/api/mode/hardware.pm +++ b/src/network/stormshield/api/mode/hardware.pm @@ -82,18 +82,17 @@ Can be: 'disk', 'fan', 'psu', 'temperature'. =item B<--filter> -Exclude some parts (comma seperated list) (Example: --filter=fan) -Can also exclude specific instance: --filter=fan,1 +Exclude the items given as a comma-separated list (example: --filter=fan). +You can also exclude items from specific instances: --filter=fan,1 =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). + =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='disk,WARNING,missing' =item B<--warning> diff --git a/src/network/stormshield/snmp/mode/hardware.pm b/src/network/stormshield/snmp/mode/hardware.pm index 6163aed29..ee294cb33 100644 --- a/src/network/stormshield/snmp/mode/hardware.pm +++ b/src/network/stormshield/snmp/mode/hardware.pm @@ -85,18 +85,17 @@ Can be: 'disk', 'fan', 'psu', 'temperature'. =item B<--filter> -Exclude some parts (comma seperated list) (Example: --filter=fan) -Can also exclude specific instance: --filter=fan,1 +Exclude the items given as a comma-separated list (example: --filter=fan). +You can also exclude items from specific instances: --filter=fan,1 =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). + =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='disk,WARNING,missing' =item B<--warning> diff --git a/src/network/viptela/snmp/mode/hardware.pm b/src/network/viptela/snmp/mode/hardware.pm index 67b8ac4fc..7fa934bb8 100644 --- a/src/network/viptela/snmp/mode/hardware.pm +++ b/src/network/viptela/snmp/mode/hardware.pm @@ -106,18 +106,17 @@ Can be: 'fan', 'led', 'nim', 'pem', 'pim', 'temperature', 'usb'. =item B<--filter> -Exclude some parts (comma seperated list) (Example: --filter=temperature) -Can also exclude specific instance: --filter=temperature,Board +Exclude the items given as a comma-separated list (example: --filter=temperature). +You can also exclude items from specific instances: --filter=temperature,Board =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). + =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='temperature,OK,down' =item B<--warning> diff --git a/src/network/viptela/snmp/mode/interfaces.pm b/src/network/viptela/snmp/mode/interfaces.pm index ed40c0ab5..0c7c8880e 100644 --- a/src/network/viptela/snmp/mode/interfaces.pm +++ b/src/network/viptela/snmp/mode/interfaces.pm @@ -119,7 +119,7 @@ Set the interface (number expected) ex: 1,2,... (empty means 'check all interfac =item B<--name> -Allows to use interface name with option --interface instead of interface oid index (Can be a regexp) +Allows you to define the interface (in option --interface) by name instead of OID index. The name matching mode supports regular expressions. =item B<--speed> diff --git a/src/os/picos/snmp/mode/hardware.pm b/src/os/picos/snmp/mode/hardware.pm index 16b6a49de..6a9c17a45 100644 --- a/src/os/picos/snmp/mode/hardware.pm +++ b/src/os/picos/snmp/mode/hardware.pm @@ -77,18 +77,17 @@ Can be: 'fan', 'psu'. =item B<--filter> -Exclude some parts (comma seperated list) (Example: --filter=fan) -Can also exclude specific instance: --filter=fan,0 +Exclude the items given as a comma-separated list (example: --filter=fan). +You can also exclude items from specific instances: --filter=fan,0 =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). + =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='psu,WARNING,power-off' =item B<--warning> diff --git a/src/os/picos/snmp/mode/interfaces.pm b/src/os/picos/snmp/mode/interfaces.pm index 4111a0be4..14e0fe777 100644 --- a/src/os/picos/snmp/mode/interfaces.pm +++ b/src/os/picos/snmp/mode/interfaces.pm @@ -265,7 +265,7 @@ Set the interface (number expected) ex: 1,2,... (empty means 'check all interfac =item B<--name> -Allows to use interface name with option --interface instead of interface oid index (Can be a regexp) +Allows you to define the interface (in option --interface) by name instead of OID index. The name matching mode supports regular expressions. =item B<--speed> diff --git a/src/os/picos/snmp/mode/listinterfaces.pm b/src/os/picos/snmp/mode/listinterfaces.pm index 285a70f2a..161bad2a7 100644 --- a/src/os/picos/snmp/mode/listinterfaces.pm +++ b/src/os/picos/snmp/mode/listinterfaces.pm @@ -59,7 +59,7 @@ Set the interface (number expected) ex: 1,2,... (empty means 'check all interfac =item B<--name> -Allows to use interface name with option --interface instead of interface oid index (Can be a regexp) +Allows you to define the interface (in option --interface) by name instead of OID index. The name matching mode supports regular expressions. =item B<--speed> diff --git a/src/os/solaris/local/mode/lomv120.pm b/src/os/solaris/local/mode/lomv120.pm index 6016c8d6b..bea79f5f8 100644 --- a/src/os/solaris/local/mode/lomv120.pm +++ b/src/os/solaris/local/mode/lomv120.pm @@ -82,18 +82,17 @@ Can be: 'fan', 'psu', 'voltage', 'sf'. =item B<--filter> -Exclude some parts (comma seperated list) (Example: --filter=fan) -Can also exclude specific instance: --filter=fan,1 +Exclude the items given as a comma-separated list (example: --filter=fan). +You can also exclude items from specific instances: --filter=fan,1 =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). + =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,status,regexp). Example: --threshold-overload='psu,WARNING,^(?!(ok)$)' =back diff --git a/src/snmp_standard/mode/entity.pm b/src/snmp_standard/mode/entity.pm index 47f6b2d53..4d6247fbe 100644 --- a/src/snmp_standard/mode/entity.pm +++ b/src/snmp_standard/mode/entity.pm @@ -82,17 +82,15 @@ Can be: 'sensor'. =item B<--filter> Exclude some parts (comma seperated list) -Can also exclude specific instance: --filter=sensor,celsius.* +You can also exclude items from specific instances: --filter=sensor,celsius.* =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='sensor.celsius,OK,nonoperational' =item B<--warning> diff --git a/src/snmp_standard/mode/hardwaredevice.pm b/src/snmp_standard/mode/hardwaredevice.pm index fec8a88a0..cb5a9129f 100644 --- a/src/snmp_standard/mode/hardwaredevice.pm +++ b/src/snmp_standard/mode/hardwaredevice.pm @@ -77,17 +77,15 @@ Can be: 'device'. =item B<--filter> Exclude some parts (comma seperated list) -Can also exclude specific instance: --filter=device,network.* +You can also exclude items from specific instances: --filter=device,network.* =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='device.network,OK,down' =back diff --git a/src/snmp_standard/mode/hardwarefibrealliance.pm b/src/snmp_standard/mode/hardwarefibrealliance.pm index 97c1a53f9..5ff92b28c 100644 --- a/src/snmp_standard/mode/hardwarefibrealliance.pm +++ b/src/snmp_standard/mode/hardwarefibrealliance.pm @@ -100,17 +100,15 @@ Add literal description for instance value (used in filter, and threshold option =item B<--filter> Exclude some parts (comma seperated list) -Can also exclude specific instance: --filter=sensors,1 +You can also exclude items from specific instances: --filter=sensors,1 =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='sensors,CRITICAL,^(?!(ok)$)' =back diff --git a/src/snmp_standard/mode/interfaces.pm b/src/snmp_standard/mode/interfaces.pm index 040de6cff..e1a4bea35 100644 --- a/src/snmp_standard/mode/interfaces.pm +++ b/src/snmp_standard/mode/interfaces.pm @@ -1683,7 +1683,7 @@ Set the interface (number expected) ex: 1,2,... (empty means 'check all interfac =item B<--name> -Allows to use interface name with option --interface instead of interface oid index (Can be a regexp) +Allows you to define the interface (in option --interface) by name instead of OID index. The name matching mode supports regular expressions. =item B<--speed> diff --git a/src/snmp_standard/mode/listinterfaces.pm b/src/snmp_standard/mode/listinterfaces.pm index 76308a37a..f7063f615 100644 --- a/src/snmp_standard/mode/listinterfaces.pm +++ b/src/snmp_standard/mode/listinterfaces.pm @@ -389,7 +389,7 @@ Set the interface (number expected) ex: 1,2,... (empty means 'check all interfac =item B<--name> -Allows to use interface name with option --interface instead of interface oid index (Can be a regexp) +Allows you to define the interface (in option --interface) by name instead of OID index. The name matching mode supports regular expressions. =item B<--speed> diff --git a/src/storage/bdt/multistak/snmp/mode/hardware.pm b/src/storage/bdt/multistak/snmp/mode/hardware.pm index 10b912367..f16f3b6f9 100644 --- a/src/storage/bdt/multistak/snmp/mode/hardware.pm +++ b/src/storage/bdt/multistak/snmp/mode/hardware.pm @@ -109,18 +109,16 @@ Can be: 'module', 'device'. =item B<--filter> -Exclude some parts (comma seperated list) (Example: --filter=disk --filter=psu) -Can also exclude specific instance: --filter=module,1 +Exclude the items given as a comma-separated list (example: --filter=disk --filter=psu). +You can also exclude items from specific instances: --filter=module,1 =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='module,WARNING,N/A' =back diff --git a/src/storage/buffalo/terastation/snmp/mode/hardware.pm b/src/storage/buffalo/terastation/snmp/mode/hardware.pm index f331c4ac0..4121a8198 100644 --- a/src/storage/buffalo/terastation/snmp/mode/hardware.pm +++ b/src/storage/buffalo/terastation/snmp/mode/hardware.pm @@ -98,18 +98,16 @@ Can be: 'disk', 'iscsi', 'psu'. =item B<--filter> -Exclude some parts (comma seperated list) (Example: --filter=disk --filter=psu) -Can also exclude specific instance: --filter=psu,1 +Exclude the items given as a comma-separated list (example: --filter=disk --filter=psu). +You can also exclude items from specific instances: --filter=psu,1 =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,status,regexp). Example: --threshold-overload='disk,OK,^(?!(degrade)$)' =back diff --git a/src/storage/dell/compellent/snmp/mode/hardware.pm b/src/storage/dell/compellent/snmp/mode/hardware.pm index 7e3bc4b28..04033d4cd 100644 --- a/src/storage/dell/compellent/snmp/mode/hardware.pm +++ b/src/storage/dell/compellent/snmp/mode/hardware.pm @@ -82,18 +82,16 @@ Can be: 'ctrl', 'disk', 'diskfolder', 'encl', 'ctrlfan', 'ctrlpower', 'ctrlvolta =item B<--filter> -Exclude some parts (comma seperated list) (Example: --filter=ctrlfan --filter=enclpower) -Can also exclude specific instance: --filter=ctrlfan,1 +Exclude the items given as a comma-separated list (example: --filter=ctrlfan --filter=enclpower). +You can also exclude items from specific instances: --filter=ctrlfan,1 =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='ctrl,CRITICAL,^(?!(up)$)' =item B<--warning> diff --git a/src/storage/dell/equallogic/snmp/mode/hardware.pm b/src/storage/dell/equallogic/snmp/mode/hardware.pm index 5b7a08c44..666feb0e7 100644 --- a/src/storage/dell/equallogic/snmp/mode/hardware.pm +++ b/src/storage/dell/equallogic/snmp/mode/hardware.pm @@ -135,18 +135,16 @@ Can be: 'fan', 'psu', 'temperature', 'raid', 'disk', 'health'. =item B<--filter> -Exclude some parts (comma seperated list) (Example: --filter=fan --filter=psu) -Can also exclude specific instance: --filter=fan,1 +Exclude the items given as a comma-separated list (example: --filter=fan --filter=psu). +You can also exclude items from specific instances: --filter=fan,1 =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,status,regexp). Example: --threshold-overload='fan,CRITICAL,^(?!(normal)$)' =item B<--warning> diff --git a/src/storage/dell/fluidfs/snmp/mode/hardware.pm b/src/storage/dell/fluidfs/snmp/mode/hardware.pm index ad8c2a33a..f5889ec3b 100644 --- a/src/storage/dell/fluidfs/snmp/mode/hardware.pm +++ b/src/storage/dell/fluidfs/snmp/mode/hardware.pm @@ -84,18 +84,16 @@ Can be: 'overall', 'ad', 'extservers', 'substorage'. =item B<--filter> -Exclude some parts (comma seperated list) (Example: --filter=substorage) -Can also exclude specific instance: --filter=substorage,1 +Exclude the items given as a comma-separated list (example: --filter=substorage). +You can also exclude items from specific instances: --filter=substorage,1 =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='overall,WARNING,^(?!(optimal))' =back diff --git a/src/storage/dell/me4/restapi/mode/hardware.pm b/src/storage/dell/me4/restapi/mode/hardware.pm index 033c67a70..d1973ef50 100644 --- a/src/storage/dell/me4/restapi/mode/hardware.pm +++ b/src/storage/dell/me4/restapi/mode/hardware.pm @@ -156,17 +156,15 @@ Can be: 'controller', 'disk', 'fan', 'fru', 'psu', 'sensor', 'volume'. =item B<--filter> Exclude some parts (comma seperated list) -Can also exclude specific instance: --filter='sensor,Overall Sensor' +You can also exclude items from specific instances: --filter='sensor,Overall Sensor' =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='controller,OK,Operational but not redundant' =item B<--warning> diff --git a/src/storage/dell/powerstore/restapi/mode/hardware.pm b/src/storage/dell/powerstore/restapi/mode/hardware.pm index 9c28c250b..a637d9942 100644 --- a/src/storage/dell/powerstore/restapi/mode/hardware.pm +++ b/src/storage/dell/powerstore/restapi/mode/hardware.pm @@ -84,7 +84,7 @@ Can be: 'appliance', 'battery', 'dimm', 'disk', 'enclosure', 'fan', 'node', 'iom =item B<--filter> Exclude some parts (comma seperated list) -Can also exclude specific instance: --filter='disk,26018c5b69264a868e49119eec95b0a9' +You can also exclude items from specific instances: --filter='disk,26018c5b69264a868e49119eec95b0a9' =item B<--absent-problem> @@ -93,13 +93,11 @@ Can be specific or global: --absent-problem="fan,c41c5a99937e4953a180c65756f303f =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='disk,CRITICAL,Uninitialized' =back diff --git a/src/storage/emc/DataDomain/mode/hardware.pm b/src/storage/emc/DataDomain/mode/hardware.pm index a3f3aa3b6..69423848c 100644 --- a/src/storage/emc/DataDomain/mode/hardware.pm +++ b/src/storage/emc/DataDomain/mode/hardware.pm @@ -130,8 +130,8 @@ Can be: 'psu', 'fan', 'disk', 'temperature', 'battery'. =item B<--filter> -Exclude some parts (comma seperated list) (Example: --filter=fan --filter=psu) -Can also exclude specific instance: --filter=psu,3.3 +Exclude the items given as a comma-separated list (example: --filter=fan --filter=psu). +You can also exclude items from specific instances: --filter=psu,3.3 =item B<--absent-problem> @@ -140,13 +140,11 @@ Can be specific or global: --absent-problem=psu,1 =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='fan,CRITICAL,^(?!(ok)$)' =item B<--warning> diff --git a/src/storage/emc/celerra/local/mode/getreason.pm b/src/storage/emc/celerra/local/mode/getreason.pm index e6258020e..26d14c352 100644 --- a/src/storage/emc/celerra/local/mode/getreason.pm +++ b/src/storage/emc/celerra/local/mode/getreason.pm @@ -110,18 +110,16 @@ Can be: 'controlstation', 'datamover'. =item B<--filter> -Exclude some parts (comma seperated list) (Example: --filter=datamover) -Can also exclude specific instance: --filter=datamover,slot_2 +Exclude the items given as a comma-separated list (example: --filter=datamover). +You can also exclude items from specific instances: --filter=datamover,slot_2 =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='datamover,CRITICAL,^(?!(normal)$)' =back diff --git a/src/storage/emc/isilon/snmp/mode/hardware.pm b/src/storage/emc/isilon/snmp/mode/hardware.pm index 70986a9af..965b12edf 100644 --- a/src/storage/emc/isilon/snmp/mode/hardware.pm +++ b/src/storage/emc/isilon/snmp/mode/hardware.pm @@ -81,18 +81,16 @@ Can be: 'fan', 'disk', 'temperature', 'power'. =item B<--filter> -Exclude some parts (comma seperated list) (Example: --filter=fan --filter=power) -Can also exclude specific instance: --filter=power,3.3 +Exclude the items given as a comma-separated list (example: --filter=fan --filter=power). +You can also exclude items from specific instances: --filter=power,3.3 =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='fan,CRITICAL,^(?!(ok)$)' =item B<--warning> diff --git a/src/storage/emc/symmetrix/dmx34/local/mode/hardware.pm b/src/storage/emc/symmetrix/dmx34/local/mode/hardware.pm index ded2f8614..dbc7a5134 100644 --- a/src/storage/emc/symmetrix/dmx34/local/mode/hardware.pm +++ b/src/storage/emc/symmetrix/dmx34/local/mode/hardware.pm @@ -262,18 +262,16 @@ Can be: 'director', 'xcm', 'disk', 'memory', 'config', 'fru', 'test' =item B<--filter> -Exclude some parts (comma seperated list) (Example: --filter=director --filter=xcm) -Can also exclude specific instance: --filter=director,1 +Exclude the items given as a comma-separated list (example: --filter=director --filter=xcm). +You can also exclude items from specific instances: --filter=director,1 =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='director,CRITICAL,^(?!(online)$)' =item B<--warning> diff --git a/src/storage/emc/symmetrix/vmax/local/mode/hardware.pm b/src/storage/emc/symmetrix/vmax/local/mode/hardware.pm index 24dfc9165..150182032 100644 --- a/src/storage/emc/symmetrix/vmax/local/mode/hardware.pm +++ b/src/storage/emc/symmetrix/vmax/local/mode/hardware.pm @@ -281,18 +281,16 @@ Can be: 'module', 'temperature', 'director, 'cabling', 'power', 'voltage', 'spar =item B<--filter> -Exclude some parts (comma seperated list) (Example: --filter=temperature --filter=module) -Can also exclude specific instance: --filter=temperature,ES-PWS-A ES-4 +Exclude the items given as a comma-separated list (example: --filter=temperature --filter=module). +You can also exclude items from specific instances: --filter=temperature,ES-PWS-A ES-4 =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='director,WARNING,^(?!(OK)$)' =item B<--warning> diff --git a/src/storage/emc/unisphere/restapi/mode/hardware.pm b/src/storage/emc/unisphere/restapi/mode/hardware.pm index 263b1d5ce..51f903ff9 100644 --- a/src/storage/emc/unisphere/restapi/mode/hardware.pm +++ b/src/storage/emc/unisphere/restapi/mode/hardware.pm @@ -81,17 +81,15 @@ Can be: 'disk', 'fan', 'iomodule', 'memmodule', 'psu', 'dpe', 'battery', 'ssd', =item B<--filter> Exclude some parts (comma seperated list) -Can also exclude specific instance: --filter='disk,dpe_disk_6' +You can also exclude items from specific instances: --filter='disk,dpe_disk_6' =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='disk,OK,ok_but' =item B<--warning> diff --git a/src/storage/emc/xtremio/restapi/mode/clusterhealth.pm b/src/storage/emc/xtremio/restapi/mode/clusterhealth.pm index 79545bb6c..55710753e 100644 --- a/src/storage/emc/xtremio/restapi/mode/clusterhealth.pm +++ b/src/storage/emc/xtremio/restapi/mode/clusterhealth.pm @@ -205,7 +205,7 @@ Check cluster health indicators ('consistency-state','shared-memory-efficiency-l =item B<--filter> Filter some parts (comma seperated list) -Can also exclude specific instance: --filter=cluster,CLUSTER-NAME +You can also exclude items from specific instances: --filter=cluster,CLUSTER-NAME =item B<--threshold-overload> diff --git a/src/storage/emc/xtremio/restapi/mode/ssdendurance.pm b/src/storage/emc/xtremio/restapi/mode/ssdendurance.pm index 1b1b04b41..a4251ac0b 100644 --- a/src/storage/emc/xtremio/restapi/mode/ssdendurance.pm +++ b/src/storage/emc/xtremio/restapi/mode/ssdendurance.pm @@ -152,7 +152,7 @@ Check SSDs endurance level (100% is the best value) =item B<--filter> Filter some parts (comma seperated list) -Can also exclude specific instance: --filter=ssds,SSD-NAME-NUMBER +You can also exclude items from specific instances: --filter=ssds,SSD-NAME-NUMBER =item B<--warning> diff --git a/src/storage/emc/xtremio/restapi/mode/xenvscpu.pm b/src/storage/emc/xtremio/restapi/mode/xenvscpu.pm index 455c22efc..d9ba638d8 100644 --- a/src/storage/emc/xtremio/restapi/mode/xenvscpu.pm +++ b/src/storage/emc/xtremio/restapi/mode/xenvscpu.pm @@ -133,7 +133,7 @@ Check Xenvs CPU usage =item B<--filter> Filter some parts (comma seperated list) -Can also exclude specific instance: --filter=cpu,XENVS-NAME-NUMBER +You can also exclude items from specific instances: --filter=cpu,XENVS-NAME-NUMBER =item B<--warning> diff --git a/src/storage/emc/xtremio/restapi/mode/xenvsstate.pm b/src/storage/emc/xtremio/restapi/mode/xenvsstate.pm index a9ebe2dd5..59d592cd8 100644 --- a/src/storage/emc/xtremio/restapi/mode/xenvsstate.pm +++ b/src/storage/emc/xtremio/restapi/mode/xenvsstate.pm @@ -174,12 +174,11 @@ Check Xenvs state =item B<--filter> Filter some parts (comma seperated list) -Can also exclude specific instance: --filter=device,cluster-1_xxxx +You can also exclude items from specific instances: --filter=device,cluster-1_xxxx =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='xenvs_state,CRITICAL,^(?!(ok)$)' =back diff --git a/src/storage/fujitsu/eternus/dx/ssh/mode/physicaldisk.pm b/src/storage/fujitsu/eternus/dx/ssh/mode/physicaldisk.pm index 6b6ed90db..4983e4f82 100644 --- a/src/storage/fujitsu/eternus/dx/ssh/mode/physicaldisk.pm +++ b/src/storage/fujitsu/eternus/dx/ssh/mode/physicaldisk.pm @@ -201,18 +201,16 @@ Command used: show disks =item B<--filter> Exclude some parts (comma seperated list) -Can also exclude specific instance: --filter=disk,CE-Disk#0 +You can also exclude items from specific instances: --filter=disk,CE-Disk#0 =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,status,regexp). Example: --threshold-overload='disk,CRITICAL,^(?!(Available|Spare)$)' =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). =back diff --git a/src/storage/fujitsu/eternus/dx/ssh/mode/psu.pm b/src/storage/fujitsu/eternus/dx/ssh/mode/psu.pm index c35b1074d..162eb96cb 100644 --- a/src/storage/fujitsu/eternus/dx/ssh/mode/psu.pm +++ b/src/storage/fujitsu/eternus/dx/ssh/mode/psu.pm @@ -234,18 +234,16 @@ Command used: show enclosure-status -type all =item B<--filter> Exclude some parts (comma seperated list) -Can also exclude specific instance: --filter=psu,ce#0_0 +You can also exclude items from specific instances: --filter=psu,ce#0_0 =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,status,regexp). Example: --threshold-overload='psu,CRITICAL,^(?!(Normal)$)' =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). =back diff --git a/src/storage/fujitsu/eternus/dx/ssh/mode/raidgroups.pm b/src/storage/fujitsu/eternus/dx/ssh/mode/raidgroups.pm index a5b5d8043..b2393d836 100644 --- a/src/storage/fujitsu/eternus/dx/ssh/mode/raidgroups.pm +++ b/src/storage/fujitsu/eternus/dx/ssh/mode/raidgroups.pm @@ -232,8 +232,7 @@ Command used: show raid-groups -csv =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,status,regexp). Example: --threshold-overload='rg,CRITICAL,^(?!(Available|Spare)$)' =item B<--filter-name> diff --git a/src/storage/hitachi/standard/snmp/mode/hardware.pm b/src/storage/hitachi/standard/snmp/mode/hardware.pm index 9c396b795..de16a5d62 100644 --- a/src/storage/hitachi/standard/snmp/mode/hardware.pm +++ b/src/storage/hitachi/standard/snmp/mode/hardware.pm @@ -82,18 +82,16 @@ Can be: 'component', 'dkc', 'dku'. =item B<--filter> -Exclude some parts (comma seperated list) (Example: --filter=dkc) -Can also exclude specific instance: --filter=dkc,1.fan +Exclude the items given as a comma-separated list (example: --filter=dkc). +You can also exclude items from specific instances: --filter=dkc,1.fan =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='component,NAS Server,OK,abnormal' =back diff --git a/src/storage/hp/3par/ssh/mode/hardware.pm b/src/storage/hp/3par/ssh/mode/hardware.pm index 0a2ae8748..05cfce27c 100644 --- a/src/storage/hp/3par/ssh/mode/hardware.pm +++ b/src/storage/hp/3par/ssh/mode/hardware.pm @@ -93,8 +93,8 @@ Can be: 'battery', 'cim', 'port', 'node', 'disk', 'psu', 'sensor', 'wsapi'. =item B<--filter> -Exclude some parts (comma seperated list) (Example: --filter=battery --filter=cim) -Can also exclude specific instance: --filter=port,free +Exclude the items given as a comma-separated list (example: --filter=battery --filter=cim). +You can also exclude items from specific instances: --filter=port,free =item B<--add-name-instance> @@ -102,13 +102,11 @@ Add literal description for instance value (used in filter and threshold options =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='battery,OK,degraded' =item B<--warning> diff --git a/src/storage/hp/eva/cli/mode/hardware.pm b/src/storage/hp/eva/cli/mode/hardware.pm index dbcc4cebd..242523a6a 100644 --- a/src/storage/hp/eva/cli/mode/hardware.pm +++ b/src/storage/hp/eva/cli/mode/hardware.pm @@ -81,8 +81,8 @@ Can be: 'fan'. =item B<--filter> -Exclude some parts (comma seperated list) (Example: --filter=temperature --filter=fan) -Can also exclude specific instance: --filter="fan,Fan Block 1" +Exclude the items given as a comma-separated list (example: --filter=temperature --filter=fan). +You can also exclude items from specific instances: --filter="fan,Fan Block 1" =item B<--absent-problem> @@ -91,13 +91,11 @@ Can be specific or global: --absent-problem="fan,Fan Block 1" =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='fan,OK,degraded' =item B<--warning> diff --git a/src/storage/hp/lefthand/snmp/mode/hardware.pm b/src/storage/hp/lefthand/snmp/mode/hardware.pm index 847b06e74..397c258c9 100644 --- a/src/storage/hp/lefthand/snmp/mode/hardware.pm +++ b/src/storage/hp/lefthand/snmp/mode/hardware.pm @@ -86,18 +86,16 @@ Can be: 'fan', 'rcc', 'temperature', 'psu', 'voltage', 'device', 'rc', 'ro'. =item B<--filter> -Exclude some parts (comma seperated list) (Example: --filter=fan --filter=psu) -Can also exclude specific instance: --filter=fan,1 +Exclude the items given as a comma-separated list (example: --filter=fan --filter=psu). +You can also exclude items from specific instances: --filter=fan,1 =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='psu,CRITICAL,fail' =item B<--warning> diff --git a/src/storage/hp/msl/snmp/mode/hardware.pm b/src/storage/hp/msl/snmp/mode/hardware.pm index 8b13173cc..4eaa78002 100644 --- a/src/storage/hp/msl/snmp/mode/hardware.pm +++ b/src/storage/hp/msl/snmp/mode/hardware.pm @@ -77,13 +77,11 @@ Can be: 'library'. =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='library,CRITICAL,^(?!(ok)$)' =back diff --git a/src/storage/hp/p2000/xmlapi/mode/health.pm b/src/storage/hp/p2000/xmlapi/mode/health.pm index 431eb19a1..aa89ead43 100644 --- a/src/storage/hp/p2000/xmlapi/mode/health.pm +++ b/src/storage/hp/p2000/xmlapi/mode/health.pm @@ -94,18 +94,16 @@ Can be: 'disk', 'enclosure', 'fan', 'fru', 'psu', 'saslink', 'sensor', 'vdisk'. =item B<--filter> -Exclude some parts (comma seperated list) (Example: --filter=fru --filter=enclosure) -Can also exclude specific instance: --filter=disk,1 +Exclude the items given as a comma-separated list (example: --filter=fru --filter=enclosure). +You can also exclude items from specific instances: --filter=disk,1 =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='disk,OK,unknown' =item B<--warning> diff --git a/src/storage/hp/storeonce/4/restapi/mode/hardwarestorage.pm b/src/storage/hp/storeonce/4/restapi/mode/hardwarestorage.pm index cdad48b60..4602797bf 100644 --- a/src/storage/hp/storeonce/4/restapi/mode/hardwarestorage.pm +++ b/src/storage/hp/storeonce/4/restapi/mode/hardwarestorage.pm @@ -121,18 +121,16 @@ Can be: 'drive', 'driveencl', 'fan', 'iomodule', 'pool', 'psu', 'temperature'. =item B<--filter> -Exclude some parts (comma seperated list) (Example: --filter=psu) -Can also exclude specific instance: --filter=fan,fan slot 1 +Exclude the items given as a comma-separated list (example: --filter=psu). +You can also exclude items from specific instances: --filter=fan,fan slot 1 =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,status,regexp). Example: --threshold-overload='fan,WARNING,missing' =item B<--warning> diff --git a/src/storage/hp/storeonce/ssh/mode/hardware.pm b/src/storage/hp/storeonce/ssh/mode/hardware.pm index aad52e99c..5203ccb70 100644 --- a/src/storage/hp/storeonce/ssh/mode/hardware.pm +++ b/src/storage/hp/storeonce/ssh/mode/hardware.pm @@ -101,18 +101,16 @@ Can be: 'hardware', 'serviceset'. =item B<--filter> -Exclude some parts (comma seperated list) (Example: --filter=hardware --filter=serviceset) -Can also exclude specific instance: --filter=hardware,storageCluster +Exclude the items given as a comma-separated list (example: --filter=hardware --filter=serviceset). +You can also exclude items from specific instances: --filter=hardware,storageCluster =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='hardware,networkSwitch,OK,degraded' =back diff --git a/src/storage/huawei/oceanstor/snmp/mode/hardware.pm b/src/storage/huawei/oceanstor/snmp/mode/hardware.pm index 095f911c3..25cb418dd 100644 --- a/src/storage/huawei/oceanstor/snmp/mode/hardware.pm +++ b/src/storage/huawei/oceanstor/snmp/mode/hardware.pm @@ -84,18 +84,16 @@ Add literal description for instance value (used in filter and threshold options =item B<--filter> -Exclude some parts (comma seperated list) (Example: --filter=psu) -Can also exclude specific instance: --filter=psu,0.0A.0 +Exclude the items given as a comma-separated list (example: --filter=psu). +You can also exclude items from specific instances: --filter=psu,0.0A.0 =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='psu,CRITICAL,degraded' =item B<--warning> diff --git a/src/storage/ibm/fs900/snmp/mode/hardware.pm b/src/storage/ibm/fs900/snmp/mode/hardware.pm index 9b14fba9c..483735ef9 100644 --- a/src/storage/ibm/fs900/snmp/mode/hardware.pm +++ b/src/storage/ibm/fs900/snmp/mode/hardware.pm @@ -84,8 +84,8 @@ Can be: 'battery', 'fan', 'fibrechannel', 'flashcard', 'psu'. =item B<--filter> -Exclude some parts (comma seperated list) (Example: --filter=fan --filter=psu) -Can also exclude specific instance: --filter=fan,1 +Exclude the items given as a comma-separated list (example: --filter=fan --filter=psu). +You can also exclude items from specific instances: --filter=fan,1 =item B<--absent-problem> @@ -94,13 +94,11 @@ Can be specific or global: --absent-problem=fan,2 =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='psu,OK,error' =item B<--warning> diff --git a/src/storage/ibm/storwize/ssh/mode/hardware.pm b/src/storage/ibm/storwize/ssh/mode/hardware.pm index fc6d592a3..6ced5388c 100644 --- a/src/storage/ibm/storwize/ssh/mode/hardware.pm +++ b/src/storage/ibm/storwize/ssh/mode/hardware.pm @@ -109,18 +109,16 @@ Add literal description for instance value (used in filter, absent-problem and t =item B<--filter> -Exclude some parts (comma seperated list) (Example: --filter=host --filter=enclosurecanister) -Can also exclude specific instance: --filter=host,10 +Exclude the items given as a comma-separated list (example: --filter=host --filter=enclosurecanister). +You can also exclude items from specific instances: --filter=host,10 =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: ---threshold-overload='host,.*,OK,degraded' =item B<--warning> diff --git a/src/storage/ibm/ts2900/snmp/mode/hardware.pm b/src/storage/ibm/ts2900/snmp/mode/hardware.pm index 047520466..7f97a284a 100644 --- a/src/storage/ibm/ts2900/snmp/mode/hardware.pm +++ b/src/storage/ibm/ts2900/snmp/mode/hardware.pm @@ -76,17 +76,15 @@ Can be: 'robot', 'drive', 'ctrl', 'ctrlpower', 'magazine'. =item B<--filter> Exclude some parts (comma seperated list) -Can also exclude specific instance: --filter=ctrl,1 +You can also exclude items from specific instances: --filter=ctrl,1 =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='drive,OK,needClean' =back diff --git a/src/storage/lenovo/iomega/snmp/mode/hardware.pm b/src/storage/lenovo/iomega/snmp/mode/hardware.pm index 2dc523304..f830ec24f 100644 --- a/src/storage/lenovo/iomega/snmp/mode/hardware.pm +++ b/src/storage/lenovo/iomega/snmp/mode/hardware.pm @@ -86,18 +86,16 @@ Can be: 'raid', 'disk', 'voltage', 'temperature', 'fan'. =item B<--filter> -Exclude some parts (comma seperated list) (Example: --filter=fan) -Can also exclude specific instance: --filter=fan,1 +Exclude the items given as a comma-separated list (example: --filter=fan). +You can also exclude items from specific instances: --filter=fan,1 =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='disk,WARNING,missing' =item B<--warning> diff --git a/src/storage/lenovo/iomega/snmp/mode/interfaces.pm b/src/storage/lenovo/iomega/snmp/mode/interfaces.pm index 1ec9db8f2..b1ac6bf88 100644 --- a/src/storage/lenovo/iomega/snmp/mode/interfaces.pm +++ b/src/storage/lenovo/iomega/snmp/mode/interfaces.pm @@ -132,7 +132,7 @@ Set the interface (number expected) ex: 1,2,... (empty means 'check all interfac =item B<--name> -Allows to use interface name with option --interface instead of interface oid index (Can be a regexp) +Allows you to define the interface (in option --interface) by name instead of OID index. The name matching mode supports regular expressions. =item B<--speed> diff --git a/src/storage/netapp/ontap/restapi/mode/hardware.pm b/src/storage/netapp/ontap/restapi/mode/hardware.pm index b0ef1d260..f8594ac75 100644 --- a/src/storage/netapp/ontap/restapi/mode/hardware.pm +++ b/src/storage/netapp/ontap/restapi/mode/hardware.pm @@ -101,17 +101,15 @@ Can be: 'shelf', 'bay', 'fru'. =item B<--filter> Exclude some parts (comma seperated list) -Can also exclude specific instance: --filter='fru,-' +You can also exclude items from specific instances: --filter='fru,-' =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='fru,OK,error' =back diff --git a/src/storage/netapp/ontap/snmp/mode/nvram.pm b/src/storage/netapp/ontap/snmp/mode/nvram.pm index dece42fb0..3b6e03a87 100644 --- a/src/storage/netapp/ontap/snmp/mode/nvram.pm +++ b/src/storage/netapp/ontap/snmp/mode/nvram.pm @@ -164,8 +164,7 @@ Check current status of the NVRAM batteries. =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,status,regexp). Example: --threshold-overload='nvram,CRITICAL,^(?!(ok)$)' =back diff --git a/src/storage/netapp/ontap/snmp/mode/partnerstatus.pm b/src/storage/netapp/ontap/snmp/mode/partnerstatus.pm index 775e90e1b..c70ecc061 100644 --- a/src/storage/netapp/ontap/snmp/mode/partnerstatus.pm +++ b/src/storage/netapp/ontap/snmp/mode/partnerstatus.pm @@ -188,8 +188,7 @@ Check status of clustered failover partner. =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,status,regexp). Example: --threshold-overload='partner,CRITICAL,^(?!(ok)$)' =back diff --git a/src/storage/netapp/ontap/snmp/mode/shelf.pm b/src/storage/netapp/ontap/snmp/mode/shelf.pm index 3819e2b28..5f567e047 100644 --- a/src/storage/netapp/ontap/snmp/mode/shelf.pm +++ b/src/storage/netapp/ontap/snmp/mode/shelf.pm @@ -129,8 +129,8 @@ Can be: 'psu', 'fan', 'communication', 'voltage', 'temperature', 'electronics', =item B<--filter> -Exclude some parts (comma seperated list) (Example: --filter=fan --filter=psu) -Can also exclude specific instance: --filter=psu,41239F00647-A +Exclude the items given as a comma-separated list (example: --filter=fan --filter=psu). +You can also exclude items from specific instances: --filter=psu,41239F00647-A =item B<--absent-problem> @@ -139,13 +139,11 @@ Can be specific or global: --absent-problem=fan,41239F00647-fan02 =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='gfc,CRITICAL,^(?!(Online)$)' =item B<--warning> diff --git a/src/storage/netapp/santricity/restapi/mode/hardware.pm b/src/storage/netapp/santricity/restapi/mode/hardware.pm index a487e76fc..266719460 100644 --- a/src/storage/netapp/santricity/restapi/mode/hardware.pm +++ b/src/storage/netapp/santricity/restapi/mode/hardware.pm @@ -166,17 +166,15 @@ Can be: 'storage', 'ctrl', 'battery', 'board', 'cbd', 'cmd', 'drive', 'psu', 'fa =item B<--filter> Exclude some parts (comma seperated list) -Can also exclude specific instance: --filter='drive,010000005000C500C244251B0000000000000000' +You can also exclude items from specific instances: --filter='drive,010000005000C500C244251B0000000000000000' =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='drive,OK,preFailCopy' =item B<--warning> diff --git a/src/storage/netgear/readynas/snmp/mode/hardware.pm b/src/storage/netgear/readynas/snmp/mode/hardware.pm index f3d40b355..b07407028 100644 --- a/src/storage/netgear/readynas/snmp/mode/hardware.pm +++ b/src/storage/netgear/readynas/snmp/mode/hardware.pm @@ -115,18 +115,16 @@ Can be: 'psu', 'fan', 'disk', 'volume', 'temperature'. =item B<--filter> -Exclude some parts (comma seperated list) (Example: --filter=psu) -Can also exclude specific instance: --filter=psu,1 +Exclude the items given as a comma-separated list (example: --filter=psu). +You can also exclude items from specific instances: --filter=psu,1 =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='psu,CRITICAL,^(?!(on)$)' =item B<--warning> diff --git a/src/storage/nimble/restapi/mode/hardware.pm b/src/storage/nimble/restapi/mode/hardware.pm index 9459214a2..45f104203 100644 --- a/src/storage/nimble/restapi/mode/hardware.pm +++ b/src/storage/nimble/restapi/mode/hardware.pm @@ -116,18 +116,16 @@ Can be: 'disk', 'fan', 'psu', 'temperature'. =item B<--filter> -Exclude some parts (comma seperated list) (Example: --filter=psu) -Can also exclude specific instance: --filter=fan,A:fan1 +Exclude the items given as a comma-separated list (example: --filter=psu). +You can also exclude items from specific instances: --filter=fan,A:fan1 =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='sensor,WARNING,missing' =item B<--warning> diff --git a/src/storage/oracle/zs/restapi/mode/hardware.pm b/src/storage/oracle/zs/restapi/mode/hardware.pm index 8682ca3de..41546c03c 100644 --- a/src/storage/oracle/zs/restapi/mode/hardware.pm +++ b/src/storage/oracle/zs/restapi/mode/hardware.pm @@ -80,17 +80,15 @@ Can be: 'chassis', 'cpu', 'disk', 'fan', 'memory', 'psu', 'slot'. =item B<--filter> Exclude some parts (comma seperated list) -Can also exclude specific instance: --filter='disk,hdd 0' +You can also exclude items from specific instances: --filter='disk,hdd 0' =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='disk,WARNING,faulted' =back diff --git a/src/storage/oracle/zs/snmp/mode/hardware.pm b/src/storage/oracle/zs/snmp/mode/hardware.pm index 722583a6f..6dceb31ac 100644 --- a/src/storage/oracle/zs/snmp/mode/hardware.pm +++ b/src/storage/oracle/zs/snmp/mode/hardware.pm @@ -77,17 +77,15 @@ Can be: 'module'. =item B<--filter> Exclude some parts (comma seperated list) -Can also exclude specific instance: --filter=module,1 +You can also exclude items from specific instances: --filter=module,1 =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='module,OK,other' =back diff --git a/src/storage/overland/neo/snmp/mode/hardware.pm b/src/storage/overland/neo/snmp/mode/hardware.pm index 8d032c179..43251df61 100644 --- a/src/storage/overland/neo/snmp/mode/hardware.pm +++ b/src/storage/overland/neo/snmp/mode/hardware.pm @@ -83,18 +83,16 @@ Can be: 'drive', 'library', 'eventlog'. =item B<--filter> -Exclude some parts (comma seperated list) (Example: --filter=drive) -Can also exclude specific instance: --filter=drive,1 +Exclude the items given as a comma-separated list (example: --filter=drive). +You can also exclude items from specific instances: --filter=drive,1 =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='drive,OK,notInitialized' =back diff --git a/src/storage/purestorage/flasharray/legacy/restapi/mode/hardware.pm b/src/storage/purestorage/flasharray/legacy/restapi/mode/hardware.pm index 12951954c..c5071b99a 100644 --- a/src/storage/purestorage/flasharray/legacy/restapi/mode/hardware.pm +++ b/src/storage/purestorage/flasharray/legacy/restapi/mode/hardware.pm @@ -80,17 +80,15 @@ Can be: 'entity'. =item B<--filter> Exclude some parts (comma seperated list) -Can also exclude specific instance: --filter=entity,CT1.FC0 +You can also exclude items from specific instances: --filter=entity,CT1.FC0 =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='entity,OK,device_off' =item B<--warning> diff --git a/src/storage/purestorage/flasharray/v2/restapi/mode/hardware.pm b/src/storage/purestorage/flasharray/v2/restapi/mode/hardware.pm index b8a340767..4379f534d 100644 --- a/src/storage/purestorage/flasharray/v2/restapi/mode/hardware.pm +++ b/src/storage/purestorage/flasharray/v2/restapi/mode/hardware.pm @@ -80,18 +80,16 @@ Can be: 'chassis', 'controller', 'cooling', 'drive', 'ethport', 'fcport', 'nvram =item B<--filter> -Exclude some parts (comma seperated list) (Example: --filter=controller) -Can also exclude specific instance: --filter=drive,1 +Exclude the items given as a comma-separated list (example: --filter=controller). +You can also exclude items from specific instances: --filter=drive,1 =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='temperature,OK,identifying' =item B<--warning> diff --git a/src/storage/purestorage/flashblade/v2/restapi/mode/hardware.pm b/src/storage/purestorage/flashblade/v2/restapi/mode/hardware.pm index fa04d10f4..22e362142 100644 --- a/src/storage/purestorage/flashblade/v2/restapi/mode/hardware.pm +++ b/src/storage/purestorage/flashblade/v2/restapi/mode/hardware.pm @@ -81,18 +81,16 @@ Can be: 'chassis', 'ethport', 'fan', 'fb', 'fm', 'mgmtport', 'psu'. =item B<--filter> -Exclude some parts (comma seperated list) (Example: --filter=fan) -Can also exclude specific instance: --filter=fan,1 +Exclude the items given as a comma-separated list (example: --filter=fan). +You can also exclude items from specific instances: --filter=fan,1 =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='fb,WARNING,unused' =back diff --git a/src/storage/qnap/snmp/mode/hardware.pm b/src/storage/qnap/snmp/mode/hardware.pm index 0ec8551a8..63e7e0657 100644 --- a/src/storage/qnap/snmp/mode/hardware.pm +++ b/src/storage/qnap/snmp/mode/hardware.pm @@ -126,8 +126,8 @@ Can be: 'disk', 'fan', 'mdisk', 'psu', 'raid', 'temperature'. =item B<--filter> -Exclude some parts (comma seperated list) (Example: --filter=disk) -Can also exclude specific instance: --filter=disk,1 +Exclude the items given as a comma-separated list (example: --filter=disk). +You can also exclude items from specific instances: --filter=disk,1 =item B<--absent-problem> @@ -136,13 +136,11 @@ Can be specific or global: --absent-problem=disk =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,status,regexp). Example: --threshold-overload='disk,CRITICAL,^(?!(ready)$)' =item B<--warning> diff --git a/src/storage/qsan/nas/snmp/mode/hardware.pm b/src/storage/qsan/nas/snmp/mode/hardware.pm index f95e940c4..92ae032bf 100644 --- a/src/storage/qsan/nas/snmp/mode/hardware.pm +++ b/src/storage/qsan/nas/snmp/mode/hardware.pm @@ -89,18 +89,16 @@ Can be: 'disk', 'voltage', 'temperature', 'psu', 'fan' =item B<--filter> -Exclude some parts (comma seperated list) (Example: --filter=fan --filter=psu) -Can also exclude specific instance: --filter=fan,1 +Exclude the items given as a comma-separated list (example: --filter=fan --filter=psu). +You can also exclude items from specific instances: --filter=fan,1 =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='psu,WARNING,^(?!(OK)$)' =item B<--warning> diff --git a/src/storage/quantum/scalar/snmp/mode/hardware.pm b/src/storage/quantum/scalar/snmp/mode/hardware.pm index 6e85303fd..188ed363a 100644 --- a/src/storage/quantum/scalar/snmp/mode/hardware.pm +++ b/src/storage/quantum/scalar/snmp/mode/hardware.pm @@ -97,18 +97,16 @@ Can be: 'global', 'subsystem', 'physicaldrive', 'psu', 'voltage', 'humidity', 't =item B<--filter> -Exclude some parts (comma seperated list) (Example: --filter=subsystem) -Can also exclude specific instance: --filter=physicaldrive,1 +Exclude the items given as a comma-separated list (example: --filter=subsystem). +You can also exclude items from specific instances: --filter=physicaldrive,1 =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='physicaldrive.status,OK,yellowWarning' =item B<--warning> diff --git a/src/storage/storagetek/sl/snmp/mode/hardware.pm b/src/storage/storagetek/sl/snmp/mode/hardware.pm index f486bf39e..7f7c3a0cd 100644 --- a/src/storage/storagetek/sl/snmp/mode/hardware.pm +++ b/src/storage/storagetek/sl/snmp/mode/hardware.pm @@ -84,18 +84,16 @@ Can be: 'interface', 'temperature', 'fan', 'psu', 'robot', 'elevator', 'controll =item B<--filter> -Exclude some parts (comma seperated list) (Example: --filter=controller) -Can also exclude specific instance: --filter=cap,1 +Exclude the items given as a comma-separated list (example: --filter=controller). +You can also exclude items from specific instances: --filter=cap,1 =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='robot,CRITICAL,warning' =item B<--warning> diff --git a/src/storage/synology/snmp/mode/hardware.pm b/src/storage/synology/snmp/mode/hardware.pm index 14fa27aac..036e3c419 100644 --- a/src/storage/synology/snmp/mode/hardware.pm +++ b/src/storage/synology/snmp/mode/hardware.pm @@ -119,18 +119,16 @@ Can be: 'psu', 'fan', 'disk', 'raid', 'system'. =item B<--filter> -Exclude some parts (comma seperated list) (Example: --filter=psu) -Can also exclude specific instance: --filter=psu,1 +Exclude the items given as a comma-separated list (example: --filter=psu). +You can also exclude items from specific instances: --filter=psu,1 =item B<--no-component> -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). +Define the expected status if no components are found (default: critical). =item B<--threshold-overload> -Set to overload default threshold values (syntax: section,[instance,]status,regexp) -It used before default thresholds (order stays). +Use this option to override the status returned by the plugin when the status label matches a regular expression (syntax: section,[instance,]status,regexp). Example: --threshold-overload='psu,CRITICAL,^(?!(on)$)' =item B<--warning> From 5c3626bf1b6c8c67845961b0942da8cc57f8e328 Mon Sep 17 00:00:00 2001 From: Kevin Duret Date: Thu, 29 Jun 2023 17:08:25 +0200 Subject: [PATCH 21/39] fix(packaging): fix debian dependencies (#4521) Refs: MON-19219 --- .github/packaging/centreon-plugin.yaml.template | 2 +- .github/workflows/plugin-delivery.yml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/packaging/centreon-plugin.yaml.template b/.github/packaging/centreon-plugin.yaml.template index 798020b46..b4afc351b 100644 --- a/.github/packaging/centreon-plugin.yaml.template +++ b/.github/packaging/centreon-plugin.yaml.template @@ -72,7 +72,7 @@ overrides: libcrypt-argon2-perl, libkeepass-reader-perl, libdatetime-perl, - @RPM_DEPENDENCIES@ + @DEB_DEPENDENCIES@ ] conflicts: [@DEB_CONFLICTS@] diff --git a/.github/workflows/plugin-delivery.yml b/.github/workflows/plugin-delivery.yml index 81cdb2f6b..42a454899 100644 --- a/.github/workflows/plugin-delivery.yml +++ b/.github/workflows/plugin-delivery.yml @@ -83,6 +83,7 @@ jobs: artifactory_token: ${{ secrets.artifactory_token }} deliver-rpm-legacy: + if: ${{ inputs.stability == 'stable' }} runs-on: [self-hosted, common] strategy: fail-fast: false @@ -127,6 +128,7 @@ jobs: artifactory_token: ${{ secrets.artifactory_token }} deliver-deb-legacy: + if: ${{ inputs.stability == 'stable' }} runs-on: [self-hosted, common] strategy: fail-fast: false From be1a646699b4d244d0aa0cbf263a60ff907b39f2 Mon Sep 17 00:00:00 2001 From: qgarnier Date: Fri, 30 Jun 2023 12:03:07 +0200 Subject: [PATCH 22/39] (plugin) network::oneaccess::snmp - mode cells-radio add option --custom-perfdata-instances (#4492) --- src/centreon/plugins/templates/counter.pm | 26 ++++++- src/network/oneaccess/snmp/mode/cellsradio.pm | 74 ++++++++++++++----- 2 files changed, 80 insertions(+), 20 deletions(-) diff --git a/src/centreon/plugins/templates/counter.pm b/src/centreon/plugins/templates/counter.pm index 5a19367cd..61340eb02 100644 --- a/src/centreon/plugins/templates/counter.pm +++ b/src/centreon/plugins/templates/counter.pm @@ -766,7 +766,31 @@ sub change_macros { } } } - + +sub custom_perfdata_instances { + my ($self, %options) = @_; + + my $instances = []; + foreach (split(/\s+/, $options{instances})) { + while (/%\((.+?)\)/g) { + my $name = $1; + if (!defined($options{labels}->{$name})) { + $self->{output}->add_option_msg(short_msg => "option $options{option_name} unsupported label: %($name)"); + $self->{output}->option_exit(); + } + + push @$instances, $name; + } + } + + if (scalar(@$instances) <= 0) { + $self->{output}->add_option_msg(short_msg => "option $options{option_name} need at least one label"); + $self->{output}->option_exit(); + } + + return $instances; +} + 1; __END__ diff --git a/src/network/oneaccess/snmp/mode/cellsradio.pm b/src/network/oneaccess/snmp/mode/cellsradio.pm index 7e1743db0..a9ff368c1 100644 --- a/src/network/oneaccess/snmp/mode/cellsradio.pm +++ b/src/network/oneaccess/snmp/mode/cellsradio.pm @@ -29,12 +29,14 @@ use centreon::plugins::templates::catalog_functions qw(catalog_status_threshold_ sub custom_signal_perfdata { my ($self) = @_; + my $instances = []; + foreach (@{$self->{instance_mode}->{custom_perfdata_instances}}) { + push @$instances, $self->{result_values}->{$_}; + } + $self->{output}->perfdata_add( nlabel => $self->{nlabel}, - instances => [ - $self->{result_values}->{cellId}, - $self->{result_values}->{operator} - ], + instances => $instances, value => $self->{result_values}->{ $self->{key_values}->[0]->{name} }, warning => $self->{perfdata}->get_perfdata_for_output(label => 'warning-' . $self->{thlabel}), critical => $self->{perfdata}->get_perfdata_for_output(label => 'critical-' . $self->{thlabel}), @@ -57,8 +59,9 @@ sub cell_long_output { my ($self, %options) = @_; return sprintf( - "checking cellular radio module '%s' [operator: %s]", + "checking cellular radio module '%s' [icci: %s, operator: %s]", $options{instance_value}->{cellId}, + $options{instance_value}->{icci}, $options{instance_value}->{operator} ); } @@ -67,8 +70,9 @@ sub prefix_cell_output { my ($self, %options) = @_; return sprintf( - "cellular radio module '%s' [operator: %s] ", - $options{instance_value}->{cellId}, + "cellular radio module '%s' [icci: %s, operator: %s] ", + $options{instance_value}->{cellId}, + $options{instance_value}->{icci}, $options{instance_value}->{operator} ); } @@ -112,7 +116,7 @@ sub set_counters { critical_default => '%{simStatus} eq "notPresent" || %{signalQuality} =~ /none/', set => { key_values => [ - { name => 'cellId' }, { name => 'operator' }, { name => 'imsi' }, + { name => 'cellId' }, { name => 'operator' }, { name => 'imsi' }, { name => 'icci' }, { name => 'simStatus' }, { name => 'signalQuality' } ], closure_custom_output => $self->can('custom_status_output'), @@ -124,19 +128,25 @@ sub set_counters { $self->{maps_counters}->{signal} = [ { label => 'module-cellradio-rsrp', nlabel => 'module.cellradio.rsrp.dbm', set => { - key_values => [ { name => 'rsrp' }, { name => 'cellId' }, { name => 'operator' } ], + key_values => [ { name => 'rsrp' }, { name => 'cellId' }, { name => 'icci' }, { name => 'operator' } ], output_template => 'rsrp: %s dBm', closure_custom_perfdata => $self->can('custom_signal_perfdata') } }, + { label => 'module-cellradio-rsrq', nlabel => 'module.cellradio.rsrq.dbm', set => { + key_values => [ { name => 'rsrq' }, { name => 'cellId' }, { name => 'icci' }, { name => 'operator' } ], + output_template => 'rsrq: %s dBm', + closure_custom_perfdata => $self->can('custom_signal_perfdata') + } + }, { label => 'module-cellradio-rssi', nlabel => 'module.cellradio.rssi.dbm', set => { - key_values => [ { name => 'rssi' }, { name => 'cellId' }, { name => 'operator' } ], + key_values => [ { name => 'rssi' }, { name => 'cellId' }, { name => 'icci' }, { name => 'operator' } ], output_template => 'rssi: %s dBm', closure_custom_perfdata => $self->can('custom_signal_perfdata') } }, { label => 'module-cellradio-snr', nlabel => 'module.cellradio.snr.db', set => { - key_values => [ { name => 'snr' }, { name => 'cellId' }, { name => 'operator' } ], + key_values => [ { name => 'snr' }, { name => 'cellId' }, { name => 'icci' }, { name => 'operator' } ], output_template => 'snr: %s dB', closure_custom_perfdata => $self->can('custom_signal_perfdata') } @@ -150,12 +160,28 @@ sub new { bless $self, $class; $options{options}->add_options(arguments => { - 'filter-cell-id:s' => { name => 'filter_cell_id' } + 'filter-cell-id:s' => { name => 'filter_cell_id' }, + 'custom-perfdata-instances:s' => { name => 'custom_perfdata_instances' } }); return $self; } +sub check_options { + my ($self, %options) = @_; + $self->SUPER::check_options(%options); + + if (!defined($self->{option_results}->{custom_perfdata_instances}) || $self->{option_results}->{custom_perfdata_instances} eq '') { + $self->{option_results}->{custom_perfdata_instances} = '%(cellId) %(operator)'; + } + + $self->{custom_perfdata_instances} = $self->custom_perfdata_instances( + option_name => '--custom-perfdata-instances', + instances => $self->{option_results}->{custom_perfdata_instances}, + labels => { cellId => 1, operator => 1, icci => 1 } + ); +} + my $mapping_id = { imei => { oid => '.1.3.6.1.4.1.13191.10.3.9.2.1.14' }, # oacCellIMEI meid => { oid => '.1.3.6.1.4.1.13191.10.3.9.2.1.15' } # oacCellMEID @@ -163,8 +189,10 @@ my $mapping_id = { my $mapping = { simStatus => { oid => '.1.3.6.1.4.1.13191.10.3.9.2.1.20' }, # oacCellSIMStatus imsi => { oid => '.1.3.6.1.4.1.13191.10.3.9.2.1.21' }, # oacCellIMSI + icci => { oid => '.1.3.6.1.4.1.13191.10.3.9.2.1.22' }, # oacCellICCI operator => { oid => '.1.3.6.1.4.1.13191.10.3.9.2.1.40' }, # oacCellSelectedOperator rssi => { oid => '.1.3.6.1.4.1.13191.10.3.9.2.1.41' }, # oacCellSignalStrength + rsrq => { oid => '.1.3.6.1.4.1.13191.10.3.9.2.1.43' }, # oacCellRSRQ rsrp => { oid => '.1.3.6.1.4.1.13191.10.3.9.2.1.44' }, # oacCellRSRP snr => { oid => '.1.3.6.1.4.1.13191.10.3.9.2.1.45' }, # oacCellSNR techno => { oid => '.1.3.6.1.4.1.13191.10.3.9.2.1.46' } # oacCellRadioAccessTechnology @@ -245,7 +273,7 @@ sub manage_selection { } return if (scalar(keys %{$self->{cells}}) <= 0); - + $options{snmp}->load( oids => [ map($_->{oid}, values(%$mapping)) ], instances => [ map($_, keys %{$self->{cells}}) ], @@ -256,10 +284,13 @@ sub manage_selection { foreach (keys %{$self->{cells}}) { my $result = $options{snmp}->map_instance(mapping => $mapping, results => $snmp_result, instance => $_); + $self->{cells}->{$_}->{icci} = $result->{icci}; $self->{cells}->{$_}->{operator} = $result->{operator}; $self->{cells}->{$_}->{status}->{operator} = $result->{operator}; + $self->{cells}->{$_}->{status}->{icci} = $result->{icci}; $self->{cells}->{$_}->{status}->{imsi} = defined($result->{imsi}) && $result->{imsi} =~ /^(?:[0-9]+)$/ ? $result->{imsi} : '-'; $self->{cells}->{$_}->{signal}->{operator} = $result->{operator}; + $self->{cells}->{$_}->{signal}->{icci} = $result->{icci}; $self->{cells}->{$_}->{status}->{simStatus} = $result->{simStatus} =~ /is present/ ? 'present' : 'notPresent'; $self->{cells}->{$_}->{status}->{signalQuality} = $self->get_signal_quality( @@ -271,6 +302,7 @@ sub manage_selection { if ($self->{cells}->{$_}->{status}->{simStatus} eq 'present') { $self->{cells}->{$_}->{signal}->{rssi} = $result->{rssi}; $self->{cells}->{$_}->{signal}->{rsrp} = $result->{rsrp}; + $self->{cells}->{$_}->{signal}->{rsrq} = $result->{rsrq}; $self->{cells}->{$_}->{signal}->{snr} = $result->{snr}; } @@ -292,25 +324,29 @@ Check cellular radio modules. Filter cell modules by id (IMEI or MEID). +=item B<--custom-perfdata-instances> + +Define perfdatas instance (default: '%(cellId) %(operator)') + =item B<--unknown-status> Define the conditions to match for the status to be UNKNOWN. -You can use the following variables: %{simStatus}, %{signalQuality}, %{cellId}, %{operator}, %{imsi} +You can use the following variables: %{simStatus}, %{signalQuality}, %{cellId}, %{icci}, %{operator}, %{imsi} =item B<--warning-status> -Define the conditions to match for the status to be WARNING (Default: '%{signalQuality} =~ /poor/'). -You can use the following variables: %{simStatus}, %{signalQuality}, %{cellId}, %{operator}, %{imsi} +Define the conditions to match for the status to be WARNING (default: '%{signalQuality} =~ /poor/'). +You can use the following variables: %{simStatus}, %{signalQuality}, %{cellId}, %{icci}, %{operator}, %{imsi} =item B<--critical-status> -Define the conditions to match for the status to be CRITICAL (Default: '%{simStatus} eq "notPresent" || %{signalQuality} =~ /none/'). -You can use the following variables: %{simStatus}, %{signalQuality}, %{cellId}, %{operator}, %{imsi} +Define the conditions to match for the status to be CRITICAL (default: '%{simStatus} eq "notPresent" || %{signalQuality} =~ /none/'). +You can use the following variables: %{simStatus}, %{signalQuality}, %{cellId}, %{icci}, %{operator}, %{imsi} =item B<--warning-*> B<--critical-*> Thresholds. -Can be: 'modules-cellradio-detected', 'module-cellradio-rsrp', +Can be: 'modules-cellradio-detected', 'module-cellradio-rsrp', ''module-cellradio-rsrq', 'module-cellradio-rssi', 'module-cellradio-snr'. =back From cdde685bafe8ee1b87c6efc77fa090a9a7a30412 Mon Sep 17 00:00:00 2001 From: qgarnier Date: Fri, 30 Jun 2023 12:42:37 +0200 Subject: [PATCH 23/39] (plugin) os::linux::local - fix improper AIX field descriptor (#4495) --- src/os/linux/local/mode/process.pm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/os/linux/local/mode/process.pm b/src/os/linux/local/mode/process.pm index 48670a345..074a4b5c3 100644 --- a/src/os/linux/local/mode/process.pm +++ b/src/os/linux/local/mode/process.pm @@ -199,16 +199,16 @@ sub parse_output { my ($stdout) = $options{custom}->execute_command( command => 'ps', - command_options => '-e -o state -o ===%t===%p===%P=== -o comm:50 -o ===%a -w 2>&1' + command_options => '-e -o state -o etime -o pid -o ppid -o comm:50 -o %a -w 2>&1' ); $self->{global} = { processes => 0 }; $self->{processes} = {}; - my @lines = split /\n/, $stdout; - my $line = shift @lines; + my @lines = split(/\n/, $stdout); + my $line = shift(@lines); foreach my $line (@lines) { - next if ($line !~ /^(.*?)===(.*?)===(.*?)===(.*?)===(.*?)===(.*)$/); + next if ($line !~ /^(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(.{50})\s+(.*)$/); my ($state, $elapsed, $pid, $ppid, $cmd, $args) = ( centreon::plugins::misc::trim($1), centreon::plugins::misc::trim($2), From 0d3a0d254f83992b6d5de9d54abfc984df30dc7b Mon Sep 17 00:00:00 2001 From: qgarnier Date: Fri, 30 Jun 2023 12:49:30 +0200 Subject: [PATCH 24/39] clean copyright (#4512) --- src/apps/backup/commvault/commserve/restapi/custom/api.pm | 1 - src/apps/backup/commvault/commserve/restapi/plugin.pm | 1 - src/apps/emc/ppma/restapi/custom/api.pm | 1 - src/apps/emc/ppma/restapi/plugin.pm | 1 - src/apps/proxmox/mg/restapi/custom/api.pm | 1 - src/apps/proxmox/mg/restapi/plugin.pm | 1 - src/apps/smartermail/restapi/custom/api.pm | 1 - src/apps/smartermail/restapi/mode/licenses.pm | 1 - src/apps/smartermail/restapi/mode/services.pm | 1 - src/apps/smartermail/restapi/mode/spools.pm | 1 - src/apps/smartermail/restapi/plugin.pm | 1 - src/apps/virtualization/hpe/simplivity/restapi/custom/api.pm | 1 - src/apps/virtualization/hpe/simplivity/restapi/mode/hosts.pm | 1 - .../hpe/simplivity/restapi/mode/omnistackclusters.pm | 1 - .../hpe/simplivity/restapi/mode/virtualmachines.pm | 1 - src/apps/virtualization/hpe/simplivity/restapi/plugin.pm | 1 - src/centreon/common/protocols/actuator/custom/centreonmap.pm | 1 - src/network/aruba/aoscx/restapi/custom/api.pm | 1 - src/network/aruba/aoscx/restapi/plugin.pm | 1 - src/notification/centreon/opentickets/api/custom/api.pm | 1 - src/notification/centreon/opentickets/api/mode/closehost.pm | 3 +-- src/notification/centreon/opentickets/api/mode/closeservice.pm | 3 +-- src/notification/centreon/opentickets/api/mode/openhost.pm | 1 - src/notification/centreon/opentickets/api/mode/openservice.pm | 1 - src/notification/centreon/opentickets/api/plugin.pm | 1 - .../microsoft/office365/teams/custom/webhookapi.pm | 1 - src/storage/emc/vplex/restapi/custom/apiv2.pm | 1 - 27 files changed, 2 insertions(+), 29 deletions(-) diff --git a/src/apps/backup/commvault/commserve/restapi/custom/api.pm b/src/apps/backup/commvault/commserve/restapi/custom/api.pm index 127934ee4..ca9769530 100644 --- a/src/apps/backup/commvault/commserve/restapi/custom/api.pm +++ b/src/apps/backup/commvault/commserve/restapi/custom/api.pm @@ -16,7 +16,6 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. -# Authors : Roman Morandell - ivertix # package apps::backup::commvault::commserve::restapi::custom::api; diff --git a/src/apps/backup/commvault/commserve/restapi/plugin.pm b/src/apps/backup/commvault/commserve/restapi/plugin.pm index 032a89784..bcb96369f 100644 --- a/src/apps/backup/commvault/commserve/restapi/plugin.pm +++ b/src/apps/backup/commvault/commserve/restapi/plugin.pm @@ -16,7 +16,6 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. -# Authors : Roman Morandell - ivertix # package apps::backup::commvault::commserve::restapi::plugin; diff --git a/src/apps/emc/ppma/restapi/custom/api.pm b/src/apps/emc/ppma/restapi/custom/api.pm index e4a6926e2..e543f2c26 100644 --- a/src/apps/emc/ppma/restapi/custom/api.pm +++ b/src/apps/emc/ppma/restapi/custom/api.pm @@ -16,7 +16,6 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. -# Authors : Roman Morandell - ivertix # package apps::emc::ppma::restapi::custom::api; diff --git a/src/apps/emc/ppma/restapi/plugin.pm b/src/apps/emc/ppma/restapi/plugin.pm index 55c19849b..0f9c52779 100644 --- a/src/apps/emc/ppma/restapi/plugin.pm +++ b/src/apps/emc/ppma/restapi/plugin.pm @@ -16,7 +16,6 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. -# Authors : Roman Morandell - ivertix # package apps::emc::ppma::restapi::plugin; diff --git a/src/apps/proxmox/mg/restapi/custom/api.pm b/src/apps/proxmox/mg/restapi/custom/api.pm index cd02c63e1..4f7ef44a6 100644 --- a/src/apps/proxmox/mg/restapi/custom/api.pm +++ b/src/apps/proxmox/mg/restapi/custom/api.pm @@ -16,7 +16,6 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. -# Authors : Roman Morandell - ivertix # package apps::proxmox::mg::restapi::custom::api; diff --git a/src/apps/proxmox/mg/restapi/plugin.pm b/src/apps/proxmox/mg/restapi/plugin.pm index a4ba6c2fa..991c35406 100644 --- a/src/apps/proxmox/mg/restapi/plugin.pm +++ b/src/apps/proxmox/mg/restapi/plugin.pm @@ -16,7 +16,6 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. -# Authors : Roman Morandell - ivertix # package apps::proxmox::mg::restapi::plugin; diff --git a/src/apps/smartermail/restapi/custom/api.pm b/src/apps/smartermail/restapi/custom/api.pm index 731d5427d..c48cc70ae 100644 --- a/src/apps/smartermail/restapi/custom/api.pm +++ b/src/apps/smartermail/restapi/custom/api.pm @@ -16,7 +16,6 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. -# Authors : Roman Morandell - ivertix # package apps::smartermail::restapi::custom::api; diff --git a/src/apps/smartermail/restapi/mode/licenses.pm b/src/apps/smartermail/restapi/mode/licenses.pm index ccc0efeaf..101a3253e 100644 --- a/src/apps/smartermail/restapi/mode/licenses.pm +++ b/src/apps/smartermail/restapi/mode/licenses.pm @@ -16,7 +16,6 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. -# Authors : Roman Morandell - ivertix # package apps::smartermail::restapi::mode::licenses; diff --git a/src/apps/smartermail/restapi/mode/services.pm b/src/apps/smartermail/restapi/mode/services.pm index 07f5914aa..393cc39f9 100644 --- a/src/apps/smartermail/restapi/mode/services.pm +++ b/src/apps/smartermail/restapi/mode/services.pm @@ -16,7 +16,6 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. -# Authors : Roman Morandell - ivertix # package apps::smartermail::restapi::mode::services; diff --git a/src/apps/smartermail/restapi/mode/spools.pm b/src/apps/smartermail/restapi/mode/spools.pm index 467600260..565e8c53f 100644 --- a/src/apps/smartermail/restapi/mode/spools.pm +++ b/src/apps/smartermail/restapi/mode/spools.pm @@ -16,7 +16,6 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. -# Authors : Roman Morandell - ivertix # package apps::smartermail::restapi::mode::spools; diff --git a/src/apps/smartermail/restapi/plugin.pm b/src/apps/smartermail/restapi/plugin.pm index 5f50bb283..3f73d878c 100644 --- a/src/apps/smartermail/restapi/plugin.pm +++ b/src/apps/smartermail/restapi/plugin.pm @@ -16,7 +16,6 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. -# Authors : Roman Morandell - ivertix # package apps::smartermail::restapi::plugin; diff --git a/src/apps/virtualization/hpe/simplivity/restapi/custom/api.pm b/src/apps/virtualization/hpe/simplivity/restapi/custom/api.pm index 8639ba89c..4422b8588 100644 --- a/src/apps/virtualization/hpe/simplivity/restapi/custom/api.pm +++ b/src/apps/virtualization/hpe/simplivity/restapi/custom/api.pm @@ -16,7 +16,6 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. -# Authors : Roman Morandell - ivertix # package apps::virtualization::hpe::simplivity::restapi::custom::api; diff --git a/src/apps/virtualization/hpe/simplivity/restapi/mode/hosts.pm b/src/apps/virtualization/hpe/simplivity/restapi/mode/hosts.pm index a8c8bb7d7..81a7aae09 100644 --- a/src/apps/virtualization/hpe/simplivity/restapi/mode/hosts.pm +++ b/src/apps/virtualization/hpe/simplivity/restapi/mode/hosts.pm @@ -16,7 +16,6 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. -# Authors : Roman Morandell - ivertix # package apps::virtualization::hpe::simplivity::restapi::mode::hosts; diff --git a/src/apps/virtualization/hpe/simplivity/restapi/mode/omnistackclusters.pm b/src/apps/virtualization/hpe/simplivity/restapi/mode/omnistackclusters.pm index b48097af6..5a401fd80 100644 --- a/src/apps/virtualization/hpe/simplivity/restapi/mode/omnistackclusters.pm +++ b/src/apps/virtualization/hpe/simplivity/restapi/mode/omnistackclusters.pm @@ -16,7 +16,6 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. -# Authors : Roman Morandell - ivertix # package apps::virtualization::hpe::simplivity::restapi::mode::omnistackclusters; diff --git a/src/apps/virtualization/hpe/simplivity/restapi/mode/virtualmachines.pm b/src/apps/virtualization/hpe/simplivity/restapi/mode/virtualmachines.pm index ab6f5af91..3130be4fe 100644 --- a/src/apps/virtualization/hpe/simplivity/restapi/mode/virtualmachines.pm +++ b/src/apps/virtualization/hpe/simplivity/restapi/mode/virtualmachines.pm @@ -16,7 +16,6 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. -# Authors : Roman Morandell - ivertix # package apps::virtualization::hpe::simplivity::restapi::mode::virtualmachines; diff --git a/src/apps/virtualization/hpe/simplivity/restapi/plugin.pm b/src/apps/virtualization/hpe/simplivity/restapi/plugin.pm index 4ea9b6524..3b187d30d 100644 --- a/src/apps/virtualization/hpe/simplivity/restapi/plugin.pm +++ b/src/apps/virtualization/hpe/simplivity/restapi/plugin.pm @@ -16,7 +16,6 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. -# Authors : Roman Morandell - ivertix # package apps::virtualization::hpe::simplivity::restapi::plugin; diff --git a/src/centreon/common/protocols/actuator/custom/centreonmap.pm b/src/centreon/common/protocols/actuator/custom/centreonmap.pm index b396a369d..43337425c 100644 --- a/src/centreon/common/protocols/actuator/custom/centreonmap.pm +++ b/src/centreon/common/protocols/actuator/custom/centreonmap.pm @@ -16,7 +16,6 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. -# Authors : Roman Morandell - ivertix # package centreon::common::protocols::actuator::custom::centreonmap; diff --git a/src/network/aruba/aoscx/restapi/custom/api.pm b/src/network/aruba/aoscx/restapi/custom/api.pm index c964a15ec..ee46ed63c 100644 --- a/src/network/aruba/aoscx/restapi/custom/api.pm +++ b/src/network/aruba/aoscx/restapi/custom/api.pm @@ -16,7 +16,6 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. -# Authors : Roman Morandell - ivertix # package network::aruba::aoscx::restapi::custom::api; diff --git a/src/network/aruba/aoscx/restapi/plugin.pm b/src/network/aruba/aoscx/restapi/plugin.pm index bf1556ac9..41f68f2ae 100644 --- a/src/network/aruba/aoscx/restapi/plugin.pm +++ b/src/network/aruba/aoscx/restapi/plugin.pm @@ -16,7 +16,6 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. -# Authors : Roman Morandell - ivertix # package network::aruba::aoscx::restapi::plugin; diff --git a/src/notification/centreon/opentickets/api/custom/api.pm b/src/notification/centreon/opentickets/api/custom/api.pm index aeed610b3..e382e4ece 100644 --- a/src/notification/centreon/opentickets/api/custom/api.pm +++ b/src/notification/centreon/opentickets/api/custom/api.pm @@ -16,7 +16,6 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. -# Authors : Roman Morandell - ivertix # package notification::centreon::opentickets::api::custom::api; diff --git a/src/notification/centreon/opentickets/api/mode/closehost.pm b/src/notification/centreon/opentickets/api/mode/closehost.pm index 8ed637647..4f1e9df78 100644 --- a/src/notification/centreon/opentickets/api/mode/closehost.pm +++ b/src/notification/centreon/opentickets/api/mode/closehost.pm @@ -16,7 +16,6 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. -# Authors : Roman Morandell - ivertix # package notification::centreon::opentickets::api::mode::closehost; @@ -89,4 +88,4 @@ Centreon host ID (Required). =back -=cut \ No newline at end of file +=cut diff --git a/src/notification/centreon/opentickets/api/mode/closeservice.pm b/src/notification/centreon/opentickets/api/mode/closeservice.pm index 3103015f7..597265775 100644 --- a/src/notification/centreon/opentickets/api/mode/closeservice.pm +++ b/src/notification/centreon/opentickets/api/mode/closeservice.pm @@ -16,7 +16,6 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. -# Authors : Roman Morandell - ivertix # package notification::centreon::opentickets::api::mode::closeservice; @@ -99,4 +98,4 @@ Centreon service ID (Required). =back -=cut \ No newline at end of file +=cut diff --git a/src/notification/centreon/opentickets/api/mode/openhost.pm b/src/notification/centreon/opentickets/api/mode/openhost.pm index 5e16d5622..fd98d070a 100644 --- a/src/notification/centreon/opentickets/api/mode/openhost.pm +++ b/src/notification/centreon/opentickets/api/mode/openhost.pm @@ -16,7 +16,6 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. -# Authors : Roman Morandell - ivertix # package notification::centreon::opentickets::api::mode::openhost; diff --git a/src/notification/centreon/opentickets/api/mode/openservice.pm b/src/notification/centreon/opentickets/api/mode/openservice.pm index ba485f6c6..955889784 100644 --- a/src/notification/centreon/opentickets/api/mode/openservice.pm +++ b/src/notification/centreon/opentickets/api/mode/openservice.pm @@ -16,7 +16,6 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. -# Authors : Roman Morandell - ivertix # package notification::centreon::opentickets::api::mode::openservice; diff --git a/src/notification/centreon/opentickets/api/plugin.pm b/src/notification/centreon/opentickets/api/plugin.pm index 64c652f83..ea3f3962b 100644 --- a/src/notification/centreon/opentickets/api/plugin.pm +++ b/src/notification/centreon/opentickets/api/plugin.pm @@ -16,7 +16,6 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. -# Authors : Roman Morandell - ivertix # package notification::centreon::opentickets::api::plugin; diff --git a/src/notification/microsoft/office365/teams/custom/webhookapi.pm b/src/notification/microsoft/office365/teams/custom/webhookapi.pm index a880dee51..75ce8a24c 100644 --- a/src/notification/microsoft/office365/teams/custom/webhookapi.pm +++ b/src/notification/microsoft/office365/teams/custom/webhookapi.pm @@ -16,7 +16,6 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. -# Authors : Roman Morandell - ivertix # package notification::microsoft::office365::teams::custom::webhookapi; diff --git a/src/storage/emc/vplex/restapi/custom/apiv2.pm b/src/storage/emc/vplex/restapi/custom/apiv2.pm index ca426ca1b..dad34cc7e 100644 --- a/src/storage/emc/vplex/restapi/custom/apiv2.pm +++ b/src/storage/emc/vplex/restapi/custom/apiv2.pm @@ -16,7 +16,6 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. -# Authors : Roman Morandell - ivertix # package storage::emc::vplex::restapi::custom::apiv2; From 65ef6bca0c9ce9350242ff68b224d2b039d539f0 Mon Sep 17 00:00:00 2001 From: qgarnier Date: Fri, 30 Jun 2023 12:49:49 +0200 Subject: [PATCH 25/39] enh(plugin): add linux local list systemd services mode (#4511) Co-authored-by: Colin Gagnaire --- .../linux/local/mode/listsystemdservices.pm | 133 ++++++++++++++++++ src/os/linux/local/plugin.pm | 61 ++++---- 2 files changed, 164 insertions(+), 30 deletions(-) create mode 100644 src/os/linux/local/mode/listsystemdservices.pm diff --git a/src/os/linux/local/mode/listsystemdservices.pm b/src/os/linux/local/mode/listsystemdservices.pm new file mode 100644 index 000000000..18ffb22ca --- /dev/null +++ b/src/os/linux/local/mode/listsystemdservices.pm @@ -0,0 +1,133 @@ +# +# Copyright 2023 Centreon (http://www.centreon.com/) +# +# Centreon is a full-fledged industry-strength solution that meets +# the needs in IT infrastructure and application monitoring for +# service performance. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +package os::linux::local::mode::listsystemdservices; + +use base qw(centreon::plugins::mode); + +use strict; +use warnings; + +sub new { + my ($class, %options) = @_; + my $self = $class->SUPER::new(package => __PACKAGE__, %options); + bless $self, $class; + + $options{options}->add_options(arguments => { + 'filter-name:s' => { name => 'filter_name' }, + 'filter-description:s' => { name => 'filter_description' } + }); + + return $self; +} + +sub check_options { + my ($self, %options) = @_; + $self->SUPER::init(%options); +} + +sub manage_selection { + my ($self, %options) = @_; + + my ($stdout) = $options{custom}->execute_command( + command => 'systemctl', + command_options => '-a --no-pager --no-legend --plain' + ); + + my $results = {}; + + #auditd.service loaded active running Security Auditing Service + #avahi-daemon.service loaded active running Avahi mDNS/DNS-SD Stack + #brandbot.service loaded inactive dead Flexible Branding Service + while ($stdout =~ /^(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(.+)/mig) { + my ($name, $load, $active, $sub, $desc) = ($1, $2, $3, $4, $5); + $desc =~ s/\s+$//; + + next if (defined($self->{option_results}->{filter_name}) && $self->{option_results}->{filter_name} ne '' && + $name !~ /$self->{option_results}->{filter_name}/); + next if (defined($self->{option_results}->{filter_description}) && $self->{option_results}->{filter_description} ne '' && + $desc !~ /$self->{option_results}->{filter_description}/); + + $results->{$name} = { load => $load, active => $active, sub => $sub, desc => $desc }; + } + + return $results; +} + +sub run { + my ($self, %options) = @_; + + my $results = $self->manage_selection(custom => $options{custom}); + foreach my $name (sort(keys %$results)) { + $self->{output}->output_add(long_msg => "'" . $name . "' [desc = " . $results->{$name}->{desc} . '] [load = ' . $results->{$name}->{load} . '] [active = ' . $results->{$name}->{active} . '] [sub = ' . $results->{$name}->{sub} . ']'); + } + + $self->{output}->output_add( + severity => 'OK', + short_msg => 'List systemd services:' + ); + $self->{output}->display(nolabel => 1, force_ignore_perfdata => 1, force_long_output => 1); + $self->{output}->exit(); +} + +sub disco_format { + my ($self, %options) = @_; + + $self->{output}->add_disco_format(elements => ['name', 'description', 'load', 'active', 'sub']); +} + +sub disco_show { + my ($self, %options) = @_; + + my $results = $self->manage_selection(custom => $options{custom}); + foreach my $name (sort(keys %$results)) { + $self->{output}->add_disco_entry( + name => $name, + description => $results->{$name}->{desc}, + load => $results->{$name}->{load}, + active => $results->{$name}->{active}, + sub => $results->{$name}->{sub} + ); + } +} + +1; + +__END__ + +=head1 MODE + +List systemd services. + +Command used: systemctl -a --no-pager --no-legend --plain + +=over 8 + +=item B<--filter-name> + +Filter services name (regexp can be used). + +=item B<--filter-description> + +Filter services description (regexp can be used). + +=back + +=cut diff --git a/src/os/linux/local/plugin.pm b/src/os/linux/local/plugin.pm index 54cb44d02..d04152c3b 100644 --- a/src/os/linux/local/plugin.pm +++ b/src/os/linux/local/plugin.pm @@ -31,36 +31,37 @@ sub new { $self->{version} = '0.1'; $self->{modes} = { - 'check-plugin' => 'os::linux::local::mode::checkplugin', - 'cpu' => 'os::linux::local::mode::cpu', - 'cpu-detailed' => 'os::linux::local::mode::cpudetailed', - 'cmd-return' => 'os::linux::local::mode::cmdreturn', - 'connections' => 'os::linux::local::mode::connections', - 'directlvm-usage' => 'os::linux::local::mode::directlvmusage', - 'discovery-snmp' => 'os::linux::local::mode::discoverysnmp', - 'discovery-snmpv3' => 'os::linux::local::mode::discoverysnmpv3', - 'diskio' => 'os::linux::local::mode::diskio', - 'files-size' => 'os::linux::local::mode::filessize', - 'files-date' => 'os::linux::local::mode::filesdate', - 'inodes' => 'os::linux::local::mode::inodes', - 'load' => 'os::linux::local::mode::loadaverage', - 'list-interfaces' => 'os::linux::local::mode::listinterfaces', - 'list-partitions' => 'os::linux::local::mode::listpartitions', - 'list-storages' => 'os::linux::local::mode::liststorages', - 'memory' => 'os::linux::local::mode::memory', - 'mountpoint' => 'os::linux::local::mode::mountpoint', - 'open-files' => 'os::linux::local::mode::openfiles', - 'ntp' => 'os::linux::local::mode::ntp', - 'packet-errors' => 'os::linux::local::mode::packeterrors', - 'paging' => 'os::linux::local::mode::paging', - 'pending-updates' => 'os::linux::local::mode::pendingupdates', - 'process' => 'os::linux::local::mode::process', - 'quota' => 'os::linux::local::mode::quota', - 'storage' => 'os::linux::local::mode::storage', - 'swap' => 'os::linux::local::mode::swap', - 'systemd-sc-status' => 'os::linux::local::mode::systemdscstatus', - 'traffic' => 'os::linux::local::mode::traffic', - 'uptime' => 'os::linux::local::mode::uptime' + 'check-plugin' => 'os::linux::local::mode::checkplugin', + 'cpu' => 'os::linux::local::mode::cpu', + 'cpu-detailed' => 'os::linux::local::mode::cpudetailed', + 'cmd-return' => 'os::linux::local::mode::cmdreturn', + 'connections' => 'os::linux::local::mode::connections', + 'directlvm-usage' => 'os::linux::local::mode::directlvmusage', + 'discovery-snmp' => 'os::linux::local::mode::discoverysnmp', + 'discovery-snmpv3' => 'os::linux::local::mode::discoverysnmpv3', + 'diskio' => 'os::linux::local::mode::diskio', + 'files-size' => 'os::linux::local::mode::filessize', + 'files-date' => 'os::linux::local::mode::filesdate', + 'inodes' => 'os::linux::local::mode::inodes', + 'load' => 'os::linux::local::mode::loadaverage', + 'list-interfaces' => 'os::linux::local::mode::listinterfaces', + 'list-partitions' => 'os::linux::local::mode::listpartitions', + 'list-storages' => 'os::linux::local::mode::liststorages', + 'list-systemdservices' => 'os::linux::local::mode::listsystemdservices', + 'memory' => 'os::linux::local::mode::memory', + 'mountpoint' => 'os::linux::local::mode::mountpoint', + 'open-files' => 'os::linux::local::mode::openfiles', + 'ntp' => 'os::linux::local::mode::ntp', + 'packet-errors' => 'os::linux::local::mode::packeterrors', + 'paging' => 'os::linux::local::mode::paging', + 'pending-updates' => 'os::linux::local::mode::pendingupdates', + 'process' => 'os::linux::local::mode::process', + 'quota' => 'os::linux::local::mode::quota', + 'storage' => 'os::linux::local::mode::storage', + 'swap' => 'os::linux::local::mode::swap', + 'systemd-sc-status' => 'os::linux::local::mode::systemdscstatus', + 'traffic' => 'os::linux::local::mode::traffic', + 'uptime' => 'os::linux::local::mode::uptime' }; $self->{custom_modes}->{cli} = 'os::linux::local::custom::cli'; From a3a1d559f7de6f84d6480d03cb5baf3384cbe673 Mon Sep 17 00:00:00 2001 From: qgarnier Date: Fri, 30 Jun 2023 12:51:13 +0200 Subject: [PATCH 26/39] (plugin) storage::dell::compellent::snmp - mode hardware add option --add-name-instance (#4510) --- .../compellent/snmp/mode/components/cache.pm | 27 ++++++----- .../compellent/snmp/mode/components/ctrl.pm | 27 ++++++----- .../snmp/mode/components/ctrlfan.pm | 48 ++++++++++++------- .../snmp/mode/components/ctrlpower.pm | 27 ++++++----- .../snmp/mode/components/ctrltemp.pm | 46 +++++++++++------- .../snmp/mode/components/ctrlvoltage.pm | 42 ++++++++++------ .../compellent/snmp/mode/components/disk.pm | 25 ++++++---- .../snmp/mode/components/diskfolder.pm | 12 ++--- .../compellent/snmp/mode/components/encl.pm | 23 +++++---- .../snmp/mode/components/enclfan.pm | 23 +++++---- .../snmp/mode/components/encliomod.pm | 25 ++++++---- .../snmp/mode/components/enclpower.pm | 23 +++++---- .../snmp/mode/components/encltemp.pm | 43 +++++++++++------ .../snmp/mode/components/resources.pm | 4 +- .../compellent/snmp/mode/components/sc.pm | 23 +++++---- .../compellent/snmp/mode/components/server.pm | 23 +++++---- .../compellent/snmp/mode/components/volume.pm | 21 ++++---- .../dell/compellent/snmp/mode/globalstatus.pm | 1 - .../dell/compellent/snmp/mode/hardware.pm | 4 ++ src/storage/dell/compellent/snmp/plugin.pm | 1 - 20 files changed, 290 insertions(+), 178 deletions(-) diff --git a/src/storage/dell/compellent/snmp/mode/components/cache.pm b/src/storage/dell/compellent/snmp/mode/components/cache.pm index a1665e71f..0cfeb7dd9 100644 --- a/src/storage/dell/compellent/snmp/mode/components/cache.pm +++ b/src/storage/dell/compellent/snmp/mode/components/cache.pm @@ -26,7 +26,7 @@ use storage::dell::compellent::snmp::mode::components::resources qw(%map_sc_stat my $mapping = { scCacheStatus => { oid => '.1.3.6.1.4.1.674.11000.2000.500.1.2.28.1.3', map => \%map_sc_status }, - scCacheName => { oid => '.1.3.6.1.4.1.674.11000.2000.500.1.2.28.1.4' }, + scCacheName => { oid => '.1.3.6.1.4.1.674.11000.2000.500.1.2.28.1.4' } }; my $oid_scCacheEntry = '.1.3.6.1.4.1.674.11000.2000.500.1.2.28.1'; @@ -47,18 +47,23 @@ sub check { next if ($oid !~ /^$mapping->{scCacheStatus}->{oid}\.(.*)$/); my $instance = $1; my $result = $self->{snmp}->map_instance(mapping => $mapping, results => $self->{results}->{$oid_scCacheEntry}, instance => $instance); - - next if ($self->check_filter(section => 'cache', instance => $instance)); + + next if ($self->check_filter(section => 'cache', instance => $instance, name => $result->{scCacheName})); $self->{components}->{cache}->{total}++; - - $self->{output}->output_add(long_msg => sprintf("cache '%s' status is '%s' [instance = %s]", - $result->{scCacheName}, $result->{scCacheStatus}, $instance, - )); - - my $exit = $self->get_severity(label => 'default', section => 'cache', value => $result->{scCacheStatus}); + + $self->{output}->output_add( + long_msg => sprintf( + "cache '%s' status is '%s' [instance: %s]", + $result->{scCacheName}, $result->{scCacheStatus}, $instance + ) + ); + + my $exit = $self->get_severity(label => 'default', section => 'cache', name => $result->{scCacheName}, value => $result->{scCacheStatus}); if (!$self->{output}->is_status(value => $exit, compare => 'ok', litteral => 1)) { - $self->{output}->output_add(severity => $exit, - short_msg => sprintf("Cache '%s' status is '%s'", $result->{scCacheName}, $result->{scCacheStatus})); + $self->{output}->output_add( + severity => $exit, + short_msg => sprintf("Cache '%s' status is '%s'", $result->{scCacheName}, $result->{scCacheStatus}) + ); } } } diff --git a/src/storage/dell/compellent/snmp/mode/components/ctrl.pm b/src/storage/dell/compellent/snmp/mode/components/ctrl.pm index 26c766a6e..376e559d4 100644 --- a/src/storage/dell/compellent/snmp/mode/components/ctrl.pm +++ b/src/storage/dell/compellent/snmp/mode/components/ctrl.pm @@ -26,7 +26,7 @@ use storage::dell::compellent::snmp::mode::components::resources qw(%map_sc_stat my $mapping = { scCtlrStatus => { oid => '.1.3.6.1.4.1.674.11000.2000.500.1.2.13.1.3', map => \%map_sc_status }, - scCtlrName => { oid => '.1.3.6.1.4.1.674.11000.2000.500.1.2.13.1.4' }, + scCtlrName => { oid => '.1.3.6.1.4.1.674.11000.2000.500.1.2.13.1.4' } }; my $oid_scCtlrEntry = '.1.3.6.1.4.1.674.11000.2000.500.1.2.13.1'; @@ -47,18 +47,23 @@ sub check { next if ($oid !~ /^$mapping->{scCtlrStatus}->{oid}\.(.*)$/); my $instance = $1; my $result = $self->{snmp}->map_instance(mapping => $mapping, results => $self->{results}->{$oid_scCtlrEntry}, instance => $instance); - - next if ($self->check_filter(section => 'ctrl', instance => $instance)); + + next if ($self->check_filter(section => 'ctrl', instance => $instance, name => $result->{scCtlrName})); $self->{components}->{ctrl}->{total}++; - - $self->{output}->output_add(long_msg => sprintf("controller '%s' status is '%s' [instance = %s]", - $result->{scCtlrName}, $result->{scCtlrStatus}, $instance, - )); - - my $exit = $self->get_severity(label => 'default', section => 'ctrl', value => $result->{scCtlrStatus}); + + $self->{output}->output_add( + long_msg => sprintf( + "controller '%s' status is '%s' [instance: %s]", + $result->{scCtlrName}, $result->{scCtlrStatus}, $instance + ) + ); + + my $exit = $self->get_severity(label => 'default', section => 'ctrl', name => $result->{scCtlrName}, value => $result->{scCtlrStatus}); if (!$self->{output}->is_status(value => $exit, compare => 'ok', litteral => 1)) { - $self->{output}->output_add(severity => $exit, - short_msg => sprintf("Controller '%s' status is '%s'", $result->{scCtlrName}, $result->{scCtlrStatus})); + $self->{output}->output_add( + severity => $exit, + short_msg => sprintf("Controller '%s' status is '%s'", $result->{scCtlrName}, $result->{scCtlrStatus}) + ); } } } diff --git a/src/storage/dell/compellent/snmp/mode/components/ctrlfan.pm b/src/storage/dell/compellent/snmp/mode/components/ctrlfan.pm index fef6b8710..e04236352 100644 --- a/src/storage/dell/compellent/snmp/mode/components/ctrlfan.pm +++ b/src/storage/dell/compellent/snmp/mode/components/ctrlfan.pm @@ -31,7 +31,7 @@ my $mapping = { scCtlrFanWarnLwrRpm => { oid => '.1.3.6.1.4.1.674.11000.2000.500.1.2.16.1.8' }, scCtlrFanWarnUprRpm => { oid => '.1.3.6.1.4.1.674.11000.2000.500.1.2.16.1.9' }, scCtlrFanCritLwrRpm => { oid => '.1.3.6.1.4.1.674.11000.2000.500.1.2.16.1.10' }, - scCtlrFanCritUprRpm => { oid => '.1.3.6.1.4.1.674.11000.2000.500.1.2.16.1.11' }, + scCtlrFanCritUprRpm => { oid => '.1.3.6.1.4.1.674.11000.2000.500.1.2.16.1.11' } }; my $oid_scCtlrFanEntry = '.1.3.6.1.4.1.674.11000.2000.500.1.2.16.1'; @@ -52,22 +52,33 @@ sub check { next if ($oid !~ /^$mapping->{scCtlrFanStatus}->{oid}\.(.*)$/); my $instance = $1; my $result = $self->{snmp}->map_instance(mapping => $mapping, results => $self->{results}->{$oid_scCtlrFanEntry}, instance => $instance); - - next if ($self->check_filter(section => 'ctrlfan', instance => $instance)); + + next if ($self->check_filter(section => 'ctrlfan', instance => $instance, name => $result->{scCtlrFanName})); $self->{components}->{ctrlfan}->{total}++; - - $self->{output}->output_add(long_msg => sprintf("controller fan '%s' status is '%s' [instance = %s] [value = %s]", - $result->{scCtlrFanName}, $result->{scCtlrFanStatus}, $instance, - $result->{scCtlrFanCurrentRpm})); - - my $exit = $self->get_severity(label => 'default', section => 'ctrlfan', value => $result->{scCtlrFanStatus}); + + $self->{output}->output_add( + long_msg => sprintf( + "controller fan '%s' status is '%s' [instance: %s] [value: %s]", + $result->{scCtlrFanName}, $result->{scCtlrFanStatus}, $instance, + $result->{scCtlrFanCurrentRpm} + ) + ); + + my $exit = $self->get_severity(label => 'default', section => 'ctrlfan', name => $result->{scCtlrFanName}, value => $result->{scCtlrFanStatus}); if (!$self->{output}->is_status(value => $exit, compare => 'ok', litteral => 1)) { - $self->{output}->output_add(severity => $exit, - short_msg => sprintf("Controller fan '%s' status is '%s'", $result->{scCtlrFanName}, $result->{scCtlrFanStatus})); + $self->{output}->output_add( + severity => $exit, + short_msg => sprintf("Controller fan '%s' status is '%s'", $result->{scCtlrFanName}, $result->{scCtlrFanStatus}) + ); } - - my ($exit2, $warn, $crit, $checked) = $self->get_severity_numeric(section => 'ctrlfan', instance => $instance, value => $result->{scCtlrFanCurrentRpm}); + + my ($exit2, $warn, $crit, $checked) = $self->get_severity_numeric( + section => 'ctrlfan', + instance => $instance, + name => $result->{scCtlrFanName}, + value => $result->{scCtlrFanCurrentRpm} + ); if ($checked == 0) { $result->{scCtlrFanWarnLwrRpm} = (defined($result->{scCtlrFanWarnLwrRpm}) && $result->{scCtlrFanWarnLwrRpm} =~ /[0-9]/) ? $result->{scCtlrFanWarnLwrRpm} : ''; @@ -81,15 +92,18 @@ sub check { my $crit_th = $result->{scCtlrFanCritLwrRpm} . ':' . $result->{scCtlrFanCritUprRpm}; $self->{perfdata}->threshold_validate(label => 'warning-ctrlfan-instance-' . $instance, value => $warn_th); $self->{perfdata}->threshold_validate(label => 'critical-ctrlfan-instance-' . $instance, value => $crit_th); - + $warn = $self->{perfdata}->get_perfdata_for_output(label => 'warning-ctrlfan-instance-' . $instance); $crit = $self->{perfdata}->get_perfdata_for_output(label => 'critical-ctrlfan-instance-' . $instance); } - + if (!$self->{output}->is_status(value => $exit2, compare => 'ok', litteral => 1)) { - $self->{output}->output_add(severity => $exit2, - short_msg => sprintf("Controller fan '%s' is %s rpm", $result->{scCtlrFanName}, $result->{scCtlrFanCurrentRpm})); + $self->{output}->output_add( + severity => $exit2, + short_msg => sprintf("Controller fan '%s' is %s rpm", $result->{scCtlrFanName}, $result->{scCtlrFanCurrentRpm}) + ); } + $self->{output}->perfdata_add( label => 'ctrlfan', unit => 'rpm', nlabel => 'hardware.controller.fan.speed.rpm', diff --git a/src/storage/dell/compellent/snmp/mode/components/ctrlpower.pm b/src/storage/dell/compellent/snmp/mode/components/ctrlpower.pm index b724bb5b1..ee5f40285 100644 --- a/src/storage/dell/compellent/snmp/mode/components/ctrlpower.pm +++ b/src/storage/dell/compellent/snmp/mode/components/ctrlpower.pm @@ -26,7 +26,7 @@ use storage::dell::compellent::snmp::mode::components::resources qw(%map_sc_stat my $mapping = { scCtlrPowerStatus => { oid => '.1.3.6.1.4.1.674.11000.2000.500.1.2.17.1.3', map => \%map_sc_status }, - scCtlrPowerName => { oid => '.1.3.6.1.4.1.674.11000.2000.500.1.2.17.1.4' }, + scCtlrPowerName => { oid => '.1.3.6.1.4.1.674.11000.2000.500.1.2.17.1.4' } }; my $oid_scCtlrPowerEntry = '.1.3.6.1.4.1.674.11000.2000.500.1.2.17.1'; @@ -47,18 +47,23 @@ sub check { next if ($oid !~ /^$mapping->{scCtlrPowerStatus}->{oid}\.(.*)$/); my $instance = $1; my $result = $self->{snmp}->map_instance(mapping => $mapping, results => $self->{results}->{$oid_scCtlrPowerEntry}, instance => $instance); - - next if ($self->check_filter(section => 'ctrlpower', instance => $instance)); + + next if ($self->check_filter(section => 'ctrlpower', instance => $instance, name => $result->{scCtlrPowerName})); $self->{components}->{ctrlpower}->{total}++; - - $self->{output}->output_add(long_msg => sprintf("controller power supply '%s' status is '%s' [instance = %s]", - $result->{scCtlrPowerName}, $result->{scCtlrPowerStatus}, $instance, - )); - - my $exit = $self->get_severity(label => 'default', section => 'ctrlpower', value => $result->{scCtlrPowerStatus}); + + $self->{output}->output_add( + long_msg => sprintf( + "controller power supply '%s' status is '%s' [instance: %s]", + $result->{scCtlrPowerName}, $result->{scCtlrPowerStatus}, $instance + ) + ); + + my $exit = $self->get_severity(label => 'default', section => 'ctrlpower', name => $result->{scCtlrPowerName}, value => $result->{scCtlrPowerStatus}); if (!$self->{output}->is_status(value => $exit, compare => 'ok', litteral => 1)) { - $self->{output}->output_add(severity => $exit, - short_msg => sprintf("Controller power supply '%s' status is '%s'", $result->{scCtlrPowerName}, $result->{scCtlrPowerStatus})); + $self->{output}->output_add( + severity => $exit, + short_msg => sprintf("Controller power supply '%s' status is '%s'", $result->{scCtlrPowerName}, $result->{scCtlrPowerStatus}) + ); } } } diff --git a/src/storage/dell/compellent/snmp/mode/components/ctrltemp.pm b/src/storage/dell/compellent/snmp/mode/components/ctrltemp.pm index df0703fa3..36808a007 100644 --- a/src/storage/dell/compellent/snmp/mode/components/ctrltemp.pm +++ b/src/storage/dell/compellent/snmp/mode/components/ctrltemp.pm @@ -31,7 +31,7 @@ my $mapping = { scCtlrTempWarnLwrC => { oid => '.1.3.6.1.4.1.674.11000.2000.500.1.2.19.1.8' }, scCtlrTempWarnUprC => { oid => '.1.3.6.1.4.1.674.11000.2000.500.1.2.19.1.9' }, scCtlrTempCritLwrC => { oid => '.1.3.6.1.4.1.674.11000.2000.500.1.2.19.1.10' }, - scCtlrTempCritUprC => { oid => '.1.3.6.1.4.1.674.11000.2000.500.1.2.19.1.11' }, + scCtlrTempCritUprC => { oid => '.1.3.6.1.4.1.674.11000.2000.500.1.2.19.1.11' } }; my $oid_scCtlrTempEntry = '.1.3.6.1.4.1.674.11000.2000.500.1.2.19.1'; @@ -52,22 +52,33 @@ sub check { next if ($oid !~ /^$mapping->{scCtlrTempStatus}->{oid}\.(.*)$/); my $instance = $1; my $result = $self->{snmp}->map_instance(mapping => $mapping, results => $self->{results}->{$oid_scCtlrTempEntry}, instance => $instance); - - next if ($self->check_filter(section => 'ctrltemp', instance => $instance)); + + next if ($self->check_filter(section => 'ctrltemp', instance => $instance, name => $result->{scCtlrTempName})); $self->{components}->{ctrltemp}->{total}++; - - $self->{output}->output_add(long_msg => sprintf("controller temperature '%s' status is '%s' [instance = %s] [value = %s]", - $result->{scCtlrTempName}, $result->{scCtlrTempStatus}, $instance, - $result->{scCtlrTempCurrentC})); - - my $exit = $self->get_severity(label => 'default', section => 'ctrltemp', value => $result->{scCtlrTempStatus}); + + $self->{output}->output_add( + long_msg => sprintf( + "controller temperature '%s' status is '%s' [instance: %s] [value: %s]", + $result->{scCtlrTempName}, $result->{scCtlrTempStatus}, $instance, + $result->{scCtlrTempCurrentC} + ) + ); + + my $exit = $self->get_severity(label => 'default', section => 'ctrltemp', name => $result->{scCtlrTempName}, value => $result->{scCtlrTempStatus}); if (!$self->{output}->is_status(value => $exit, compare => 'ok', litteral => 1)) { - $self->{output}->output_add(severity => $exit, - short_msg => sprintf("Controller temperature '%s' status is '%s'", $result->{scCtlrTempName}, $result->{scCtlrTempStatus})); + $self->{output}->output_add( + severity => $exit, + short_msg => sprintf("Controller temperature '%s' status is '%s'", $result->{scCtlrTempName}, $result->{scCtlrTempStatus}) + ); } - - my ($exit2, $warn, $crit, $checked) = $self->get_severity_numeric(section => 'ctrltemp', instance => $instance, value => $result->{scCtlrTempCurrentC}); + + my ($exit2, $warn, $crit, $checked) = $self->get_severity_numeric( + section => 'ctrltemp', + instance => $instance, + name => $result->{scCtlrTempName}, + value => $result->{scCtlrTempCurrentC} + ); if ($checked == 0) { $result->{scCtlrTempWarnLwrC} = (defined($result->{scCtlrTempWarnLwrC}) && $result->{scCtlrTempWarnLwrC} =~ /[0-9]/) ? $result->{scCtlrTempWarnLwrC} : ''; @@ -85,11 +96,14 @@ sub check { $warn = $self->{perfdata}->get_perfdata_for_output(label => 'warning-ctrltemp-instance-' . $instance); $crit = $self->{perfdata}->get_perfdata_for_output(label => 'critical-ctrltemp-instance-' . $instance); } - + if (!$self->{output}->is_status(value => $exit2, compare => 'ok', litteral => 1)) { - $self->{output}->output_add(severity => $exit2, - short_msg => sprintf("Controller temperature '%s' is %s C", $result->{scCtlrTempName}, $result->{scCtlrTempCurrentC})); + $self->{output}->output_add( + severity => $exit2, + short_msg => sprintf("Controller temperature '%s' is %s C", $result->{scCtlrTempName}, $result->{scCtlrTempCurrentC}) + ); } + $self->{output}->perfdata_add( label => 'ctrltemp', unit => 'C', nlabel => 'hardware.controller.temperature.celsius', diff --git a/src/storage/dell/compellent/snmp/mode/components/ctrlvoltage.pm b/src/storage/dell/compellent/snmp/mode/components/ctrlvoltage.pm index 1f6029ed6..6e49d5877 100644 --- a/src/storage/dell/compellent/snmp/mode/components/ctrlvoltage.pm +++ b/src/storage/dell/compellent/snmp/mode/components/ctrlvoltage.pm @@ -31,7 +31,7 @@ my $mapping = { scCtlrVoltageWarnLwrV => { oid => '.1.3.6.1.4.1.674.11000.2000.500.1.2.18.1.8' }, scCtlrVoltageWarnUprV => { oid => '.1.3.6.1.4.1.674.11000.2000.500.1.2.18.1.9' }, scCtlrVoltageCritLwrV => { oid => '.1.3.6.1.4.1.674.11000.2000.500.1.2.18.1.10' }, - scCtlrVoltageCritUprV => { oid => '.1.3.6.1.4.1.674.11000.2000.500.1.2.18.1.11' }, + scCtlrVoltageCritUprV => { oid => '.1.3.6.1.4.1.674.11000.2000.500.1.2.18.1.11' } }; my $oid_scCtlrVoltageEntry = '.1.3.6.1.4.1.674.11000.2000.500.1.2.18.1'; @@ -53,21 +53,32 @@ sub check { my $instance = $1; my $result = $self->{snmp}->map_instance(mapping => $mapping, results => $self->{results}->{$oid_scCtlrVoltageEntry}, instance => $instance); - next if ($self->check_filter(section => 'ctrlvoltage', instance => $instance)); + next if ($self->check_filter(section => 'ctrlvoltage', instance => $instance, name => $result->{scCtlrVoltageName})); $self->{components}->{ctrlvoltage}->{total}++; - - $self->{output}->output_add(long_msg => sprintf("controller voltage '%s' status is '%s' [instance = %s] [value = %s]", - $result->{scCtlrVoltageName}, $result->{scCtlrVoltageStatus}, $instance, - $result->{scCtlrVoltageCurrentV})); - - my $exit = $self->get_severity(label => 'default', section => 'ctrlvoltage', value => $result->{scCtlrVoltageStatus}); + + $self->{output}->output_add( + long_msg => sprintf( + "controller voltage '%s' status is '%s' [instance: %s] [value: %s]", + $result->{scCtlrVoltageName}, $result->{scCtlrVoltageStatus}, $instance, + $result->{scCtlrVoltageCurrentV} + ) + ); + + my $exit = $self->get_severity(label => 'default', section => 'ctrlvoltage', name => $result->{scCtlrVoltageName}, value => $result->{scCtlrVoltageStatus}); if (!$self->{output}->is_status(value => $exit, compare => 'ok', litteral => 1)) { - $self->{output}->output_add(severity => $exit, - short_msg => sprintf("Controller voltage '%s' status is '%s'", $result->{scCtlrVoltageName}, $result->{scCtlrVoltageStatus})); + $self->{output}->output_add( + severity => $exit, + short_msg => sprintf("Controller voltage '%s' status is '%s'", $result->{scCtlrVoltageName}, $result->{scCtlrVoltageStatus}) + ); } - my ($exit2, $warn, $crit, $checked) = $self->get_severity_numeric(section => 'ctrlvoltage', instance => $instance, value => $result->{scCtlrVoltageCurrentV}); + my ($exit2, $warn, $crit, $checked) = $self->get_severity_numeric( + section => 'ctrlvoltage', + instance => $instance, + name => $result->{scCtlrVoltageName}, + value => $result->{scCtlrVoltageCurrentV} + ); if ($checked == 0) { $result->{scCtlrVoltageWarnLwrV} = (defined($result->{scCtlrVoltageWarnLwrV}) && $result->{scCtlrVoltageWarnLwrV} =~ /[0-9]/) ? $result->{scCtlrVoltageWarnLwrV} : ''; @@ -85,11 +96,14 @@ sub check { $warn = $self->{perfdata}->get_perfdata_for_output(label => 'warning-ctrlvoltage-instance-' . $instance); $crit = $self->{perfdata}->get_perfdata_for_output(label => 'critical-ctrlvoltage-instance-' . $instance); } - + if (!$self->{output}->is_status(value => $exit2, compare => 'ok', litteral => 1)) { - $self->{output}->output_add(severity => $exit2, - short_msg => sprintf("Controller voltage '%s' is %s V", $result->{scCtlrVoltageName}, $result->{scCtlrVoltageCurrentV})); + $self->{output}->output_add( + severity => $exit2, + short_msg => sprintf("Controller voltage '%s' is %s V", $result->{scCtlrVoltageName}, $result->{scCtlrVoltageCurrentV}) + ); } + $self->{output}->perfdata_add( label => 'ctrlvoltage', unit => 'V', nlabel => 'hardware.controller.voltage.volt', diff --git a/src/storage/dell/compellent/snmp/mode/components/disk.pm b/src/storage/dell/compellent/snmp/mode/components/disk.pm index c21ec29dd..961862a76 100644 --- a/src/storage/dell/compellent/snmp/mode/components/disk.pm +++ b/src/storage/dell/compellent/snmp/mode/components/disk.pm @@ -26,7 +26,7 @@ use storage::dell::compellent::snmp::mode::components::resources qw(%map_sc_stat my $mapping = { scDiskStatus => { oid => '.1.3.6.1.4.1.674.11000.2000.500.1.2.14.1.3', map => \%map_sc_status }, - scDiskNamePosition => { oid => '.1.3.6.1.4.1.674.11000.2000.500.1.2.14.1.4' }, + scDiskNamePosition => { oid => '.1.3.6.1.4.1.674.11000.2000.500.1.2.14.1.4' } }; my $oid_scDiskEntry = '.1.3.6.1.4.1.674.11000.2000.500.1.2.14.1'; @@ -48,17 +48,22 @@ sub check { my $instance = $1; my $result = $self->{snmp}->map_instance(mapping => $mapping, results => $self->{results}->{$oid_scDiskEntry}, instance => $instance); - next if ($self->check_filter(section => 'disk', instance => $instance)); + next if ($self->check_filter(section => 'disk', instance => $instance, name => $result->{scDiskNamePosition})); $self->{components}->{disk}->{total}++; - - $self->{output}->output_add(long_msg => sprintf("disk '%s' status is '%s' [instance = %s]", - $result->{scDiskNamePosition}, $result->{scDiskStatus}, $instance, - )); - - my $exit = $self->get_severity(label => 'default', section => 'disk', value => $result->{scDiskStatus}); + + $self->{output}->output_add( + long_msg => sprintf( + "disk '%s' status is '%s' [instance: %s]", + $result->{scDiskNamePosition}, $result->{scDiskStatus}, $instance + ) + ); + + my $exit = $self->get_severity(label => 'default', section => 'disk', name => $result->{scDiskNamePosition}, value => $result->{scDiskStatus}); if (!$self->{output}->is_status(value => $exit, compare => 'ok', litteral => 1)) { - $self->{output}->output_add(severity => $exit, - short_msg => sprintf("Disk '%s' status is '%s'", $result->{scDiskNamePosition}, $result->{scDiskStatus})); + $self->{output}->output_add( + severity => $exit, + short_msg => sprintf("Disk '%s' status is '%s'", $result->{scDiskNamePosition}, $result->{scDiskStatus}) + ); } } } diff --git a/src/storage/dell/compellent/snmp/mode/components/diskfolder.pm b/src/storage/dell/compellent/snmp/mode/components/diskfolder.pm index 0e925276a..be7d1cf1e 100644 --- a/src/storage/dell/compellent/snmp/mode/components/diskfolder.pm +++ b/src/storage/dell/compellent/snmp/mode/components/diskfolder.pm @@ -51,18 +51,18 @@ sub check { next if ($oid !~ /^$mapping->{scDiskFolderStatus}->{oid}\.(.*)$/); my $instance = $1; my $result = $self->{snmp}->map_instance(mapping => $mapping, results => $self->{results}->{$oid_scDiskFolderEntry}, instance => $instance); - - next if ($self->check_filter(section => 'diskfolder', instance => $instance)); + + next if ($self->check_filter(section => 'diskfolder', instance => $instance, name => $result->{scDiskFolderName})); $self->{components}->{diskfolder}->{total}++; - + $self->{output}->output_add( long_msg => sprintf( - "disk folder '%s' status is '%s' [instance = %s]", - $result->{scDiskFolderName}, $result->{scDiskFolderStatus}, $instance, + "disk folder '%s' status is '%s' [instance: %s]", + $result->{scDiskFolderName}, $result->{scDiskFolderStatus}, $instance ) ); - my $exit = $self->get_severity(label => 'default', section => 'diskfolder', value => $result->{scDiskFolderStatus}); + my $exit = $self->get_severity(label => 'default', section => 'diskfolder', name => $result->{scDiskFolderName}, value => $result->{scDiskFolderStatus}); if (!$self->{output}->is_status(value => $exit, compare => 'ok', litteral => 1)) { $self->{output}->output_add( severity => $exit, diff --git a/src/storage/dell/compellent/snmp/mode/components/encl.pm b/src/storage/dell/compellent/snmp/mode/components/encl.pm index 56b34edc0..bddf828fa 100644 --- a/src/storage/dell/compellent/snmp/mode/components/encl.pm +++ b/src/storage/dell/compellent/snmp/mode/components/encl.pm @@ -26,7 +26,7 @@ use storage::dell::compellent::snmp::mode::components::resources qw(%map_sc_stat my $mapping = { scEnclStatus => { oid => '.1.3.6.1.4.1.674.11000.2000.500.1.2.15.1.3', map => \%map_sc_status }, - scEnclName => { oid => '.1.3.6.1.4.1.674.11000.2000.500.1.2.15.1.4' }, + scEnclName => { oid => '.1.3.6.1.4.1.674.11000.2000.500.1.2.15.1.4' } }; my $oid_scEnclEntry = '.1.3.6.1.4.1.674.11000.2000.500.1.2.15.1'; @@ -48,17 +48,22 @@ sub check { my $instance = $1; my $result = $self->{snmp}->map_instance(mapping => $mapping, results => $self->{results}->{$oid_scEnclEntry}, instance => $instance); - next if ($self->check_filter(section => 'encl', instance => $instance)); + next if ($self->check_filter(section => 'encl', instance => $instance, name => $result->{scEnclName})); $self->{components}->{encl}->{total}++; - $self->{output}->output_add(long_msg => sprintf("enclosure '%s' status is '%s' [instance = %s]", - $result->{scEnclName}, $result->{scEnclStatus}, $instance, - )); - - my $exit = $self->get_severity(label => 'default', section => 'encl', value => $result->{scEnclStatus}); + $self->{output}->output_add( + long_msg => sprintf( + "enclosure '%s' status is '%s' [instance: %s]", + $result->{scEnclName}, $result->{scEnclStatus}, $instance + ) + ); + + my $exit = $self->get_severity(label => 'default', section => 'encl', name => $result->{scEnclName}, value => $result->{scEnclStatus}); if (!$self->{output}->is_status(value => $exit, compare => 'ok', litteral => 1)) { - $self->{output}->output_add(severity => $exit, - short_msg => sprintf("Enclosure '%s' status is '%s'", $result->{scEnclName}, $result->{scEnclStatus})); + $self->{output}->output_add( + severity => $exit, + short_msg => sprintf("Enclosure '%s' status is '%s'", $result->{scEnclName}, $result->{scEnclStatus}) + ); } } } diff --git a/src/storage/dell/compellent/snmp/mode/components/enclfan.pm b/src/storage/dell/compellent/snmp/mode/components/enclfan.pm index f3acd4a6b..46118c46c 100644 --- a/src/storage/dell/compellent/snmp/mode/components/enclfan.pm +++ b/src/storage/dell/compellent/snmp/mode/components/enclfan.pm @@ -48,17 +48,22 @@ sub check { my $instance = $1; my $result = $self->{snmp}->map_instance(mapping => $mapping, results => $self->{results}->{$oid_scEnclFanEntry}, instance => $instance); - next if ($self->check_filter(section => 'enclfan', instance => $instance)); + next if ($self->check_filter(section => 'enclfan', instance => $instance, name => $result->{scEnclFanLocation})); $self->{components}->{enclfan}->{total}++; - - $self->{output}->output_add(long_msg => sprintf("enclosure fan '%s' status is '%s' [instance = %s]", - $result->{scEnclFanLocation}, $result->{scEnclFanStatus}, $instance, - )); - - my $exit = $self->get_severity(label => 'default', section => 'enclfan', value => $result->{scEnclFanStatus}); + + $self->{output}->output_add( + long_msg => sprintf( + "enclosure fan '%s' status is '%s' [instance: %s]", + $result->{scEnclFanLocation}, $result->{scEnclFanStatus}, $instance, + ) + ); + + my $exit = $self->get_severity(label => 'default', section => 'enclfan', name => $result->{scEnclFanLocation}, value => $result->{scEnclFanStatus}); if (!$self->{output}->is_status(value => $exit, compare => 'ok', litteral => 1)) { - $self->{output}->output_add(severity => $exit, - short_msg => sprintf("Enclosure fan '%s' status is '%s'", $result->{scEnclFanLocation}, $result->{scEnclFanStatus})); + $self->{output}->output_add( + severity => $exit, + short_msg => sprintf("Enclosure fan '%s' status is '%s'", $result->{scEnclFanLocation}, $result->{scEnclFanStatus}) + ); } } } diff --git a/src/storage/dell/compellent/snmp/mode/components/encliomod.pm b/src/storage/dell/compellent/snmp/mode/components/encliomod.pm index 2fd9a6624..057d9268a 100644 --- a/src/storage/dell/compellent/snmp/mode/components/encliomod.pm +++ b/src/storage/dell/compellent/snmp/mode/components/encliomod.pm @@ -26,7 +26,7 @@ use storage::dell::compellent::snmp::mode::components::resources qw(%map_sc_stat my $mapping = { scEnclIoModStatus => { oid => '.1.3.6.1.4.1.674.11000.2000.500.1.2.22.1.3', map => \%map_sc_status }, - scEnclIoModPosition => { oid => '.1.3.6.1.4.1.674.11000.2000.500.1.2.22.1.4' }, + scEnclIoModPosition => { oid => '.1.3.6.1.4.1.674.11000.2000.500.1.2.22.1.4' } }; my $oid_scEnclIoModEntry = '.1.3.6.1.4.1.674.11000.2000.500.1.2.22.1'; @@ -48,17 +48,22 @@ sub check { my $instance = $1; my $result = $self->{snmp}->map_instance(mapping => $mapping, results => $self->{results}->{$oid_scEnclIoModEntry}, instance => $instance); - next if ($self->check_filter(section => 'encliomod', instance => $instance)); + next if ($self->check_filter(section => 'encliomod', instance => $instance, name => $result->{scEnclIoModPosition})); $self->{components}->{encliomod}->{total}++; - - $self->{output}->output_add(long_msg => sprintf("enclosure I/O module '%s' status is '%s' [instance = %s]", - $result->{scEnclIoModPosition}, $result->{scEnclIoModStatus}, $instance, - )); - - my $exit = $self->get_severity(label => 'default', section => 'encliomod', value => $result->{scEnclIoModStatus}); + + $self->{output}->output_add( + long_msg => sprintf( + "enclosure I/O module '%s' status is '%s' [instance: %s]", + $result->{scEnclIoModPosition}, $result->{scEnclIoModStatus}, $instance + ) + ); + + my $exit = $self->get_severity(label => 'default', section => 'encliomod', name => $result->{scEnclIoModPosition}, value => $result->{scEnclIoModStatus}); if (!$self->{output}->is_status(value => $exit, compare => 'ok', litteral => 1)) { - $self->{output}->output_add(severity => $exit, - short_msg => sprintf("Enclosure I/O module '%s' status is '%s'", $result->{scEnclIoModPosition}, $result->{scEnclIoModStatus})); + $self->{output}->output_add( + severity => $exit, + short_msg => sprintf("Enclosure I/O module '%s' status is '%s'", $result->{scEnclIoModPosition}, $result->{scEnclIoModStatus}) + ); } } } diff --git a/src/storage/dell/compellent/snmp/mode/components/enclpower.pm b/src/storage/dell/compellent/snmp/mode/components/enclpower.pm index 5e3f12b70..ebff6841e 100644 --- a/src/storage/dell/compellent/snmp/mode/components/enclpower.pm +++ b/src/storage/dell/compellent/snmp/mode/components/enclpower.pm @@ -26,7 +26,7 @@ use storage::dell::compellent::snmp::mode::components::resources qw(%map_sc_stat my $mapping = { scEnclPowerStatus => { oid => '.1.3.6.1.4.1.674.11000.2000.500.1.2.21.1.3', map => \%map_sc_status }, - scEnclPowerPosition => { oid => '.1.3.6.1.4.1.674.11000.2000.500.1.2.21.1.4' }, + scEnclPowerPosition => { oid => '.1.3.6.1.4.1.674.11000.2000.500.1.2.21.1.4' } }; my $oid_scEnclPowerEntry = '.1.3.6.1.4.1.674.11000.2000.500.1.2.21.1'; @@ -48,17 +48,22 @@ sub check { my $instance = $1; my $result = $self->{snmp}->map_instance(mapping => $mapping, results => $self->{results}->{$oid_scEnclPowerEntry}, instance => $instance); - next if ($self->check_filter(section => 'enclpower', instance => $instance)); + next if ($self->check_filter(section => 'enclpower', instance => $instance, name => $result->{scEnclPowerPosition})); $self->{components}->{enclpower}->{total}++; - $self->{output}->output_add(long_msg => sprintf("enclosure power supply '%s' status is '%s' [instance = %s]", - $result->{scEnclPowerPosition}, $result->{scEnclPowerStatus}, $instance, - )); - - my $exit = $self->get_severity(label => 'default', section => 'enclpower', value => $result->{scEnclPowerStatus}); + $self->{output}->output_add( + long_msg => sprintf( + "enclosure power supply '%s' status is '%s' [instance: %s]", + $result->{scEnclPowerPosition}, $result->{scEnclPowerStatus}, $instance + ) + ); + + my $exit = $self->get_severity(label => 'default', section => 'enclpower', name => $result->{scEnclPowerPosition}, value => $result->{scEnclPowerStatus}); if (!$self->{output}->is_status(value => $exit, compare => 'ok', litteral => 1)) { - $self->{output}->output_add(severity => $exit, - short_msg => sprintf("Enclosure power supply '%s' status is '%s'", $result->{scEnclPowerPosition}, $result->{scEnclPowerStatus})); + $self->{output}->output_add( + severity => $exit, + short_msg => sprintf("Enclosure power supply '%s' status is '%s'", $result->{scEnclPowerPosition}, $result->{scEnclPowerStatus}) + ); } } } diff --git a/src/storage/dell/compellent/snmp/mode/components/encltemp.pm b/src/storage/dell/compellent/snmp/mode/components/encltemp.pm index 4563475d5..57ca0d698 100644 --- a/src/storage/dell/compellent/snmp/mode/components/encltemp.pm +++ b/src/storage/dell/compellent/snmp/mode/components/encltemp.pm @@ -27,7 +27,7 @@ use storage::dell::compellent::snmp::mode::components::resources qw(%map_sc_stat my $mapping = { scEnclTempStatus => { oid => '.1.3.6.1.4.1.674.11000.2000.500.1.2.23.1.3', map => \%map_sc_status }, scEnclTempLocation => { oid => '.1.3.6.1.4.1.674.11000.2000.500.1.2.23.1.4' }, - scEnclTempCurrentC => { oid => '.1.3.6.1.4.1.674.11000.2000.500.1.2.23.1.5' }, + scEnclTempCurrentC => { oid => '.1.3.6.1.4.1.674.11000.2000.500.1.2.23.1.5' } }; my $oid_scEnclTempEntry = '.1.3.6.1.4.1.674.11000.2000.500.1.2.23.1'; @@ -49,35 +49,48 @@ sub check { my $instance = $1; my $result = $self->{snmp}->map_instance(mapping => $mapping, results => $self->{results}->{$oid_scEnclTempEntry}, instance => $instance); - next if ($self->check_filter(section => 'encltemp', instance => $instance)); + next if ($self->check_filter(section => 'encltemp', instance => $instance, name => $result->{scEnclTempLocation})); $self->{components}->{encltemp}->{total}++; - $self->{output}->output_add(long_msg => sprintf("enclosure temperature '%s' status is '%s' [instance = %s] [value = %s]", - $result->{scEnclTempLocation}, $result->{scEnclTempStatus}, $instance, - defined($result->{scEnclTempCurrentC}) ? $result->{scEnclTempCurrentC} : '-')); - - my $exit = $self->get_severity(label => 'default', section => 'encltemp', value => $result->{scEnclTempStatus}); + $self->{output}->output_add( + long_msg => sprintf( + "enclosure temperature '%s' status is '%s' [instance: %s] [value: %s]", + $result->{scEnclTempLocation}, $result->{scEnclTempStatus}, $instance, + defined($result->{scEnclTempCurrentC}) ? $result->{scEnclTempCurrentC} : '-' + ) + ); + + my $exit = $self->get_severity(label => 'default', section => 'encltemp', name => $result->{scEnclTempLocation}, value => $result->{scEnclTempStatus}); if (!$self->{output}->is_status(value => $exit, compare => 'ok', litteral => 1)) { - $self->{output}->output_add(severity => $exit, - short_msg => sprintf("Enclosure temperature '%s' status is '%s'", $result->{scEnclTempLocation}, $result->{scEnclTempStatus})); + $self->{output}->output_add( + severity => $exit, + short_msg => sprintf("Enclosure temperature '%s' status is '%s'", $result->{scEnclTempLocation}, $result->{scEnclTempStatus}) + ); } - + next if (!defined($result->{scEnclTempCurrentC})); - my ($exit2, $warn, $crit, $checked) = $self->get_severity_numeric(section => 'encltemp', instance => $instance, value => $result->{scEnclTempCurrentC}); - + my ($exit2, $warn, $crit, $checked) = $self->get_severity_numeric( + section => 'encltemp', + instance => $instance, + name => $result->{scEnclTempLocation}, + value => $result->{scEnclTempCurrentC} + ); if (!$self->{output}->is_status(value => $exit2, compare => 'ok', litteral => 1)) { - $self->{output}->output_add(severity => $exit2, - short_msg => sprintf("Enclosure temperature '%s' is %s C", $result->{scEnclTempLocation}, $result->{scEnclTempCurrentC})); + $self->{output}->output_add( + severity => $exit2, + short_msg => sprintf("Enclosure temperature '%s' is %s C", $result->{scEnclTempLocation}, $result->{scEnclTempCurrentC}) + ); } + $self->{output}->perfdata_add( label => 'encltemp', unit => 'C', nlabel => 'hardware.enclosure.temperature.celsius', instances => $instance, value => $result->{scEnclTempCurrentC}, warning => $warn, - critical => $crit, + critical => $crit ); } } diff --git a/src/storage/dell/compellent/snmp/mode/components/resources.pm b/src/storage/dell/compellent/snmp/mode/components/resources.pm index 8d4d82569..2e0203a3e 100644 --- a/src/storage/dell/compellent/snmp/mode/components/resources.pm +++ b/src/storage/dell/compellent/snmp/mode/components/resources.pm @@ -32,7 +32,7 @@ our @EXPORT_OK = qw(%map_sc_status); %map_sc_status = ( 1 => 'up', 2 => 'down', - 3 => 'degraded', + 3 => 'degraded' ); -1; \ No newline at end of file +1; diff --git a/src/storage/dell/compellent/snmp/mode/components/sc.pm b/src/storage/dell/compellent/snmp/mode/components/sc.pm index d9ec0bba3..883f82350 100644 --- a/src/storage/dell/compellent/snmp/mode/components/sc.pm +++ b/src/storage/dell/compellent/snmp/mode/components/sc.pm @@ -26,7 +26,7 @@ use storage::dell::compellent::snmp::mode::components::resources qw(%map_sc_stat my $mapping = { scScStatus => { oid => '.1.3.6.1.4.1.674.11000.2000.500.1.2.29.1.3', map => \%map_sc_status }, - scScName => { oid => '.1.3.6.1.4.1.674.11000.2000.500.1.2.29.1.4' }, + scScName => { oid => '.1.3.6.1.4.1.674.11000.2000.500.1.2.29.1.4' } }; my $oid_scScEntry = '.1.3.6.1.4.1.674.11000.2000.500.1.2.29.1'; @@ -48,17 +48,22 @@ sub check { my $instance = $1; my $result = $self->{snmp}->map_instance(mapping => $mapping, results => $self->{results}->{$oid_scScEntry}, instance => $instance); - next if ($self->check_filter(section => 'sc', instance => $instance)); + next if ($self->check_filter(section => 'sc', instance => $instance, name => $result->{scScName})); $self->{components}->{sc}->{total}++; - $self->{output}->output_add(long_msg => sprintf("storage center '%s' status is '%s' [instance = %s]", - $result->{scScName}, $result->{scScStatus}, $instance, - )); - - my $exit = $self->get_severity(label => 'default', section => 'sc', value => $result->{scScStatus}); + $self->{output}->output_add( + long_msg => sprintf( + "storage center '%s' status is '%s' [instance: %s]", + $result->{scScName}, $result->{scScStatus}, $instance + ) + ); + + my $exit = $self->get_severity(label => 'default', section => 'sc', name => $result->{scScName}, value => $result->{scScStatus}); if (!$self->{output}->is_status(value => $exit, compare => 'ok', litteral => 1)) { - $self->{output}->output_add(severity => $exit, - short_msg => sprintf("Storage center '%s' status is '%s'", $result->{scScName}, $result->{scScStatus})); + $self->{output}->output_add( + severity => $exit, + short_msg => sprintf("Storage center '%s' status is '%s'", $result->{scScName}, $result->{scScStatus}) + ); } } } diff --git a/src/storage/dell/compellent/snmp/mode/components/server.pm b/src/storage/dell/compellent/snmp/mode/components/server.pm index c606f5be5..20d5a9eba 100644 --- a/src/storage/dell/compellent/snmp/mode/components/server.pm +++ b/src/storage/dell/compellent/snmp/mode/components/server.pm @@ -26,7 +26,7 @@ use storage::dell::compellent::snmp::mode::components::resources qw(%map_sc_stat my $mapping = { scServerStatus => { oid => '.1.3.6.1.4.1.674.11000.2000.500.1.2.27.1.3', map => \%map_sc_status }, - scServerName => { oid => '.1.3.6.1.4.1.674.11000.2000.500.1.2.27.1.4' }, + scServerName => { oid => '.1.3.6.1.4.1.674.11000.2000.500.1.2.27.1.4' } }; my $oid_scServerEntry = '.1.3.6.1.4.1.674.11000.2000.500.1.2.27.1'; @@ -48,17 +48,22 @@ sub check { my $instance = $1; my $result = $self->{snmp}->map_instance(mapping => $mapping, results => $self->{results}->{$oid_scServerEntry}, instance => $instance); - next if ($self->check_filter(section => 'server', instance => $instance)); + next if ($self->check_filter(section => 'server', instance => $instance, name => $result->{scServerName})); $self->{components}->{server}->{total}++; - $self->{output}->output_add(long_msg => sprintf("server '%s' status is '%s' [instance = %s]", - $result->{scServerName}, $result->{scServerStatus}, $instance, - )); - - my $exit = $self->get_severity(label => 'default', section => 'server', value => $result->{scServerStatus}); + $self->{output}->output_add( + long_msg => sprintf( + "server '%s' status is '%s' [instance: %s]", + $result->{scServerName}, $result->{scServerStatus}, $instance + ) + ); + + my $exit = $self->get_severity(label => 'default', section => 'server', name => $result->{scServerName}, value => $result->{scServerStatus}); if (!$self->{output}->is_status(value => $exit, compare => 'ok', litteral => 1)) { - $self->{output}->output_add(severity => $exit, - short_msg => sprintf("Server '%s' status is '%s'", $result->{scServerName}, $result->{scServerStatus})); + $self->{output}->output_add( + severity => $exit, + short_msg => sprintf("Server '%s' status is '%s'", $result->{scServerName}, $result->{scServerStatus}) + ); } } } diff --git a/src/storage/dell/compellent/snmp/mode/components/volume.pm b/src/storage/dell/compellent/snmp/mode/components/volume.pm index 665446e61..8ad441ff6 100644 --- a/src/storage/dell/compellent/snmp/mode/components/volume.pm +++ b/src/storage/dell/compellent/snmp/mode/components/volume.pm @@ -26,7 +26,7 @@ use storage::dell::compellent::snmp::mode::components::resources qw(%map_sc_stat my $mapping = { scVolumeStatus => { oid => '.1.3.6.1.4.1.674.11000.2000.500.1.2.26.1.3', map => \%map_sc_status }, - scVolumeName => { oid => '.1.3.6.1.4.1.674.11000.2000.500.1.2.26.1.4' }, + scVolumeName => { oid => '.1.3.6.1.4.1.674.11000.2000.500.1.2.26.1.4' } }; my $oid_scVolumeEntry = '.1.3.6.1.4.1.674.11000.2000.500.1.2.26.1'; @@ -48,17 +48,22 @@ sub check { my $instance = $1; my $result = $self->{snmp}->map_instance(mapping => $mapping, results => $self->{results}->{$oid_scVolumeEntry}, instance => $instance); - next if ($self->check_filter(section => 'volume', instance => $instance)); + next if ($self->check_filter(section => 'volume', instance => $instance, name => $result->{scVolumeName})); $self->{components}->{volume}->{total}++; - $self->{output}->output_add(long_msg => sprintf("volume '%s' status is '%s' [instance = %s]", - $result->{scVolumeName}, $result->{scVolumeStatus}, $instance, - )); + $self->{output}->output_add( + long_msg => sprintf( + "volume '%s' status is '%s' [instance: %s]", + $result->{scVolumeName}, $result->{scVolumeStatus}, $instance + ) + ); - my $exit = $self->get_severity(label => 'default', section => 'volume', value => $result->{scVolumeStatus}); + my $exit = $self->get_severity(label => 'default', section => 'volume', name => $result->{scVolumeName}, value => $result->{scVolumeStatus}); if (!$self->{output}->is_status(value => $exit, compare => 'ok', litteral => 1)) { - $self->{output}->output_add(severity => $exit, - short_msg => sprintf("Volume '%s' status is '%s'", $result->{scVolumeName}, $result->{scVolumeStatus})); + $self->{output}->output_add( + severity => $exit, + short_msg => sprintf("Volume '%s' status is '%s'", $result->{scVolumeName}, $result->{scVolumeStatus}) + ); } } } diff --git a/src/storage/dell/compellent/snmp/mode/globalstatus.pm b/src/storage/dell/compellent/snmp/mode/globalstatus.pm index 6caeb4a59..db3dfb6d1 100644 --- a/src/storage/dell/compellent/snmp/mode/globalstatus.pm +++ b/src/storage/dell/compellent/snmp/mode/globalstatus.pm @@ -146,4 +146,3 @@ You can use the following variables: %{status} =back =cut - diff --git a/src/storage/dell/compellent/snmp/mode/hardware.pm b/src/storage/dell/compellent/snmp/mode/hardware.pm index 04033d4cd..c25c6b48a 100644 --- a/src/storage/dell/compellent/snmp/mode/hardware.pm +++ b/src/storage/dell/compellent/snmp/mode/hardware.pm @@ -85,6 +85,10 @@ Can be: 'ctrl', 'disk', 'diskfolder', 'encl', 'ctrlfan', 'ctrlpower', 'ctrlvolta Exclude the items given as a comma-separated list (example: --filter=ctrlfan --filter=enclpower). You can also exclude items from specific instances: --filter=ctrlfan,1 +=item B<--add-name-instance> + +Add literal description for instance value (used in filter and threshold options). + =item B<--no-component> Define the expected status if no components are found (default: critical). diff --git a/src/storage/dell/compellent/snmp/plugin.pm b/src/storage/dell/compellent/snmp/plugin.pm index 7fb0c7b67..58cf07d10 100644 --- a/src/storage/dell/compellent/snmp/plugin.pm +++ b/src/storage/dell/compellent/snmp/plugin.pm @@ -29,7 +29,6 @@ sub new { my $self = $class->SUPER::new(package => __PACKAGE__, %options); bless $self, $class; - $self->{version} = '1.0'; $self->{modes} = { 'global-status' => 'storage::dell::compellent::snmp::mode::globalstatus', 'hardware' => 'storage::dell::compellent::snmp::mode::hardware', From 3a7cb1bfa47e2170d53a9b7b284bdb9b9bb5d040 Mon Sep 17 00:00:00 2001 From: omercier <32134301+omercier@users.noreply.github.com> Date: Fri, 30 Jun 2023 16:47:57 +0200 Subject: [PATCH 27/39] fix: removed unexisting mode (#4524) --- src/cloud/azure/compute/virtualmachine/plugin.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/cloud/azure/compute/virtualmachine/plugin.pm b/src/cloud/azure/compute/virtualmachine/plugin.pm index f5d3ba301..2ea9544ed 100644 --- a/src/cloud/azure/compute/virtualmachine/plugin.pm +++ b/src/cloud/azure/compute/virtualmachine/plugin.pm @@ -38,8 +38,7 @@ sub new { 'list-resources' => 'cloud::azure::compute::virtualmachine::mode::listresources', 'memory' => 'cloud::azure::compute::virtualmachine::mode::memory', 'network' => 'cloud::azure::compute::virtualmachine::mode::network', - 'vm-sizes' => 'cloud::azure::compute::virtualmachine::mode::vmsizes', - 'vms-state' => 'cloud::azure::compute::virtualmachine::mode::vmsstate' + 'vm-sizes' => 'cloud::azure::compute::virtualmachine::mode::vmsizes' ); $self->{custom_modes}{azcli} = 'cloud::azure::custom::azcli'; From f9c88eac955cfded8ba6fc71233fab359c9b77c4 Mon Sep 17 00:00:00 2001 From: qgarnier Date: Mon, 3 Jul 2023 11:43:59 +0200 Subject: [PATCH 28/39] (plugin) network::cisco::wlc::snmp - enhance cisco wlc discovery mode (#4503) --- .../common/airespace/snmp/mode/discovery.pm | 57 +++++++------------ 1 file changed, 21 insertions(+), 36 deletions(-) diff --git a/src/centreon/common/airespace/snmp/mode/discovery.pm b/src/centreon/common/airespace/snmp/mode/discovery.pm index 10c47b768..4b006adc9 100644 --- a/src/centreon/common/airespace/snmp/mode/discovery.pm +++ b/src/centreon/common/airespace/snmp/mode/discovery.pm @@ -55,28 +55,29 @@ my $map_operation_status = { }; my $mapping = { - ap_name => { oid => '.1.3.6.1.4.1.14179.2.2.1.1.3' }, # bsnAPName - ap_ipaddr => { oid => '.1.3.6.1.4.1.14179.2.2.1.1.19' } # bsnApIpAddress + ap_name => { oid => '.1.3.6.1.4.1.14179.2.2.1.1.3' }, # bsnAPName + ap_location => { oid => '.1.3.6.1.4.1.14179.2.2.1.1.4' }, # bsnAPLocation + ap_opstatus => { oid => '.1.3.6.1.4.1.14179.2.2.1.1.6', map => $map_operation_status }, # bsnAPOperationStatus + ap_model => { oid => '.1.3.6.1.4.1.14179.2.2.1.1.16' }, # bsnAPModel + ap_ipaddr => { oid => '.1.3.6.1.4.1.14179.2.2.1.1.19' }, # bsnApIpAddress + ap_admstatus => { oid => '.1.3.6.1.4.1.14179.2.2.1.1.37', map => $map_admin_status } # bsnAPAdminStatus }; -my $mapping2 = { - opstatus => { oid => '.1.3.6.1.4.1.14179.2.2.1.1.6', map => $map_operation_status }, # bsnAPOperationStatus - admstatus => { oid => '.1.3.6.1.4.1.14179.2.2.1.1.37', map => $map_admin_status } # bsnAPAdminStatus -}; -my $oid_agentInventoryMachineModel = '.1.3.6.1.4.1.14179.1.1.1.3'; sub run { my ($self, %options) = @_; - my %ap; my @disco_data; my $disco_stats; $disco_stats->{start_time} = time(); my $request = [ - { oid => $oid_agentInventoryMachineModel }, { oid => $mapping->{ap_name}->{oid} }, - { oid => $mapping->{ap_ipaddr}->{oid} } + { oid => $mapping->{ap_location}->{oid} }, + { oid => $mapping->{ap_opstatus}->{oid} }, + { oid => $mapping->{ap_model}->{oid} }, + { oid => $mapping->{ap_ipaddr}->{oid} }, + { oid => $mapping->{ap_admstatus}->{oid} } ]; my $snmp_result = $options{snmp}->get_multiple_table( oids => $request, @@ -89,39 +90,23 @@ sub run { my $instance = $1; my $result = $options{snmp}->map_instance( - mapping => $mapping, - results => $snmp_result, + mapping => $mapping, + results => $snmp_result, instance => $instance); - $self->{ap}->{ $result->{ap_name} } = { + next if (defined($self->{option_results}->{filter_admin_down}) && $result->{ap_admstatus} eq 'disable'); + + my $ap = { name => $result->{ap_name}, instance => $instance, + location => $result->{ap_location}, + model => $result->{ap_model}, ip => $result->{ap_ipaddr}, - model => defined($snmp_result->{$oid_agentInventoryMachineModel . '.0'}) ? - $snmp_result->{$oid_agentInventoryMachineModel . '.0'} : 'unknown' + admstatus => $result->{ap_admstatus}, + opstatus => $result->{ap_opstatus} }; - } - $options{snmp}->load( - oids => [ map($_->{oid}, values(%$mapping2)) ], - instances => [ map($_->{instance}, values %{$self->{ap}}) ], - instance_regexp => '^(.*)$' - ); - - $snmp_result = $options{snmp}->get_leef(); - - foreach my $ap_name (keys %{$self->{ap}}) { - my $result = $options{snmp}->map_instance( - mapping => $mapping2, - results => $snmp_result, - instance => $self->{ap}->{ $ap_name }->{instance} - ); - - $self->{ap}->{ $ap_name }->{admstatus} = $result->{admstatus}; - $self->{ap}->{ $ap_name }->{opstatus} = $result->{opstatus}; - - next if (defined($self->{option_results}->{filter_admin_down}) && $result->{admstatus} eq 'disable'); - push @disco_data, $self->{ap}->{ $ap_name }; + push @disco_data, $ap; } $disco_stats->{end_time} = time(); From ad32fcdf29c1b009c4ad4188ab74abd6a3a1c329 Mon Sep 17 00:00:00 2001 From: qgarnier Date: Mon, 3 Jul 2023 11:44:21 +0200 Subject: [PATCH 29/39] enh(plugin): update email notification mode (#4520) --- src/notification/email/mode/alert.pm | 84 +++++++++++++++------------- 1 file changed, 45 insertions(+), 39 deletions(-) diff --git a/src/notification/email/mode/alert.pm b/src/notification/email/mode/alert.pm index b57829a94..bc5e20447 100644 --- a/src/notification/email/mode/alert.pm +++ b/src/notification/email/mode/alert.pm @@ -263,6 +263,7 @@ sub host_message { padding: 0 !important; height: 100% !important; width: 100% !important; + background-color: #F2F2F2; } * { @@ -360,9 +361,6 @@ sub host_message { } - - -
@@ -581,7 +579,7 @@ sub service_message { my $img; if ($self->{http}->get_code() !~ /200/ || $content =~ /^OK/) { - $img = '

No graph

'; + $img = '

No graph

'; } else { $self->{payload_attachment}->{png} = $content; $img = '\n"; @@ -641,6 +639,7 @@ sub service_message { padding: 0 !important; height: 100% !important; width: 100% !important; + background-color: #F2F2F2; } * { @@ -738,9 +737,6 @@ sub service_message { } - - -
@@ -863,10 +859,6 @@ sub service_message {

Service Graph:

- - - - '. $img . ' @@ -937,22 +929,6 @@ sub run { my ($self, %options) = @_; $self->set_payload(); - my $attachement = ''; - if (defined($self->{payload_attachment}->{png}) && $self->{payload_attachment}->{png} ne '' && $self->{payload_attachment}->{png} ne 'Resource not found' ) { - my $img_cid = $self->{option_results}->{host_name} . '_' . $self->{option_results}->{service_description}; - $attachement = Email::MIME->create( - header_str => [ - 'Content-ID' => "<$img_cid>" - ], - attributes => { - content_type => 'image/png', - disposition => 'inline', - encoding => 'base64', - name => $self->{option_results}->{host_name} . ' - ' . $self->{option_results}->{service_description} . '.png' - }, - body => $self->{payload_attachment}->{png} - ); - } my $html_part = Email::MIME->create( attributes => { @@ -970,23 +946,53 @@ sub run { body => $self->{payload_attachment}->{alt_message} ); - my $email = Email::MIME->create( - header_str => [ - From => $self->{option_results}->{from_address}, - To => $self->{option_results}->{to_address}, - Subject => $self->{payload_attachment}->{subject} - ], - parts => [ - Email::MIME->create( + my $email; + + if (defined($self->{payload_attachment}->{png}) && $self->{payload_attachment}->{png} ne '' && $self->{payload_attachment}->{png} ne 'Resource not found' ) { + my $img_cid = $self->{option_results}->{host_name} . '_' . $self->{option_results}->{service_description}; + + $email = Email::MIME->create( + header_str => [ + From => $self->{option_results}->{from_address}, + To => $self->{option_results}->{to_address}, + Subject => $self->{payload_attachment}->{subject} + ], + parts => [ + Email::MIME->create( + attributes => { + content_type => 'multipart/alternative', + charset => 'UTF-8', + }, + parts => [$text_part, $html_part], + ), + Email::MIME->create( + header_str => [ + 'Content-ID' => "<$img_cid>" + ], + attributes => { + content_type => 'image/png', + disposition => 'inline', + encoding => 'base64', + name => $self->{option_results}->{host_name} . ' - ' . $self->{option_results}->{service_description} . '.png' + }, + body => $self->{payload_attachment}->{png} + ) + ] + ); + } else { + $email = Email::MIME->create( + header_str => [ + From => $self->{option_results}->{from_address}, + To => $self->{option_results}->{to_address}, + Subject => $self->{payload_attachment}->{subject} + ], attributes => { content_type => 'multipart/alternative', charset => 'UTF-8', }, parts => [$text_part, $html_part], - ), - $attachement - ] - ); + ); + } my $smtp = Email::Sender::Transport::SMTP->new({ host => $self->{option_results}->{smtp_address}, From c11bcdb00aa343a2fa0e7667817e7987e13abe7b Mon Sep 17 00:00:00 2001 From: Lucie Dubrunfaut <123162035+lucie-dubrunfaut@users.noreply.github.com> Date: Tue, 4 Jul 2023 11:55:13 +0200 Subject: [PATCH 30/39] Depreciate the ip label datametrie monitoring connector (#4530) --- .../deb.json | 4 - .../pkg.json | 9 - .../rpm.json | 4 - .../iplabel/datametrie/restapi/custom/api.pm | 292 ------------------ .../iplabel/datametrie/restapi/mode/alarms.pm | 125 -------- .../iplabel/datametrie/restapi/mode/kpi.pm | 201 ------------ .../datametrie/restapi/mode/listkpi.pm | 115 ------- .../iplabel/datametrie/restapi/plugin.pm | 51 --- 8 files changed, 801 deletions(-) delete mode 100644 packaging/centreon-plugin-Applications-Monitoring-Iplabel-Datametrie-Restapi/deb.json delete mode 100644 packaging/centreon-plugin-Applications-Monitoring-Iplabel-Datametrie-Restapi/pkg.json delete mode 100644 packaging/centreon-plugin-Applications-Monitoring-Iplabel-Datametrie-Restapi/rpm.json delete mode 100644 src/apps/monitoring/iplabel/datametrie/restapi/custom/api.pm delete mode 100644 src/apps/monitoring/iplabel/datametrie/restapi/mode/alarms.pm delete mode 100644 src/apps/monitoring/iplabel/datametrie/restapi/mode/kpi.pm delete mode 100644 src/apps/monitoring/iplabel/datametrie/restapi/mode/listkpi.pm delete mode 100644 src/apps/monitoring/iplabel/datametrie/restapi/plugin.pm diff --git a/packaging/centreon-plugin-Applications-Monitoring-Iplabel-Datametrie-Restapi/deb.json b/packaging/centreon-plugin-Applications-Monitoring-Iplabel-Datametrie-Restapi/deb.json deleted file mode 100644 index 9757fe112..000000000 --- a/packaging/centreon-plugin-Applications-Monitoring-Iplabel-Datametrie-Restapi/deb.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "dependencies": [ - ] -} diff --git a/packaging/centreon-plugin-Applications-Monitoring-Iplabel-Datametrie-Restapi/pkg.json b/packaging/centreon-plugin-Applications-Monitoring-Iplabel-Datametrie-Restapi/pkg.json deleted file mode 100644 index 443734a23..000000000 --- a/packaging/centreon-plugin-Applications-Monitoring-Iplabel-Datametrie-Restapi/pkg.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "pkg_name": "centreon-plugin-Applications-Monitoring-Iplabel-Datametrie-Restapi", - "pkg_summary": "Centreon Plugin IP-Label datametrie rest api", - "plugin_name": "centreon_monitoring_iplabel_datametrie_restapi.pl", - "files": [ - "centreon/plugins/script_custom.pm", - "apps/monitoring/iplabel/datametrie/restapi/" - ] -} diff --git a/packaging/centreon-plugin-Applications-Monitoring-Iplabel-Datametrie-Restapi/rpm.json b/packaging/centreon-plugin-Applications-Monitoring-Iplabel-Datametrie-Restapi/rpm.json deleted file mode 100644 index 9757fe112..000000000 --- a/packaging/centreon-plugin-Applications-Monitoring-Iplabel-Datametrie-Restapi/rpm.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "dependencies": [ - ] -} diff --git a/src/apps/monitoring/iplabel/datametrie/restapi/custom/api.pm b/src/apps/monitoring/iplabel/datametrie/restapi/custom/api.pm deleted file mode 100644 index 2ef728f87..000000000 --- a/src/apps/monitoring/iplabel/datametrie/restapi/custom/api.pm +++ /dev/null @@ -1,292 +0,0 @@ -# -# Copyright 2023 Centreon (http://www.centreon.com/) -# -# Centreon is a full-fledged industry-strength solution that meets -# the needs in IT infrastructure and application monitoring for -# service performance. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -package apps::monitoring::iplabel::datametrie::restapi::custom::api; - -use strict; -use warnings; -use centreon::plugins::http; -use centreon::plugins::statefile; -use JSON::XS; -use Digest::MD5 qw(md5_hex); - -sub new { - my ($class, %options) = @_; - my $self = {}; - bless $self, $class; - - if (!defined($options{output})) { - print "Class Custom: Need to specify 'output' argument.\n"; - exit 3; - } - if (!defined($options{options})) { - $options{output}->add_option_msg(short_msg => "Class Custom: Need to specify 'options' argument."); - $options{output}->option_exit(); - } - - if (!defined($options{noptions})) { - $options{options}->add_options(arguments => { - 'api-username:s' => { name => 'api_username' }, - 'api-password:s' => { name => 'api_password' }, - 'hostname:s' => { name => 'hostname' }, - 'port:s' => { name => 'port' }, - 'proto:s' => { name => 'proto' }, - 'timeout:s' => { name => 'timeout' }, - 'unknown-http-status:s' => { name => 'unknown_http_status' }, - 'warning-http-status:s' => { name => 'warning_http_status' }, - 'critical-http-status:s' => { name => 'critical_http_status' } - }); - } - $options{options}->add_help(package => __PACKAGE__, sections => 'REST API OPTIONS', once => 1); - - $self->{output} = $options{output}; - $self->{http} = centreon::plugins::http->new(%options); - $self->{cache} = centreon::plugins::statefile->new(%options); - - return $self; -} - -sub set_options { - my ($self, %options) = @_; - - $self->{option_results} = $options{option_results}; -} - -sub set_defaults {} - -sub check_options { - my ($self, %options) = @_; - - $self->{hostname} = (defined($self->{option_results}->{hostname})) ? $self->{option_results}->{hostname} : 'api.ip-label.net'; - $self->{port} = (defined($self->{option_results}->{port})) ? $self->{option_results}->{port} : 443; - $self->{proto} = (defined($self->{option_results}->{proto})) ? $self->{option_results}->{proto} : 'https'; - $self->{timeout} = (defined($self->{option_results}->{timeout})) ? $self->{option_results}->{timeout} : 10; - $self->{unknown_http_status} = (defined($self->{option_results}->{unknown_http_status})) ? $self->{option_results}->{unknown_http_status} : '%{http_code} < 200 or %{http_code} >= 300'; - $self->{warning_http_status} = (defined($self->{option_results}->{warning_http_status})) ? $self->{option_results}->{warning_http_status} : ''; - $self->{critical_http_status} = (defined($self->{option_results}->{critical_http_status})) ? $self->{option_results}->{critical_http_status} : ''; - $self->{api_username} = (defined($self->{option_results}->{api_username})) ? $self->{option_results}->{api_username} : undef; - $self->{api_password} = (defined($self->{option_results}->{api_password})) ? $self->{option_results}->{api_password} : undef; - - if (!defined($self->{hostname}) || $self->{hostname} eq '') { - $self->{output}->add_option_msg(short_msg => "Need to specify --hostname option."); - $self->{output}->option_exit(); - } - if (!defined($self->{api_username}) || $self->{api_username} eq '') { - $self->{output}->add_option_msg(short_msg => "Need to specify --api-username option."); - $self->{output}->option_exit(); - } - if (!defined($self->{api_password}) || $self->{api_password} eq '') { - $self->{output}->add_option_msg(short_msg => "Need to specify --api-password option."); - $self->{output}->option_exit(); - } - - $self->{cache}->check_options(option_results => $self->{option_results}); - - return 0; -} - -sub get_hostname { - my ($self, %options) = @_; - - return $self->{hostname}; -} - -sub get_port { - my ($self, %options) = @_; - - return $self->{port}; -} - -sub build_options_for_httplib { - my ($self, %options) = @_; - - $self->{option_results}->{hostname} = $self->{hostname}; - $self->{option_results}->{port} = $self->{port}; - $self->{option_results}->{proto} = $self->{proto}; - $self->{option_results}->{timeout} = $self->{timeout}; -} - -sub settings { - my ($self, %options) = @_; - - $self->build_options_for_httplib(); - $self->{http}->add_header(key => 'Content-Type', value => 'application/json;charset=UTF-8'); - $self->{http}->add_header(key => 'Accept', value => 'application/json;charset=UTF-8'); - $self->{http}->set_options(%{$self->{option_results}}); -} - -sub json_decode { - my ($self, %options) = @_; - - my $decoded; - eval { - $decoded = JSON::XS->new->utf8->decode($options{content}); - }; - if ($@) { - $self->{output}->add_option_msg(short_msg => "Cannot decode json response: $@"); - $self->{output}->option_exit(); - } - - return $decoded; -} - -sub clean_session_token { - my ($self, %options) = @_; - - my $datas = { last_timestamp => time() }; - $options{statefile}->write(data => $datas); - $self->{session_token} = undef; - $self->{http}->add_header(key => 'Ipln-Auth', value => undef); -} - -sub authenticate { - my ($self, %options) = @_; - - my $has_cache_file = $options{statefile}->read(statefile => 'iplabel_datametrie_api_' . md5_hex($self->{option_results}->{hostname}) . '_' . md5_hex($self->{option_results}->{api_username})); - my $session_token = $options{statefile}->get(name => 'session_token'); - - if ($has_cache_file == 0 || !defined($session_token)) { - my $content = $self->{http}->request( - url_path => '/REST/Get_Token/', - credentials => 1, - basic => 1, - username => $self->{api_username}, - password => $self->{api_password}, - warning_status => '', - unknown_status => '', - critical_status => '' - ); - if ($self->{http}->get_code() != 200) { - $self->{output}->add_option_msg(short_msg => "login error [code: '" . $self->{http}->get_code() . "'] [message: '" . $self->{http}->get_message() . "']"); - $self->{output}->option_exit(); - } - - my $decoded = $self->json_decode(content => $content); - - if (!defined($decoded) || !defined($decoded->{Ipln_WS_REST_datametrie}->{Get_Token}->{status}) || - $decoded->{Ipln_WS_REST_datametrie}->{Get_Token}->{status} ne 'success') { - $self->{output}->add_option_msg(short_msg => 'error retrieving session_token'); - $self->{output}->option_exit(); - } - - $session_token = $decoded->{Ipln_WS_REST_datametrie}->{Get_Token}->{response}->{TOKEN}; - - my $datas = { last_timestamp => time(), session_token => $session_token }; - $options{statefile}->write(data => $datas); - } - - $self->{session_token} = $session_token; - $self->{http}->add_header(key => 'Ipln-Auth', value => $self->{session_token}); -} - -sub request_api { - my ($self, %options) = @_; - - $self->settings(); - if (!defined($self->{session_token})) { - $self->authenticate(statefile => $self->{cache}); - } - - my $content = $self->{http}->request( - url_path => '/REST' . $options{endpoint}, - get_param => $options{get_param}, - unknown_status => $self->{unknown_http_status}, - warning_status => $self->{warning_http_status}, - critical_status => $self->{critical_http_status} - ); - - # wrong token is 200 - my $decoded = $self->json_decode(content => $content); - if (!defined($decoded) || !defined($decoded->{Ipln_WS_REST_datametrie}->{ $options{label} }->{status})) { - $self->{output}->add_option_msg(short_msg => 'error while retrieving data (add --debug option for detailed message)'); - $self->{output}->option_exit(); - } - - if ($decoded->{Ipln_WS_REST_datametrie}->{ $options{label} }->{status} ne 'success') { - $self->clean_session_token(statefile => $self->{cache}); - $self->authenticate(statefile => $self->{cache}); - $content = $self->{http}->request( - url_path => '/REST' . $options{endpoint}, - get_param => $options{get_param}, - unknown_status => $self->{unknown_http_status}, - warning_status => $self->{warning_http_status}, - critical_status => $self->{critical_http_status} - ); - - $decoded = $self->json_decode(content => $content); - if (!defined($decoded) || !defined($decoded->{Ipln_WS_REST_datametrie}->{ $options{label} }->{status})) { - $self->{output}->add_option_msg(short_msg => 'error while retrieving data (add --debug option for detailed message)'); - $self->{output}->option_exit(); - } - } - - if ($decoded->{Ipln_WS_REST_datametrie}->{ $options{label} }->{status} ne 'success') { - $self->{output}->add_option_msg(short_msg => 'method failed'); - $self->{output}->option_exit(); - } - - return $decoded->{Ipln_WS_REST_datametrie}->{ $options{label} }->{response}; -} - -1; - -__END__ - -=head1 NAME - -Ip-Label Datametrie Rest API - -=head1 REST API OPTIONS - -Ip-Label Datametrie Rest API - -=over 8 - -=item B<--hostname> - -Set hostname (Default: 'api.ip-label.net'). - -=item B<--port> - -Port used (Default: 443) - -=item B<--proto> - -Specify https if needed (Default: 'https') - -=item B<--api-username> - -Set username. - -=item B<--api-password> - -Set password. - -=item B<--timeout> - -Set timeout in seconds (Default: 10). - -=back - -=head1 DESCRIPTION - -B. - -=cut diff --git a/src/apps/monitoring/iplabel/datametrie/restapi/mode/alarms.pm b/src/apps/monitoring/iplabel/datametrie/restapi/mode/alarms.pm deleted file mode 100644 index 7ef77c6df..000000000 --- a/src/apps/monitoring/iplabel/datametrie/restapi/mode/alarms.pm +++ /dev/null @@ -1,125 +0,0 @@ -# -# Copyright 2023 Centreon (http://www.centreon.com/) -# -# Centreon is a full-fledged industry-strength solution that meets -# the needs in IT infrastructure and application monitoring for -# service performance. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -package apps::monitoring::iplabel::datametrie::restapi::mode::alarms; - -use base qw(centreon::plugins::templates::counter); - -use strict; -use warnings; - -sub prefix_alarm_output { - my ($self, %options) = @_; - - return 'current alarms '; -} - -sub set_counters { - my ($self, %options) = @_; - - $self->{maps_counters_type} = [ - { name => 'global', type => 0, cb_prefix_output => 'prefix_alarm_output', skipped_code => { -10 => 1 } } - ]; - - $self->{maps_counters}->{global} = [ - { label => 'black', nlabel => 'alarms.black.count', set => { - key_values => [ { name => 'black' } ], - output_template => 'black: %s', - perfdatas => [ - { template => '%s', min => 0 } - ] - } - }, - { label => 'red', nlabel => 'alarms.red.count', set => { - key_values => [ { name => 'red' } ], - output_template => 'red: %s', - perfdatas => [ - { template => '%s', min => 0 } - ] - } - }, - { label => 'orange', nlabel => 'alarms.orange.count', set => { - key_values => [ { name => 'orange' } ], - output_template => 'orange: %s', - perfdatas => [ - { template => '%s', min => 0 } - ] - } - } - ]; -} - -sub new { - my ($class, %options) = @_; - my $self = $class->SUPER::new(package => __PACKAGE__, %options, force_new_perfdata => 1); - bless $self, $class; - - $options{options}->add_options(arguments => { - }); - - return $self; -} - -sub check_options { - my ($self, %options) = @_; - $self->SUPER::check_options(%options); - - $self->change_macros(macros => ['unknown_status', 'warning_status', 'critical_status', ]); -} - -sub manage_selection { - my ($self, %options) = @_; - - my $results = $options{custom}->request_api( - endpoint => '/Get_Current_Alarms_All_Monitors/', - label => 'Get_Current_Alarms_All_Monitors' - ); - - $self->{global} = { orange => 0, red => 0, black => 0 }; - return if (ref($results) ne 'ARRAY'); - - foreach (@$results) { - $self->{global}->{ lc($_->{ALARM_TYPE}) }++ if (defined($self->{global}->{ lc($_->{ALARM_TYPE}) })); - } -} - -1; - -__END__ - -=head1 MODE - -Check current alarms. - -=over 8 - -=item B<--filter-counters> - -Only display some counters (regexp can be used). -Example: --filter-counters='black' - -=item B<--warning-*> B<--critical-*> - -Thresholds. -Can be: 'black', 'red', 'orange'. - -=back - -=cut diff --git a/src/apps/monitoring/iplabel/datametrie/restapi/mode/kpi.pm b/src/apps/monitoring/iplabel/datametrie/restapi/mode/kpi.pm deleted file mode 100644 index 521240913..000000000 --- a/src/apps/monitoring/iplabel/datametrie/restapi/mode/kpi.pm +++ /dev/null @@ -1,201 +0,0 @@ -# -# Copyright 2023 Centreon (http://www.centreon.com/) -# -# Centreon is a full-fledged industry-strength solution that meets -# the needs in IT infrastructure and application monitoring for -# service performance. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -package apps::monitoring::iplabel::datametrie::restapi::mode::kpi; - -use base qw(centreon::plugins::templates::counter); - -use strict; -use warnings; -use POSIX; -use centreon::plugins::templates::catalog_functions qw(catalog_status_threshold); - -sub custom_status_output { - my ($self, %options) = @_; - - return sprintf('status: %s', $self->{result_values}->{status}); -} - -sub set_counters { - my ($self, %options) = @_; - - $self->{maps_counters_type} = [ - { name => 'kpi', type => 1, cb_prefix_output => 'prefix_kpi_output', message_multiple => 'All KPI are ok', skipped_code => { -10 => 1 } }, - ]; - - $self->{maps_counters}->{kpi} = [ - { label => 'status', threshold => 0, set => { - key_values => [ { name => 'status' }, { name => 'display' } ], - closure_custom_output => $self->can('custom_status_output'), - closure_custom_perfdata => sub { return 0; }, - closure_custom_threshold_check => \&catalog_status_threshold - } - }, - { label => 'success-rate', nlabel => 'kpi.success.rate.percentage', set => { - key_values => [ { name => 'success_rate', no_value => -1 }, { name => 'display' } ], - output_template => 'success rate: %.2f %%', - perfdatas => [ - { template => '%.2f', min => 0, max => 100, unit => '%', label_extra_instance => 1 } - ] - } - }, - { label => 'sla-availability', nlabel => 'kpi.sla.availability.percentage', set => { - key_values => [ { name => 'sla_availability', no_value => -1 }, { name => 'display' } ], - output_template => 'sla availability: %.2f %%', - perfdatas => [ - { template => '%.2f', min => 0, max => 100, unit => '%', label_extra_instance => 1 } - ] - } - }, - { label => 'performance', nlabel => 'kpi.performance.milliseconds', set => { - key_values => [ { name => 'performance', no_value => -1 }, { name => 'display' } ], - output_template => 'performance: %s ms', - perfdatas => [ - { template => '%s', min => 0, unit => 'ms', label_extra_instance => 1 } - ] - } - } - ]; -} - -sub new { - my ($class, %options) = @_; - my $self = $class->SUPER::new(package => __PACKAGE__, %options, force_new_perfdata => 1); - bless $self, $class; - - $options{options}->add_options(arguments => { - 'filter-id:s' => { name => 'filter_id' }, - 'filter-name:s' => { name => 'filter_name' }, - 'unknown-status:s' => { name => 'unknown_status', default => '' }, - 'warning-status:s' => { name => 'warning_status', default => '' }, - 'critical-status:s' => { name => 'critical_status', default => '' } - }); - - return $self; -} - -sub check_options { - my ($self, %options) = @_; - $self->SUPER::check_options(%options); - - $self->change_macros(macros => ['unknown_status', 'warning_status', 'critical_status', ]); -} - -sub prefix_kpi_output { - my ($self, %options) = @_; - - return "KPI '" . $options{instance_value}->{display} . "' "; -} - -sub manage_selection { - my ($self, %options) = @_; - - my $results = $options{custom}->request_api( - endpoint => '/Get_Monitors/', - label => 'Get_Monitors' - ); - - $self->{kpi} = {}; - my $time = time(); - my $end_date = POSIX::strftime('%d/%m/%Y %H:%M:%S', gmtime()); - foreach (@$results) { - if (defined($self->{option_results}->{filter_name}) && $self->{option_results}->{filter_name} ne '' && - $_->{MONITOR_NAME} !~ /$self->{option_results}->{filter_name}/) { - $self->{output}->output_add(long_msg => "skipping monitor '" . $_->{MONITOR_NAME} . "': no matching filter.", debug => 1); - next; - } - if (defined($self->{option_results}->{filter_id}) && $self->{option_results}->{filter_id} ne '' && - $_->{MONITOR_ID} !~ /$self->{option_results}->{filter_id}/) { - $self->{output}->output_add(long_msg => "skipping monitor '" . $_->{MONITOR_NAME} . "': no matching filter.", debug => 1); - next; - } - - my $start_date = POSIX::strftime('%d/%m/%Y %H:%M:%S', gmtime($time - ($_->{PERIODICITY} * 60 * 2))); - my $kpi_detail = $options{custom}->request_api( - endpoint => '/GMT/Get_KPI/', - label => 'Get_KPI', - get_param => [ - 'monitor_id=' . $_->{MONITOR_ID}, - 'date_value1=' . $start_date, - 'date_value2=' . $end_date - ] - ); - - $self->{kpi}->{ $_->{MONITOR_NAME} } = { - display => $_->{MONITOR_NAME}, - status => $_->{MONITOR_STATUS}, - success_rate => $kpi_detail->{SUCCESS_RATE}, - performance => $kpi_detail->{PERFORMANCE}, - sla_availability => $kpi_detail->{SLA_AVAILABILITY}, - }; - } - - if (scalar(keys %{$self->{kpi}}) <= 0) { - $self->{output}->add_option_msg(short_msg => "No monitor found"); - $self->{output}->option_exit(); - } -} - -1; - -__END__ - -=head1 MODE - -Check KPI. - -=over 8 - -=item B<--filter-counters> - -Only display some counters (regexp can be used). -Example: --filter-counters='status' - -=item B<--filter-id> - -Filter by monitor id (can be a regexp). - -=item B<--filter-name> - -Filter by monitor name (can be a regexp). - -=item B<--unknown-status> - -Define the conditions to match for the status to be UNKNOWN. -You can use the following variables: %{status}, %{display} - -=item B<--warning-status> - -Define the conditions to match for the status to be WARNING. -You can use the following variables: %{status}, %{display} - -=item B<--critical-status> - -Define the conditions to match for the status to be CRITICAL. -You can use the following variables: %{status}, %{display} - -=item B<--warning-*> B<--critical-*> - -Thresholds. -Can be: 'success-rate' (%) 'sla-availability' (%), 'performance' (ms). - -=back - -=cut diff --git a/src/apps/monitoring/iplabel/datametrie/restapi/mode/listkpi.pm b/src/apps/monitoring/iplabel/datametrie/restapi/mode/listkpi.pm deleted file mode 100644 index 2e613891a..000000000 --- a/src/apps/monitoring/iplabel/datametrie/restapi/mode/listkpi.pm +++ /dev/null @@ -1,115 +0,0 @@ -# -# Copyright 2023 Centreon (http://www.centreon.com/) -# -# Centreon is a full-fledged industry-strength solution that meets -# the needs in IT infrastructure and application monitoring for -# service performance. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -package apps::monitoring::iplabel::datametrie::restapi::mode::listkpi; - -use base qw(centreon::plugins::mode); - -use strict; -use warnings; - -sub new { - my ($class, %options) = @_; - my $self = $class->SUPER::new(package => __PACKAGE__, %options); - bless $self, $class; - - $options{options}->add_options(arguments => { - }); - - return $self; -} - -sub check_options { - my ($self, %options) = @_; - $self->SUPER::init(%options); -} - -sub manage_selection { - my ($self, %options) = @_; - - my $api_results = $options{custom}->request_api( - endpoint => '/Get_Monitors/', - label => 'Get_Monitors' - ); - my $results = {}; - foreach (@$api_results) { - $results->{$_->{MONITOR_ID}} = { - id => $_->{MONITOR_ID}, - name => $_->{MONITOR_NAME}, - client_id => $_->{CLIENT_ID}, - status => $_->{MONITOR_STATUS} - }; - } - - return $results; -} - -sub run { - my ($self, %options) = @_; - - my $results = $self->manage_selection(%options); - foreach (sort {lc $a->{name} cmp lc $b->{name}} values %$results) { - $self->{output}->output_add( - long_msg => sprintf( - '[name = %s][id = %s][client id = %s][status = %s]', - $_->{name}, - $_->{id}, - $_->{client_id}, - $_->{status} - ) - ); - } - - $self->{output}->output_add( - severity => 'OK', - short_msg => 'List kpi:' - ); - $self->{output}->display(nolabel => 1, force_ignore_perfdata => 1, force_long_output => 1); - $self->{output}->exit(); -} - -sub disco_format { - my ($self, %options) = @_; - - $self->{output}->add_disco_format(elements => ['id', 'name', 'client_id', 'status']); -} - -sub disco_show { - my ($self, %options) = @_; - - my $scenarios = $self->manage_selection(%options); - foreach (sort {lc $a->{name} cmp lc $b->{name}} values %$scenarios) { - $self->{output}->add_disco_entry(%$_); - } -} - -1; - -__END__ - -=head1 MODE - -List KPI. - -=over 8 - -=back - -=cut diff --git a/src/apps/monitoring/iplabel/datametrie/restapi/plugin.pm b/src/apps/monitoring/iplabel/datametrie/restapi/plugin.pm deleted file mode 100644 index 85fa037b1..000000000 --- a/src/apps/monitoring/iplabel/datametrie/restapi/plugin.pm +++ /dev/null @@ -1,51 +0,0 @@ -# -# Copyright 2023 Centreon (http://www.centreon.com/) -# -# Centreon is a full-fledged industry-strength solution that meets -# the needs in IT infrastructure and application monitoring for -# service performance. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -package apps::monitoring::iplabel::datametrie::restapi::plugin; - -use strict; -use warnings; -use base qw(centreon::plugins::script_custom); - -sub new { - my ( $class, %options ) = @_; - my $self = $class->SUPER::new(package => __PACKAGE__, %options); - bless $self, $class; - - $self->{version} = '0.1'; - $self->{modes} = { - 'alarms' => 'apps::monitoring::iplabel::datametrie::restapi::mode::alarms', - 'list-kpi' => 'apps::monitoring::iplabel::datametrie::restapi::mode::listkpi', - 'kpi' => 'apps::monitoring::iplabel::datametrie::restapi::mode::kpi' - }; - - $self->{custom_modes}{api} = 'apps::monitoring::iplabel::datametrie::restapi::custom::api'; - return $self; -} - -1; - -__END__ - -=head1 PLUGIN DESCRIPTION - -Check IP-Label Datametrie using Rest API. - -=cut From 08aec2900a56a65aa01309557e89230fbfd9f90d Mon Sep 17 00:00:00 2001 From: omercier <32134301+omercier@users.noreply.github.com> Date: Tue, 4 Jul 2023 17:18:20 +0200 Subject: [PATCH 31/39] enh: bad sentence in help message (#4527) --- src/centreon/plugins/script_custom.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/centreon/plugins/script_custom.pm b/src/centreon/plugins/script_custom.pm index 177f6aadd..bce31faa6 100644 --- a/src/centreon/plugins/script_custom.pm +++ b/src/centreon/plugins/script_custom.pm @@ -291,7 +291,7 @@ Return the version of the plugin. =item B<--custommode> -When a plugin offers several ways (CLI, library, etc.) to get the an information +When a plugin offers several ways (CLI, library, etc.) to get information the desired one must be defined with this option. =item B<--list-custommode> From fdffb72f8e3b587974b245126d7a63c60baf7af1 Mon Sep 17 00:00:00 2001 From: qgarnier Date: Wed, 5 Jul 2023 10:14:59 +0200 Subject: [PATCH 32/39] (plugin) network::fortinet::fortimail::snmp - new (#4484) --- .../deb.json | 5 + .../pkg.json | 14 ++ .../rpm.json | 5 + .../fortinet/fortimail/snmp/mode/cpu.pm | 89 ++++++++ .../fortinet/fortimail/snmp/mode/disk.pm | 98 ++++++++ .../fortinet/fortimail/snmp/mode/ha.pm | 118 ++++++++++ .../fortinet/fortimail/snmp/mode/hardware.pm | 211 ++++++++++++++++++ .../fortimail/snmp/mode/interfaces.pm | 182 +++++++++++++++ .../fortimail/snmp/mode/listqueues.pm | 121 ++++++++++ .../fortinet/fortimail/snmp/mode/load.pm | 86 +++++++ .../fortinet/fortimail/snmp/mode/memory.pm | 86 +++++++ .../fortinet/fortimail/snmp/mode/queues.pm | 140 ++++++++++++ .../fortinet/fortimail/snmp/mode/uptime.pm | 77 +++++++ src/network/fortinet/fortimail/snmp/plugin.pm | 57 +++++ 14 files changed, 1289 insertions(+) create mode 100644 packaging/centreon-plugin-Network-Fortinet-Fortimail-Snmp/deb.json create mode 100644 packaging/centreon-plugin-Network-Fortinet-Fortimail-Snmp/pkg.json create mode 100644 packaging/centreon-plugin-Network-Fortinet-Fortimail-Snmp/rpm.json create mode 100644 src/network/fortinet/fortimail/snmp/mode/cpu.pm create mode 100644 src/network/fortinet/fortimail/snmp/mode/disk.pm create mode 100644 src/network/fortinet/fortimail/snmp/mode/ha.pm create mode 100644 src/network/fortinet/fortimail/snmp/mode/hardware.pm create mode 100644 src/network/fortinet/fortimail/snmp/mode/interfaces.pm create mode 100644 src/network/fortinet/fortimail/snmp/mode/listqueues.pm create mode 100644 src/network/fortinet/fortimail/snmp/mode/load.pm create mode 100644 src/network/fortinet/fortimail/snmp/mode/memory.pm create mode 100644 src/network/fortinet/fortimail/snmp/mode/queues.pm create mode 100644 src/network/fortinet/fortimail/snmp/mode/uptime.pm create mode 100644 src/network/fortinet/fortimail/snmp/plugin.pm diff --git a/packaging/centreon-plugin-Network-Fortinet-Fortimail-Snmp/deb.json b/packaging/centreon-plugin-Network-Fortinet-Fortimail-Snmp/deb.json new file mode 100644 index 000000000..5d24d64c4 --- /dev/null +++ b/packaging/centreon-plugin-Network-Fortinet-Fortimail-Snmp/deb.json @@ -0,0 +1,5 @@ +{ + "dependencies": [ + "libsnmp-perl" + ] +} diff --git a/packaging/centreon-plugin-Network-Fortinet-Fortimail-Snmp/pkg.json b/packaging/centreon-plugin-Network-Fortinet-Fortimail-Snmp/pkg.json new file mode 100644 index 000000000..0b3bff7bb --- /dev/null +++ b/packaging/centreon-plugin-Network-Fortinet-Fortimail-Snmp/pkg.json @@ -0,0 +1,14 @@ +{ + "pkg_name": "centreon-plugin-Network-Fortinet-Fortimail-Snmp", + "pkg_summary": "Centreon Plugin Fortinet FortiMail SNMP", + "plugin_name": "centreon_fortinet_fortimail_snmp.pl", + "files": [ + "centreon/plugins/script_snmp.pm", + "centreon/plugins/snmp.pm", + "snmp_standard/mode/interfaces.pm", + "snmp_standard/mode/listinterfaces.pm", + "snmp_standard/mode/resources/", + "snmp_standard/mode/uptime.pm", + "network/fortinet/fortimail/snmp/" + ] +} diff --git a/packaging/centreon-plugin-Network-Fortinet-Fortimail-Snmp/rpm.json b/packaging/centreon-plugin-Network-Fortinet-Fortimail-Snmp/rpm.json new file mode 100644 index 000000000..14e966306 --- /dev/null +++ b/packaging/centreon-plugin-Network-Fortinet-Fortimail-Snmp/rpm.json @@ -0,0 +1,5 @@ +{ + "dependencies": [ + "perl(SNMP)" + ] +} diff --git a/src/network/fortinet/fortimail/snmp/mode/cpu.pm b/src/network/fortinet/fortimail/snmp/mode/cpu.pm new file mode 100644 index 000000000..cf6dd364d --- /dev/null +++ b/src/network/fortinet/fortimail/snmp/mode/cpu.pm @@ -0,0 +1,89 @@ +# +# Copyright 2023 Centreon (http://www.centreon.com/) +# +# Centreon is a full-fledged industry-strength solution that meets +# the needs in IT infrastructure and application monitoring for +# service performance. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +package network::fortinet::fortimail::snmp::mode::cpu; + +use base qw(centreon::plugins::templates::counter); + +use strict; +use warnings; + +sub set_counters { + my ($self, %options) = @_; + + $self->{maps_counters_type} = [ + { name => 'cpu', type => 0 } + ]; + + $self->{maps_counters}->{cpu} = [ + { label => 'cpu-utilization', nlabel => 'cpu.utilization.percentage', set => { + key_values => [ { name => 'cpu_usage' } ], + output_template => 'Cpu usage is: %.2f%%', + perfdatas => [ + { template => '%.2f', unit => '%', min => 0, max => 100 } + ] + } + } + ]; +} + +sub new { + my ($class, %options) = @_; + my $self = $class->SUPER::new(package => __PACKAGE__, %options, force_new_perfdata => 1); + bless $self, $class; + + $options{options}->add_options(arguments => {}); + + return $self; +} + +sub manage_selection { + my ($self, %options) = @_; + + my $oid_fmSysCpuUsage = '.1.3.6.1.4.1.12356.105.1.6.0'; + my $snmp_result = $options{snmp}->get_leef( + oids => [ $oid_fmSysCpuUsage ], + nothing_quit => 1 + ); + + $self->{cpu} = { cpu_usage => $snmp_result->{$oid_fmSysCpuUsage} }; +} + +1; + +__END__ + +=head1 MODE + +Check cpu usage. + +=over 8 + +=item B<--warning-cpu-utilization> + +Warning threshold in percent. + +=item B<--critical-cpu-utilization> + +Critical threshold in percent. + +=back + +=cut diff --git a/src/network/fortinet/fortimail/snmp/mode/disk.pm b/src/network/fortinet/fortimail/snmp/mode/disk.pm new file mode 100644 index 000000000..dbaa561e1 --- /dev/null +++ b/src/network/fortinet/fortimail/snmp/mode/disk.pm @@ -0,0 +1,98 @@ +# +# Copyright 2022 Centreon (http://www.centreon.com/) +# +# Centreon is a full-fledged industry-strength solution that meets +# the needs in IT infrastructure and application monitoring for +# service performance. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +package network::fortinet::fortimail::snmp::mode::disk; + +use base qw(centreon::plugins::templates::counter); + +use strict; +use warnings; + +sub set_counters { + my ($self, %options) = @_; + + $self->{maps_counters_type} = [ + { name => 'disk', type => 0, skipped_code => { -10 => 1 } } + ]; + + $self->{maps_counters}->{disk} = [ + { label => 'log-usage-prct', nlabel => 'disk.log.space.usage.percentage', set => { + key_values => [ { name => 'log_prct_used' } ], + output_template => 'Log disk space used: %.2f %%', + perfdatas => [ + { template => '%.2f', min => 0, max => 100, unit => '%' } + ] + } + }, + { label => 'mail-usage-prct', nlabel => 'disk.mail.space.usage.percentage', set => { + key_values => [ { name => 'mail_prct_used' } ], + output_template => 'Mail disk space used: %.2f %%', + perfdatas => [ + { template => '%.2f', min => 0, max => 100, unit => '%' } + ] + } + } + ]; +} + +sub new { + my ($class, %options) = @_; + my $self = $class->SUPER::new(package => __PACKAGE__, %options, force_new_perfdata => 1); + bless $self, $class; + + $options{options}->add_options(arguments => {}); + + return $self; +} + +sub manage_selection { + my ($self, %options) = @_; + + my $oid_facSysLogDiskUsage = '.1.3.6.1.4.1.12356.105.1.8.0'; + my $oid_facSysMailDiskUsage = '.1.3.6.1.4.1.12356.105.1.9.0'; + my $result = $options{snmp}->get_leef( + oids => [ $oid_facSysLogDiskUsage, $oid_facSysMailDiskUsage ], + nothing_quit => 1 + ); + + $self->{disk} = { + log_prct_used => $result->{$oid_facSysLogDiskUsage}, + mail_prct_used => $result->{$oid_facSysMailDiskUsage} + } +} + +1; + +__END__ + +=head1 MODE + +Check mail and log disk usage. + +=over 8 + +=item B<--warning-*> B<--critical-*> + +Thresholds. +Can be: 'mail-usage-prct', 'log-usage-prct' (%). + +=back + +=cut diff --git a/src/network/fortinet/fortimail/snmp/mode/ha.pm b/src/network/fortinet/fortimail/snmp/mode/ha.pm new file mode 100644 index 000000000..467225f2d --- /dev/null +++ b/src/network/fortinet/fortimail/snmp/mode/ha.pm @@ -0,0 +1,118 @@ +# +# Copyright 2022 Centreon (http://www.centreon.com/) +# +# Centreon is a full-fledged industry-strength solution that meets +# the needs in IT infrastructure and application monitoring for +# service performance. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +package network::fortinet::fortimail::snmp::mode::ha; + +use base qw(centreon::plugins::templates::counter); + +use strict; +use warnings; +use centreon::plugins::templates::catalog_functions qw(catalog_status_threshold_ng); +use Digest::MD5 qw(md5_hex); + +sub custom_status_output { + my ($self, %options) = @_; + + return sprintf("high-availability status is '%s'", $self->{result_values}->{ha_status}); +} + +sub custom_status_calc { + my ($self, %options) = @_; + + if (!defined($options{old_datas}->{$self->{instance} . '_ha_status'})) { + $self->{error_msg} = 'buffer creation'; + return -2; + } + $self->{result_values}->{ha_status_last} = $options{old_datas}->{$self->{instance} . '_ha_status'}; + $self->{result_values}->{ha_status} = $options{new_datas}->{$self->{instance} . '_ha_status'}; + + return 0; +} + +sub set_counters { + my ($self, %options) = @_; + + $self->{maps_counters_type} = [ + { name => 'global', type => 0 } + ]; + + $self->{maps_counters}->{global} = [ + { label => 'ha-status', type => 2, critical_default => '%{ha_status} ne %{ha_status_last}', set => { + key_values => [ { name => 'ha_status' } ], + closure_custom_calc => \&custom_status_calc, + closure_custom_output => $self->can('custom_status_output'), + closure_custom_perfdata => sub {return 0;}, + closure_custom_threshold_check => \&catalog_status_threshold_ng + } + } + ]; +} + +sub new { + my ($class, %options) = @_; + my $self = $class->SUPER::new(package => __PACKAGE__, %options, statefile => 1, force_new_perfdata => 1); + bless $self, $class; + + $options{options}->add_options(arguments => {}); + + return $self; +} + +my $map_ha_status = { + 0 => 'off', 1 => 'master', 2 => 'slave', 3 => 'configMaster', 4 => 'configSlave' +}; + +sub manage_selection { + my ($self, %options) = @_; + + my $oid_facHaCurrentStatus = '.1.3.6.1.4.1.12356.105.1.200.2.0'; + my $result = $options{snmp}->get_leef(oids => [ $oid_facHaCurrentStatus ], nothing_quit => 1); + + $self->{global} = { + ha_status => $map_ha_status->{ $result->{$oid_facHaCurrentStatus} } + }; + + $self->{cache_name} = 'fortinet_fortimail_' . $self->{mode} . '_' . $options{snmp}->get_hostname() . '_' . $options{snmp}->get_port() . '_' . + (defined($self->{option_results}->{filter_counters}) ? md5_hex($self->{option_results}->{filter_counters}) : md5_hex('all')); +} + +1; + +__END__ + +=head1 MODE + +Check high-availability status. + +=over 8 + +=item B<--warning-ha-status> + +Define the conditions to match for the status to be WARNING. +You can use the following variables: %{ha_status}, %{ha_status_last} + +=item B<--critical-ha-status> + +Define the conditions to match for the status to be CRITICAL (default: '%{ha_status} ne %{ha_status_last}'). +You can use the following variables: %{ha_status}, %{ha_status_last} + +=back + +=cut diff --git a/src/network/fortinet/fortimail/snmp/mode/hardware.pm b/src/network/fortinet/fortimail/snmp/mode/hardware.pm new file mode 100644 index 000000000..2c166e18a --- /dev/null +++ b/src/network/fortinet/fortimail/snmp/mode/hardware.pm @@ -0,0 +1,211 @@ +# +# Copyright 2022 Centreon (http://www.centreon.com/) +# +# Centreon is a full-fledged industry-strength solution that meets +# the needs in IT infrastructure and application monitoring for +# service performance. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +package network::fortinet::fortimail::snmp::mode::hardware; + +use base qw(centreon::plugins::templates::hardware); + +use strict; +use warnings; + +sub set_system { + my ($self, %options) = @_; + + $self->{regexp_threshold_numeric_check_section_option} = '^sensors$'; + + $self->{cb_hook1} = 'get_system_information'; + $self->{cb_hook2} = 'snmp_execute'; + + $self->{thresholds} = { + sensors => [ + [ 'on', 'CRITICAL' ], + [ 'off', 'OK' ] + ] + }; + + $self->{components_path} = 'network::fortinet::fortimail::snmp::mode::components'; + $self->{components_module} = [ 'sensors' ]; +} + +sub new { + my ($class, %options) = @_; + my $self = $class->SUPER::new(package => __PACKAGE__, %options, no_absent => 1, no_load_components => 1, force_new_perfdata => 1); + bless $self, $class; + + $options{options}->add_options(arguments => {}); + + return $self; +} + +sub get_system_information { + my ($self, %options) = @_; + + my $oid_fmlSysModel = '.1.3.6.1.4.1.12356.105.1.1.0'; + my $oid_fmlSerial = '.1.3.6.1.4.1.12356.105.1.2.0'; + my $oid_fmlSysVersion = '.1.3.6.1.4.1.12356.105.1.3.0'; + my $oid_fmlAVVersion = '.1.3.6.1.4.1.12356.105.1.4.0'; + + my $result = $options{snmp}->get_leef( + oids => [ $oid_fmlSysModel, $oid_fmlSerial, $oid_fmlSysVersion, $oid_fmlAVVersion ] + ); + + $self->{output}->output_add( + long_msg => sprintf( + '[System: %s] [Serial: %s] [Firmware: %s] [Antivirus Version: %s]', + $result->{$oid_fmlSysModel}, + $result->{$oid_fmlSerial}, + defined($result->{$oid_fmlSysVersion}) ? $result->{$oid_fmlSysVersion} : 'unknown', + defined($result->{$oid_fmlAVVersion}) ? $result->{$oid_fmlAVVersion} : 'unknown' + ) + ); +} + +sub snmp_execute { + my ($self, %options) = @_; + + $self->{snmp} = $options{snmp}; + $self->{results} = $self->{snmp}->get_multiple_table(oids => $self->{request}); +} + +1; + +=head1 MODE + +Check hardware. + +=over 8 + +=item B<--component> + +Which component to check (Default: '.*'). +Can be: 'sensors'. + +=item B<--add-name-instance> + +Add literal description for instance value (used in filter, and threshold options). + +=item B<--filter> + +Exclude some parts (comma seperated list) +Can also exclude specific instance: --filter=sensors,1 + +=item B<--no-component> + +Return an error if no compenents are checked. +If total (with skipped) is 0. (Default: 'critical' returns). + +=item B<--threshold-overload> + +Set to overload default threshold values (syntax: section,[instance,]status,regexp) +It used before default thresholds (order stays). +Example: --threshold-overload='sensors,WARNING,off' + +=item B<--warning> + +Set warning threshold for 'sensors' (syntax: type,regexp,threshold) +Example: --warning='sensors,.*,30' + +=item B<--critical> + +Set critical threshold for 'sensors' (syntax: type,regexp,threshold) +Example: --critical='sensors,.*,50' + + +=back + +=cut + + +package network::fortinet::fortimail::snmp::mode::components::sensors; + +use strict; +use warnings; + +my %alarm_map = ( + 0 => 'off', + 1 => 'on', +); +my $mapping = { + fgHwSensorEntName => { oid => '.1.3.6.1.4.1.12356.105.1.110.2.1.2' }, + fgHwSensorEntValue => { oid => '.1.3.6.1.4.1.12356.105.1.110.2.1.3' }, + fgHwSensorEntAlarmStatus => { oid => '.1.3.6.1.4.1.12356.105.1.110.2.1.4', map => \%alarm_map }, +}; +my $oid_fgHwSensorEntry = '.1.3.6.1.4.1.12356.105.1.110.2.1'; + +sub load { + my ($self) = @_; + + push @{$self->{request}}, { oid => $oid_fgHwSensorEntry }; +} + +sub check { + my ($self) = @_; + + $self->{output}->output_add(long_msg => "Checking sensors"); + $self->{components}->{sensors} = { name => 'sensors', total => 0, skip => 0 }; + return if ($self->check_filter(section => 'sensors')); + + foreach my $oid ($self->{snmp}->oid_lex_sort(keys %{$self->{results}->{$oid_fgHwSensorEntry}})) { + next if ($oid !~ /^$mapping->{fgHwSensorEntAlarmStatus}->{oid}\.(.*)$/); + my $instance = $1; + my $result = $self->{snmp}->map_instance(mapping => $mapping, results => $self->{results}->{$oid_fgHwSensorEntry}, instance => $instance); + my $name = centreon::plugins::misc::trim($result->{fgHwSensorEntName}); + + next if ($self->check_filter(section => 'sensors', instance => $instance, name => $name)); + + $self->{components}->{sensors}->{total}++; + + $self->{output}->output_add( + long_msg => sprintf( + "sensor '%s' alarm status is '%s' [instance: %s] [value: %s]", + $name, $result->{fgHwSensorEntAlarmStatus}, $instance, + defined($result->{fgHwSensorEntValue}) ? $result->{fgHwSensorEntValue} : '-' + ) + ); + + my $exit = $self->get_severity(section => 'sensors', name => $name, value => $result->{fgHwSensorEntAlarmStatus}); + if (!$self->{output}->is_status(value => $exit, compare => 'ok', litteral => 1)) { + $self->{output}->output_add( + severity => $exit, + short_msg => sprintf("Sensor '%s' alarm status is '%s'", $name, $result->{fgHwSensorEntAlarmStatus}) + ); + } + + next if (!defined($result->{fgHwSensorEntValue})); + + my ($exit2, $warn, $crit, $checked) = $self->get_severity_numeric(section => 'sensors', instance => $instance, name => $name, value => $result->{fgHwSensorEntValue}); + + if (!$self->{output}->is_status(value => $exit2, compare => 'ok', litteral => 1)) { + $self->{output}->output_add( + severity => $exit2, + short_msg => sprintf("Sensor '%s' measure is %s", $name, $result->{fgHwSensorEntValue}) + ); + } + $self->{output}->perfdata_add( + nlabel => 'hardware.sensors.measure', + instances => $name, + value => $result->{fgHwSensorEntValue}, + warning => $warn, + critical => $crit + ); + } +} + +1; diff --git a/src/network/fortinet/fortimail/snmp/mode/interfaces.pm b/src/network/fortinet/fortimail/snmp/mode/interfaces.pm new file mode 100644 index 000000000..688792af9 --- /dev/null +++ b/src/network/fortinet/fortimail/snmp/mode/interfaces.pm @@ -0,0 +1,182 @@ +# +# Copyright 2023 Centreon (http://www.centreon.com/) +# +# Centreon is a full-fledged industry-strength solution that meets +# the needs in IT infrastructure and application monitoring for +# service performance. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +package network::fortinet::fortimail::snmp::mode::interfaces; + +use base qw(snmp_standard::mode::interfaces); + +use strict; +use warnings; + +sub new { + my ($class, %options) = @_; + my $self = $class->SUPER::new(package => __PACKAGE__, %options, force_new_perfdata => 1); + bless $self, $class; + + return $self; +} + +1; + +__END__ + +=head1 MODE + +Check interfaces. + +=over 8 + +=item B<--add-global> + +Check global port statistics (By default if no --add-* option is set). + +=item B<--add-status> + +Check interface status. + +=item B<--add-duplex-status> + +Check duplex status (with --warning-status and --critical-status). + +=item B<--add-traffic> + +Check interface traffic. + +=item B<--add-errors> + +Check interface errors. + +=item B<--add-cast> + +Check interface cast. + +=item B<--add-speed> + +Check interface speed. + +=item B<--add-volume> + +Check interface data volume between two checks (not supposed to be graphed, useful for BI reporting). + +=item B<--check-metrics> + +If the expression is true, metrics are checked (default: '%{opstatus} eq "up"'). + +=item B<--warning-status> + +Define the conditions to match for the status to be WARNING. +You can use the following variables: %{admstatus}, %{opstatus}, %{duplexstatus}, %{display} + +=item B<--critical-status> + +Define the conditions to match for the status to be CRITICAL (default: '%{admstatus} eq "up" and %{opstatus} ne "up"'). +You can use the following variables: %{admstatus}, %{opstatus}, %{duplexstatus}, %{display} + +=item B<--warning-*> B<--critical-*> + +Thresholds. +Can be: 'total-port', 'total-admin-up', 'total-admin-down', 'total-oper-up', 'total-oper-down', +'in-traffic', 'out-traffic', 'in-error', 'in-discard', 'out-error', 'out-discard', +'in-ucast', 'in-bcast', 'in-mcast', 'out-ucast', 'out-bcast', 'out-mcast', +'speed' (b/s). + +=item B<--units-traffic> + +Units of thresholds for the traffic (Default: 'percent_delta') ('percent_delta', 'bps', 'counter'). + +=item B<--units-errors> + +Units of thresholds for errors/discards (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'deltaps', 'counter'). + +=item B<--units-cast> + +Units of thresholds for communication types (Default: 'percent_delta') ('percent_delta', 'percent', 'delta', 'deltaps', 'counter'). + +=item B<--nagvis-perfdata> + +Display traffic perfdata to be compatible with nagvis widget. + +=item B<--interface> + +Set the interface (number expected) ex: 1,2,... (empty means 'check all interfaces'). + +=item B<--name> + +Allows to use interface name with option --interface instead of interface oid index (Can be a regexp) + +=item B<--speed> + +Set interface speed for incoming/outgoing traffic (in Mb). + +=item B<--speed-in> + +Set interface speed for incoming traffic (in Mb). + +=item B<--speed-out> + +Set interface speed for outgoing traffic (in Mb). + +=item B<--map-speed-dsl> + +Get interface speed configuration for interface type 'adsl' and 'vdsl2'. + +Syntax: --map-speed-dsl=interface-src-name,interface-dsl-name + +E.g: --map-speed-dsl=Et0.835,Et0-vdsl2 + +=item B<--force-counters64> + +Force to use 64 bits counters only. Can be used to improve performance. + +=item B<--force-counters32> + +Force to use 32 bits counters (even in snmp v2c and v3). Should be used when 64 bits counters are buggy. + +=item B<--reload-cache-time> + +Time in minutes before reloading cache file (default: 180). + +=item B<--oid-filter> + +Define the OID to be used to filter interfaces (default: ifName) (values: ifDesc, ifAlias, ifName, IpAddr). + +=item B<--oid-display> + +efine the OID that will be used to name the interfaces (default: ifName) (values: ifDesc, ifAlias, ifName, IpAddr). + +=item B<--oid-extra-display> + +Add an OID to display. + +=item B<--display-transform-src> + +Regexp src to transform display value. + +=item B<--display-transform-dst> + +Regexp dst to transform display value. + +=item B<--show-cache> + +Display cache interface datas. + +=back + +=cut diff --git a/src/network/fortinet/fortimail/snmp/mode/listqueues.pm b/src/network/fortinet/fortimail/snmp/mode/listqueues.pm new file mode 100644 index 000000000..5095e5156 --- /dev/null +++ b/src/network/fortinet/fortimail/snmp/mode/listqueues.pm @@ -0,0 +1,121 @@ +# +# Copyright 2022 Centreon (http://www.centreon.com/) +# +# Centreon is a full-fledged industry-strength solution that meets +# the needs in IT infrastructure and application monitoring for +# service performance. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +package network::fortinet::fortimail::snmp::mode::listqueues; + +use base qw(centreon::plugins::mode); + +use strict; +use warnings; + +sub new { + my ($class, %options) = @_; + my $self = $class->SUPER::new(package => __PACKAGE__, %options); + bless $self, $class; + + $options{options}->add_options(arguments => { + 'filter-name:s' => { name => 'filter_name' } + }); + + return $self; +} + +sub check_options { + my ($self, %options) = @_; + $self->SUPER::init(%options); +} + +my $mapping = { + name => { oid => '.1.3.6.1.4.1.12356.105.1.103.2.1.2' }, # fmlMailQueueName + count => { oid => '.1.3.6.1.4.1.12356.105.1.103.2.1.3' }, # fmlMailQueueMailCount + size => { oid => '.1.3.6.1.4.1.12356.105.1.103.2.1.4' } # fmlMailQueueMailSize +}; + +sub manage_selection { + my ($self, %options) = @_; + + my $oid_table = '.1.3.6.1.4.1.12356.105.1.103.2';# fmlMailQueueStatisticsTable + my $snmp_result = $options{snmp}->get_table(oid => $oid_table); + my $results = {}; + foreach (keys %$snmp_result) { + next if (!/^$mapping->{name}->{oid}\.(.*)$/); + my $instance = $1; + + my $result = $options{snmp}->map_instance(mapping => $mapping, results => $snmp_result, instance => $instance); + + if (defined($self->{option_results}->{filter_name}) && $self->{option_results}->{filter_name} ne '' && + $result->{name} !~ /$self->{option_results}->{filter_name}/) { + $self->{output}->output_add(long_msg => "skipping '" . $result->{name} . "': no matching filter."); + next; + } + + $results->{$instance}->{name} = lc($result->{name}); + $results->{$instance}->{count} = $result->{count}; + $results->{$instance}->{size} = $result->{size}; + } + + return $results; +} + +sub run { + my ($self, %options) = @_; + + my $results = $self->manage_selection(snmp => $options{snmp}); + foreach my $instance (sort keys %$results) { + $self->{output}->output_add( + long_msg => join('', map("[$_: " . $results->{$instance}->{$_} . ']', keys(%$mapping))) + ); + } + + $self->{output}->output_add( + severity => 'OK', + short_msg => 'List mail queues:' + ); + $self->{output}->display(nolabel => 1, force_ignore_perfdata => 1, force_long_output => 1); + $self->{output}->exit(); +} + +sub disco_format { + my ($self, %options) = @_; + + $self->{output}->add_disco_format(elements => [ keys %$mapping ]); +} + +sub disco_show { + my ($self, %options) = @_; + + my $results = $self->manage_selection(snmp => $options{snmp}); + foreach (sort keys %$results) { + $self->{output}->add_disco_entry(%{$results->{$_}}); + } +} +1; + +__END__ + +=head1 MODE + +List mail queues. + +=over 8 + +=back + +=cut diff --git a/src/network/fortinet/fortimail/snmp/mode/load.pm b/src/network/fortinet/fortimail/snmp/mode/load.pm new file mode 100644 index 000000000..a857c8330 --- /dev/null +++ b/src/network/fortinet/fortimail/snmp/mode/load.pm @@ -0,0 +1,86 @@ +# +# Copyright 2022 Centreon (http://www.centreon.com/) +# +# Centreon is a full-fledged industry-strength solution that meets +# the needs in IT infrastructure and application monitoring for +# service performance. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +package network::fortinet::fortimail::snmp::mode::load; + +use base qw(centreon::plugins::templates::counter); + +use strict; +use warnings; + +sub set_counters { + my ($self, %options) = @_; + + $self->{maps_counters_type} = [ + { name => 'global', type => 0, skipped_code => { -10 => 1 } } + ]; + + $self->{maps_counters}->{global} = [ + { label => 'load', nlabel => 'system.load.percentage', set => { + key_values => [ { name => 'system_load' } ], + output_template => 'system load: %.2f%%', + perfdatas => [ + { template => '%.2f', min => 0, max => 100, unit => '%' } + ] + } + } + ]; +} + +sub new { + my ($class, %options) = @_; + my $self = $class->SUPER::new(package => __PACKAGE__, %options, force_new_perfdata => 1); + bless $self, $class; + + $options{options}->add_options(arguments => {}); + + return $self; +} + +sub manage_selection { + my ($self, %options) = @_; + + my $oid_load = '.1.3.6.1.4.1.12356.105.1.30.0'; # systemLoad + my $snmp_result = $options{snmp}->get_leef( + oids => [ $oid_load ], + nothing_quit => 1 + ); + + $self->{global} = { system_load => $snmp_result->{$oid_load} }; +} + +1; + +__END__ + +=head1 MODE + +Check system load. + +=over 8 + +=item B<--warning-*> B<--critical-*> + +Thresholds. +Can be: 'load' (%). + +=back + +=cut diff --git a/src/network/fortinet/fortimail/snmp/mode/memory.pm b/src/network/fortinet/fortimail/snmp/mode/memory.pm new file mode 100644 index 000000000..120c263a4 --- /dev/null +++ b/src/network/fortinet/fortimail/snmp/mode/memory.pm @@ -0,0 +1,86 @@ +# +# Copyright 2022 Centreon (http://www.centreon.com/) +# +# Centreon is a full-fledged industry-strength solution that meets +# the needs in IT infrastructure and application monitoring for +# service performance. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +package network::fortinet::fortimail::snmp::mode::memory; + +use base qw(centreon::plugins::templates::counter); + +use strict; +use warnings; + +sub set_counters { + my ($self, %options) = @_; + + $self->{maps_counters_type} = [ + { name => 'global', type => 0 } + ]; + + $self->{maps_counters}->{global} = [ + { label => 'usage', nlabel => 'memory.usage.percentage', set => { + key_values => [ { name => 'used_prct' } ], + output_template => 'memory used: %.2f %%', + perfdatas => [ + { template => '%.2f', min => 0, max => 100, unit => '%' }, + ] + } + } + ]; +} + +sub new { + my ($class, %options) = @_; + my $self = $class->SUPER::new(package => __PACKAGE__, %options, force_new_perfdata => 1); + bless $self, $class; + + $options{options}->add_options(arguments => {}); + + return $self; +} + +sub manage_selection { + my ($self, %options) = @_; + + my $oid_memUsed = '.1.3.6.1.4.1.12356.105.1.7.0'; + my $snmp_result = $options{snmp}->get_leef( + oids => [ $oid_memUsed ], + nothing_quit => 1 + ); + + $self->{global} = { used_prct => $snmp_result->{$oid_memUsed} }; +} + +1; + +__END__ + +=head1 MODE + +Check memory usage. + +=over 8 + +=item B<--warning-*> B<--critical-*> + +Thresholds. +Can be: 'usage' (%). + +=back + +=cut diff --git a/src/network/fortinet/fortimail/snmp/mode/queues.pm b/src/network/fortinet/fortimail/snmp/mode/queues.pm new file mode 100644 index 000000000..998bb3eaf --- /dev/null +++ b/src/network/fortinet/fortimail/snmp/mode/queues.pm @@ -0,0 +1,140 @@ +# +# Copyright 2022 Centreon (http://www.centreon.com/) +# +# Centreon is a full-fledged industry-strength solution that meets +# the needs in IT infrastructure and application monitoring for +# service performance. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +package network::fortinet::fortimail::snmp::mode::queues; + +use base qw(centreon::plugins::templates::counter); + +use strict; +use warnings; + +sub prefix_queue_output { + my ($self, %options) = @_; + + return "Queue '" . $options{instance_value}->{display} . "' "; +} + +sub set_counters { + my ($self, %options) = @_; + + $self->{maps_counters_type} = [ + { name => 'queue', type => 1, cb_prefix_output => 'prefix_queue_output', message_multiple => 'All queues are ok' } + ]; + + $self->{maps_counters}->{queue} = [ + { label => 'count', nlabel => 'queue.mails.count', set => { + key_values => [ { name => 'count' }, { name => 'display' } ], + output_template => 'mails: %s', + perfdatas => [ + { template => '%d', min => 0, label_extra_instance => 1, instance_use => 'display' } + ] + } + }, + { label => 'size', nlabel => 'queue.mails.size.count', set => { + key_values => [ { name => 'size' }, { name => 'display' } ], + output_template => 'size: %s %s', + output_change_bytes => 1, + perfdatas => [ + { template => '%d', unit => 'B', min => 0, label_extra_instance => 1, instance_use => 'display' } + ] + } + } + ]; +} + +sub new { + my ($class, %options) = @_; + my $self = $class->SUPER::new(package => __PACKAGE__, %options, force_new_perfdata => 1); + bless $self, $class; + + $options{options}->add_options(arguments => { + 'filter-name:s' => { name => 'filter_name' } + }); + + return $self; +} + +my $mapping = { + fmlMailQueueMailCount => { oid => '.1.3.6.1.4.1.12356.105.1.103.2.1.3' }, + fmlMailQueueMailSize => { oid => '.1.3.6.1.4.1.12356.105.1.103.2.1.4' } +}; +my $oid_fmlMailQueueEntry = '.1.3.6.1.4.1.12356.105.1.103.2.1'; +my $oid_fmlMailQueueName = '.1.3.6.1.4.1.12356.105.1.103.2.1.2'; + +sub manage_selection { + my ($self, %options) = @_; + + my $snmp_result = $options{snmp}->get_multiple_table( + oids => [ + { oid => $oid_fmlMailQueueName }, + { oid => $oid_fmlMailQueueEntry } + ], + nothing_quit => 1 + ); + + $self->{queue} = {}; + foreach my $oid (keys %{$snmp_result->{$oid_fmlMailQueueName}}) { + next if ($oid !~ /^$oid_fmlMailQueueName\.(.*)/); + my $instance = $1; + + next if (defined($self->{option_results}->{filter_name}) && $self->{option_results}->{filter_name} ne '' && + $snmp_result->{$oid_fmlMailQueueName}->{$oid} !~ /$self->{option_results}->{filter_name}/); + + my $result = $options{snmp}->map_instance( + mapping => $mapping, + results => $snmp_result->{$oid_fmlMailQueueEntry}, + instance => $instance + ); + + $self->{queue}->{$instance} = { + display => $snmp_result->{$oid_fmlMailQueueName}->{$oid}, + count => $result->{'fmlMailQueueMailCount'}, + size => $result->{'fmlMailQueueMailSize'} * 1024 + }; + } + + if (scalar(keys %{$self->{queue}}) <= 0) { + $self->{output}->add_option_msg(short_msg => "No queue found."); + $self->{output}->option_exit(); + } +} + +1; + +__END__ + +=head1 MODE + +Check queue statistics. + +=over 8 + +=item B<--filter-name> + +Filter queue name (can be a regexp). + +=item B<--warning-*> B<--critical-*> + +Thresholds. +Can be: 'count', 'size'. + +=back + +=cut diff --git a/src/network/fortinet/fortimail/snmp/mode/uptime.pm b/src/network/fortinet/fortimail/snmp/mode/uptime.pm new file mode 100644 index 000000000..df4a9dcfa --- /dev/null +++ b/src/network/fortinet/fortimail/snmp/mode/uptime.pm @@ -0,0 +1,77 @@ +# +# Copyright 2023 Centreon (http://www.centreon.com/) +# +# Centreon is a full-fledged industry-strength solution that meets +# the needs in IT infrastructure and application monitoring for +# service performance. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +package network::fortinet::fortimail::snmp::mode::uptime; + +use base qw(snmp_standard::mode::uptime); + +use strict; +use warnings; + +sub new { + my ($class, %options) = @_; + my $self = $class->SUPER::new(package => __PACKAGE__, %options, force_new_perfdata => 1); + bless $self, $class; + + return $self; +} + +1; + +__END__ + +=head1 MODE + +Check system uptime. + +=over 8 + +=item B<--warning-uptime> + +Warning threshold. + +=item B<--critical-uptime> + +Critical threshold. + +=item B<--add-sysdesc> + +Display system description. + +=item B<--force-oid> + +Can choose your OID (numeric format only). + +=item B<--check-overload> + +Uptime counter limit is 4294967296 and overflow. +With that option, we manage the counter going back. But there is a few chance we can miss a reboot. + +=item B<--reboot-window> + +To be used with check-overload option. Time in milliseconds (default: 5000) +You increase the chance of not missing a reboot if you decrease that value. + +=item B<--unit> + +Select the unit for performance data and thresholds. May be 's' for seconds, 'm' for minutes, +'h' for hours, 'd' for days, 'w' for weeks. Default is seconds + +=back diff --git a/src/network/fortinet/fortimail/snmp/plugin.pm b/src/network/fortinet/fortimail/snmp/plugin.pm new file mode 100644 index 000000000..2f31e47c5 --- /dev/null +++ b/src/network/fortinet/fortimail/snmp/plugin.pm @@ -0,0 +1,57 @@ +# +# Copyright 2022 Centreon (http://www.centreon.com/) +# +# Centreon is a full-fledged industry-strength solution that meets +# the needs in IT infrastructure and application monitoring for +# service performance. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +package network::fortinet::fortimail::snmp::plugin; + +use strict; +use warnings; +use base qw(centreon::plugins::script_snmp); + +sub new { + my ($class, %options) = @_; + my $self = $class->SUPER::new(package => __PACKAGE__, %options); + bless $self, $class; + + $self->{modes} = { + 'cpu' => 'network::fortinet::fortimail::snmp::mode::cpu', + 'disk' => 'network::fortinet::fortimail::snmp::mode::disk', + 'ha' => 'network::fortinet::fortimail::snmp::mode::ha', + 'hardware' => 'network::fortinet::fortimail::snmp::mode::hardware', + 'interfaces' => 'network::fortinet::fortimail::snmp::mode::interfaces', + 'list-interfaces' => 'snmp_standard::mode::listinterfaces', + 'load' => 'network::fortinet::fortimail::snmp::mode::load', + 'memory' => 'network::fortinet::fortimail::snmp::mode::memory', + 'queues' => 'network::fortinet::fortimail::snmp::mode::queues', + 'list-queues' => 'network::fortinet::fortimail::snmp::mode::listqueues', + 'uptime' => 'network::fortinet::fortimail::snmp::mode::uptime' + }; + + return $self; +} + +1; + +__END__ + +=head1 PLUGIN DESCRIPTION + +Check fortimail in SNMP. + +=cut From e8c472e3ff1971af8428ac0e6b8d256d5ed81962 Mon Sep 17 00:00:00 2001 From: qgarnier Date: Wed, 5 Jul 2023 10:15:16 +0200 Subject: [PATCH 33/39] (plugin) hardware::sensors::rittal::cmc3::snmp - new (#4504) --- .../deb.json | 5 + .../pkg.json | 10 + .../rpm.json | 5 + .../sensors/rittal/cmc3/snmp/mode/devices.pm | 187 ++++++++++++++++++ .../rittal/cmc3/snmp/mode/listdevices.pm | 160 +++++++++++++++ .../sensors/rittal/cmc3/snmp/mode/load.pm | 124 ++++++++++++ .../rittal/cmc3/snmp/mode/unitstatus.pm | 159 +++++++++++++++ .../sensors/rittal/cmc3/snmp/mode/uptime.pm | 77 ++++++++ .../sensors/rittal/cmc3/snmp/plugin.pm | 50 +++++ 9 files changed, 777 insertions(+) create mode 100644 packaging/centreon-plugin-Hardware-Sensors-Rittal-Cmc3-Snmp/deb.json create mode 100644 packaging/centreon-plugin-Hardware-Sensors-Rittal-Cmc3-Snmp/pkg.json create mode 100644 packaging/centreon-plugin-Hardware-Sensors-Rittal-Cmc3-Snmp/rpm.json create mode 100644 src/hardware/sensors/rittal/cmc3/snmp/mode/devices.pm create mode 100644 src/hardware/sensors/rittal/cmc3/snmp/mode/listdevices.pm create mode 100644 src/hardware/sensors/rittal/cmc3/snmp/mode/load.pm create mode 100644 src/hardware/sensors/rittal/cmc3/snmp/mode/unitstatus.pm create mode 100644 src/hardware/sensors/rittal/cmc3/snmp/mode/uptime.pm create mode 100644 src/hardware/sensors/rittal/cmc3/snmp/plugin.pm diff --git a/packaging/centreon-plugin-Hardware-Sensors-Rittal-Cmc3-Snmp/deb.json b/packaging/centreon-plugin-Hardware-Sensors-Rittal-Cmc3-Snmp/deb.json new file mode 100644 index 000000000..663aaaceb --- /dev/null +++ b/packaging/centreon-plugin-Hardware-Sensors-Rittal-Cmc3-Snmp/deb.json @@ -0,0 +1,5 @@ +{ + "dependencies": [ + "libsnmp-perl" + ] +} \ No newline at end of file diff --git a/packaging/centreon-plugin-Hardware-Sensors-Rittal-Cmc3-Snmp/pkg.json b/packaging/centreon-plugin-Hardware-Sensors-Rittal-Cmc3-Snmp/pkg.json new file mode 100644 index 000000000..d07fb0010 --- /dev/null +++ b/packaging/centreon-plugin-Hardware-Sensors-Rittal-Cmc3-Snmp/pkg.json @@ -0,0 +1,10 @@ +{ + "pkg_name": "centreon-plugin-Hardware-Sensors-Rittal-Cmc-Snmp", + "pkg_summary": "Centreon Plugin Sensor Rittal CMC3", + "plugin_name": "centreon_sensors_rittal_cmc3_snmp.pl", + "files": [ + "centreon/plugins/script_snmp.pm", + "centreon/plugins/snmp.pm", + "hardware/sensors/rittal/cmc3/snmp/" + ] +} diff --git a/packaging/centreon-plugin-Hardware-Sensors-Rittal-Cmc3-Snmp/rpm.json b/packaging/centreon-plugin-Hardware-Sensors-Rittal-Cmc3-Snmp/rpm.json new file mode 100644 index 000000000..418a331fc --- /dev/null +++ b/packaging/centreon-plugin-Hardware-Sensors-Rittal-Cmc3-Snmp/rpm.json @@ -0,0 +1,5 @@ +{ + "dependencies": [ + "perl(SNMP)" + ] +} \ No newline at end of file diff --git a/src/hardware/sensors/rittal/cmc3/snmp/mode/devices.pm b/src/hardware/sensors/rittal/cmc3/snmp/mode/devices.pm new file mode 100644 index 000000000..428cbe51f --- /dev/null +++ b/src/hardware/sensors/rittal/cmc3/snmp/mode/devices.pm @@ -0,0 +1,187 @@ +# +# Copyright 2023 Centreon (http://www.centreon.com/) +# +# Centreon is a full-fledged industry-strength solution that meets +# the needs in IT infrastructure and application monitoring for +# service performance. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +package hardware::sensors::rittal::cmc3::snmp::mode::devices; + +use base qw(centreon::plugins::templates::counter); + +use strict; +use warnings; +use centreon::plugins::templates::catalog_functions qw(catalog_status_threshold_ng); + +my $map_status = { + 1 => 'notAvail', + 2 => 'ok', + 3 => 'detect', + 4 => 'lost', + 5 => 'changed', + 6 => 'error', + 7 => 'fwUpdate', + 8 => 'fwUpdateRun' +}; + +my $mapping = { + status => { oid => '.1.3.6.1.4.1.2606.7.4.1.2.1.6', map => $map_status }, + alias => { oid => '.1.3.6.1.4.1.2606.7.4.1.2.1.3' }, + name => { oid => '.1.3.6.1.4.1.2606.7.4.1.2.1.2' }, + text => { oid => '.1.3.6.1.4.1.2606.7.4.1.2.1.19' } +}; + +sub custom_status_output { + my ($self, %options) = @_; + + return sprintf( + "Device '%s' status: %s [alias: %s] [text: %s]", + $self->{result_values}->{name}, + $self->{result_values}->{status}, + $self->{result_values}->{alias}, + $self->{result_values}->{text} + ); +} + +sub set_counters { + my ($self, %options) = @_; + + $self->{maps_counters_type} = [ + { name => 'devices', type => 1, message_multiple => 'All devices are ok', skipped_code => { -10 => 1 } }, + ]; + + $self->{maps_counters}->{devices} = [ + { + label => 'status', + warning_default => '%{status} =~ /detect|changed|fwUpdate|fwUpdateRun/i', + critical_default => '%{status} =~ /notAvail|lost|error/i', + type => 2, + set => { + key_values => [ + { name => 'status' }, + { name => 'alias' }, + { name => 'name' }, + { name => 'text' }, + { name => 'index' }, + ], + closure_custom_threshold_check => \&catalog_status_threshold_ng, + closure_custom_perfdata => sub {return 0;}, + closure_custom_output => $self->can('custom_status_output') + } + } + ]; +} + +sub new { + my ($class, %options) = @_; + my $self = $class->SUPER::new(package => __PACKAGE__, %options, force_new_perfdata => 1); + bless $self, $class; + + $options{options}->add_options( + arguments => + { + 'filter-name:s' => { name => 'filter_name' }, + 'filter-alias:s' => { name => 'filter_alias' }, + 'index:s' => { name => 'index' } + } + ); + + return $self; +} + + +sub manage_selection { + my ($self, %options) = @_; + + my $snmp_result = $options{snmp}->get_multiple_table( + oids => [ + { oid => $mapping->{status}->{oid} }, + { oid => $mapping->{name}->{oid} }, + { oid => $mapping->{alias}->{oid} }, + { oid => $mapping->{text}->{oid} }, + ], + return_type => 1, + nothing_quit => 1 + ); + + $self->{devices} = {}; + foreach my $oid (keys %$snmp_result) { + next if ($oid !~ /^$mapping->{status}->{oid}\.(.*)$/); + my $instance = $1; + my $data = $options{snmp}->map_instance(mapping => $mapping, results => $snmp_result, instance => $instance); + + next if (defined($self->{option_results}->{index}) && $self->{option_results}->{index} ne '' && + $instance != $self->{option_results}->{index}); + next if (defined($self->{option_results}->{filter_name}) && $self->{option_results}->{filter_name} ne '' && + $data->{name} !~ /$self->{option_results}->{filter_name}/); + next if (defined($self->{option_results}->{filter_alias}) && $self->{option_results}->{filter_alias} ne '' && + $data->{alias} !~ /$self->{option_results}->{filter_alias}/); + + $self->{devices}->{$instance} = { + index => $instance, + name => $data->{name}, + status => $data->{status}, + alias => $data->{alias}, + text => $data->{text} + }; + } + + if (scalar(keys %{$self->{devices}}) <= 0) { + $self->{output}->add_option_msg(short_msg => 'No devices found.'); + $self->{output}->option_exit(); + } +}; + +1; + +__END__ + +=head1 MODE + +Check devices status. + +=over 8 + +=item B<--filter-name> + +Filter device name (can be a regexp). + +=item B<--filter-alias> + +Filter devices alias (can be a regexp). + +=item B<--index> + +Filter device index (exact match). + +=item B<--unknown-status> + +Define the conditions to match for the status to be UNKNOWN. +You can use the following variables: %{status} + +=item B<--warning-status> + +Define the conditions to match for the status to be WARNING (default: '%{status} =~ /detect|changed|fwUpdate|fwUpdateRun/i'). +You can use the following variables: %{status} + +=item B<--critical-status> + +Define the conditions to match for the status to be CRITICAL (default: '%{status} =~ /notAvail|lost|error/i'). +You can use the following variables: %{status} + +=back + +=cut diff --git a/src/hardware/sensors/rittal/cmc3/snmp/mode/listdevices.pm b/src/hardware/sensors/rittal/cmc3/snmp/mode/listdevices.pm new file mode 100644 index 000000000..5d2f360e2 --- /dev/null +++ b/src/hardware/sensors/rittal/cmc3/snmp/mode/listdevices.pm @@ -0,0 +1,160 @@ +# +# Copyright 2023 Centreon (http://www.centreon.com/) +# +# Centreon is a full-fledged industry-strength solution that meets +# the needs in IT infrastructure and application monitoring for +# service performance. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +package hardware::sensors::rittal::cmc3::snmp::mode::listdevices; + +use base qw(centreon::plugins::mode); + +use strict; +use warnings; + +my $map_status = { + 1 => 'Device not available', + 2 => 'OK', + 3 => 'Device detected, confirmation required', + 4 => 'Device lost (disconnected), confirmation required', + 5 => 'Device changed', + 6 => 'Error', + 7 => 'Firmware update pending', + 8 => 'Firmware update runnning' +}; + +my $mapping = { + dev_name => { oid => '.1.3.6.1.4.1.2606.7.4.1.2.1.2' }, + dev_alias => { oid => '.1.3.6.1.4.1.2606.7.4.1.2.1.3' }, + dev_status => { oid => '.1.3.6.1.4.1.2606.7.4.1.2.1.6', map => $map_status }, + dev_status_text => { oid => '.1.3.6.1.4.1.2606.7.4.1.2.1.19' } +}; + +sub new { + my ($class, %options) = @_; + my $self = $class->SUPER::new(package => __PACKAGE__, %options); + bless $self, $class; + + $options{options}->add_options( + arguments => + { + 'filter-name:s' => { name => 'filter_name' }, + 'filter-alias:s' => { name => 'filter_alias' } + } + ); + + return $self; +} + +sub check_options { + my ($self, %options) = @_; + $self->SUPER::init(%options); +} + +sub manage_selection { + my ($self, %options) = @_; + + my $snmp_result = $options{snmp}->get_multiple_table( + oids => [ + { oid => $mapping->{dev_name}->{oid} }, + { oid => $mapping->{dev_alias}->{oid} }, + { oid => $mapping->{dev_status}->{oid} }, + { oid => $mapping->{dev_status_text}->{oid} } + ], + return_type => 1, + nothing_quit => 1 + ); + + my $results = {}; + foreach my $oid (keys %{$snmp_result}) { + next if ($oid !~ /^$mapping->{dev_name}->{oid}\.(.*)$/); + my $instance = $1; + my $data = $options{snmp}->map_instance(mapping => $mapping, results => $snmp_result, instance => $instance); + + next if (defined($self->{option_results}->{filter_name}) && $self->{option_results}->{filter_name} ne '' && + $data->{dev_name} !~ /$self->{option_results}->{filter_name}/); + next if (defined($self->{option_results}->{filter_alias}) && $self->{option_results}->{filter_alias} ne '' && + $data->{dev_alias} !~ /$self->{option_results}->{filter_alias}/); + + $results->{$instance} = { + index => $instance, + name => $data->{dev_name}, + alias => $data->{dev_alias}, + status => $data->{dev_status}, + statusText => $data->{dev_status_text} + }; + } + + return $results; +} + +sub run { + my ($self, %options) = @_; + + my $results = $self->manage_selection(%options); + foreach my $instance (sort keys %$results) { + $self->{output}->output_add(long_msg => sprintf( + "[index: %d] [name: %s] [alias: %s] [status: %s] [statusText: '%s']", + $results->{$instance}->{index}, + $results->{$instance}->{name}, + $results->{$instance}->{alias}, + $results->{$instance}->{status}, + $results->{$instance}->{statusText} + )); + } + + $self->{output}->output_add( + severity => 'OK', + short_msg => 'Devices list:' + ); + $self->{output}->display(nolabel => 1, force_ignore_perfdata => 1, force_long_output => 1); + $self->{output}->exit(); +} + +sub disco_format { + my ($self, %options) = @_; + + $self->{output}->add_disco_format(elements => [ 'index', 'name', 'alias', 'status', 'statusText' ]); +} + +sub disco_show { + my ($self, %options) = @_; + + my $results = $self->manage_selection(%options); + foreach my $instance (sort keys %$results) { + $self->{output}->add_disco_entry(%{$results->{$instance}}); + } +} + +1; + +__END__ + +=head1 MODE + +List devices + +=over 8 + +=item B<--filter-name> + +Filter device name (can be a regexp). + +=item B<--filter-alias> + +Filter devices alias (can be a regexp). + +=cut diff --git a/src/hardware/sensors/rittal/cmc3/snmp/mode/load.pm b/src/hardware/sensors/rittal/cmc3/snmp/mode/load.pm new file mode 100644 index 000000000..d1818862d --- /dev/null +++ b/src/hardware/sensors/rittal/cmc3/snmp/mode/load.pm @@ -0,0 +1,124 @@ +# +# Copyright 2023 Centreon (http://www.centreon.com/) +# +# Centreon is a full-fledged industry-strength solution that meets +# the needs in IT infrastructure and application monitoring for +# service performance. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +package hardware::sensors::rittal::cmc3::snmp::mode::load; + +use base qw(centreon::plugins::templates::counter); + +use strict; +use warnings; + +sub prefix_output { + my ($self, %options) = @_; + + return 'system load '; +} + +sub set_counters { + my ($self, %options) = @_; + + $self->{maps_counters_type} = [ + { name => 'unit_load', type => 0, cb_prefix_output => 'prefix_output' } + ]; + + $self->{maps_counters}->{unit_load} = [ + { + label => 'unit-load-1m', nlabel => 'system.load.1m.percentage', + set => { + key_values => [ { name => 'load1' } ], + output_template => '%.2f (1m)', + perfdatas => [ + { template => '%.2f', min => 0, max => 100, unit => '%' } + ] + } + }, + { + label => 'unit-load-5m', nlabel => 'system.load.5m.percentage', + set => { + key_values => [ { name => 'load5' } ], + output_template => '%.2f (5m)', + perfdatas => [ + { template => '%.2f', min => 0, max => 100, unit => '%' } + ] + } + }, + { + label => 'unit-load-10m', nlabel => 'system.load.10m.percentage', + set => { + key_values => [ { name => 'load10' } ], + output_template => '%.2f (10m)', + perfdatas => [ + { template => '%.2f', min => 0, max => 100, unit => '%' } + ] + } + }, + ]; +} + +sub new { + my ($class, %options) = @_; + my $self = $class->SUPER::new(package => __PACKAGE__, %options, force_new_perfdata => 1); + bless $self, $class; + + $options{options}->add_options(arguments => {}); + + return $self; +} + +my $mapping = { + unit_load => { oid => '.1.3.6.1.4.1.2606.7.2.14.1.2' } +}; + +sub manage_selection { + my ($self, %options) = @_; + + my $oid_cmcIIIUnitLoadEntry = '.1.3.6.1.4.1.2606.7.2.14.1'; + my $results = $options{snmp}->get_table( + oid => $oid_cmcIIIUnitLoadEntry, + nothing_quit => 1 + ); + + $self->{unit_load} = {}; + foreach (keys %$results) { + next if (!/^$mapping->{unit_load}->{oid}\.(\d+)$/); + my $result = $options{snmp}->map_instance(mapping => $mapping, results => $results, instance => $1); + $self->{unit_load}->{'load' . $1} = $result->{unit_load} / 100; + } +} + +1; + +__END__ + +=head1 MODE + +Check unit load + +=over 8 + +=item B<--warning-*> B<--critical-*> + +Load threshold in %. + +Thresholds: unit-load-1m, unit-load-5m, unit-load-10m + +=back + +=cut diff --git a/src/hardware/sensors/rittal/cmc3/snmp/mode/unitstatus.pm b/src/hardware/sensors/rittal/cmc3/snmp/mode/unitstatus.pm new file mode 100644 index 000000000..80ca940fd --- /dev/null +++ b/src/hardware/sensors/rittal/cmc3/snmp/mode/unitstatus.pm @@ -0,0 +1,159 @@ +# +# Copyright 2023 Centreon (http://www.centreon.com/) +# +# Centreon is a full-fledged industry-strength solution that meets +# the needs in IT infrastructure and application monitoring for +# service performance. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +package hardware::sensors::rittal::cmc3::snmp::mode::unitstatus; + +use base qw(centreon::plugins::templates::counter); + +use strict; +use warnings; +use centreon::plugins::templates::catalog_functions qw(catalog_status_threshold_ng); + +my $map_unit_status = { + 1 => 'OK', + 2 => 'failed', + 3 => 'overload' +}; + +my $map_overall_device_status = { + 1 => 'ok', + 2 => 'warning', + 3 => 'alarm', + 4 => 'detected', + 5 => 'lost', + 6 => 'changed', + 7 => 'update' +}; + +my $map_unit_mode = { + 1 => 'local init ini progress', + 2 => 'start local system first time', + 3 => 'first start delay', + 4 => 'restart bus system, reread configuration', + 5 => 'locally online', + 6 => 'collect all slaves at the bus', + 7 => 'reorganize bus', + 8 => 'up and running', + 9 => 'prepare for sensor upgrade', + 10 => 'upgrade sensors', + 11 => 'gentle termination', +}; + +sub custom_status_output { + my ($self, %options) = @_; + + return sprintf( + "Unit status: %s - Unit mode: %s - Overall device status: %s [available devices: %d]", + $self->{result_values}->{unit_status}, + $self->{result_values}->{mode}, + $self->{result_values}->{overall_device_status}, + $self->{result_values}->{available_devices} + ); +} + +sub set_counters { + my ($self, %options) = @_; + + $self->{maps_counters_type} = [ { name => 'status', type => 0 } ]; + + $self->{maps_counters}->{status} = [ + { + label => 'status', + unknown_default => '%{overall_device_status} =~ /detected|lost|changed|update/i', + warning_default => '%{unit_status} =~ /overload/i || %{overall_device_status} =~ /warning/i', + critical_default => '%{unit_status} =~ /failed/i || %{overall_device_status} =~ /alarm/i', + type => 2, + set => { + key_values => [ + { name => 'unit_status' }, + { name => 'overall_device_status' }, + { name => 'mode' }, + { name => 'available_devices' } + ], + closure_custom_threshold_check => \&catalog_status_threshold_ng, + closure_custom_perfdata => sub {return 0;}, + closure_custom_output => $self->can('custom_status_output') + } + } + ]; +} + +sub new { + my ($class, %options) = @_; + my $self = $class->SUPER::new(package => __PACKAGE__, %options, force_new_perfdata => 1); + bless $self, $class; + + return $self; +} + +sub manage_selection { + my ($self, %options) = @_; + + my $oid_cmcIIIUnitStatus = '.1.3.6.1.4.1.2606.7.2.1.0'; + my $oid_cmcIIIUnitMode = '.1.3.6.1.4.1.2606.7.2.13.0'; + my $oid_cmcIIIOverallDevStatus = '.1.3.6.1.4.1.2606.7.4.1.1.1.0'; + my $oid_cmcIIINumberOfDevs = '.1.3.6.1.4.1.2606.7.4.1.1.2.0'; + + my $snmp_result = $options{snmp}->get_leef( + oids => [ + $oid_cmcIIIUnitStatus, + $oid_cmcIIIUnitMode, + $oid_cmcIIIOverallDevStatus, + $oid_cmcIIINumberOfDevs + ], + nothing_quit => 1 + ); + + $self->{status} = { + unit_status => $map_unit_status->{ $snmp_result->{$oid_cmcIIIUnitStatus} }, + overall_device_status => $map_overall_device_status->{ $snmp_result->{$oid_cmcIIIOverallDevStatus} }, + mode => $map_unit_mode->{ $snmp_result->{$oid_cmcIIIUnitMode} }, + available_devices => $snmp_result->{$oid_cmcIIINumberOfDevs} + }; +} + +1; + +__END__ + +=head1 MODE + +Check unit status + +=over 8 + +=item B<--unknown-status> + +Define the conditions to match for the status to be UNKNOWN (default: '%{overall_device_status} =~ /detected|lost|changed|update/i'). +You can use the following variables: %{unit_status}, %{overall_device_status}, %{mode}, %{available_devices} + +=item B<--warning-status> + +Define the conditions to match for the status to be WARNING (default: '%{unit_status} =~ /overload/i || %{overall_device_status} =~ /warning/i'). +You can use the following variables: %{unit_status}, %{overall_device_status}, %{mode}, %{available_devices} + +=item B<--critical-status> + +Define the conditions to match for the status to be CRITICAL (default: '%{unit_status} =~ /failed/i || %{overall_device_status} =~ /alarm/i'). +You can use the following variables: %{unit_status}, %{overall_device_status}, %{mode}, %{available_devices} + +=back + +=cut diff --git a/src/hardware/sensors/rittal/cmc3/snmp/mode/uptime.pm b/src/hardware/sensors/rittal/cmc3/snmp/mode/uptime.pm new file mode 100644 index 000000000..a2ebddae0 --- /dev/null +++ b/src/hardware/sensors/rittal/cmc3/snmp/mode/uptime.pm @@ -0,0 +1,77 @@ +# +# Copyright 2023 Centreon (http://www.centreon.com/) +# +# Centreon is a full-fledged industry-strength solution that meets +# the needs in IT infrastructure and application monitoring for +# service performance. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +package hardware::sensors::rittal::cmc3::snmp::mode::uptime; + +use base qw(snmp_standard::mode::uptime); + +use strict; +use warnings; + +sub new { + my ($class, %options) = @_; + my $self = $class->SUPER::new(package => __PACKAGE__, %options, force_new_perfdata => 1); + bless $self, $class; + + return $self; +} + +1; + +__END__ + +=head1 MODE + +Check system uptime. + +=over 8 + +=item B<--warning-uptime> + +Warning threshold. + +=item B<--critical-uptime> + +Critical threshold. + +=item B<--add-sysdesc> + +Display system description. + +=item B<--force-oid> + +Can choose your OID (numeric format only). + +=item B<--check-overload> + +Uptime counter limit is 4294967296 and overflow. +With that option, we manage the counter going back. But there is a few chance we can miss a reboot. + +=item B<--reboot-window> + +To be used with check-overload option. Time in milliseconds (default: 5000) +You increase the chance of not missing a reboot if you decrease that value. + +=item B<--unit> + +Select the unit for performance data and thresholds. May be 's' for seconds, 'm' for minutes, +'h' for hours, 'd' for days, 'w' for weeks. Default is seconds + +=back diff --git a/src/hardware/sensors/rittal/cmc3/snmp/plugin.pm b/src/hardware/sensors/rittal/cmc3/snmp/plugin.pm new file mode 100644 index 000000000..4c1bed2e2 --- /dev/null +++ b/src/hardware/sensors/rittal/cmc3/snmp/plugin.pm @@ -0,0 +1,50 @@ +# +# Copyright 2022 Centreon (http://www.centreon.com/) +# +# Centreon is a full-fledged industry-strength solution that meets +# the needs in IT infrastructure and application monitoring for +# service performance. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +package hardware::sensors::rittal::cmc3::snmp::plugin; +use strict; +use warnings; +use base qw(centreon::plugins::script_snmp); + +sub new { + my ($class, %options) = @_; + my $self = $class->SUPER::new(package => __PACKAGE__, %options); + bless $self, $class; + + $self->{modes} = { + 'devices' => 'hardware::sensors::rittal::cmc3::snmp::mode::devices', + 'unit-status' => 'hardware::sensors::rittal::cmc3::snmp::mode::unitstatus', + 'load' => 'hardware::sensors::rittal::cmc3::snmp::mode::load', + 'list-devices' => 'hardware::sensors::rittal::cmc3::snmp::mode::listdevices', + 'uptime' => 'hardware::sensors::rittal::cmc3::snmp::mode::uptime' + }; + + return $self; +} + +1; + +__END__ + +=head1 PLUGIN DESCRIPTION + +Check Rittal cmc3 sensors in SNMP. + +=cut From 5d82055b67a4f2aa18abacad0f0b9330f7a90688 Mon Sep 17 00:00:00 2001 From: qgarnier Date: Wed, 5 Jul 2023 10:24:34 +0200 Subject: [PATCH 34/39] new(plugin): add tosca restapi plugin (#4508) --- .../deb.json | 4 + .../pkg.json | 9 + .../rpm.json | 4 + src/apps/tosca/restapi/custom/api.pm | 277 ++++++++++++++++++ .../tosca/restapi/mode/executionliststatus.pm | 147 ++++++++++ src/apps/tosca/restapi/mode/scenariostatus.pm | 152 ++++++++++ src/apps/tosca/restapi/plugin.pm | 50 ++++ 7 files changed, 643 insertions(+) create mode 100644 packaging/centreon-plugin-Applications-Tosca-Restapi/deb.json create mode 100644 packaging/centreon-plugin-Applications-Tosca-Restapi/pkg.json create mode 100644 packaging/centreon-plugin-Applications-Tosca-Restapi/rpm.json create mode 100644 src/apps/tosca/restapi/custom/api.pm create mode 100644 src/apps/tosca/restapi/mode/executionliststatus.pm create mode 100644 src/apps/tosca/restapi/mode/scenariostatus.pm create mode 100644 src/apps/tosca/restapi/plugin.pm diff --git a/packaging/centreon-plugin-Applications-Tosca-Restapi/deb.json b/packaging/centreon-plugin-Applications-Tosca-Restapi/deb.json new file mode 100644 index 000000000..9757fe112 --- /dev/null +++ b/packaging/centreon-plugin-Applications-Tosca-Restapi/deb.json @@ -0,0 +1,4 @@ +{ + "dependencies": [ + ] +} diff --git a/packaging/centreon-plugin-Applications-Tosca-Restapi/pkg.json b/packaging/centreon-plugin-Applications-Tosca-Restapi/pkg.json new file mode 100644 index 000000000..a37de53cc --- /dev/null +++ b/packaging/centreon-plugin-Applications-Tosca-Restapi/pkg.json @@ -0,0 +1,9 @@ +{ + "pkg_name": "centreon-plugin-Applications-Tosca-Restapi", + "pkg_summary": "Centreon Plugin to monitor Tosca throught Tosca Commander REST Webservice (TCRS)", + "plugin_name": "centreon_tosca_restapi.pl", + "files": [ + "centreon/plugins/script_custom.pm", + "apps/tosca/restapi/" + ] +} diff --git a/packaging/centreon-plugin-Applications-Tosca-Restapi/rpm.json b/packaging/centreon-plugin-Applications-Tosca-Restapi/rpm.json new file mode 100644 index 000000000..9757fe112 --- /dev/null +++ b/packaging/centreon-plugin-Applications-Tosca-Restapi/rpm.json @@ -0,0 +1,4 @@ +{ + "dependencies": [ + ] +} diff --git a/src/apps/tosca/restapi/custom/api.pm b/src/apps/tosca/restapi/custom/api.pm new file mode 100644 index 000000000..160fe6188 --- /dev/null +++ b/src/apps/tosca/restapi/custom/api.pm @@ -0,0 +1,277 @@ +# +# Copyright 2023 Centreon (http://www.centreon.com/) +# +# Centreon is a full-fledged industry-strength solution that meets +# the needs in IT infrastructure and application monitoring for +# service performance. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +package apps::tosca::restapi::custom::api; + +use strict; +use warnings; +use centreon::plugins::http; +use JSON::XS; + +sub new { + my ($class, %options) = @_; + my $self = {}; + bless $self, $class; + + if (!defined($options{output})) { + print "Class Custom: Need to specify 'output' argument.\n"; + exit 3; + } + if (!defined($options{options})) { + $options{output}->add_option_msg(short_msg => "Class Custom: Need to specify 'options' argument."); + $options{output}->option_exit(); + } + + if (!defined($options{noptions})) { + $options{options}->add_options(arguments => { + 'hostname:s' => { name => 'hostname' }, + 'port:s' => { name => 'port' }, + 'proto:s' => { name => 'proto' }, + 'api-username:s' => { name => 'api_username' }, + 'api-password:s' => { name => 'api_password' }, + 'url-path:s' => { name => 'url_path' }, + 'timeout:s' => { name => 'timeout' }, + 'unknown-http-status:s' => { name => 'unknown_http_status' }, + 'warning-http-status:s' => { name => 'warning_http_status' }, + 'critical-http-status:s' => { name => 'critical_http_status' } + }); + } + $options{options}->add_help(package => __PACKAGE__, sections => 'REST API OPTIONS', once => 1); + + $self->{output} = $options{output}; + $self->{http} = centreon::plugins::http->new(%options, default_backend => 'curl'); + + return $self; +} + +sub set_options { + my ($self, %options) = @_; + + $self->{option_results} = $options{option_results}; +} + +sub set_defaults {} + +sub check_options { + my ($self, %options) = @_; + + $self->{hostname} = (defined($self->{option_results}->{hostname})) ? $self->{option_results}->{hostname} : ''; + $self->{port} = (defined($self->{option_results}->{port})) ? $self->{option_results}->{port} : 80; + $self->{proto} = (defined($self->{option_results}->{proto})) ? $self->{option_results}->{proto} : 'http'; + $self->{timeout} = (defined($self->{option_results}->{timeout})) ? $self->{option_results}->{timeout} : 10; + $self->{api_username} = (defined($self->{option_results}->{api_username})) ? $self->{option_results}->{api_username} : ''; + $self->{api_password} = (defined($self->{option_results}->{api_password})) ? $self->{option_results}->{api_password} : ''; + $self->{url_path} = (defined($self->{option_results}->{url_path})) ? $self->{option_results}->{url_path} : '/rest/toscacommander'; + $self->{unknown_http_status} = (defined($self->{option_results}->{unknown_http_status})) ? $self->{option_results}->{unknown_http_status} : '%{http_code} < 200 or %{http_code} >= 300'; + $self->{warning_http_status} = (defined($self->{option_results}->{warning_http_status})) ? $self->{option_results}->{warning_http_status} : ''; + $self->{critical_http_status} = (defined($self->{option_results}->{critical_http_status})) ? $self->{option_results}->{critical_http_status} : ''; + + if ($self->{hostname} eq '') { + $self->{output}->add_option_msg(short_msg => "Need to specify --hostname option."); + $self->{output}->option_exit(); + } + if ($self->{api_username} eq '' || $self->{api_password} eq '') { + $self->{output}->add_option_msg(short_msg => "Need to specify --api-username and --api-password options."); + $self->{output}->option_exit(); + } + + return 0; +} + +sub build_options_for_httplib { + my ($self, %options) = @_; + + $self->{option_results}->{hostname} = $self->{hostname}; + $self->{option_results}->{timeout} = $self->{timeout}; + $self->{option_results}->{port} = $self->{port}; + $self->{option_results}->{proto} = $self->{proto}; + $self->{option_results}->{timeout} = $self->{timeout}; + if ($self->{api_username} ne '') { + $self->{option_results}->{credentials} = 1; + $self->{option_results}->{basic} = 1; + $self->{option_results}->{username} = $self->{api_username}; + $self->{option_results}->{password} = $self->{api_password}; + } +} + +sub settings { + my ($self, %options) = @_; + + return if (defined($self->{settings_done})); + $self->build_options_for_httplib(); + $self->{http}->add_header(key => 'Accept', value => 'application/json'); + $self->{http}->set_options(%{$self->{option_results}}); + $self->{settings_done} = 1; +} + +sub get_hostname { + my ($self, %options) = @_; + + return $self->{hostname}; +} + +sub request_api { + my ($self, %options) = @_; + + $self->settings(); + + my $content = $self->{http}->request( + url_path => $options{endpoint}, + unknown_status => $self->{unknown_http_status}, + warning_status => $self->{warning_http_status}, + critical_status => $self->{critical_http_status} + ); + + if (!defined($content) || $content eq '') { + $self->{output}->add_option_msg(short_msg => "API returns empty content [code: '" . $self->{http}->get_code() . "'] [message: '" . $self->{http}->get_message() . "']"); + $self->{output}->option_exit(); + } + + my $decoded; + eval { + $decoded = JSON::XS->new->utf8->decode($content); + }; + if ($@) { + $self->{output}->add_option_msg(short_msg => "Cannot decode response (add --debug option to display returned content)"); + $self->{output}->option_exit(); + } + + return $decoded; +} + +sub get_object_representation { + my ($self, %options) = @_; + + my $response = $self->request_api( + endpoint => $self->{url_path} . "/" . $options{workspace} . "/object/" . $options{object_id} + ); + + if (!defined($response->{TypeName}) || $response->{TypeName} ne $options{object_type}) { + $self->{output}->add_option_msg(short_msg => "Retrieved '" . $response->{TypeName} . "' object type, expected '" . $options{object_type} . "'"); + $self->{output}->option_exit(); + } + + if (!defined($response->{Attributes}) || ref($response->{Attributes}) ne 'ARRAY') { + $self->{output}->add_option_msg(short_msg => "Cannot retrieve object representation attributes"); + $self->{output}->option_exit(); + } + + my %results; + foreach my $attribute (@{$response->{Attributes}}) { + $results{$attribute->{Name}} = $attribute->{Value}; + } + + return %results; +} + +sub get_association_object_id { + my ($self, %options) = @_; + + my $response = $self->request_api( + endpoint => $self->{url_path} . "/" . $options{workspace} . "/object/" . $options{object_id} . "/association/" . $options{association} + ); + + if (!defined(@$response[0]) || !defined(@$response[0]->{UniqueId})) { + $self->{output}->add_option_msg(short_msg => "Cannot retrieve association object ID"); + $self->{output}->option_exit(); + } + + return @$response[0]->{UniqueId}; +} + +sub get_scenario_last_log { + my ($self, %options) = @_; + + my $scenario_last_log_id = $self->get_association_object_id( + workspace => $options{workspace}, + object_id => $options{scenario_id}, + association => 'ActualLog' + ); + + my %log = $self->get_object_representation( + workspace => $options{workspace}, + object_id => $scenario_last_log_id, + object_type => 'ExecutionTestCaseLog' + ); + + return %log; +} + +sub get_execution_list { + my ($self, %options) = @_; + + my %execution_list = $self->get_object_representation( + workspace => $options{workspace}, + object_id => $options{execution_list_id}, + object_type => 'ExecutionList' + ); + + return %execution_list; +} + +1; + +__END__ + +=head1 NAME + +Tosca Commander REST Webservice (TCRS) + +=head1 REST API OPTIONS + +Tosca Commander REST Webservice (TCRS) + +=over 8 + +=item B<--hostname> + +Tosca hostname. + +=item B<--port> + +Port used (Default: 80) + +=item B<--proto> + +Specify https if needed (Default: 'http') + +=item B<--api-username> + +Tosca Commander API username. + +=item B<--api-password> + +Tosca Commander API password. + +=item B<--url-path> + +API base url path (Default: '/rest/toscacommander'). + +=item B<--timeout> + +Set timeout in seconds (Default: 10). + +=back + +=head1 DESCRIPTION + +B. + +=cut diff --git a/src/apps/tosca/restapi/mode/executionliststatus.pm b/src/apps/tosca/restapi/mode/executionliststatus.pm new file mode 100644 index 000000000..c4b630a6d --- /dev/null +++ b/src/apps/tosca/restapi/mode/executionliststatus.pm @@ -0,0 +1,147 @@ +# +# Copyright 2023 Centreon (http://www.centreon.com/) +# +# Centreon is a full-fledged industry-strength solution that meets +# the needs in IT infrastructure and application monitoring for +# service performance. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +package apps::tosca::restapi::mode::executionliststatus; + +use base qw(centreon::plugins::templates::counter); + +use strict; +use warnings; + +sub prefix_output { + my ($self, %options) = @_; + + return sprintf("Execution list '" . $options{instance_value}->{name} . "' entries "); +} + +sub set_counters { + my ($self, %options) = @_; + + $self->{maps_counters_type} = [ + { name => 'global', type => 0, cb_prefix_output => 'prefix_output' } + ]; + + $self->{maps_counters}->{global} = [ + { label => 'entries-passed', nlabel => 'entries.passed.count', set => { + key_values => [ { name => 'passed' }, { name => 'name' } ], + output_template => 'passed: %s', + perfdatas => [ + { template => '%s', min => 0 } + ] + } + }, + { label => 'entries-failed', nlabel => 'entries.failed.count', set => { + key_values => [ { name => 'failed' }, { name => 'name' } ], + output_template => 'failed: %s', + perfdatas => [ + { template => '%s', min => 0 } + ] + } + }, + { label => 'entries-not-executed', nlabel => 'entries.not_executed.count', set => { + key_values => [ { name => 'not_executed' }, { name => 'name' } ], + output_template => 'not executed: %s', + perfdatas => [ + { template => '%s', min => 0 } + ] + } + }, + { label => 'entries-unknown', nlabel => 'entries.unknown.count', set => { + key_values => [ { name => 'unknown' }, { name => 'name' } ], + output_template => 'unknown: %s', + perfdatas => [ + { template => '%s', min => 0 } + ] + } + } + ]; +} + +sub new { + my ($class, %options) = @_; + my $self = $class->SUPER::new(package => __PACKAGE__, %options, force_new_perfdata => 1); + bless $self, $class; + + $options{options}->add_options(arguments => { + 'workspace:s' => { name => 'workspace' }, + 'execution-list-id:s' => { name => 'execution_list_id' } + }); + + return $self; +} + +sub check_options { + my ($self, %options) = @_; + $self->SUPER::check_options(%options); + + if (!defined($self->{option_results}->{execution_list_id}) || $self->{option_results}->{execution_list_id} eq '') { + $self->{output}->add_option_msg(short_msg => 'Please set --execution-list-id option.'); + $self->{output}->option_exit(); + } + + if (!defined($self->{option_results}->{workspace}) || $self->{option_results}->{workspace} eq '') { + $self->{output}->add_option_msg(short_msg => 'Please set --workspace option.'); + $self->{output}->option_exit(); + } +} + +sub manage_selection { + my ($self, %options) = @_; + + my %scenario_log = $options{custom}->get_execution_list( + workspace => $self->{option_results}->{workspace}, + execution_list_id => $self->{option_results}->{execution_list_id} + ); + + $self->{global} = { + name => $scenario_log{Name}, + passed => $scenario_log{NumberOfTestCasesPassed}, + failed => $scenario_log{NumberOfTestCasesFailed}, + not_executed => $scenario_log{NumberOfTestCasesNotExecuted}, + unknown => $scenario_log{NumberOfTestCasesWithUnknownState} + }; +} + +1; + +__END__ + +=head1 MODE + +Check execution list status. + +=over 8 + +=item B<--workspace> + +Workspace name of the provided execution list. + +=item B<--execution-list-id> + +Execution list unique ID. + +=item B<--warning-entries-*> B<--critical-entries-*> + +Thresholds. +Can be: 'passed', 'failed', 'not-executed', 'unknown'. + +=back + +=cut diff --git a/src/apps/tosca/restapi/mode/scenariostatus.pm b/src/apps/tosca/restapi/mode/scenariostatus.pm new file mode 100644 index 000000000..044c73df3 --- /dev/null +++ b/src/apps/tosca/restapi/mode/scenariostatus.pm @@ -0,0 +1,152 @@ +# +# Copyright 2023 Centreon (http://www.centreon.com/) +# +# Centreon is a full-fledged industry-strength solution that meets +# the needs in IT infrastructure and application monitoring for +# service performance. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +package apps::tosca::restapi::mode::scenariostatus; + +use base qw(centreon::plugins::templates::counter); + +use strict; +use warnings; +use centreon::plugins::templates::catalog_functions qw(catalog_status_threshold_ng); + +sub prefix_output { + my ($self, %options) = @_; + + return sprintf("Scenario '" . $options{instance_value}->{name} . "' "); +} + +sub custom_status_output { + my ($self, %options) = @_; + + return sprintf( + "result is '%s' [start time:'%s', end time:'%s']", + $self->{result_values}->{result}, + $self->{result_values}->{start_time}, + $self->{result_values}->{end_time} + ); +} + +sub set_counters { + my ($self, %options) = @_; + + $self->{maps_counters_type} = [ + { name => 'global', type => 0, cb_prefix_output => 'prefix_output' } + ]; + + $self->{maps_counters}->{global} = [ + { label => 'status', type => 2, critical_default => '%{result} !~ /Passed/', set => { + key_values => [ { name => 'result' }, { name => 'start_time' }, { name => 'end_time' }, { name => 'name' } ], + closure_custom_output => $self->can('custom_status_output'), + closure_custom_perfdata => sub { return 0; }, + closure_custom_threshold_check => \&catalog_status_threshold_ng + } + }, + { label => 'duration', nlabel => 'scenario.duration.seconds', set => { + key_values => [ { name => 'duration' }, { name => 'name' } ], + output_template => 'duration: %.2f seconds', + perfdatas => [ + { template => '%.2f', min => 0, unit => 's' } + ] + } + } + ]; +} + +sub new { + my ($class, %options) = @_; + my $self = $class->SUPER::new(package => __PACKAGE__, %options, force_new_perfdata => 1); + bless $self, $class; + + $options{options}->add_options(arguments => { + 'workspace:s' => { name => 'workspace' }, + 'scenario-id:s' => { name => 'scenario_id' } + }); + + return $self; +} + +sub check_options { + my ($self, %options) = @_; + $self->SUPER::check_options(%options); + + if (!defined($self->{option_results}->{scenario_id}) || $self->{option_results}->{scenario_id} eq '') { + $self->{output}->add_option_msg(short_msg => 'Please set --scenario-id option.'); + $self->{output}->option_exit(); + } + + if (!defined($self->{option_results}->{workspace}) || $self->{option_results}->{workspace} eq '') { + $self->{output}->add_option_msg(short_msg => 'Please set --workspace option.'); + $self->{output}->option_exit(); + } +} + +sub manage_selection { + my ($self, %options) = @_; + + my %scenario_log = $options{custom}->get_scenario_last_log( + workspace => $self->{option_results}->{workspace}, + scenario_id => $self->{option_results}->{scenario_id} + ); + + $self->{global} = { + name => $scenario_log{Name}, + result => $scenario_log{Result}, + start_time => $scenario_log{StartTime}, + end_time => $scenario_log{EndTime}, + duration => $scenario_log{Duration} / 1000 + }; +} + +1; + +__END__ + +=head1 MODE + +Check scenario status. + +=over 8 + +=item B<--workspace> + +Workspace name of the provided scenario. + +=item B<--scenario-id> + +Scenario unique ID. + +=item B<--warning-status> + +Define the conditions to match for the status to be WARNING. +You can use the following variables: %{result} + +=item B<--critical-status> + +Define the conditions to match for the status to be CRITICAL (default: '%{result} !~ /Passed/'). +You can use the following variables: %{result} + +=item B<--warning-*> B<--critical-*> + +Thresholds. +Can be: 'duration'. + +=back + +=cut diff --git a/src/apps/tosca/restapi/plugin.pm b/src/apps/tosca/restapi/plugin.pm new file mode 100644 index 000000000..e06f79732 --- /dev/null +++ b/src/apps/tosca/restapi/plugin.pm @@ -0,0 +1,50 @@ +# +# Copyright 2023 Centreon (http://www.centreon.com/) +# +# Centreon is a full-fledged industry-strength solution that meets +# the needs in IT infrastructure and application monitoring for +# service performance. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +package apps::tosca::restapi::plugin; + +use strict; +use warnings; +use base qw(centreon::plugins::script_custom); + +sub new { + my ( $class, %options ) = @_; + my $self = $class->SUPER::new(package => __PACKAGE__, %options); + bless $self, $class; + + $self->{version} = '0.1'; + $self->{modes} = { + 'execution-list-status' => 'apps::tosca::restapi::mode::executionliststatus', + 'scenario-status' => 'apps::tosca::restapi::mode::scenariostatus' + }; + + $self->{custom_modes}{api} = 'apps::tosca::restapi::custom::api'; + return $self; +} + +1; + +__END__ + +=head1 PLUGIN DESCRIPTION + +Check Tosca scenarii using Tosca Commander REST Webservice (TCRS). + +=cut From 49db61dde7e1e7752bc8ffd22a8ce6a77d638713 Mon Sep 17 00:00:00 2001 From: qgarnier Date: Wed, 5 Jul 2023 10:24:48 +0200 Subject: [PATCH 35/39] new(plugin): add sailpoint identitynow restapi plugin (#4507) --- .../deb.json | 4 + .../pkg.json | 9 + .../rpm.json | 4 + .../identitynow/restapi/custom/api.pm | 387 ++++++++++++++++++ .../identitynow/restapi/mode/listsources.pm | 122 ++++++ .../identitynow/restapi/mode/searchcount.pm | 113 +++++ .../identitynow/restapi/mode/sourcehealth.pm | 162 ++++++++ .../sailpoint/identitynow/restapi/plugin.pm | 54 +++ 8 files changed, 855 insertions(+) create mode 100644 packaging/centreon-plugin-Applications-Sailpoint-Identitynow-Restapi/deb.json create mode 100644 packaging/centreon-plugin-Applications-Sailpoint-Identitynow-Restapi/pkg.json create mode 100644 packaging/centreon-plugin-Applications-Sailpoint-Identitynow-Restapi/rpm.json create mode 100644 src/apps/sailpoint/identitynow/restapi/custom/api.pm create mode 100644 src/apps/sailpoint/identitynow/restapi/mode/listsources.pm create mode 100644 src/apps/sailpoint/identitynow/restapi/mode/searchcount.pm create mode 100644 src/apps/sailpoint/identitynow/restapi/mode/sourcehealth.pm create mode 100644 src/apps/sailpoint/identitynow/restapi/plugin.pm diff --git a/packaging/centreon-plugin-Applications-Sailpoint-Identitynow-Restapi/deb.json b/packaging/centreon-plugin-Applications-Sailpoint-Identitynow-Restapi/deb.json new file mode 100644 index 000000000..9757fe112 --- /dev/null +++ b/packaging/centreon-plugin-Applications-Sailpoint-Identitynow-Restapi/deb.json @@ -0,0 +1,4 @@ +{ + "dependencies": [ + ] +} diff --git a/packaging/centreon-plugin-Applications-Sailpoint-Identitynow-Restapi/pkg.json b/packaging/centreon-plugin-Applications-Sailpoint-Identitynow-Restapi/pkg.json new file mode 100644 index 000000000..456b59ee2 --- /dev/null +++ b/packaging/centreon-plugin-Applications-Sailpoint-Identitynow-Restapi/pkg.json @@ -0,0 +1,9 @@ +{ + "pkg_name": "centreon-plugin-Applications-Sailpoint-Identitynow-Restapi", + "pkg_summary": "Centreon Plugin to monitor SailPoint IdentityNow throught RestAPI", + "plugin_name": "centreon_sailpoint_identitynow_restapi.pl", + "files": [ + "centreon/plugins/script_custom.pm", + "apps/sailpoint/identitynow/restapi/" + ] +} diff --git a/packaging/centreon-plugin-Applications-Sailpoint-Identitynow-Restapi/rpm.json b/packaging/centreon-plugin-Applications-Sailpoint-Identitynow-Restapi/rpm.json new file mode 100644 index 000000000..9757fe112 --- /dev/null +++ b/packaging/centreon-plugin-Applications-Sailpoint-Identitynow-Restapi/rpm.json @@ -0,0 +1,4 @@ +{ + "dependencies": [ + ] +} diff --git a/src/apps/sailpoint/identitynow/restapi/custom/api.pm b/src/apps/sailpoint/identitynow/restapi/custom/api.pm new file mode 100644 index 000000000..5cc4b9725 --- /dev/null +++ b/src/apps/sailpoint/identitynow/restapi/custom/api.pm @@ -0,0 +1,387 @@ +# +# Copyright 2023 Centreon (http://www.centreon.com/) +# +# Centreon is a full-fledged industry-strength solution that meets +# the needs in IT infrastructure and application monitoring for +# service performance. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +package apps::sailpoint::identitynow::restapi::custom::api; + +use strict; +use warnings; +use centreon::plugins::http; +use centreon::plugins::statefile; +use JSON::XS; +use Digest::MD5 qw(md5_hex); + +sub new { + my ($class, %options) = @_; + my $self = {}; + bless $self, $class; + + if (!defined($options{output})) { + print "Class Custom: Need to specify 'output' argument.\n"; + exit 3; + } + if (!defined($options{options})) { + $options{output}->add_option_msg(short_msg => "Class Custom: Need to specify 'options' argument."); + $options{output}->option_exit(); + } + + if (!defined($options{noptions})) { + $options{options}->add_options(arguments => { + 'tenant:s' => { name => 'tenant' }, + 'domain:s' => { name => 'domain' }, + 'port:s' => { name => 'port' }, + 'proto:s' => { name => 'proto' }, + 'api-version:s' => { name => 'api_version' }, + 'client-id:s' => { name => 'client_id' }, + 'client-secret:s' => { name => 'client_secret' }, + 'timeout:s' => { name => 'timeout' } + }); + } + $options{options}->add_help(package => __PACKAGE__, sections => 'SAILPOINT IDENTITYNOW REST API OPTIONS', once => 1); + + $self->{output} = $options{output}; + $self->{http} = centreon::plugins::http->new(%options, default_backend => 'curl'); + $self->{cache} = centreon::plugins::statefile->new(%options); + + return $self; +} + +sub set_options { + my ($self, %options) = @_; + + $self->{option_results} = $options{option_results}; +} + +sub set_defaults {} + +sub check_options { + my ($self, %options) = @_; + + $self->{tenant} = (defined($self->{option_results}->{tenant})) ? $self->{option_results}->{tenant} : ''; + $self->{domain} = (defined($self->{option_results}->{domain})) ? $self->{option_results}->{domain} : 'identitynow'; + $self->{proto} = (defined($self->{option_results}->{proto})) ? $self->{option_results}->{proto} : 'https'; + $self->{port} = (defined($self->{option_results}->{port})) ? $self->{option_results}->{port} : 443; + $self->{api_version} = (defined($self->{option_results}->{api_version})) ? $self->{option_results}->{api_version} : 'v3'; + $self->{client_id} = (defined($self->{option_results}->{client_id})) ? $self->{option_results}->{client_id} : ''; + $self->{client_secret} = (defined($self->{option_results}->{client_secret})) ? $self->{option_results}->{client_secret} : ''; + $self->{timeout} = (defined($self->{option_results}->{timeout})) ? $self->{option_results}->{timeout} : 10; + + if ($self->{tenant} eq '') { + $self->{output}->add_option_msg(short_msg => 'Need to specify --tenant option.'); + $self->{output}->option_exit(); + } + if ($self->{client_id} eq '') { + $self->{output}->add_option_msg(short_msg => "Need to specify --client-id option."); + $self->{output}->option_exit(); + } + if ($self->{client_secret} eq '') { + $self->{output}->add_option_msg(short_msg => "Need to specify --client-secret option."); + $self->{output}->option_exit(); + } + + $self->{hostname} = $self->{tenant} . '.api.' . $self->{domain} . '.com'; + + $self->{cache}->check_options(option_results => $self->{option_results}); + + return 0; +} + +sub get_connection_infos { + my ($self, %options) = @_; + + return $self->{hostname} . '_' . $self->{http}->get_port(); +} + +sub get_hostname { + my ($self, %options) = @_; + + return $self->{hostname}; +} + +sub get_port { + my ($self, %options) = @_; + + return $self->{port}; +} + +sub build_options_for_httplib { + my ($self, %options) = @_; + + $self->{option_results}->{port} = $self->{port}; + $self->{option_results}->{proto} = $self->{proto}; +} + +sub settings { + my ($self, %options) = @_; + + $self->build_options_for_httplib(); + $self->{http}->add_header(key => 'Accept', value => 'application/json'); + $self->{http}->set_options(%{$self->{option_results}}); +} + +sub clean_token { + my ($self, %options) = @_; + + my $datas = {}; + $options{statefile}->write(data => $datas); + $self->{access_token} = undef; + $self->{http}->add_header(key => 'Authorization', value => undef); +} + +sub get_auth_token { + my ($self, %options) = @_; + + my $has_cache_file = $options{statefile}->read( + statefile => 'sailpoint_identitynow_api_' . md5_hex($self->{option_results}->{tenant}) . '_' . md5_hex($self->{option_results}->{client_id}) + ); + my $access_token = $options{statefile}->get(name => 'access_token'); + my $expires_on = $options{statefile}->get(name => 'expires_on'); + my $md5_secret_cache = $self->{cache}->get(name => 'md5_secret'); + my $md5_secret = md5_hex($self->{client_id} . $self->{client_secret}); + + if ($has_cache_file == 0 || !defined($access_token) || (time() > $expires_on) || + (defined($md5_secret_cache) && $md5_secret_cache ne $md5_secret)) { + my ($content) = $self->{http}->request( + method => 'POST', + hostname => $self->{hostname}, + url_path => '/oauth/token', + post_param => [ + 'grant_type=client_credentials', + 'client_id=' . $self->{client_id}, + 'client_secret=' . $self->{client_secret} + ], + unknown_status => '', + warning_status => '', + critical_status => '' + ); + + if (!defined($content) || $content eq '') { + $self->{output}->add_option_msg(short_msg => "Authentication endpoint returns empty content [code: '" . $self->{http}->get_code() . "'] [message: '" . $self->{http}->get_message() . "']"); + $self->{output}->option_exit(); + } + + my $decoded; + eval { + $decoded = JSON::XS->new->utf8->decode($content); + }; + if ($@) { + $self->{output}->output_add(long_msg => $@, debug => 1); + $self->{output}->add_option_msg(short_msg => "Cannot decode response (add --debug option to display returned content)"); + $self->{output}->option_exit(); + } + if (ref($decoded) eq 'HASH' && defined($decoded->{error})) { + $self->{output}->output_add(long_msg => "Error message : " . $decoded->{error_description}, debug => 1); + $self->{output}->add_option_msg(short_msg => "Authentication endpoint returns error code '" . $decoded->{error} . "' (add --debug option for detailed message)"); + $self->{output}->option_exit(); + } + if (ref($decoded) eq 'HASH' && defined($decoded->{detailCode})) { + $self->{output}->add_option_msg(short_msg => "Authentication endpoint returns error code '" . $decoded->{detailCode} . "' (add --debug option for detailed message)"); + $self->{output}->option_exit(); + } + + if (!defined($decoded->{access_token})) { + $self->{output}->add_option_msg(short_msg => "Cannot get token"); + $self->{output}->option_exit(); + } + + $access_token = $decoded->{access_token}; + my $datas = { + access_token => $access_token, + expires_on => time() + $decoded->{expires_in}, + md5_secret => $md5_secret + }; + $options{statefile}->write(data => $datas); + } + + $self->{access_token} = $access_token; + $self->{http}->add_header(key => 'Authorization', value => 'Bearer ' . $self->{access_token}); +} + +sub request_api { + my ($self, %options) = @_; + + $self->settings(); + if (!defined($self->{access_token})) { + $self->get_auth_token(statefile => $self->{cache}); + } + + my @results; + my $decoded; + + my @get_param; + @get_param = (@get_param, @{$options{get_param}}) if (defined($options{get_param}) && scalar(@{$options{get_param}})); + # Dealing with pagination without using count parameter as recommended + # here https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results + my $limit = 250; + push @get_param, 'limit=' . $limit; + my $offset = 0; + push @get_param, 'offset=' . $offset; + + do { + my $content = $self->{http}->request( + method => 'GET', + hostname => $self->{hostname}, + url_path => $options{endpoint}, + get_param => \@get_param, + unknown_status => '', + warning_status => '', + critical_status => '' + ); + + eval { + $decoded = JSON::XS->new->utf8->decode($content); + }; + if ($@) { + $self->{output}->output_add(long_msg => $@, debug => 1); + $self->{output}->add_option_msg(short_msg => "Cannot decode response (add --debug option to display returned content)"); + $self->{output}->option_exit(); + } + if (ref($decoded) eq 'HASH' && defined($decoded->{error})) { + $self->{output}->add_option_msg(short_msg => "Endpoint returns error code '" . $decoded->{error} . "' (add --debug option for detailed message)"); + $self->{output}->option_exit(); + } + if (ref($decoded) eq 'HASH' && defined($decoded->{detailCode})) { + $self->{output}->add_option_msg(short_msg => "Endpoint returns error code '" . $decoded->{detailCode} . "' (add --debug option for detailed message)"); + $self->{output}->option_exit(); + } + if ($self->{http}->get_code() != 200) { + $self->{output}->add_option_msg(short_msg => "Endpoint error [code: '" . $self->{http}->get_code() . "'] [message: '" . $self->{http}->get_message() . "'] (add --debug option for detailed message)"); + $self->{output}->option_exit(); + } + + push @results, @$decoded if (ref($decoded) eq 'ARRAY'); + push @results, $decoded if (ref($decoded) ne 'ARRAY'); + pop @get_param; + $offset += $limit; + push @get_param, 'offset=' . $offset; + } while (ref($decoded) eq 'ARRAY' && scalar(@$decoded) eq $limit); + + return \@results; +} + +sub get_sources { + my ($self, %options) = @_; + + my $result; + + if (defined($options{id}) && $options{id} ne '') { + $result = $self->request_api( + endpoint => '/' . $self->{api_version} . '/sources/' . $options{id} + ); + } else { + $result = $self->request_api( + endpoint => '/' . $self->{api_version} . '/sources' + ); + } + + return $result; +} + +sub search_count { + my ($self, %options) = @_; + + $self->settings(); + if (!defined($self->{access_token})) { + $self->get_auth_token(statefile => $self->{cache}); + } + $self->{http}->add_header(key => 'Content-Type', value => 'application/json'); + + my ($content) = $self->{http}->request( + method => 'POST', + hostname => $self->{hostname}, + url_path => '/' . $self->{api_version} . '/search/count', + query_form_post => $options{query}, + unknown_status => '%{http_code} < 200 or %{http_code} >= 300', + warning_status => '', + critical_status => '' + ); + + if ($self->{http}->get_code() != 204) { + my $decoded; + eval { + $decoded = JSON::XS->new->utf8->decode($content); + }; + if ($@) { + $self->{output}->output_add(long_msg => $@, debug => 1); + $self->{output}->add_option_msg(short_msg => "Cannot decode response (add --debug option to display returned content)"); + $self->{output}->option_exit(); + } + if (ref($decoded) eq 'HASH' && defined($decoded->{detailCode})) { + $self->{output}->add_option_msg(short_msg => "Endpoint returns error code '" . $decoded->{detailCode} . "' (add --debug option for detailed message)"); + $self->{output}->option_exit(); + } else { + $self->{output}->add_option_msg(short_msg => "Endpoint error [code: '" . $self->{http}->get_code() . "'] [message: '" . $self->{http}->get_message() . "'] (add --debug option for detailed message)"); + $self->{output}->option_exit(); + } + } + + return $self->{http}->get_header(name => 'X-Total-Count'); +} + +1; + +__END__ + +=head1 NAME + +SailPoint IdentityNow API + +=head1 SYNOPSIS + +SailPoint IdentityNow API + +=head1 SAILPOINT IDENTITYNOW REST API OPTIONS + +=over 8 + +=item B<--tenant> + +SailPoint IdentityNow API tenant. + +=item B<--domain> + +SailPoint IdentityNow API domain (Default: identitynow) + +=item B<--port> + +SailPoint IdentityNow API port (Default: 443) + +=item B<--proto> + +Specify https if needed (Default: 'https') + +=item B<--client-id> + +SailPoint IdentityNow Client ID + +=item B<--client-secret> + +SailPoint IdentityNow Client Secret + +=item B<--timeout> + +Set HTTP timeout + +=back + +=head1 DESCRIPTION + +B. + +=cut diff --git a/src/apps/sailpoint/identitynow/restapi/mode/listsources.pm b/src/apps/sailpoint/identitynow/restapi/mode/listsources.pm new file mode 100644 index 000000000..635f45a55 --- /dev/null +++ b/src/apps/sailpoint/identitynow/restapi/mode/listsources.pm @@ -0,0 +1,122 @@ +# +# Copyright 2023 Centreon (http://www.centreon.com/) +# +# Centreon is a full-fledged industry-strength solution that meets +# the needs in IT infrastructure and application monitoring for +# service performance. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +package apps::sailpoint::identitynow::restapi::mode::listsources; + +use base qw(centreon::plugins::mode); + +use strict; +use warnings; + +sub new { + my ($class, %options) = @_; + my $self = $class->SUPER::new(package => __PACKAGE__, %options); + bless $self, $class; + + $options{options}->add_options(arguments => { + 'filter-name:s' => { name => 'filter_name' } + }); + + return $self; +} + +sub check_options { + my ($self, %options) = @_; + $self->SUPER::init(%options); +} + +sub manage_selection { + my ($self, %options) = @_; + + my $sources = $options{custom}->get_sources(); + my $results = []; + foreach my $source (@{$sources}) { + next if (defined($self->{option_results}->{filter_name}) && $self->{option_results}->{filter_name} ne '' && + $source->{name} !~ /$self->{option_results}->{filter_name}/); + + push @$results, { + id => $source->{id}, + name => $source->{name}, + description => $source->{description}, + type => $source->{type}, + status => $source->{status} + }; + } + + return $results; +} + +sub run { + my ($self, %options) = @_; + + my $sources = $self->manage_selection(%options); + foreach my $source (@$sources) { + $self->{output}->output_add( + long_msg => sprintf( + "[id: %s][name: %s][description: %s][type: %s][status: %s]", + $source->{id}, + $source->{name}, + $source->{description}, + $source->{type}, + $source->{status} + ) + ); + } + + $self->{output}->output_add( + severity => 'OK', + short_msg => 'List sources:' + ); + $self->{output}->display(nolabel => 1, force_ignore_perfdata => 1, force_long_output => 1); + $self->{output}->exit(); +} + +sub disco_format { + my ($self, %options) = @_; + + $self->{output}->add_disco_format(elements => ['id', 'name', 'description', 'type', 'status']); +} + +sub disco_show { + my ($self, %options) = @_; + + my $sources = $self->manage_selection(%options); + foreach my $source (@$sources) { + $self->{output}->add_disco_entry(%$source); + } +} + +1; + +__END__ + +=head1 MODE + +List sources. + +=over 8 + +=item B<--filter-name> + +Filter source name (Can be a regexp). + +=back + +=cut diff --git a/src/apps/sailpoint/identitynow/restapi/mode/searchcount.pm b/src/apps/sailpoint/identitynow/restapi/mode/searchcount.pm new file mode 100644 index 000000000..6a6faa98e --- /dev/null +++ b/src/apps/sailpoint/identitynow/restapi/mode/searchcount.pm @@ -0,0 +1,113 @@ +# +# Copyright 2023 Centreon (http://www.centreon.com/) +# +# Centreon is a full-fledged industry-strength solution that meets +# the needs in IT infrastructure and application monitoring for +# service performance. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +package apps::sailpoint::identitynow::restapi::mode::searchcount; + +use base qw(centreon::plugins::templates::counter); + +use strict; +use warnings; + +sub set_counters { + my ($self, %options) = @_; + + $self->{maps_counters_type} = [ + { name => 'global', type => 0 }, + ]; + + $self->{maps_counters}->{global} = [ + { label => 'results-count', nlabel => 'query.results.count', set => { + key_values => [ { name => 'count' } ], + closure_custom_output => $self->can('custom_status_output'), + perfdatas => [ + { template => '%s', min => 0 } + ] + } + } + ]; +} + +sub custom_status_output { + my ($self, %options) = @_; + + my $msg = $self->{instance_mode}->{option_results}->{output}; + while ($msg =~ /%\{(.*?)\}/g) { + my $key = $1; + if (defined($self->{result_values}->{$key})) { + $msg =~ s/%\{$key\}/$self->{result_values}->{$key}/g; + } + } + + return $msg; +} + +sub new { + my ($class, %options) = @_; + my $self = $class->SUPER::new(package => __PACKAGE__, %options, force_new_perfdata => 1); + bless $self, $class; + + $options{options}->add_options(arguments => { + 'query:s' => { name => 'query' }, + 'output:s' => { name => 'output', default => 'Number of results: %{count}' }, + }); + + return $self; +} + +sub set_options { + my ($self, %options) = @_; +} + +sub manage_selection { + my ($self, %options) = @_; + + $self->{global}->{count} = $options{custom}->search_count(query => $self->{option_results}->{query}); +} + +1; + +__END__ + +=head1 MODE + +Performs a search with a provided query and returns the +count of results. + +More information on 'https://developer.sailpoint.com/idn/api/v3/search-count/'. + +=over 8 + +=item B<--query> + +Query parameters used to construct an Elasticsearch query +object (see documentation). + +=item B<--output> + +Output to print after retrieving the count of results +(Default: "Number of results: %{count}"). + +=item B<--warning-results-count> B<--critical-results-count> + +Thresholds on count of results. + +=back + +=cut diff --git a/src/apps/sailpoint/identitynow/restapi/mode/sourcehealth.pm b/src/apps/sailpoint/identitynow/restapi/mode/sourcehealth.pm new file mode 100644 index 000000000..831994ddc --- /dev/null +++ b/src/apps/sailpoint/identitynow/restapi/mode/sourcehealth.pm @@ -0,0 +1,162 @@ +# +# Copyright 2023 Centreon (http://www.centreon.com/) +# +# Centreon is a full-fledged industry-strength solution that meets +# the needs in IT infrastructure and application monitoring for +# service performance. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +package apps::sailpoint::identitynow::restapi::mode::sourcehealth; + +use base qw(centreon::plugins::templates::counter); + +use strict; +use warnings; +use centreon::plugins::templates::catalog_functions qw(catalog_status_threshold_ng); + +sub set_counters { + my ($self, %options) = @_; + + $self->{maps_counters_type} = [ + { name => 'global', type => 0, cb_prefix_output => 'prefix_global_output', skipped_code => { -10 => 1 } }, + { name => 'sources', type => 1, cb_prefix_output => 'custom_prefix_output', message_multiple => 'All sources health are ok' }, + ]; + + $self->{maps_counters}->{global} = []; + foreach ('healthy', 'error', 'failure', 'unchecked') { + push @{$self->{maps_counters}->{global}}, { + label => 'sources-' . $_, nlabel => 'sources.status.' . $_ . '.count', set => { + key_values => [ { name => $_ } ], + output_template => $_ . ': %s', + perfdatas => [ + { template => '%s' } + ] + } + }; + } + + $self->{maps_counters}->{sources} = [ + { label => 'health-status', type => 2, critical_default => '%{status} ne "SOURCE_STATE_HEALTHY"', set => { + key_values => [ { name => 'status' }, { name => 'id' }, { name => 'name' } ], + output_template => "health status is '%s'", + closure_custom_perfdata => sub { return 0; }, + closure_custom_threshold_check => \&catalog_status_threshold_ng + } + } + ]; +} + +sub prefix_global_output { + my ($self, %options) = @_; + + return 'Number of sources '; +} + +sub custom_prefix_output { + my ($self, %options) = @_; + + return "Source '" . $options{instance_value}->{name} . "' "; +} + +sub new { + my ($class, %options) = @_; + my $self = $class->SUPER::new(package => __PACKAGE__, %options, force_new_perfdata => 1); + bless $self, $class; + + $options{options}->add_options(arguments => { + 'source-id:s' => { name => 'source_id' }, + 'filter-name:s' => { name => 'filter_name' }, + 'filter-type:s' => { name => 'filter_type' } + }); + + return $self; +} + +sub set_options { + my ($self, %options) = @_; +} + +sub manage_selection { + my ($self, %options) = @_; + + $self->{global} = { healthy => 0, error => 0, failure => 0, unchecked => 0 }; + + my $sources = $options{custom}->get_sources(id => $self->{option_results}->{source_id}); + + foreach my $source (@{$sources}) { + if (defined($self->{option_results}->{filter_name}) && $self->{option_results}->{filter_name} ne '' && + $source->{name} !~ /$self->{option_results}->{filter_name}/) { + $self->{output}->output_add(long_msg => "skipping '" . $source->{name} . "': no matching filter name.", debug => 1); + next; + } + if (defined($self->{option_results}->{filter_type}) && $self->{option_results}->{filter_type} ne '' && + $source->{type} !~ /$self->{option_results}->{filter_type}/) { + $self->{output}->output_add(long_msg => "skipping '" . $source->{type} . "': no matching filter type.", debug => 1); + next; + } + + $self->{global}->{healthy}++ if ($source->{status} eq 'SOURCE_STATE_HEALTHY'); + $self->{global}->{error}++ if ($source->{status} =~ /SOURCE_STATE_ERROR/); + $self->{global}->{failure}++ if ($source->{status} =~ /SOURCE_STATE_FAILURE/); + $self->{global}->{unchecked}++ if ($source->{status} =~ /SOURCE_STATE_UNCHECKED/); + + $self->{sources}->{$source->{id}} = { + id => $source->{id}, + name => $source->{name}, + status => $source->{status} + }; + } +} + +1; + +__END__ + +=head1 MODE + +Check sources health status. + +More information on 'https://developer.sailpoint.com/idn/api/v3/list-sources'. + +=over 8 + +=item B<--source-id> + +Define source ID to retrieve only one source health status (useful with service discovery). + +=item B<--filter-name> + +Filter source name (Can be a regexp). + +=item B<--filter-type> + +Filter source type (Can be a regexp). + +=item B<--warning-health-status> + +Set warning threshold for each source health status (Default: none). + +=item B<--critical-health-status> + +Set critical threshold for each source health status (Default: '%{status} ne "SOURCE_STATE_HEALTHY"'). + +=item B<--warning-sources-*> B<--critical-sources-*> + +Set threshold for each status counter. +Can be: 'healthy', 'error', 'failure', 'unchecked'. + +=back + +=cut diff --git a/src/apps/sailpoint/identitynow/restapi/plugin.pm b/src/apps/sailpoint/identitynow/restapi/plugin.pm new file mode 100644 index 000000000..3685fe079 --- /dev/null +++ b/src/apps/sailpoint/identitynow/restapi/plugin.pm @@ -0,0 +1,54 @@ +# +# Copyright 2023 Centreon (http://www.centreon.com/) +# +# Centreon is a full-fledged industry-strength solution that meets +# the needs in IT infrastructure and application monitoring for +# service performance. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +package apps::sailpoint::identitynow::restapi::plugin; + +use strict; +use warnings; +use base qw(centreon::plugins::script_custom); + +sub new { + my ($class, %options) = @_; + my $self = $class->SUPER::new(package => __PACKAGE__, %options); + bless $self, $class; + + $self->{modes} = { + 'list-sources' => 'apps::sailpoint::identitynow::restapi::mode::listsources', + 'search-count' => 'apps::sailpoint::identitynow::restapi::mode::searchcount', + 'source-health' => 'apps::sailpoint::identitynow::restapi::mode::sourcehealth', + }; + + $self->{custom_modes}->{api} = 'apps::sailpoint::identitynow::restapi::custom::api'; + return $self; +} + +1; + +__END__ + +=head1 PLUGIN DESCRIPTION + +Check SailPoint IdentityNow using Rest API. + +=over 8 + +=back + +=cut From 1a7d215e462fe263202b1154f2338c209628ac8f Mon Sep 17 00:00:00 2001 From: qgarnier Date: Wed, 5 Jul 2023 10:25:04 +0200 Subject: [PATCH 36/39] (plugin) network::aruba::cppm::snmp - add mode swap (#4528) --- src/network/aruba/cppm/snmp/mode/swap.pm | 57 ++++++++++++++++++++++++ src/network/aruba/cppm/snmp/plugin.pm | 2 +- 2 files changed, 58 insertions(+), 1 deletion(-) create mode 100644 src/network/aruba/cppm/snmp/mode/swap.pm diff --git a/src/network/aruba/cppm/snmp/mode/swap.pm b/src/network/aruba/cppm/snmp/mode/swap.pm new file mode 100644 index 000000000..a6923d8cc --- /dev/null +++ b/src/network/aruba/cppm/snmp/mode/swap.pm @@ -0,0 +1,57 @@ +# +# Copyright 2023 Centreon (http://www.centreon.com/) +# +# Centreon is a full-fledged industry-strength solution that meets +# the needs in IT infrastructure and application monitoring for +# service performance. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +package network::aruba::cppm::snmp::mode::swap; + +use base qw(snmp_standard::mode::swap); + +use strict; +use warnings; + +sub new { + my ($class, %options) = @_; + my $self = $class->SUPER::new(package => __PACKAGE__, %options, force_new_perfdata => 1); + bless $self, $class; + + return $self; +} + +1; + +__END__ + +=head1 MODE + +Check swap memory (UCD-SNMP-MIB). + +=over 8 + +=item B<--no-swap> + +Threshold if no active swap (default: 'critical'). + +=item B<--warning-*> B<--critical-*> + +Thresholds. +Can be: 'usage' (B), 'usage-free' (B), 'usage-prct' (%). + +=back + +=cut diff --git a/src/network/aruba/cppm/snmp/plugin.pm b/src/network/aruba/cppm/snmp/plugin.pm index cbc514d2e..d682e22b8 100644 --- a/src/network/aruba/cppm/snmp/plugin.pm +++ b/src/network/aruba/cppm/snmp/plugin.pm @@ -17,7 +17,6 @@ # See the License for the specific language governing permissions and # limitations under the License. # -# Authors : Alexandre Moreau (@SpyL1nk) package network::aruba::cppm::snmp::plugin; @@ -38,6 +37,7 @@ sub new { 'memory' => 'network::aruba::cppm::snmp::mode::memory', 'radius' => 'network::aruba::cppm::snmp::mode::radius', 'repositories' => 'network::aruba::cppm::snmp::mode::repositories', + 'swap' => 'network::aruba::cppm::snmp::mode::swap', 'tacacs' => 'network::aruba::cppm::snmp::mode::tacacs' }; From 06526f6749b7747cc8e160792aa9ea5e64f1e3a2 Mon Sep 17 00:00:00 2001 From: qgarnier Date: Wed, 5 Jul 2023 12:08:13 +0200 Subject: [PATCH 37/39] (plugin) apps::slack::restapi - mode services fix http error handler (#4531) --- src/apps/slack/restapi/custom/api.pm | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/apps/slack/restapi/custom/api.pm b/src/apps/slack/restapi/custom/api.pm index 379f9da3d..4d4094e80 100644 --- a/src/apps/slack/restapi/custom/api.pm +++ b/src/apps/slack/restapi/custom/api.pm @@ -47,7 +47,10 @@ sub new { 'proto:s' => { name => 'proto' }, 'timeout:s' => { name => 'timeout' }, 'api-path:s' => { name => 'api_path' }, - 'api-token:s' => { name => 'api_token' } + 'api-token:s' => { name => 'api_token' }, + 'unknown-http-status:s' => { name => 'unknown_http_status' }, + 'warning-http-status:s' => { name => 'warning_http_status' }, + 'critical-http-status:s' => { name => 'critical_http_status' } }); } $options{options}->add_help(package => __PACKAGE__, sections => 'REST API OPTIONS', once => 1); @@ -75,6 +78,9 @@ sub check_options { $self->{timeout} = (defined($self->{option_results}->{timeout})) ? $self->{option_results}->{timeout} : 10; $self->{api_path} = (defined($self->{option_results}->{api_path})) ? $self->{option_results}->{api_path} : '/api'; $self->{api_token} = (defined($self->{option_results}->{api_token})) ? $self->{option_results}->{api_token} : ''; + $self->{unknown_http_status} = (defined($self->{option_results}->{unknown_http_status})) ? $self->{option_results}->{unknown_http_status} : '%{http_code} < 200 or %{http_code} >= 300' ; + $self->{warning_http_status} = (defined($self->{option_results}->{warning_http_status})) ? $self->{option_results}->{warning_http_status} : ''; + $self->{critical_http_status} = (defined($self->{option_results}->{critical_http_status})) ? $self->{option_results}->{critical_http_status} : ''; if ($self->{hostname} eq '') { $self->{output}->add_option_msg(short_msg => "Need to specify hostname option."); @@ -168,9 +174,9 @@ sub request_status_api { my $content = $self->{http}->request( full_url => 'https://status.slack.com/api/v2.0.0/current', hostname => '', - critical_status => '', - warning_status => '', - unknown_status => '' + unknown_status => $self->{unknown_http_status}, + warning_status => $self->{warning_http_status}, + critical_status => $self->{critical_http_status} ); my $decoded; eval { From aa0af7a066640ca6c5762e00d08f765b4d1363d7 Mon Sep 17 00:00:00 2001 From: tuntoja <58987095+tuntoja@users.noreply.github.com> Date: Thu, 6 Jul 2023 17:29:49 +0200 Subject: [PATCH 38/39] Update centreon-plugin.yaml.template (#4537) Roll back to xz --- .github/packaging/centreon-plugin.yaml.template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/packaging/centreon-plugin.yaml.template b/.github/packaging/centreon-plugin.yaml.template index b4afc351b..5d3afb958 100644 --- a/.github/packaging/centreon-plugin.yaml.template +++ b/.github/packaging/centreon-plugin.yaml.template @@ -82,7 +82,7 @@ overrides: [@DEB_PROVIDES@] rpm: - compression: zstd + compression: xz signature: key_file: ${RPM_SIGNING_KEY_FILE} key_id: ${RPM_SIGNING_KEY_ID} From 56d12994f363d671ac7cf4a211e183e620c6d0df Mon Sep 17 00:00:00 2001 From: tuntoja Date: Thu, 6 Jul 2023 18:17:00 +0200 Subject: [PATCH 39/39] ci: temporary disable of some deliveries --- .github/workflows/plugin-delivery.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/plugin-delivery.yml b/.github/workflows/plugin-delivery.yml index 42a454899..dc84a4eb8 100644 --- a/.github/workflows/plugin-delivery.yml +++ b/.github/workflows/plugin-delivery.yml @@ -67,7 +67,7 @@ jobs: strategy: fail-fast: false matrix: - distrib: [el7, el8, el9] + distrib: [el7] steps: - name: Checkout sources @@ -88,7 +88,7 @@ jobs: strategy: fail-fast: false matrix: - distrib: [el7, el8] + distrib: [el7] major_version: ["21.10", "22.04", "22.10"] steps: @@ -109,6 +109,7 @@ jobs: stability: ${{ inputs.stability }} deliver-deb: + if: ${{ inputs.stability == 'REMOVE-LINE' }} runs-on: [self-hosted, common] strategy: fail-fast: false @@ -128,7 +129,7 @@ jobs: artifactory_token: ${{ secrets.artifactory_token }} deliver-deb-legacy: - if: ${{ inputs.stability == 'stable' }} + if: ${{ inputs.stability == 'RESET-TO-STABLE' }} runs-on: [self-hosted, common] strategy: fail-fast: false