diff --git a/centreon-plugins/apps/pfsense/snmp/mode/blockedpackets.pm b/centreon-plugins/apps/pfsense/snmp/mode/blockedpackets.pm index 15d92d0a6..232b203f7 100644 --- a/centreon-plugins/apps/pfsense/snmp/mode/blockedpackets.pm +++ b/centreon-plugins/apps/pfsense/snmp/mode/blockedpackets.pm @@ -211,7 +211,7 @@ sub run { sub manage_selection { my ($self, %options) = @_; - $all_ids = []; + my $all_ids = []; $self->{names} = {}; my $result = $self->{snmp}->get_table(oid => $oid_pfsenseInterfaceName, nothing_quit => 1); foreach my $key ($self->{snmp}->oid_lex_sort(keys %$result)) { diff --git a/centreon-plugins/hardware/sensors/sequoia/em01/web/mode/contact.pm b/centreon-plugins/hardware/sensors/sensormetrix/em01/web/mode/contact.pm similarity index 98% rename from centreon-plugins/hardware/sensors/sequoia/em01/web/mode/contact.pm rename to centreon-plugins/hardware/sensors/sensormetrix/em01/web/mode/contact.pm index b5f3afdb1..2291c7b2e 100644 --- a/centreon-plugins/hardware/sensors/sequoia/em01/web/mode/contact.pm +++ b/centreon-plugins/hardware/sensors/sensormetrix/em01/web/mode/contact.pm @@ -34,7 +34,7 @@ # Based on De Bodt Lieven plugin #################################################################################### -package hardware::sensors::sequoia::em01::web::mode::contact; +package hardware::sensors::sensormetrix::em01::web::mode::contact; use base qw(centreon::plugins::mode); @@ -120,7 +120,7 @@ __END__ =head1 MODE -Check sensor voltage. +Check sensor contact. =over 8 diff --git a/centreon-plugins/hardware/sensors/sequoia/em01/web/mode/flood.pm b/centreon-plugins/hardware/sensors/sensormetrix/em01/web/mode/flood.pm similarity index 98% rename from centreon-plugins/hardware/sensors/sequoia/em01/web/mode/flood.pm rename to centreon-plugins/hardware/sensors/sensormetrix/em01/web/mode/flood.pm index 2ea40f5a4..5de893e46 100644 --- a/centreon-plugins/hardware/sensors/sequoia/em01/web/mode/flood.pm +++ b/centreon-plugins/hardware/sensors/sensormetrix/em01/web/mode/flood.pm @@ -34,7 +34,7 @@ # Based on De Bodt Lieven plugin #################################################################################### -package hardware::sensors::sequoia::em01::web::mode::flood; +package hardware::sensors::sensormetrix::em01::web::mode::flood; use base qw(centreon::plugins::mode); diff --git a/centreon-plugins/hardware/sensors/sequoia/em01/web/mode/humidity.pm b/centreon-plugins/hardware/sensors/sensormetrix/em01/web/mode/humidity.pm similarity index 98% rename from centreon-plugins/hardware/sensors/sequoia/em01/web/mode/humidity.pm rename to centreon-plugins/hardware/sensors/sensormetrix/em01/web/mode/humidity.pm index ce356d3ac..99fa8c5f2 100644 --- a/centreon-plugins/hardware/sensors/sequoia/em01/web/mode/humidity.pm +++ b/centreon-plugins/hardware/sensors/sensormetrix/em01/web/mode/humidity.pm @@ -34,7 +34,7 @@ # Based on De Bodt Lieven plugin #################################################################################### -package hardware::sensors::sequoia::em01::web::mode::humidity; +package hardware::sensors::sensormetrix::em01::web::mode::humidity; use base qw(centreon::plugins::mode); diff --git a/centreon-plugins/hardware/sensors/sequoia/em01/web/mode/illumination.pm b/centreon-plugins/hardware/sensors/sensormetrix/em01/web/mode/illumination.pm similarity index 97% rename from centreon-plugins/hardware/sensors/sequoia/em01/web/mode/illumination.pm rename to centreon-plugins/hardware/sensors/sensormetrix/em01/web/mode/illumination.pm index 0618ff12e..420bcc392 100644 --- a/centreon-plugins/hardware/sensors/sequoia/em01/web/mode/illumination.pm +++ b/centreon-plugins/hardware/sensors/sensormetrix/em01/web/mode/illumination.pm @@ -34,7 +34,7 @@ # Based on De Bodt Lieven plugin #################################################################################### -package hardware::sensors::sequoia::em01::web::mode::illumination; +package hardware::sensors::sensormetrix::em01::web::mode::illumination; use base qw(centreon::plugins::mode); @@ -93,7 +93,7 @@ sub run { my $webcontent = centreon::plugins::httplib::connect($self); my $illumination; - if ($webcontent !~ /
(.*)<\/body>/msi || $1 !~ /IL\s*([0-9\.]+)/i) { + if ($webcontent !~ /(.*)<\/body>/msi || $1 !~ /IL(?:\s*:\s*|\s*)([0-9\.]+)/i) { $self->{output}->add_option_msg(short_msg => "Could not find illumination information."); $self->{output}->option_exit(); } diff --git a/centreon-plugins/hardware/sensors/sequoia/em01/web/mode/temperature.pm b/centreon-plugins/hardware/sensors/sensormetrix/em01/web/mode/temperature.pm similarity index 97% rename from centreon-plugins/hardware/sensors/sequoia/em01/web/mode/temperature.pm rename to centreon-plugins/hardware/sensors/sensormetrix/em01/web/mode/temperature.pm index 12c973283..1b27c2e86 100644 --- a/centreon-plugins/hardware/sensors/sequoia/em01/web/mode/temperature.pm +++ b/centreon-plugins/hardware/sensors/sensormetrix/em01/web/mode/temperature.pm @@ -34,7 +34,7 @@ # Based on De Bodt Lieven plugin #################################################################################### -package hardware::sensors::sequoia::em01::web::mode::temperature; +package hardware::sensors::sensormetrix::em01::web::mode::temperature; use base qw(centreon::plugins::mode); @@ -162,11 +162,11 @@ Threshold for HTTP timeout =item B<--warning> -Warning Threshold for Humidity +Warning Threshold for Temperature =item B<--critical> -Critical Threshold for Humidity +Critical Threshold for Temperature =back diff --git a/centreon-plugins/hardware/sensors/sequoia/em01/web/mode/thermistor.pm b/centreon-plugins/hardware/sensors/sensormetrix/em01/web/mode/thermistor.pm similarity index 97% rename from centreon-plugins/hardware/sensors/sequoia/em01/web/mode/thermistor.pm rename to centreon-plugins/hardware/sensors/sensormetrix/em01/web/mode/thermistor.pm index fdd609241..0928ab778 100644 --- a/centreon-plugins/hardware/sensors/sequoia/em01/web/mode/thermistor.pm +++ b/centreon-plugins/hardware/sensors/sensormetrix/em01/web/mode/thermistor.pm @@ -34,7 +34,7 @@ # Based on De Bodt Lieven plugin #################################################################################### -package hardware::sensors::sequoia::em01::web::mode::thermistor; +package hardware::sensors::sensormetrix::em01::web::mode::thermistor; use base qw(centreon::plugins::mode); @@ -162,11 +162,11 @@ Threshold for HTTP timeout =item B<--warning> -Warning Threshold for Humidity +Warning Threshold for Thermistor Temperature =item B<--critical> -Critical Threshold for Humidity +Critical Threshold for Thermistor Temperature =back diff --git a/centreon-plugins/hardware/sensors/sequoia/em01/web/mode/voltage.pm b/centreon-plugins/hardware/sensors/sensormetrix/em01/web/mode/voltage.pm similarity index 98% rename from centreon-plugins/hardware/sensors/sequoia/em01/web/mode/voltage.pm rename to centreon-plugins/hardware/sensors/sensormetrix/em01/web/mode/voltage.pm index 206463b59..ad1725907 100644 --- a/centreon-plugins/hardware/sensors/sequoia/em01/web/mode/voltage.pm +++ b/centreon-plugins/hardware/sensors/sensormetrix/em01/web/mode/voltage.pm @@ -34,7 +34,7 @@ # Based on De Bodt Lieven plugin #################################################################################### -package hardware::sensors::sequoia::em01::web::mode::voltage; +package hardware::sensors::sensormetrix::em01::web::mode::voltage; use base qw(centreon::plugins::mode); diff --git a/centreon-plugins/hardware/sensors/sequoia/em01/web/plugin.pm b/centreon-plugins/hardware/sensors/sensormetrix/em01/web/plugin.pm similarity index 75% rename from centreon-plugins/hardware/sensors/sequoia/em01/web/plugin.pm rename to centreon-plugins/hardware/sensors/sensormetrix/em01/web/plugin.pm index 7a9ef0a5d..a4a8796bb 100644 --- a/centreon-plugins/hardware/sensors/sequoia/em01/web/plugin.pm +++ b/centreon-plugins/hardware/sensors/sensormetrix/em01/web/plugin.pm @@ -33,7 +33,7 @@ # #################################################################################### -package hardware::sensors::sequoia::em01::web::plugin; +package hardware::sensors::sensormetrix::em01::web::plugin; use strict; use warnings; @@ -47,13 +47,13 @@ sub new { $self->{version} = '0.1'; %{$self->{modes}} = ( - 'contact' => 'hardware::sensors::sequoia::em01::web::mode::contact', - 'temperature' => 'hardware::sensors::sequoia::em01::web::mode::temperature', - 'humidity' => 'hardware::sensors::sequoia::em01::web::mode::humidity', - 'illumination' => 'hardware::sensors::sequoia::em01::web::mode::illumination', - 'flood' => 'hardware::sensors::sequoia::em01::web::mode::flood', - 'thermistor' => 'hardware::sensors::sequoia::em01::web::mode::thermistor', - 'voltage' => 'hardware::sensors::sequoia::em01::web::mode::voltage', + 'contact' => 'hardware::sensors::sensormetrix::em01::web::mode::contact', + 'temperature' => 'hardware::sensors::sensormetrix::em01::web::mode::temperature', + 'humidity' => 'hardware::sensors::sensormetrix::em01::web::mode::humidity', + 'illumination' => 'hardware::sensors::sensormetrix::em01::web::mode::illumination', + 'flood' => 'hardware::sensors::sensormetrix::em01::web::mode::flood', + 'thermistor' => 'hardware::sensors::sensormetrix::em01::web::mode::thermistor', + 'voltage' => 'hardware::sensors::sensormetrix::em01::web::mode::voltage', ); return $self; @@ -65,6 +65,6 @@ __END__ =head1 PLUGIN DESCRIPTION -Check Sequoia em01 sensors through webpage. +Check Sensormetrix em01 sensors through webpage. =cut diff --git a/centreon-plugins/network/juniper/common/screenos/mode/components/fan.pm b/centreon-plugins/network/juniper/common/screenos/mode/components/fan.pm index 75f8782b4..422af6721 100644 --- a/centreon-plugins/network/juniper/common/screenos/mode/components/fan.pm +++ b/centreon-plugins/network/juniper/common/screenos/mode/components/fan.pm @@ -46,7 +46,7 @@ my %map_status = ( sub check { my ($self) = @_; - $self->{components}->{fans} = {name => 'fans', total => 0, skip => 0}; + $self->{components}->{fans} = {name => 'fans', total => 0}; $self->{output}->output_add(long_msg => "Checking fans"); return if ($self->check_exclude(section => 'fans')); diff --git a/centreon-plugins/network/juniper/common/screenos/mode/components/module.pm b/centreon-plugins/network/juniper/common/screenos/mode/components/module.pm index 97ef5a02a..9ec423137 100644 --- a/centreon-plugins/network/juniper/common/screenos/mode/components/module.pm +++ b/centreon-plugins/network/juniper/common/screenos/mode/components/module.pm @@ -46,7 +46,7 @@ my %map_status = ( sub check { my ($self) = @_; - $self->{components}->{modules} = {name => 'modules', total => 0, skip => 0}; + $self->{components}->{modules} = {name => 'modules', total => 0}; $self->{output}->output_add(long_msg => "Checking modules"); return if ($self->check_exclude(section => 'modules')); @@ -62,11 +62,11 @@ sub check { my $instance = $1; next if ($self->check_exclude(section => 'modules', instance => $instance)); - $self->{components}->{modules}->{total}++; my $type = $result->{$oid_nsSlotType . '.' . $instance}; my $status = $result->{$oid_nsSlotStatus . '.' . $instance}; - + + $self->{components}->{modules}->{total}++; $self->{output}->output_add(long_msg => sprintf("Module '%s' status is %s [instance: %s].", $type, $map_status{$status}, $instance)); if ($status != 1) { diff --git a/centreon-plugins/network/juniper/common/screenos/mode/components/psu.pm b/centreon-plugins/network/juniper/common/screenos/mode/components/psu.pm index 766215e0d..d1c4985ec 100644 --- a/centreon-plugins/network/juniper/common/screenos/mode/components/psu.pm +++ b/centreon-plugins/network/juniper/common/screenos/mode/components/psu.pm @@ -46,7 +46,7 @@ my %map_status = ( sub check { my ($self) = @_; - $self->{components}->{psus} = {name => 'psus', total => 0, skip => 0}; + $self->{components}->{psus} = {name => 'psus', total => 0}; $self->{output}->output_add(long_msg => "Checking power supplies"); return if ($self->check_exclude(section => 'psus')); diff --git a/centreon-plugins/network/juniper/common/screenos/mode/components/temperature.pm b/centreon-plugins/network/juniper/common/screenos/mode/components/temperature.pm index 48e61e2b3..d9c5e501e 100644 --- a/centreon-plugins/network/juniper/common/screenos/mode/components/temperature.pm +++ b/centreon-plugins/network/juniper/common/screenos/mode/components/temperature.pm @@ -42,7 +42,7 @@ sub check { my ($self) = @_; $self->{output}->output_add(long_msg => "Checking temperatures"); - $self->{components}->{temperatures} = {name => 'temperatures', total => 0, skip => 0}; + $self->{components}->{temperatures} = {name => 'temperatures', total => 0}; return if ($self->check_exclude('temperatures')); my $oid_nsTemperatureEntry = '.1.3.6.1.4.1.3224.21.4.1'; @@ -58,10 +58,10 @@ sub check { next if ($self->check_exclude(section => 'temperatures', instance => $instance)); - my $temperature_name = $result->{$oid_nsTemperatureDesc . '.' . $instance}; + my $temperature_name = $result->{$oid_nsTemperatureDesc . '.' . $instance}; - my $exit_code = $self->{perfdata}->threshold_check(value => $result->{$oid_nsTemperatureCur . '.' . $instance}, - threshold => [ { label => 'critical', 'exit_litteral' => 'critical' }, { label => 'warning', exit_litteral => 'warning' } ]); + my $exit_code = $self->{perfdata}->threshold_check(value => $result->{$oid_nsTemperatureCur . '.' . $instance}, + threshold => [ { label => 'critical', 'exit_litteral' => 'critical' }, { label => 'warning', exit_litteral => 'warning' } ]); $self->{components}->{temperatures}->{total}++; @@ -71,13 +71,12 @@ sub check { $self->{output}->output_add(severity => $exit_code,short_msg => sprintf($temperature_name . " is %.2f C", $result->{$oid_nsTemperatureCur . '.' . $instance})); } - $temperature_name =~ s/\ /_/g; - $self->{output}->perfdata_add(label => $temperature_name, unit => 'C', - value => sprintf("%.2f", $result->{$oid_nsTemperatureCur . '.' . $instance}), - warning => $self->{perfdata}->get_perfdata_for_output(label => 'warning'), - critical => $self->{perfdata}->get_perfdata_for_output(label => 'critical')); + $temperature_name =~ s/\ /_/g; + $self->{output}->perfdata_add(label => $temperature_name , unit => 'C', value => sprintf("%.2f", $result->{$oid_nsTemperatureCur . '.' . $instance}), + warning => $self->{perfdata}->get_perfdata_for_output(label => 'warning'), + critical => $self->{perfdata}->get_perfdata_for_output(label => 'critical')); + } } -} 1; diff --git a/centreon-plugins/network/juniper/common/screenos/mode/cpu.pm b/centreon-plugins/network/juniper/common/screenos/mode/cpu.pm index 88f1b663b..1bb27cc30 100644 --- a/centreon-plugins/network/juniper/common/screenos/mode/cpu.pm +++ b/centreon-plugins/network/juniper/common/screenos/mode/cpu.pm @@ -59,31 +59,31 @@ sub check_options { my ($self, %options) = @_; $self->SUPER::init(%options); - ($self->{warn1s}, $self->{warn4s}, $self->{warn64s}) = split /,/, $self->{option_results}->{warning}; - ($self->{crit1s}, $self->{crit4s}, $self->{crit64s}) = split /,/, $self->{option_results}->{critical}; + ($self->{warn1m}, $self->{warn5m}, $self->{warn15m}) = split /,/, $self->{option_results}->{warning}; + ($self->{crit1m}, $self->{crit5m}, $self->{crit15m}) = split /,/, $self->{option_results}->{critical}; - if (($self->{perfdata}->threshold_validate(label => 'warn1min', value => $self->{warn1s})) == 0) { - $self->{output}->add_option_msg(short_msg => "Wrong warning (1min) threshold '" . $self->{warn1s} . "'."); + if (($self->{perfdata}->threshold_validate(label => 'warn1min', value => $self->{warn1m})) == 0) { + $self->{output}->add_option_msg(short_msg => "Wrong warning (1min) threshold '" . $self->{warn1m} . "'."); $self->{output}->option_exit(); } - if (($self->{perfdata}->threshold_validate(label => 'warn5min', value => $self->{warn4s})) == 0) { - $self->{output}->add_option_msg(short_msg => "Wrong warning (5min) threshold '" . $self->{warn4s} . "'."); + if (($self->{perfdata}->threshold_validate(label => 'warn5min', value => $self->{warn5m})) == 0) { + $self->{output}->add_option_msg(short_msg => "Wrong warning (5min) threshold '" . $self->{warn5m} . "'."); $self->{output}->option_exit(); } - if (($self->{perfdata}->threshold_validate(label => 'warn15min', value => $self->{warn64s})) == 0) { - $self->{output}->add_option_msg(short_msg => "Wrong warning (15min) threshold '" . $self->{warn64s} . "'."); + if (($self->{perfdata}->threshold_validate(label => 'warn15min', value => $self->{warn15m})) == 0) { + $self->{output}->add_option_msg(short_msg => "Wrong warning (15min) threshold '" . $self->{warn15m} . "'."); $self->{output}->option_exit(); } - if (($self->{perfdata}->threshold_validate(label => 'crit1min', value => $self->{crit1s})) == 0) { - $self->{output}->add_option_msg(short_msg => "Wrong critical (1min) threshold '" . $self->{crit1s} . "'."); + if (($self->{perfdata}->threshold_validate(label => 'crit1min', value => $self->{crit1m})) == 0) { + $self->{output}->add_option_msg(short_msg => "Wrong critical (1min) threshold '" . $self->{crit1m} . "'."); $self->{output}->option_exit(); } - if (($self->{perfdata}->threshold_validate(label => 'crit5min', value => $self->{crit4s})) == 0) { - $self->{output}->add_option_msg(short_msg => "Wrong critical (5min) threshold '" . $self->{crit4s} . "'."); + if (($self->{perfdata}->threshold_validate(label => 'crit5min', value => $self->{crit5m})) == 0) { + $self->{output}->add_option_msg(short_msg => "Wrong critical (5min) threshold '" . $self->{crit5m} . "'."); $self->{output}->option_exit(); } - if (($self->{perfdata}->threshold_validate(label => 'crit15min', value => $self->{crit64s})) == 0) { - $self->{output}->add_option_msg(short_msg => "Wrong critical (15min) threshold '" . $self->{crit64s} . "'."); + if (($self->{perfdata}->threshold_validate(label => 'crit15min', value => $self->{crit15m})) == 0) { + $self->{output}->add_option_msg(short_msg => "Wrong critical (15min) threshold '" . $self->{crit15m} . "'."); $self->{output}->option_exit(); } } diff --git a/centreon-plugins/network/juniper/common/screenos/mode/hardware.pm b/centreon-plugins/network/juniper/common/screenos/mode/hardware.pm index afe36a89e..963def039 100644 --- a/centreon-plugins/network/juniper/common/screenos/mode/hardware.pm +++ b/centreon-plugins/network/juniper/common/screenos/mode/hardware.pm @@ -52,13 +52,11 @@ sub new { $self->{version} = '1.0'; $options{options}->add_options(arguments => - { + { "exclude:s" => { name => 'exclude' }, - "absent-problem:s" => { name => 'absent' }, "component:s" => { name => 'component', default => 'all' }, - "no-component:s" => { name => 'no_component' }, - "warning:s" => { name => 'warning', }, - "critical:s" => { name => 'critical', }, + "warning:s" => { name => 'warning', default => '' }, + "critical:s" => { name => 'critical', default => '' }, }); $self->{components} = {}; return $self; @@ -76,13 +74,7 @@ sub check_options { $self->{output}->add_option_msg(short_msg => "Wrong critical threshold '" . $self->{option_results}->{critical} . "'."); $self->{output}->option_exit(); } - if (defined($self->{option_results}->{no_component})) { - if ($self->{option_results}->{no_component} ne '') { - $self->{no_components} = $self->{option_results}->{no_component}; - } else { - $self->{no_components} = 'critical'; - } - } + } sub global { @@ -114,14 +106,15 @@ sub run { $self->{output}->option_exit(); } + my $total_components = 0; my $display_by_component = ''; my $display_by_component_append = ''; foreach my $comp (sort(keys %{$self->{components}})) { # Skipping short msg when no components - next if ($self->{components}->{$comp}->{total} == 0 && $self->{components}->{$comp}->{skip} == 0); - $total_components += $self->{components}->{$comp}->{total} + $self->{components}->{$comp}->{skip}; - $display_by_component .= $display_by_component_append . $self->{components}->{$comp}->{total} . '/' . $self->{components}->{$comp}->{skip} . ' ' . $self->{components}->{$comp}->{name}; + next if ($self->{components}->{$comp}->{total} == 0); + $total_components += $self->{components}->{$comp}->{total}; + $display_by_component .= $display_by_component_append . $self->{components}->{$comp}->{total} . ' ' . $self->{components}->{$comp}->{name}; $display_by_component_append = ', '; } @@ -132,46 +125,20 @@ sub run { ) ); - if (defined($self->{option_results}->{no_component}) && $total_components == 0) { - $self->{output}->output_add(severity => $self->{no_components}, - short_msg => 'No components are checked.'); - } - $self->{output}->display(); $self->{output}->exit(); } sub check_exclude { - my ($self, %options) = @_; + my ($self, $section) = @_; - if (defined($options{instance})) { - if (defined($self->{option_results}->{exclude}) && $self->{option_results}->{exclude} =~ /(^|\s|,)${options{section}}[^,]*#\Q$options{instance}\E#/) { - $self->{components}->{$options{section}}->{skip}++; - $self->{output}->output_add(long_msg => sprintf("Skipping $options{section} section $options{instance} instance.")); - return 1; - } - } elsif (defined($self->{option_results}->{exclude}) && $self->{option_results}->{exclude} =~ /(^|\s|,)$options{section}(\s|,|$)/) { - $self->{output}->output_add(long_msg => sprintf("Skipping $options{section} section.")); + if (defined($self->{option_results}->{exclude}) && $self->{option_results}->{exclude} =~ /(^|\s|,)$section(\s|,|$)/) { + $self->{output}->output_add(long_msg => sprintf("Skipping $section section.")); return 1; } return 0; } -sub absent_problem { - my ($self, %options) = @_; - - if (defined($self->{option_results}->{absent}) && - $self->{option_results}->{absent} =~ /(^|\s|,)($options{section}(\s*,|$)|${options{section}}[^,]*#\Q$options{instance}\E#)/) { - $self->{output}->output_add(severity => 'CRITICAL', - short_msg => sprintf("Component '%s' instance '%s' is not present", - $options{section}, $options{instance})); - } - - $self->{output}->output_add(long_msg => sprintf("Skipping $options{section} section $options{instance} instance (not present)")); - $self->{components}->{$options{section}}->{skip}++; - return 1; -} - 1; __END__ @@ -192,15 +159,6 @@ Can be: 'fan', 'psu', 'module'. Exclude some parts (comma seperated list) (Example: --exclude=fans,modules) Can also exclude specific instance: --exclude=fans#1#2#,modules#1#,psus -=item B<--absent-problem> - -N/A for following equipment. Not needed. - -=item B<--no-component> - -Return an error if no compenents are checked. -If total (with skipped) is 0. (Default: 'critical' returns). - =item B<--warning> Threshold warning in degree celsius. diff --git a/centreon-plugins/storage/emc/clariion/TODO b/centreon-plugins/storage/emc/clariion/TODO index f4978fc54..c541a993e 100644 --- a/centreon-plugins/storage/emc/clariion/TODO +++ b/centreon-plugins/storage/emc/clariion/TODO @@ -52,37 +52,6 @@ Total Writes: 401613 Total Reads: 6653775 Prct Idle: 94.2 -====================== -Mode pour les disques -====================== - -La commande pour tous: getdisk -state -bytrd -bytwrt -hw -hr - -Bus 1 Enclosure 7 Disk 13 -State: Enabled -Kbytes Read: 311959566 -Kbytes Written: 0 -Hard Write Errors: 0 -Hard Read Errors: 0 - -Bus 1 Enclosure 7 Disk 14 -State: Hot Spare Ready -Kbytes Read: 1957049160 -Kbytes Written: 0 -Hard Write Errors: 0 -Hard Read Errors: 0 - - -La commande pour un seul: getdisk 1_7_14 -state -bytrd -bytwrt -hw -hr - -Bus 1 Enclosure 7 Disk 14 -State: Hot Spare Ready -Kbytes Read: 1957105480 -Kbytes Written: 0 -Hard Write Errors: 0 -Hard Read Errors: 0 - - ====================== Mode pour les raid group ====================== diff --git a/centreon-plugins/storage/emc/clariion/custom.pm b/centreon-plugins/storage/emc/clariion/custom.pm index 7c7ce1225..dfb06b94b 100644 --- a/centreon-plugins/storage/emc/clariion/custom.pm +++ b/centreon-plugins/storage/emc/clariion/custom.pm @@ -233,19 +233,19 @@ my navisphere manage =item B<--navicli-path> -Specify navicli path (default: '/opt/Navisphere/bin') +Specify navicli path (default: 'navicli') =item B<--navicli-command> -Specify navicli command (default: 'navicli'). +Specify navicli command (default: '/opt/Navisphere/bin'). =item B<--naviseccli-path> -Specify naviseccli path (default: '/opt/Navisphere/bin') +Specify naviseccli path (default: 'naviseccli') =item B<--naviseccli-command> -Specify naviseccli command (default: 'naviseccli'). +Specify naviseccli command (default: '/opt/Navisphere/bin'). =item B<--sudo> diff --git a/centreon-plugins/storage/emc/clariion/mode/disk.pm b/centreon-plugins/storage/emc/clariion/mode/disk.pm new file mode 100644 index 000000000..d33e2f86a --- /dev/null +++ b/centreon-plugins/storage/emc/clariion/mode/disk.pm @@ -0,0 +1,399 @@ +################################################################################ +# Copyright 2005-2013 MERETHIS +# Centreon is developped by : Julien Mathis and Romain Le Merlus under +# GPL Licence 2.0. +# +# This program is free software; you can redistribute it and/or modify it under +# the terms of the GNU General Public License as published by the Free Software +# Foundation ; either version 2 of the License. +# +# This program is distributed in the hope that it will be useful, but WITHOUT ANY +# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. See the GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License along with +# this program; if not, see