From ba6655c203e3a83d61eecd41ff244218b7cf5f23 Mon Sep 17 00:00:00 2001 From: Sims24 Date: Mon, 23 May 2016 14:12:46 +0200 Subject: [PATCH 01/35] + fix typo threshold --- apps/protocols/bgp/4/mode/bgppeerstate.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/protocols/bgp/4/mode/bgppeerstate.pm b/apps/protocols/bgp/4/mode/bgppeerstate.pm index d9daa844e..ca3d4a6ae 100644 --- a/apps/protocols/bgp/4/mode/bgppeerstate.pm +++ b/apps/protocols/bgp/4/mode/bgppeerstate.pm @@ -73,12 +73,12 @@ sub check_options { $self->{overload_th} = {}; foreach my $val (@{$self->{option_results}->{threshold_overload}}) { if ($val !~ /^(.*?),(.*?),(.*)$/) { - $self->{output}->add_option_msg(short_msg => "Wrong treshold-overload option '" . $val . "'."); + $self->{output}->add_option_msg(short_msg => "Wrong threshold-overload option '" . $val . "'."); $self->{output}->option_exit(); } my ($section, $status, $filter) = ($1, $2, $3); if ($self->{output}->is_litteral_status(status => $status) == 0) { - $self->{output}->add_option_msg(short_msg => "Wrong treshold-overload status '" . $val . "'."); + $self->{output}->add_option_msg(short_msg => "Wrong threshold-overload status '" . $val . "'."); $self->{output}->option_exit(); } $self->{overload_th}->{$section} = [] if (!defined($self->{overload_th}->{$section})); From 5cc84ecad37769dd3399a5c0494666a2628dca46 Mon Sep 17 00:00:00 2001 From: Sims24 Date: Mon, 23 May 2016 14:15:32 +0200 Subject: [PATCH 02/35] + fix little mistype on filters --- apps/github/mode/status.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/github/mode/status.pm b/apps/github/mode/status.pm index 73cdfea3d..59cbd290a 100644 --- a/apps/github/mode/status.pm +++ b/apps/github/mode/status.pm @@ -65,12 +65,12 @@ sub check_options { $self->{overload_th} = {}; foreach my $val (@{$self->{option_results}->{threshold_overload}}) { if ($val !~ /^(.*?),(.*)$/) { - $self->{output}->add_option_msg(short_msg => "Wrong treshold-overload option '" . $val . "'."); + $self->{output}->add_option_msg(short_msg => "Wrong threshold-overload option '" . $val . "'."); $self->{output}->option_exit(); } my ($section, $status, $filter) = ('status', $1, $2); if ($self->{output}->is_litteral_status(status => $status) == 0) { - $self->{output}->add_option_msg(short_msg => "Wrong treshold-overload status '" . $val . "'."); + $self->{output}->add_option_msg(short_msg => "Wrong threshold-overload status '" . $val . "'."); $self->{output}->option_exit(); } $self->{overload_th}->{$section} = [] if (!defined($self->{overload_th}->{$section})); From b8114691c65527eb17e533d32d28edd8abf3c436 Mon Sep 17 00:00:00 2001 From: Sims24 Date: Mon, 23 May 2016 14:17:05 +0200 Subject: [PATCH 03/35] + fix little mistype on filters --- apps/elasticsearch/mode/indices.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/elasticsearch/mode/indices.pm b/apps/elasticsearch/mode/indices.pm index 34ddfa63e..c805d8b6b 100644 --- a/apps/elasticsearch/mode/indices.pm +++ b/apps/elasticsearch/mode/indices.pm @@ -72,12 +72,12 @@ sub check_options { $self->{overload_th} = {}; foreach my $val (@{$self->{option_results}->{threshold_overload}}) { if ($val !~ /^(.*?),(.*?),(.*)$/) { - $self->{output}->add_option_msg(short_msg => "Wrong treshold-overload option '" . $val . "'."); + $self->{output}->add_option_msg(short_msg => "Wrong threshold-overload option '" . $val . "'."); $self->{output}->option_exit(); } my ($section, $status, $filter) = ($1, $2, $3); if ($self->{output}->is_litteral_status(status => $status) == 0) { - $self->{output}->add_option_msg(short_msg => "Wrong treshold-overload status '" . $val . "'."); + $self->{output}->add_option_msg(short_msg => "Wrong threshold-overload status '" . $val . "'."); $self->{output}->option_exit(); } $self->{overload_th}->{$section} = [] if (!defined($self->{overload_th}->{$section})); From 3a20fb8a0c409fc486206c2462297382b3a8e1fd Mon Sep 17 00:00:00 2001 From: Sims24 Date: Mon, 23 May 2016 14:17:53 +0200 Subject: [PATCH 04/35] + fix little mistype on filters --- apps/elasticsearch/mode/cluster.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/elasticsearch/mode/cluster.pm b/apps/elasticsearch/mode/cluster.pm index 891150ae2..868be4134 100644 --- a/apps/elasticsearch/mode/cluster.pm +++ b/apps/elasticsearch/mode/cluster.pm @@ -65,12 +65,12 @@ sub check_options { $self->{overload_th} = {}; foreach my $val (@{$self->{option_results}->{threshold_overload}}) { if ($val !~ /^(.*?),(.*?),(.*)$/) { - $self->{output}->add_option_msg(short_msg => "Wrong treshold-overload option '" . $val . "'."); + $self->{output}->add_option_msg(short_msg => "Wrong threshold-overload option '" . $val . "'."); $self->{output}->option_exit(); } my ($section, $status, $filter) = ($1, $2, $3); if ($self->{output}->is_litteral_status(status => $status) == 0) { - $self->{output}->add_option_msg(short_msg => "Wrong treshold-overload status '" . $val . "'."); + $self->{output}->add_option_msg(short_msg => "Wrong threshold-overload status '" . $val . "'."); $self->{output}->option_exit(); } $self->{overload_th}->{$section} = [] if (!defined($self->{overload_th}->{$section})); From 91a16de9bfe999b75045cacf291adcd4c49d8e3d Mon Sep 17 00:00:00 2001 From: Sims24 Date: Mon, 23 May 2016 14:19:19 +0200 Subject: [PATCH 05/35] + fix typo threshold --- centreon/common/fastpath/mode/environment.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/centreon/common/fastpath/mode/environment.pm b/centreon/common/fastpath/mode/environment.pm index ff20bc743..d0d25fd97 100644 --- a/centreon/common/fastpath/mode/environment.pm +++ b/centreon/common/fastpath/mode/environment.pm @@ -111,12 +111,12 @@ sub check_options { $self->{overload_th} = {}; foreach my $val (@{$self->{option_results}->{threshold_overload}}) { if ($val !~ /^(.*?),(.*?),(.*)$/) { - $self->{output}->add_option_msg(short_msg => "Wrong treshold-overload option '" . $val . "'."); + $self->{output}->add_option_msg(short_msg => "Wrong threshold-overload option '" . $val . "'."); $self->{output}->option_exit(); } my ($section, $status, $filter) = ($1, $2, $3); if ($self->{output}->is_litteral_status(status => $status) == 0) { - $self->{output}->add_option_msg(short_msg => "Wrong treshold-overload status '" . $val . "'."); + $self->{output}->add_option_msg(short_msg => "Wrong threshold-overload status '" . $val . "'."); $self->{output}->option_exit(); } $self->{overload_th}->{$section} = [] if (!defined($self->{overload_th}->{$section})); From 6d33c63e33cd3ac64df95c20dba6e63f6b2c58e1 Mon Sep 17 00:00:00 2001 From: Sims24 Date: Mon, 23 May 2016 14:21:22 +0200 Subject: [PATCH 06/35] + fix typo threshold (help) --- centreon/common/cisco/standard/snmp/mode/environment.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/centreon/common/cisco/standard/snmp/mode/environment.pm b/centreon/common/cisco/standard/snmp/mode/environment.pm index 9c04cdb08..21908824b 100644 --- a/centreon/common/cisco/standard/snmp/mode/environment.pm +++ b/centreon/common/cisco/standard/snmp/mode/environment.pm @@ -369,14 +369,14 @@ Example: --threshold-overload='fan,CRITICAL,^(?!(up|normal)$)' =item B<--warning> -Set warning threshold for temperatures, voltages, sensors (syntax: type,regexp,treshold) +Set warning threshold for temperatures, voltages, sensors (syntax: type,regexp,threshold) Example: --warning='temperature,.*,30' =item B<--critical> -Set critical threshold for temperatures, voltages, sensors (syntax: type,regexp,treshold) +Set critical threshold for temperatures, voltages, sensors (syntax: type,regexp,threshold) Example: --critical='temperature,.*,40' =back -=cut \ No newline at end of file +=cut From 2138025da9ca2919201ae10cba9b5e90062e1a28 Mon Sep 17 00:00:00 2001 From: Sims24 Date: Mon, 23 May 2016 14:22:56 +0200 Subject: [PATCH 07/35] + fix typo threshold --- centreon/common/radlan/mode/environment.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/centreon/common/radlan/mode/environment.pm b/centreon/common/radlan/mode/environment.pm index 98fe0d118..27c567ce0 100644 --- a/centreon/common/radlan/mode/environment.pm +++ b/centreon/common/radlan/mode/environment.pm @@ -95,12 +95,12 @@ sub check_options { $self->{overload_th} = {}; foreach my $val (@{$self->{option_results}->{threshold_overload}}) { if ($val !~ /^(.*?),(.*?),(.*)$/) { - $self->{output}->add_option_msg(short_msg => "Wrong treshold-overload option '" . $val . "'."); + $self->{output}->add_option_msg(short_msg => "Wrong threshold-overload option '" . $val . "'."); $self->{output}->option_exit(); } my ($section, $status, $filter) = ($1, $2, $3); if ($self->{output}->is_litteral_status(status => $status) == 0) { - $self->{output}->add_option_msg(short_msg => "Wrong treshold-overload status '" . $val . "'."); + $self->{output}->add_option_msg(short_msg => "Wrong threshold-overload status '" . $val . "'."); $self->{output}->option_exit(); } $self->{overload_th}->{$section} = [] if (!defined($self->{overload_th}->{$section})); @@ -303,4 +303,4 @@ Example: --threshold-overload='psu,CRITICAL,^(?!(normal)$)' =back -=cut \ No newline at end of file +=cut From ccf1d8f1e4a55fd7847494c83e42b855dd6fc80f Mon Sep 17 00:00:00 2001 From: Sims24 Date: Mon, 23 May 2016 14:23:44 +0200 Subject: [PATCH 08/35] + fix typo threshold --- centreon/common/emc/navisphere/mode/disk.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/centreon/common/emc/navisphere/mode/disk.pm b/centreon/common/emc/navisphere/mode/disk.pm index 9bd8cbada..d5c7b1fcf 100644 --- a/centreon/common/emc/navisphere/mode/disk.pm +++ b/centreon/common/emc/navisphere/mode/disk.pm @@ -209,13 +209,13 @@ sub check_options { $self->{overload_th} = {}; foreach my $val (@{$self->{option_results}->{threshold_overload}}) { if ($val !~ /(.*?)=(.*)/) { - $self->{output}->add_option_msg(short_msg => "Wrong treshold-overload option '" . $val . "'."); + $self->{output}->add_option_msg(short_msg => "Wrong threshold-overload option '" . $val . "'."); $self->{output}->option_exit(); } my ($filter, $threshold) = ($1, $2); if ($self->{output}->is_litteral_status(status => $threshold) == 0) { - $self->{output}->add_option_msg(short_msg => "Wrong treshold-overload status '" . $val . "'."); + $self->{output}->add_option_msg(short_msg => "Wrong threshold-overload status '" . $val . "'."); $self->{output}->option_exit(); } $self->{overload_th}->{$filter} = $threshold; From f8d4309cfe30da16557647611c329d7ed213ef9c Mon Sep 17 00:00:00 2001 From: Sims24 Date: Mon, 23 May 2016 14:24:26 +0200 Subject: [PATCH 09/35] + fix typo threshold --- centreon/common/emc/navisphere/mode/cache.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/centreon/common/emc/navisphere/mode/cache.pm b/centreon/common/emc/navisphere/mode/cache.pm index 6714a0fce..d926609c3 100644 --- a/centreon/common/emc/navisphere/mode/cache.pm +++ b/centreon/common/emc/navisphere/mode/cache.pm @@ -81,13 +81,13 @@ sub check_options { $self->{overload_th} = {}; foreach my $val (@{$self->{option_results}->{threshold_overload}}) { if ($val !~ /(.*?):(.*?)=(.*)/) { - $self->{output}->add_option_msg(short_msg => "Wrong treshold-overload option '" . $val . "'."); + $self->{output}->add_option_msg(short_msg => "Wrong threshold-overload option '" . $val . "'."); $self->{output}->option_exit(); } my ($label, $filter, $threshold) = ($1, $2, $3); if ($self->{output}->is_litteral_status(status => $threshold) == 0) { - $self->{output}->add_option_msg(short_msg => "Wrong treshold-overload status '" . $val . "'."); + $self->{output}->add_option_msg(short_msg => "Wrong threshold-overload status '" . $val . "'."); $self->{output}->option_exit(); } $self->{overload_th}->{$label} = {} if (!defined($self->{overload_th}->{$label})); From fb07b827b4157ce87f7d62e9beef26fd43181dd3 Mon Sep 17 00:00:00 2001 From: Sims24 Date: Mon, 23 May 2016 14:27:12 +0200 Subject: [PATCH 10/35] + fix typo threshold --- cloud/docker/mode/containerstate.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cloud/docker/mode/containerstate.pm b/cloud/docker/mode/containerstate.pm index 1ffea8639..8d38e896c 100644 --- a/cloud/docker/mode/containerstate.pm +++ b/cloud/docker/mode/containerstate.pm @@ -84,12 +84,12 @@ sub check_options { $self->{overload_th} = {}; foreach my $val (@{$self->{option_results}->{threshold_overload}}) { if ($val !~ /^(.*?),(.*?),(.*)$/) { - $self->{output}->add_option_msg(short_msg => "Wrong treshold-overload option '" . $val . "'."); + $self->{output}->add_option_msg(short_msg => "Wrong threshold-overload option '" . $val . "'."); $self->{output}->option_exit(); } my ($section, $status, $filter) = ($1, $2, $3); if ($self->{output}->is_litteral_status(status => $status) == 0) { - $self->{output}->add_option_msg(short_msg => "Wrong treshold-overload status '" . $val . "'."); + $self->{output}->add_option_msg(short_msg => "Wrong threshold-overload status '" . $val . "'."); $self->{output}->option_exit(); } $self->{overload_th}->{$section} = [] if (!defined($self->{overload_th}->{$section})); From ae45c1421fe9368b5c50d93b317abf4468ec27ea Mon Sep 17 00:00:00 2001 From: Sims24 Date: Mon, 23 May 2016 14:28:03 +0200 Subject: [PATCH 11/35] + fix typo threshold (help) --- hardware/sensors/sensorip/snmp/mode/sensors.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hardware/sensors/sensorip/snmp/mode/sensors.pm b/hardware/sensors/sensorip/snmp/mode/sensors.pm index a2e3d7fd4..01da26f5f 100644 --- a/hardware/sensors/sensorip/snmp/mode/sensors.pm +++ b/hardware/sensors/sensorip/snmp/mode/sensors.pm @@ -290,12 +290,12 @@ Example: --threshold-overload='temperature,CRITICAL,^(?!(normal)$)' =item B<--warning> -Set warning threshold for temperatures and humidity (syntax: type,regexp,treshold) +Set warning threshold for temperatures and humidity (syntax: type,regexp,threshold) Example: --warning='temperature,.*,30' --warning='humidity,.*,90' =item B<--critical> -Set critical threshold for temperature and humidity (syntax: type,regexp,treshold) +Set critical threshold for temperature and humidity (syntax: type,regexp,threshold) Example: --critical='temperature,.*,40' =back From 0a9563d0d2486ea2465b9b8e8f73958003d9af92 Mon Sep 17 00:00:00 2001 From: Sims24 Date: Mon, 23 May 2016 14:32:36 +0200 Subject: [PATCH 12/35] + fix typo threshold (help) --- .../sensors/serverscheck/sensorgateway/snmp/mode/sensors.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hardware/sensors/serverscheck/sensorgateway/snmp/mode/sensors.pm b/hardware/sensors/serverscheck/sensorgateway/snmp/mode/sensors.pm index 11118a30c..8090d056d 100644 --- a/hardware/sensors/serverscheck/sensorgateway/snmp/mode/sensors.pm +++ b/hardware/sensors/serverscheck/sensorgateway/snmp/mode/sensors.pm @@ -257,12 +257,12 @@ Example: --threshold-overload='output,CRITICAL,^(?!(off)$)' =item B<--warning> -Set warning threshold for temperatures and humidity (syntax: type,regexp,treshold) +Set warning threshold for temperatures and humidity (syntax: type,regexp,threshold) Example: --warning='sensors,Int. Temp,30' --warning='sensors,Fuel Level,50:' =item B<--critical> -Set critical threshold for temperature and humidity (syntax: type,regexp,treshold) +Set critical threshold for temperature and humidity (syntax: type,regexp,threshold) Example: --warning='sensors,Int. Temp,35' --warning='sensors,Fuel Level,40:' =back From cceafb68f2b8bf2195f076a017a2897bf5b4f5b5 Mon Sep 17 00:00:00 2001 From: Sims24 Date: Mon, 23 May 2016 14:35:22 +0200 Subject: [PATCH 13/35] + fix typo threshold --- hardware/ups/powerware/snmp/mode/outputsource.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hardware/ups/powerware/snmp/mode/outputsource.pm b/hardware/ups/powerware/snmp/mode/outputsource.pm index 9f12397ee..cebbd2fb0 100644 --- a/hardware/ups/powerware/snmp/mode/outputsource.pm +++ b/hardware/ups/powerware/snmp/mode/outputsource.pm @@ -69,12 +69,12 @@ sub check_options { $self->{overload_th} = {}; foreach my $val (@{$self->{option_results}->{threshold_overload}}) { if ($val !~ /^(.*?),(.*)$/) { - $self->{output}->add_option_msg(short_msg => "Wrong treshold-overload option '" . $val . "'."); + $self->{output}->add_option_msg(short_msg => "Wrong threshold-overload option '" . $val . "'."); $self->{output}->option_exit(); } my ($section, $status, $filter) = ('osource', $1, $2); if ($self->{output}->is_litteral_status(status => $status) == 0) { - $self->{output}->add_option_msg(short_msg => "Wrong treshold-overload status '" . $val . "'."); + $self->{output}->add_option_msg(short_msg => "Wrong threshold-overload status '" . $val . "'."); $self->{output}->option_exit(); } $self->{overload_th}->{$section} = [] if (!defined($self->{overload_th}->{$section})); From c1220466d964d1b646d136d7ec75ce1e6c5b94ac Mon Sep 17 00:00:00 2001 From: Sims24 Date: Mon, 23 May 2016 14:37:45 +0200 Subject: [PATCH 14/35] + fix typo threshold --- hardware/server/hp/bladechassis/snmp/mode/hardware.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hardware/server/hp/bladechassis/snmp/mode/hardware.pm b/hardware/server/hp/bladechassis/snmp/mode/hardware.pm index c0d709e3d..49fde1f80 100644 --- a/hardware/server/hp/bladechassis/snmp/mode/hardware.pm +++ b/hardware/server/hp/bladechassis/snmp/mode/hardware.pm @@ -104,12 +104,12 @@ sub check_options { $self->{overload_th} = {}; foreach my $val (@{$self->{option_results}->{threshold_overload}}) { if ($val !~ /^(.*?),(.*?),(.*)$/) { - $self->{output}->add_option_msg(short_msg => "Wrong treshold-overload option '" . $val . "'."); + $self->{output}->add_option_msg(short_msg => "Wrong threshold-overload option '" . $val . "'."); $self->{output}->option_exit(); } my ($section, $status, $filter) = ($1, $2, $3); if ($self->{output}->is_litteral_status(status => $status) == 0) { - $self->{output}->add_option_msg(short_msg => "Wrong treshold-overload status '" . $val . "'."); + $self->{output}->add_option_msg(short_msg => "Wrong threshold-overload status '" . $val . "'."); $self->{output}->option_exit(); } $self->{overload_th}->{$section} = [] if (!defined($self->{overload_th}->{$section})); @@ -283,4 +283,4 @@ Example: --threshold-overload='temperature,OK,other' =back =cut - \ No newline at end of file + From 10dc64b7218fe19a22a99cc4d95badf06b9eb26b Mon Sep 17 00:00:00 2001 From: Sims24 Date: Mon, 23 May 2016 14:39:13 +0200 Subject: [PATCH 15/35] + fix typo threshold --- hardware/server/sun/mgmt_cards/mode/showenvironment.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hardware/server/sun/mgmt_cards/mode/showenvironment.pm b/hardware/server/sun/mgmt_cards/mode/showenvironment.pm index 33f3f43f7..8cb60f72b 100644 --- a/hardware/server/sun/mgmt_cards/mode/showenvironment.pm +++ b/hardware/server/sun/mgmt_cards/mode/showenvironment.pm @@ -91,12 +91,12 @@ sub check_options { $self->{overload_th} = {}; foreach my $val (@{$self->{option_results}->{threshold_overload}}) { if ($val !~ /^(.*?),(.*?),(.*)$/) { - $self->{output}->add_option_msg(short_msg => "Wrong treshold-overload option '" . $val . "'."); + $self->{output}->add_option_msg(short_msg => "Wrong threshold-overload option '" . $val . "'."); $self->{output}->option_exit(); } my ($section, $status, $filter) = ($1, $2, $3); if ($self->{output}->is_litteral_status(status => $status) == 0) { - $self->{output}->add_option_msg(short_msg => "Wrong treshold-overload status '" . $val . "'."); + $self->{output}->add_option_msg(short_msg => "Wrong threshold-overload status '" . $val . "'."); $self->{output}->option_exit(); } $self->{overload_th}->{$section} = [] if (!defined($self->{overload_th}->{$section})); From d40c08c8cb4659e877e18fae46c0acc35f060acc Mon Sep 17 00:00:00 2001 From: Sims24 Date: Mon, 23 May 2016 14:40:11 +0200 Subject: [PATCH 16/35] + fix typo threshold --- hardware/server/sun/mgmt_cards/mode/showstatus.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hardware/server/sun/mgmt_cards/mode/showstatus.pm b/hardware/server/sun/mgmt_cards/mode/showstatus.pm index 997fc6ca5..33d9d0a6b 100644 --- a/hardware/server/sun/mgmt_cards/mode/showstatus.pm +++ b/hardware/server/sun/mgmt_cards/mode/showstatus.pm @@ -73,12 +73,12 @@ sub check_options { $self->{overload_th} = []; foreach my $val (@{$self->{option_results}->{threshold_overload}}) { if ($val !~ /^(.*?),(.*)$/) { - $self->{output}->add_option_msg(short_msg => "Wrong treshold-overload option '" . $val . "'."); + $self->{output}->add_option_msg(short_msg => "Wrong threshold-overload option '" . $val . "'."); $self->{output}->option_exit(); } my ($status, $filter) = ($1, $2); if ($self->{output}->is_litteral_status(status => $status) == 0) { - $self->{output}->add_option_msg(short_msg => "Wrong treshold-overload status '" . $val . "'."); + $self->{output}->add_option_msg(short_msg => "Wrong threshold-overload status '" . $val . "'."); $self->{output}->option_exit(); } push @{$self->{overload_th}}, {filter => $filter, status => $status}; From 87f80842fd63b0bb7fb9166a8d94bb1276d4f22a Mon Sep 17 00:00:00 2001 From: Sims24 Date: Mon, 23 May 2016 14:41:27 +0200 Subject: [PATCH 17/35] + fix typo threshold (help) --- hardware/server/dell/cmc/snmp/mode/hardware.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hardware/server/dell/cmc/snmp/mode/hardware.pm b/hardware/server/dell/cmc/snmp/mode/hardware.pm index c4e75a5fe..5a7569509 100644 --- a/hardware/server/dell/cmc/snmp/mode/hardware.pm +++ b/hardware/server/dell/cmc/snmp/mode/hardware.pm @@ -293,14 +293,14 @@ Example: --threshold-overload='health,CRITICAL,^(?!(ok)$)' =item B<--warning> -Set warning threshold for temperatures (syntax: type,regexp,treshold) +Set warning threshold for temperatures (syntax: type,regexp,threshold) Example: --warning='temperature,.*,30' =item B<--critical> -Set critical threshold for temperatures (syntax: type,regexp,treshold) +Set critical threshold for temperatures (syntax: type,regexp,threshold) Example: --critical='temperature,.*,40' =back -=cut \ No newline at end of file +=cut From 6a042f4396b95363a22fd0a3cbe55733a3eda218 Mon Sep 17 00:00:00 2001 From: Sims24 Date: Mon, 23 May 2016 14:42:19 +0200 Subject: [PATCH 18/35] + fix typo threshold (help) --- hardware/server/dell/idrac/snmp/mode/hardware.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hardware/server/dell/idrac/snmp/mode/hardware.pm b/hardware/server/dell/idrac/snmp/mode/hardware.pm index e5914295a..e542b3346 100644 --- a/hardware/server/dell/idrac/snmp/mode/hardware.pm +++ b/hardware/server/dell/idrac/snmp/mode/hardware.pm @@ -141,12 +141,12 @@ Example: --threshold-overload='temperature.state,CRITICAL,^(?!(enabled)$)' =item B<--warning> -Set warning threshold (syntax: type,regexp,treshold) +Set warning threshold (syntax: type,regexp,threshold) Example: --warning='temperature,.*,30' =item B<--critical> -Set critical threshold (syntax: type,regexp,treshold) +Set critical threshold (syntax: type,regexp,threshold) Example: --critical='temperature,.*,40' =back From e03f1e07bc63d1512b91ed4206f9e128e34b5d42 Mon Sep 17 00:00:00 2001 From: Sims24 Date: Mon, 23 May 2016 14:43:36 +0200 Subject: [PATCH 19/35] + fix typo threshold --- network/ruggedcom/mode/hardware.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/network/ruggedcom/mode/hardware.pm b/network/ruggedcom/mode/hardware.pm index ce920cd10..b7267ad9f 100644 --- a/network/ruggedcom/mode/hardware.pm +++ b/network/ruggedcom/mode/hardware.pm @@ -100,12 +100,12 @@ sub check_options { $self->{overload_th} = {}; foreach my $val (@{$self->{option_results}->{threshold_overload}}) { if ($val !~ /^(.*?),(.*?),(.*)$/) { - $self->{output}->add_option_msg(short_msg => "Wrong treshold-overload option '" . $val . "'."); + $self->{output}->add_option_msg(short_msg => "Wrong threshold-overload option '" . $val . "'."); $self->{output}->option_exit(); } my ($section, $status, $filter) = ($1, $2, $3); if ($self->{output}->is_litteral_status(status => $status) == 0) { - $self->{output}->add_option_msg(short_msg => "Wrong treshold-overload status '" . $val . "'."); + $self->{output}->add_option_msg(short_msg => "Wrong threshold-overload status '" . $val . "'."); $self->{output}->option_exit(); } $self->{overload_th}->{$section} = [] if (!defined($self->{overload_th}->{$section})); From 50032627744be4ddaef27fce78062ba8296d66f3 Mon Sep 17 00:00:00 2001 From: Sims24 Date: Mon, 23 May 2016 14:44:49 +0200 Subject: [PATCH 20/35] + fix typo threshold (help) --- network/hirschmann/standard/snmp/mode/hardware.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/network/hirschmann/standard/snmp/mode/hardware.pm b/network/hirschmann/standard/snmp/mode/hardware.pm index 7203b21e0..25d148fdd 100644 --- a/network/hirschmann/standard/snmp/mode/hardware.pm +++ b/network/hirschmann/standard/snmp/mode/hardware.pm @@ -114,14 +114,14 @@ Example: --threshold-overload='psu,CRITICAL,^(?!(ok)$)' =item B<--warning> -Set warning threshold for temperatures (syntax: type,regexp,treshold) +Set warning threshold for temperatures (syntax: type,regexp,threshold) Example: --warning='temperature,.*,30' =item B<--critical> -Set critical threshold for temperatures (syntax: type,regexp,treshold) +Set critical threshold for temperatures (syntax: type,regexp,threshold) Example: --critical='temperature,.*,40' =back -=cut \ No newline at end of file +=cut From dc8b722ba494eaf151bd964b69d1a7d83dc992ec Mon Sep 17 00:00:00 2001 From: Sims24 Date: Mon, 23 May 2016 14:46:12 +0200 Subject: [PATCH 21/35] + fix typo threshold --- network/citrix/netscaler/common/mode/vserverstatus.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/network/citrix/netscaler/common/mode/vserverstatus.pm b/network/citrix/netscaler/common/mode/vserverstatus.pm index be3e857bb..ba459818e 100644 --- a/network/citrix/netscaler/common/mode/vserverstatus.pm +++ b/network/citrix/netscaler/common/mode/vserverstatus.pm @@ -167,12 +167,12 @@ sub check_options { } foreach my $val (@{$self->{option_results}->{threshold_overload}}) { if ($val !~ /^(.*?),(.*)$/) { - $self->{output}->add_option_msg(short_msg => "Wrong treshold-overload option '" . $val . "'."); + $self->{output}->add_option_msg(short_msg => "Wrong threshold-overload option '" . $val . "'."); $self->{output}->option_exit(); } my ($section, $status, $filter) = ('vs', $1, $2); if ($self->{output}->is_litteral_status(status => $status) == 0) { - $self->{output}->add_option_msg(short_msg => "Wrong treshold-overload status '" . $val . "'."); + $self->{output}->add_option_msg(short_msg => "Wrong threshold-overload status '" . $val . "'."); $self->{output}->option_exit(); } $overload_th->{$section} = [] if (!defined($overload_th->{$section})); From e255fab724a6bb353e86fc793b3b1548e9070193 Mon Sep 17 00:00:00 2001 From: Sims24 Date: Mon, 23 May 2016 14:47:24 +0200 Subject: [PATCH 22/35] + fix typo threshold --- network/citrix/netscaler/common/mode/health.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/network/citrix/netscaler/common/mode/health.pm b/network/citrix/netscaler/common/mode/health.pm index 647423f16..5123dcc74 100644 --- a/network/citrix/netscaler/common/mode/health.pm +++ b/network/citrix/netscaler/common/mode/health.pm @@ -78,12 +78,12 @@ sub check_options { $self->{overload_th} = {}; foreach my $val (@{$self->{option_results}->{threshold_overload}}) { if ($val !~ /^(.*?),(.*)$/) { - $self->{output}->add_option_msg(short_msg => "Wrong treshold-overload option '" . $val . "'."); + $self->{output}->add_option_msg(short_msg => "Wrong threshold-overload option '" . $val . "'."); $self->{output}->option_exit(); } my ($section, $status, $filter) = ('psu', $1, $2); if ($self->{output}->is_litteral_status(status => $status) == 0) { - $self->{output}->add_option_msg(short_msg => "Wrong treshold-overload status '" . $val . "'."); + $self->{output}->add_option_msg(short_msg => "Wrong threshold-overload status '" . $val . "'."); $self->{output}->option_exit(); } $self->{overload_th}->{$section} = [] if (!defined($self->{overload_th}->{$section})); @@ -356,4 +356,4 @@ Example: --threshold-overload='CRITICAL,^(?!(normal)$)' =back -=cut \ No newline at end of file +=cut From 891812a36243cbb5b0e67038ee7d4e47f95c4b2e Mon Sep 17 00:00:00 2001 From: Sims24 Date: Mon, 23 May 2016 14:48:18 +0200 Subject: [PATCH 23/35] + fix typo threshold --- network/citrix/netscaler/common/mode/hastate.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/network/citrix/netscaler/common/mode/hastate.pm b/network/citrix/netscaler/common/mode/hastate.pm index cd02c96de..b3fac2b74 100644 --- a/network/citrix/netscaler/common/mode/hastate.pm +++ b/network/citrix/netscaler/common/mode/hastate.pm @@ -84,12 +84,12 @@ sub check_options { $self->{overload_th} = {}; foreach my $val (@{$self->{option_results}->{threshold_overload}}) { if ($val !~ /^(.*?),(.*?),(.*)$/) { - $self->{output}->add_option_msg(short_msg => "Wrong treshold-overload option '" . $val . "'."); + $self->{output}->add_option_msg(short_msg => "Wrong threshold-overload option '" . $val . "'."); $self->{output}->option_exit(); } my ($section, $status, $filter) = ($1, $2, $3); if ($self->{output}->is_litteral_status(status => $status) == 0) { - $self->{output}->add_option_msg(short_msg => "Wrong treshold-overload status '" . $val . "'."); + $self->{output}->add_option_msg(short_msg => "Wrong threshold-overload status '" . $val . "'."); $self->{output}->option_exit(); } $self->{overload_th}->{$section} = [] if (!defined($self->{overload_th}->{$section})); @@ -162,4 +162,4 @@ Example: --threshold-overload='hastate,CRITICAL,^(?!(up)$)' =back =cut - \ No newline at end of file + From ea60975de88d29581b2642dd4bd9026b86a2157d Mon Sep 17 00:00:00 2001 From: Sims24 Date: Mon, 23 May 2016 14:49:26 +0200 Subject: [PATCH 24/35] + fix typo threshold (sub) --- network/paloalto/snmp/mode/panorama.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/network/paloalto/snmp/mode/panorama.pm b/network/paloalto/snmp/mode/panorama.pm index 670b3817d..989576489 100644 --- a/network/paloalto/snmp/mode/panorama.pm +++ b/network/paloalto/snmp/mode/panorama.pm @@ -47,7 +47,7 @@ sub new { return $self; } -sub check_treshold_overload { +sub check_threshold_overload { my ($self, %options) = @_; $self->{overload_th} = {}; @@ -69,7 +69,7 @@ sub check_treshold_overload { sub check_options { my ($self, %options) = @_; $self->SUPER::init(%options); - $self->check_treshold_overload(); + $self->check_threshold_overload(); } sub check_exclude { @@ -163,4 +163,4 @@ Can also exclude specific instance: --exclude=panorama#2# =back =cut - \ No newline at end of file + From eb9cc7081a7b53d58b09d77efbe1ce6947afa949 Mon Sep 17 00:00:00 2001 From: Sims24 Date: Mon, 23 May 2016 14:50:22 +0200 Subject: [PATCH 25/35] + fix typo threshold (sub) --- network/paloalto/snmp/mode/clusterstatus.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/network/paloalto/snmp/mode/clusterstatus.pm b/network/paloalto/snmp/mode/clusterstatus.pm index 005217b1e..f28e1c60b 100644 --- a/network/paloalto/snmp/mode/clusterstatus.pm +++ b/network/paloalto/snmp/mode/clusterstatus.pm @@ -50,7 +50,7 @@ sub new { return $self; } -sub check_treshold_overload { +sub check_threshold_overload { my ($self, %options) = @_; $self->{overload_th} = {}; @@ -72,7 +72,7 @@ sub check_treshold_overload { sub check_options { my ($self, %options) = @_; $self->SUPER::init(%options); - $self->check_treshold_overload(); + $self->check_threshold_overload(); } sub get_severity { @@ -168,4 +168,4 @@ Example: --threshold-overload='peer,critical,active' --threshold-overload='curre =back -=cut \ No newline at end of file +=cut From c2a395477fb7bcdbc92a6f89dd3a8037cd2304fa Mon Sep 17 00:00:00 2001 From: Sims24 Date: Mon, 23 May 2016 14:51:19 +0200 Subject: [PATCH 26/35] + fix typo threshold (help) --- network/redback/snmp/mode/hardware.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/network/redback/snmp/mode/hardware.pm b/network/redback/snmp/mode/hardware.pm index 4421f31ce..e8bfca4a4 100644 --- a/network/redback/snmp/mode/hardware.pm +++ b/network/redback/snmp/mode/hardware.pm @@ -115,14 +115,14 @@ Example: --threshold-overload='fan,CRITICAL,^(?!(normal)$)' =item B<--warning> -Set warning threshold for temperatures (syntax: type,regexp,treshold) +Set warning threshold for temperatures (syntax: type,regexp,threshold) Example: --warning='temperature,.*,30' =item B<--critical> -Set critical threshold for temperatures (syntax: type,regexp,treshold) +Set critical threshold for temperatures (syntax: type,regexp,threshold) Example: --critical='temperature,.*,40' =back -=cut \ No newline at end of file +=cut From 2407469c1b86417d3881cb6744dcc27e04020cb1 Mon Sep 17 00:00:00 2001 From: Sims24 Date: Mon, 23 May 2016 14:52:00 +0200 Subject: [PATCH 27/35] + fix typo threshold --- snmp_standard/mode/hardwarefibrealliance.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/snmp_standard/mode/hardwarefibrealliance.pm b/snmp_standard/mode/hardwarefibrealliance.pm index b330fa66f..fdfbfb7e1 100644 --- a/snmp_standard/mode/hardwarefibrealliance.pm +++ b/snmp_standard/mode/hardwarefibrealliance.pm @@ -119,12 +119,12 @@ sub check_options { $self->{overload_th} = {}; foreach my $val (@{$self->{option_results}->{threshold_overload}}) { if ($val !~ /^(.*?),(.*?),(.*)$/) { - $self->{output}->add_option_msg(short_msg => "Wrong treshold-overload option '" . $val . "'."); + $self->{output}->add_option_msg(short_msg => "Wrong threshold-overload option '" . $val . "'."); $self->{output}->option_exit(); } my ($section, $status, $filter) = ($1, $2, $3); if ($self->{output}->is_litteral_status(status => $status) == 0) { - $self->{output}->add_option_msg(short_msg => "Wrong treshold-overload status '" . $val . "'."); + $self->{output}->add_option_msg(short_msg => "Wrong threshold-overload status '" . $val . "'."); $self->{output}->option_exit(); } $self->{overload_th}->{$section} = [] if (!defined($self->{overload_th}->{$section})); @@ -322,4 +322,4 @@ Example: --threshold-overload='sensors,CRITICAL,^(?!(ok)$)' =back -=cut \ No newline at end of file +=cut From e0e80de59f7464a27b241bc889f13276032082b7 Mon Sep 17 00:00:00 2001 From: Sims24 Date: Mon, 23 May 2016 14:53:45 +0200 Subject: [PATCH 28/35] + fix typo threshold --- storage/qnap/snmp/mode/hardware.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/storage/qnap/snmp/mode/hardware.pm b/storage/qnap/snmp/mode/hardware.pm index 7bc227cea..9aa58aed3 100644 --- a/storage/qnap/snmp/mode/hardware.pm +++ b/storage/qnap/snmp/mode/hardware.pm @@ -77,12 +77,12 @@ sub check_options { $self->{overload_th} = {}; foreach my $val (@{$self->{option_results}->{threshold_overload}}) { if ($val !~ /^(.*?),(.*?),(.*)$/) { - $self->{output}->add_option_msg(short_msg => "Wrong treshold-overload option '" . $val . "'."); + $self->{output}->add_option_msg(short_msg => "Wrong threshold-overload option '" . $val . "'."); $self->{output}->option_exit(); } my ($section, $status, $filter) = ($1, $2, $3); if ($self->{output}->is_litteral_status(status => $status) == 0) { - $self->{output}->add_option_msg(short_msg => "Wrong treshold-overload status '" . $val . "'."); + $self->{output}->add_option_msg(short_msg => "Wrong threshold-overload status '" . $val . "'."); $self->{output}->option_exit(); } $self->{overload_th}->{$section} = [] if (!defined($self->{overload_th}->{$section})); From 44f9d9a6c961b4e9b47de96ca76665d8deefd8ff Mon Sep 17 00:00:00 2001 From: Sims24 Date: Mon, 23 May 2016 14:55:25 +0200 Subject: [PATCH 29/35] + fix typo threshold --- storage/hp/msl/snmp/mode/status.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/storage/hp/msl/snmp/mode/status.pm b/storage/hp/msl/snmp/mode/status.pm index d33d487d7..d1a15ca6b 100644 --- a/storage/hp/msl/snmp/mode/status.pm +++ b/storage/hp/msl/snmp/mode/status.pm @@ -68,12 +68,12 @@ sub check_options { $self->{overload_th} = {}; foreach my $val (@{$self->{option_results}->{threshold_overload}}) { if ($val !~ /^(.*?),(.*?),(.*)$/) { - $self->{output}->add_option_msg(short_msg => "Wrong treshold-overload option '" . $val . "'."); + $self->{output}->add_option_msg(short_msg => "Wrong threshold-overload option '" . $val . "'."); $self->{output}->option_exit(); } my ($section, $status, $filter) = ($1, $2, $3); if ($self->{output}->is_litteral_status(status => $status) == 0) { - $self->{output}->add_option_msg(short_msg => "Wrong treshold-overload status '" . $val . "'."); + $self->{output}->add_option_msg(short_msg => "Wrong threshold-overload status '" . $val . "'."); $self->{output}->option_exit(); } $self->{overload_th}->{$section} = [] if (!defined($self->{overload_th}->{$section})); From 5e053c25a0bd5d0a89880f50107315c8c5e9eecf Mon Sep 17 00:00:00 2001 From: Sims24 Date: Mon, 23 May 2016 15:04:49 +0200 Subject: [PATCH 30/35] + fix typo threshold (sub) & add missing call --- storage/ibm/TS3200/mode/globalstatus.pm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/storage/ibm/TS3200/mode/globalstatus.pm b/storage/ibm/TS3200/mode/globalstatus.pm index 5d0cb48d6..1f4a13020 100644 --- a/storage/ibm/TS3200/mode/globalstatus.pm +++ b/storage/ibm/TS3200/mode/globalstatus.pm @@ -48,18 +48,18 @@ sub new { return $self; } -sub check_treshold_overload { +sub check_threshold_overload { my ($self, %options) = @_; $self->{overload_th} = {}; foreach my $val (@{$self->{option_results}->{threshold_overload}}) { if ($val !~ /(.*?)=(.*)/) { - $self->{output}->add_option_msg(short_msg => "Wrong treshold-overload option '" . $val . "'."); + $self->{output}->add_option_msg(short_msg => "Wrong threshold-overload option '" . $val . "'."); $self->{output}->option_exit(); } my ($filter, $threshold) = ($1, $2); if ($self->{output}->is_litteral_status(status => $threshold) == 0) { - $self->{output}->add_option_msg(short_msg => "Wrong treshold-overload status '" . $val . "'."); + $self->{output}->add_option_msg(short_msg => "Wrong threshold-overload status '" . $val . "'."); $self->{output}->option_exit(); } $self->{overload_th}->{$filter} = $threshold; @@ -69,6 +69,7 @@ sub check_treshold_overload { sub check_options { my ($self, %options) = @_; $self->SUPER::init(%options); + $self->check_threshold_overload(); } sub get_severity { From 79bee83cf071493dd7ad6165142bf9ee26bd899f Mon Sep 17 00:00:00 2001 From: Sims24 Date: Mon, 23 May 2016 15:11:24 +0200 Subject: [PATCH 31/35] + fix typo threshold (sub) & add missing call --- storage/ibm/TS3100/mode/globalstatus.pm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/storage/ibm/TS3100/mode/globalstatus.pm b/storage/ibm/TS3100/mode/globalstatus.pm index e338bd617..12eba93ad 100644 --- a/storage/ibm/TS3100/mode/globalstatus.pm +++ b/storage/ibm/TS3100/mode/globalstatus.pm @@ -48,18 +48,18 @@ sub new { return $self; } -sub check_treshold_overload { +sub check_threshold_overload { my ($self, %options) = @_; $self->{overload_th} = {}; foreach my $val (@{$self->{option_results}->{threshold_overload}}) { if ($val !~ /(.*?)=(.*)/) { - $self->{output}->add_option_msg(short_msg => "Wrong treshold-overload option '" . $val . "'."); + $self->{output}->add_option_msg(short_msg => "Wrong threshold-overload option '" . $val . "'."); $self->{output}->option_exit(); } my ($filter, $threshold) = ($1, $2); if ($self->{output}->is_litteral_status(status => $threshold) == 0) { - $self->{output}->add_option_msg(short_msg => "Wrong treshold-overload status '" . $val . "'."); + $self->{output}->add_option_msg(short_msg => "Wrong threshold-overload status '" . $val . "'."); $self->{output}->option_exit(); } $self->{overload_th}->{$filter} = $threshold; @@ -69,6 +69,7 @@ sub check_treshold_overload { sub check_options { my ($self, %options) = @_; $self->SUPER::init(%options); + $self->check_threshold_overload(); } sub get_severity { From ee799c214ab5918540943d1160758279a53bdc05 Mon Sep 17 00:00:00 2001 From: Sims24 Date: Mon, 23 May 2016 15:12:21 +0200 Subject: [PATCH 32/35] + fix typo threshold (help) --- storage/emc/DataDomain/mode/hardware.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/storage/emc/DataDomain/mode/hardware.pm b/storage/emc/DataDomain/mode/hardware.pm index a2cde981d..1c1ab4152 100644 --- a/storage/emc/DataDomain/mode/hardware.pm +++ b/storage/emc/DataDomain/mode/hardware.pm @@ -151,12 +151,12 @@ Example: --threshold-overload='fan,CRITICAL,^(?!(ok)$)' =item B<--warning> -Set warning threshold for temperatures (syntax: type,regexp,treshold) +Set warning threshold for temperatures (syntax: type,regexp,threshold) Example: --warning='temperature,.*,20' =item B<--critical> -Set critical threshold for temperatures and battery charge (syntax: type,regexp,treshold) +Set critical threshold for temperatures and battery charge (syntax: type,regexp,threshold) Example: --critical='temperature,1.1,25' --critical='battery,.*,20:' =back From 4b98da0e89edbb36ec2e48719b2433684dc31d31 Mon Sep 17 00:00:00 2001 From: Sims24 Date: Mon, 23 May 2016 15:14:56 +0200 Subject: [PATCH 33/35] + fix typo threshold --- storage/synology/snmp/mode/components.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/storage/synology/snmp/mode/components.pm b/storage/synology/snmp/mode/components.pm index aba195b8d..8c4d2e6c8 100644 --- a/storage/synology/snmp/mode/components.pm +++ b/storage/synology/snmp/mode/components.pm @@ -143,12 +143,12 @@ sub check_options { $self->{overload_th} = {}; foreach my $val (@{$self->{option_results}->{threshold_overload}}) { if ($val !~ /^(.*?),(.*?),(.*)$/) { - $self->{output}->add_option_msg(short_msg => "Wrong treshold-overload option '" . $val . "'."); + $self->{output}->add_option_msg(short_msg => "Wrong threshold-overload option '" . $val . "'."); $self->{output}->option_exit(); } my ($section, $status, $filter) = ($1, $2, $3); if ($self->{output}->is_litteral_status(status => $status) == 0) { - $self->{output}->add_option_msg(short_msg => "Wrong treshold-overload status '" . $val . "'."); + $self->{output}->add_option_msg(short_msg => "Wrong threshold-overload status '" . $val . "'."); $self->{output}->option_exit(); } $self->{overload_th}->{$section} = [] if (!defined($self->{overload_th}->{$section})); From dc7bca19b67717c371fe9b46a71d7a17beee5fd9 Mon Sep 17 00:00:00 2001 From: Sims24 Date: Mon, 23 May 2016 15:16:51 +0200 Subject: [PATCH 34/35] + fix typo threshold (help) --- storage/dell/equallogic/snmp/mode/hardware.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/storage/dell/equallogic/snmp/mode/hardware.pm b/storage/dell/equallogic/snmp/mode/hardware.pm index 3fe8a7ef8..25ae74f97 100644 --- a/storage/dell/equallogic/snmp/mode/hardware.pm +++ b/storage/dell/equallogic/snmp/mode/hardware.pm @@ -313,14 +313,14 @@ Example: --threshold-overload='fan,CRITICAL,^(?!(normal)$)' =item B<--warning> -Set warning threshold for temperatures (syntax: type,regexp,treshold) +Set warning threshold for temperatures (syntax: type,regexp,threshold) Example: --warning='temperature,.*,30' =item B<--critical> -Set critical threshold for temperatures (syntax: type,regexp,treshold) +Set critical threshold for temperatures (syntax: type,regexp,threshold) Example: --critical='temperature,.*,40' =back -=cut \ No newline at end of file +=cut From 33e3ba50549f0606e6823cb3d208368daf35f3a6 Mon Sep 17 00:00:00 2001 From: Sims24 Date: Mon, 23 May 2016 15:21:51 +0200 Subject: [PATCH 35/35] + fix typo threshold (sub) --- storage/dell/TL2000/mode/globalstatus.pm | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/storage/dell/TL2000/mode/globalstatus.pm b/storage/dell/TL2000/mode/globalstatus.pm index c9fdcaa71..5c055f623 100644 --- a/storage/dell/TL2000/mode/globalstatus.pm +++ b/storage/dell/TL2000/mode/globalstatus.pm @@ -48,18 +48,18 @@ sub new { return $self; } -sub check_treshold_overload { +sub check_threshold_overload { my ($self, %options) = @_; $self->{overload_th} = {}; foreach my $val (@{$self->{option_results}->{threshold_overload}}) { if ($val !~ /(.*?)=(.*)/) { - $self->{output}->add_option_msg(short_msg => "Wrong treshold-overload option '" . $val . "'."); + $self->{output}->add_option_msg(short_msg => "Wrong threshold-overload option '" . $val . "'."); $self->{output}->option_exit(); } my ($filter, $threshold) = ($1, $2); if ($self->{output}->is_litteral_status(status => $threshold) == 0) { - $self->{output}->add_option_msg(short_msg => "Wrong treshold-overload status '" . $val . "'."); + $self->{output}->add_option_msg(short_msg => "Wrong threshold-overload status '" . $val . "'."); $self->{output}->option_exit(); } $self->{overload_th}->{$filter} = $threshold; @@ -69,7 +69,7 @@ sub check_treshold_overload { sub check_options { my ($self, %options) = @_; $self->SUPER::init(%options); - $self->check_treshold_overload(); + $self->check_threshold_overload(); } sub get_severity { @@ -118,4 +118,4 @@ Example: --threshold-overload='(unknown|non critical)=critical' =back =cut - \ No newline at end of file +