mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-25 22:55:15 +02:00
wip alcatel isam
This commit is contained in:
parent
79b71f7c35
commit
cdcec73b5f
@ -54,7 +54,7 @@ my $mapping = {
|
|||||||
};
|
};
|
||||||
my $oid_sapDescription = '.1.3.6.1.4.1.6527.3.1.2.4.3.2.1.5';
|
my $oid_sapDescription = '.1.3.6.1.4.1.6527.3.1.2.4.3.2.1.5';
|
||||||
my $oid_svcDescription = '.1.3.6.1.4.1.6527.3.1.2.4.2.2.1.6';
|
my $oid_svcDescription = '.1.3.6.1.4.1.6527.3.1.2.4.2.2.1.6';
|
||||||
my $oid_svcBaseInfoEntry = '.1.3.6.1.4.1.6527.3.1.2.4.2.2.1';
|
my $oid_sapBaseInfoEntry = '.1.3.6.1.4.1.6527.3.1.2.4.3.2.1';
|
||||||
|
|
||||||
sub manage_selection {
|
sub manage_selection {
|
||||||
my ($self, %options) = @_;
|
my ($self, %options) = @_;
|
||||||
@ -63,13 +63,13 @@ sub manage_selection {
|
|||||||
my $snmp_result = $self->{snmp}->get_multiple_table(oids => [
|
my $snmp_result = $self->{snmp}->get_multiple_table(oids => [
|
||||||
{ oid => $oid_sapDescription },
|
{ oid => $oid_sapDescription },
|
||||||
{ oid => $oid_svcDescription },
|
{ oid => $oid_svcDescription },
|
||||||
{ oid => $oid_svcBaseInfoEntry, begin => $mapping->{sapAdminStatus}->{oid}, end => $mapping->{sapOperStatus}->{oid} },
|
{ oid => $oid_sapBaseInfoEntry, start => $mapping->{sapAdminStatus}->{oid}, end => $mapping->{sapOperStatus}->{oid} },
|
||||||
], nothing_quit => 1);
|
], nothing_quit => 1);
|
||||||
foreach my $oid (keys %{$snmp_result->{$oid_sapDescription}}) {
|
foreach my $oid (keys %{$snmp_result->{$oid_sapDescription}}) {
|
||||||
next if ($oid !~ /^$oid_sapDescription\.(.*?)\.(.*?)\.(.*?)$/);
|
next if ($oid !~ /^$oid_sapDescription\.(.*?)\.(.*?)\.(.*?)$/);
|
||||||
my ($SvcId, $SapPortId, $SapEncapValue) = ($1, $2, $3);
|
my ($SvcId, $SapPortId, $SapEncapValue) = ($1, $2, $3);
|
||||||
|
|
||||||
my $result = $self->{snmp}->map_instance(mapping => $mapping, results => $snmp_result->{ $oid_svcBaseInfoEntry }, instance => $SvcId . '.' . $SapPortId . '.' . $SapEncapValue);
|
my $result = $self->{snmp}->map_instance(mapping => $mapping, results => $snmp_result->{ $oid_sapBaseInfoEntry }, instance => $SvcId . '.' . $SapPortId . '.' . $SapEncapValue);
|
||||||
$self->{sap}->{$SvcId . '.' . $SapPortId . '.' . $SapEncapValue} = {
|
$self->{sap}->{$SvcId . '.' . $SapPortId . '.' . $SapEncapValue} = {
|
||||||
SvcId => $SvcId,
|
SvcId => $SvcId,
|
||||||
SapPortId => $SapPortId,
|
SapPortId => $SapPortId,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user