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})); 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})); 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})); 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})); 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 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})); 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; 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})); 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 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})); 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 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 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 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 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 + 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})); 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}; 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})); 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 + 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 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})); 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 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 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 + 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 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})); 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 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 + 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 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 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})); 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 { 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 { 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})); 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}));