This commit is contained in:
Kevin Duret 2014-12-08 09:32:23 +01:00
commit 1e6e426c19
4 changed files with 15 additions and 14 deletions

View File

@ -33,7 +33,7 @@
#
####################################################################################
package centreon::common::dell::mode::globalstatus;
package centreon::common::dell::powerconnect3000::mode::globalstatus;
use base qw(centreon::plugins::mode);
@ -110,7 +110,7 @@ __END__
=head1 MODE
Check the overall status of generic Dell.
Check the overall status of Dell Powerconnect 3000.
=over 8

View File

@ -101,6 +101,7 @@ sub run {
$self->{output}->perfdata_add(label => "used",
value => $memory_used,
unit => 'B',
warning => $self->{perfdata}->get_perfdata_for_output(label => 'warning', total => $memory_available, cast_int => 1),
critical => $self->{perfdata}->get_perfdata_for_output(label => 'critical', total => $memory_available, cast_int => 1),
min => 0, max => $memory_available);

View File

@ -47,12 +47,12 @@ sub new {
$self->{version} = '1.0';
%{$self->{modes}} = (
'global-status' => 'centreon::common::dell::mode::globalstatus',
'environment' => 'centreon::common::fastpath::mode::environment',
'memory' => 'centreon::common::fastpath::mode::memory',
'cpu' => 'centreon::common::fastpath::mode::cpu',
'traffic' => 'snmp_standard::mode::traffic',
'list-interfaces' => 'snmp_standard::mode::listinterfaces',
'global-status' => 'centreon::common::dell::powerconnect3000::mode::globalstatus',
'environment' => 'centreon::common::fastpath::mode::environment',
'memory' => 'centreon::common::fastpath::mode::memory',
'cpu' => 'centreon::common::fastpath::mode::cpu',
'traffic' => 'snmp_standard::mode::traffic',
'list-interfaces' => 'snmp_standard::mode::listinterfaces',
);
return $self;

View File

@ -47,12 +47,12 @@ sub new {
$self->{version} = '1.0';
%{$self->{modes}} = (
'global-status' => 'centreon::common::dell::mode::globalstatus',
'environment' => 'centreon::common::fastpath::mode::environment',
'memory' => 'centreon::common::fastpath::mode::memory',
'cpu' => 'centreon::common::fastpath::mode::cpu',
'traffic' => 'snmp_standard::mode::traffic',
'list-interfaces' => 'snmp_standard::mode::listinterfaces',
'global-status' => 'centreon::common::dell::powerconnect3000::mode::globalstatus',
'environment' => 'centreon::common::fastpath::mode::environment',
'memory' => 'centreon::common::fastpath::mode::memory',
'cpu' => 'centreon::common::fastpath::mode::cpu',
'traffic' => 'snmp_standard::mode::traffic',
'list-interfaces' => 'snmp_standard::mode::listinterfaces',
);
return $self;