mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-31 01:24:35 +02:00
+ fix cpu 3com
This commit is contained in:
parent
1ceded94be
commit
af60854ad8
@ -187,7 +187,7 @@ sub manage_selection {
|
|||||||
my $results = $options{snmp}->get_table(oid => $oid_hwCpuEntry, nothing_quit => 1);
|
my $results = $options{snmp}->get_table(oid => $oid_hwCpuEntry, nothing_quit => 1);
|
||||||
$self->{cpu} = {};
|
$self->{cpu} = {};
|
||||||
foreach my $oid (keys %{$results}) {
|
foreach my $oid (keys %{$results}) {
|
||||||
next if ($oid !~ /^$mapping->{hwMemSize}->{oid}\.(.*)/);
|
next if ($oid !~ /^$mapping->{hwCpuCostRatePer5Min}->{oid}\.(.*)/);
|
||||||
my $instance = $1;
|
my $instance = $1;
|
||||||
my $result = $options{snmp}->map_instance(mapping => $mapping, results => $results, instance => $instance);
|
my $result = $options{snmp}->map_instance(mapping => $mapping, results => $results, instance => $instance);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user