mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-27 15:44:21 +02:00
fix bluecoat cpu snmp
This commit is contained in:
parent
2714037f3f
commit
fcf4bbd0b4
@ -97,13 +97,7 @@ sub manage_selection {
|
|||||||
(defined($self->{option_results}->{filter_counters}) ? md5_hex($self->{option_results}->{filter_counters}) : md5_hex('all'));
|
(defined($self->{option_results}->{filter_counters}) ? md5_hex($self->{option_results}->{filter_counters}) : md5_hex('all'));
|
||||||
|
|
||||||
$self->{cpu} = {};
|
$self->{cpu} = {};
|
||||||
# my $snmp_result = $options{snmp}->get_table(oid => $oid_table, start => $mapping->{sgProxyCpuCoreBusyTime}, end => $mapping->{sgProxyCpuCoreIdleTime}, nothing_quit => 1);
|
my $snmp_result = $options{snmp}->get_table(oid => $oid_table, start => $mapping->{sgProxyCpuCoreBusyTime}, end => $mapping->{sgProxyCpuCoreIdleTime}, nothing_quit => 1);
|
||||||
my $snmp_result = {
|
|
||||||
'.1.3.6.1.4.1.3417.2.11.2.4.1.3.15' => 500,
|
|
||||||
'.1.3.6.1.4.1.3417.2.11.2.4.1.4.15' => 500,
|
|
||||||
'.1.3.6.1.4.1.3417.2.11.2.4.1.3.16' => 500,
|
|
||||||
'.1.3.6.1.4.1.3417.2.11.2.4.1.4.16' => 500,
|
|
||||||
};
|
|
||||||
my $i = 0;
|
my $i = 0;
|
||||||
foreach my $oid ($options{snmp}->oid_lex_sort(keys %{$snmp_result})) {
|
foreach my $oid ($options{snmp}->oid_lex_sort(keys %{$snmp_result})) {
|
||||||
next if ($oid !~ /^$mapping->{sgProxyCpuCoreBusyTime}->{oid}\.(.*)$/);
|
next if ($oid !~ /^$mapping->{sgProxyCpuCoreBusyTime}->{oid}\.(.*)$/);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user