Merge branch 'master' of http://git.centreon.com/centreon-plugins
This commit is contained in:
commit
1e6e426c19
|
@ -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
|
||||
|
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue