mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-27 07:34:35 +02:00
Fix #1480
This commit is contained in:
parent
884c16ee95
commit
f0a3790cad
@ -139,6 +139,8 @@ my $oid_ciscoMemoryPoolEntry = '.1.3.6.1.4.1.9.9.48.1.1.1';
|
|||||||
sub check_memory_pool {
|
sub check_memory_pool {
|
||||||
my ($self, %options) = @_;
|
my ($self, %options) = @_;
|
||||||
|
|
||||||
|
return if ($self->{checked_memory} == 1);
|
||||||
|
|
||||||
my $snmp_result = $self->{snmp}->get_table(
|
my $snmp_result = $self->{snmp}->get_table(
|
||||||
oid => $oid_ciscoMemoryPoolEntry,
|
oid => $oid_ciscoMemoryPoolEntry,
|
||||||
start => $mapping_memory_pool->{ciscoMemoryPoolName}->{oid}, end => $mapping_memory_pool->{ciscoMemoryPoolFree}->{oid}
|
start => $mapping_memory_pool->{ciscoMemoryPoolName}->{oid}, end => $mapping_memory_pool->{ciscoMemoryPoolFree}->{oid}
|
||||||
@ -254,9 +256,9 @@ sub manage_selection {
|
|||||||
$self->{checked_memory} = 0;
|
$self->{checked_memory} = 0;
|
||||||
$self->{memory} = {};
|
$self->{memory} = {};
|
||||||
|
|
||||||
|
$self->check_memory_enhanced_pool();
|
||||||
$self->check_memory_pool();
|
$self->check_memory_pool();
|
||||||
$self->check_memory_system_ext();
|
$self->check_memory_system_ext();
|
||||||
$self->check_memory_enhanced_pool();
|
|
||||||
|
|
||||||
if ($self->{checked_memory} == 0) {
|
if ($self->{checked_memory} == 0) {
|
||||||
$self->{output}->add_option_msg(short_msg => "Cannot find memory informations");
|
$self->{output}->add_option_msg(short_msg => "Cannot find memory informations");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user