mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-23 05:35:01 +02:00
Some fix for clariion, datadomain and violin
This commit is contained in:
parent
2338454c20
commit
a8f59c89c8
@ -194,7 +194,7 @@ Set hba uid to check (not set, means 'all').
|
|||||||
|
|
||||||
Set how much path must be connected (Can be multiple).
|
Set how much path must be connected (Can be multiple).
|
||||||
Syntax: [WARNING],[CRITICAL],filter_uid,filter_server
|
Syntax: [WARNING],[CRITICAL],filter_uid,filter_server
|
||||||
Example: ,,@0:1,.* - Means all server must have at least two paths connected.
|
Example: ,@0:1,.*,.* - Means all server must have at least two paths connected.
|
||||||
|
|
||||||
=back
|
=back
|
||||||
|
|
||||||
|
@ -61,12 +61,6 @@ sub check_options {
|
|||||||
$self->SUPER::init(%options);
|
$self->SUPER::init(%options);
|
||||||
}
|
}
|
||||||
|
|
||||||
sub check_logged {
|
|
||||||
my ($self, %options) = @_;
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
sub check_port {
|
sub check_port {
|
||||||
my ($self, %options) = @_;
|
my ($self, %options) = @_;
|
||||||
|
|
||||||
|
@ -42,12 +42,12 @@ use warnings;
|
|||||||
use centreon::common::emc::navisphere::mode::spcomponents::fan;
|
use centreon::common::emc::navisphere::mode::spcomponents::fan;
|
||||||
use centreon::common::emc::navisphere::mode::spcomponents::lcc;
|
use centreon::common::emc::navisphere::mode::spcomponents::lcc;
|
||||||
use centreon::common::emc::navisphere::mode::spcomponents::psu;
|
use centreon::common::emc::navisphere::mode::spcomponents::psu;
|
||||||
use centreon::common::emc::navisphere::spcomponents::battery;
|
use centreon::common::emc::navisphere::mode::spcomponents::battery;
|
||||||
use centreon::common::emc::navisphere::spcomponents::memory;
|
use centreon::common::emc::navisphere::mode::spcomponents::memory;
|
||||||
use centreon::common::emc::navisphere::spcomponents::cpu;
|
use centreon::common::emc::navisphere::mode::spcomponents::cpu;
|
||||||
use centreon::common::emc::navisphere::spcomponents::iomodule;
|
use centreon::common::emc::navisphere::mode::spcomponents::iomodule;
|
||||||
use centreon::common::emc::navisphere::spcomponents::cable;
|
use centreon::common::emc::navisphere::mode::spcomponents::cable;
|
||||||
use centreon::common::emc::navisphere::spcomponents::sp;
|
use centreon::common::emc::navisphere::mode::spcomponents::sp;
|
||||||
|
|
||||||
sub new {
|
sub new {
|
||||||
my ($class, %options) = @_;
|
my ($class, %options) = @_;
|
||||||
|
@ -33,7 +33,7 @@
|
|||||||
#
|
#
|
||||||
####################################################################################
|
####################################################################################
|
||||||
|
|
||||||
package storage::emc::clariion::mode::spcomponents::battery;
|
package centreon::common::emc::navisphere::mode::spcomponents::battery;
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings;
|
||||||
|
@ -33,7 +33,7 @@
|
|||||||
#
|
#
|
||||||
####################################################################################
|
####################################################################################
|
||||||
|
|
||||||
package storage::emc::clariion::mode::spcomponents::cable;
|
package centreon::common::emc::navisphere::mode::spcomponents::cable;
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings;
|
||||||
|
@ -33,7 +33,7 @@
|
|||||||
#
|
#
|
||||||
####################################################################################
|
####################################################################################
|
||||||
|
|
||||||
package storage::emc::clariion::mode::spcomponents::cpu;
|
package centreon::common::emc::navisphere::mode::spcomponents::cpu;
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings;
|
||||||
|
@ -33,7 +33,7 @@
|
|||||||
#
|
#
|
||||||
####################################################################################
|
####################################################################################
|
||||||
|
|
||||||
package storage::emc::clariion::mode::spcomponents::fan;
|
package centreon::common::emc::navisphere::mode::spcomponents::fan;
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings;
|
||||||
|
@ -33,7 +33,7 @@
|
|||||||
#
|
#
|
||||||
####################################################################################
|
####################################################################################
|
||||||
|
|
||||||
package storage::emc::clariion::mode::spcomponents::iomodule;
|
package centreon::common::emc::navisphere::mode::spcomponents::iomodule;
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings;
|
||||||
|
@ -33,7 +33,7 @@
|
|||||||
#
|
#
|
||||||
####################################################################################
|
####################################################################################
|
||||||
|
|
||||||
package storage::emc::clariion::mode::spcomponents::lcc;
|
package centreon::common::emc::navisphere::mode::spcomponents::lcc;
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings;
|
||||||
|
@ -33,7 +33,7 @@
|
|||||||
#
|
#
|
||||||
####################################################################################
|
####################################################################################
|
||||||
|
|
||||||
package storage::emc::clariion::mode::spcomponents::memory;
|
package centreon::common::emc::navisphere::mode::spcomponents::memory;
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings;
|
||||||
|
@ -33,7 +33,7 @@
|
|||||||
#
|
#
|
||||||
####################################################################################
|
####################################################################################
|
||||||
|
|
||||||
package storage::emc::clariion::mode::spcomponents::psu;
|
package centreon::common::emc::navisphere::mode::spcomponents::psu;
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings;
|
||||||
|
@ -33,7 +33,7 @@
|
|||||||
#
|
#
|
||||||
####################################################################################
|
####################################################################################
|
||||||
|
|
||||||
package storage::emc::clariion::mode::spcomponents::sp;
|
package centreon::common::emc::navisphere::mode::spcomponents::sp;
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings;
|
||||||
|
@ -64,7 +64,7 @@ sub temperature {
|
|||||||
|
|
||||||
return if ($self->check_exclude(section => 'temperature', instance => $instance));
|
return if ($self->check_exclude(section => 'temperature', instance => $instance));
|
||||||
|
|
||||||
$self->{components}->{psu}->{total}++;
|
$self->{components}->{temperature}->{total}++;
|
||||||
$self->{output}->output_add(long_msg => sprintf("Temperature '%s' is %s degree centigrade.",
|
$self->{output}->output_add(long_msg => sprintf("Temperature '%s' is %s degree centigrade.",
|
||||||
$instance, $temperature));
|
$instance, $temperature));
|
||||||
my ($exit, $warn, $crit) = $self->get_severity_numeric(section => 'temperature', instance => $instance, value => $temperature);
|
my ($exit, $warn, $crit) = $self->get_severity_numeric(section => 'temperature', instance => $instance, value => $temperature);
|
||||||
|
@ -77,7 +77,7 @@ sub check {
|
|||||||
$self->{components}->{disk}->{total}++;
|
$self->{components}->{disk}->{total}++;
|
||||||
$self->{output}->output_add(long_msg => sprintf("Disk '%s' status is '%s'",
|
$self->{output}->output_add(long_msg => sprintf("Disk '%s' status is '%s'",
|
||||||
$instance, $disk_status));
|
$instance, $disk_status));
|
||||||
my $exit = $self->get_severity(section => 'fan', value => $disk_status);
|
my $exit = $self->get_severity(section => 'disk', value => $disk_status);
|
||||||
if (!$self->{output}->is_status(value => $exit, compare => 'ok', litteral => 1)) {
|
if (!$self->{output}->is_status(value => $exit, compare => 'ok', litteral => 1)) {
|
||||||
$self->{output}->output_add(severity => $exit,
|
$self->{output}->output_add(severity => $exit,
|
||||||
short_msg => sprintf("Disk '%s' status is '%s'", $instance, $disk_status));
|
short_msg => sprintf("Disk '%s' status is '%s'", $instance, $disk_status));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user