fix(snmp): wrong call parameters (#3306)
This commit is contained in:
parent
7e84d0d26a
commit
9f4dca51d8
|
@ -37,7 +37,7 @@ my $oid_boxServicesFansEntry = '.1.3.6.1.4.1.4413.1.1.43.1.6.1';
|
|||
sub load {
|
||||
my ($self) = @_;
|
||||
|
||||
push @{$self->{request}}, { oid => $oid_boxServicesFansEntry, begin => $mapping->{boxServicesFanItemState}->{oid}, end => $mapping->{boxServicesFanSpeed}->{oid} };
|
||||
push @{$self->{request}}, { oid => $oid_boxServicesFansEntry, start => $mapping->{boxServicesFanItemState}->{oid}, end => $mapping->{boxServicesFanSpeed}->{oid} };
|
||||
}
|
||||
|
||||
sub check {
|
||||
|
|
|
@ -37,7 +37,7 @@ my $oid_boxServicesTempSensorsEntry = '.1.3.6.1.4.1.4413.1.1.43.1.8.1';
|
|||
sub load {
|
||||
my ($self) = @_;
|
||||
|
||||
push @{$self->{request}}, { oid => $oid_boxServicesTempSensorsEntry, begin => $mapping->{boxServicesTempSensorState}->{oid}, end => $mapping->{boxServicesTempSensorTemperature}->{oid} };
|
||||
push @{$self->{request}}, { oid => $oid_boxServicesTempSensorsEntry, start => $mapping->{boxServicesTempSensorState}->{oid}, end => $mapping->{boxServicesTempSensorTemperature}->{oid} };
|
||||
}
|
||||
|
||||
sub check {
|
||||
|
|
|
@ -42,7 +42,7 @@ my $oid_boxServicesFansEntry = '.1.3.6.1.4.1.674.10895.5000.2.6132.1.1.43.1.6.1'
|
|||
sub load {
|
||||
my ($self) = @_;
|
||||
|
||||
push @{$self->{request}}, { oid => $oid_boxServicesFansEntry, begin => $mapping->{boxServicesFanItemState}->{oid} };
|
||||
push @{$self->{request}}, { oid => $oid_boxServicesFansEntry, start => $mapping->{boxServicesFanItemState}->{oid} };
|
||||
}
|
||||
|
||||
sub check {
|
||||
|
|
|
@ -41,7 +41,7 @@ my $oid_boxServicesPowSuppliesEntry = '.1.3.6.1.4.1.674.10895.5000.2.6132.1.1.43
|
|||
sub load {
|
||||
my ($self) = @_;
|
||||
|
||||
push @{$self->{request}}, { oid => $oid_boxServicesPowSuppliesEntry, begin => $mapping->{boxServicesPowSupplyItemState}->{oid} };
|
||||
push @{$self->{request}}, { oid => $oid_boxServicesPowSuppliesEntry, start => $mapping->{boxServicesPowSupplyItemState}->{oid} };
|
||||
}
|
||||
|
||||
sub check {
|
||||
|
|
|
@ -66,7 +66,7 @@ sub manage_selection {
|
|||
my $oid_advaInventoryEntry = '.1.3.6.1.4.1.2544.1.11.7.10.1.1';
|
||||
my $snmp_result = $self->{snmp}->get_table(
|
||||
oid => $oid_advaInventoryEntry,
|
||||
begin => $mapping->{advaInventoryAidString}->{oid},
|
||||
start => $mapping->{advaInventoryAidString}->{oid},
|
||||
end => $mapping->{advaInventoryUnitName}->{oid}
|
||||
);
|
||||
|
||||
|
|
|
@ -33,7 +33,7 @@ my $oid_scCacheEntry = '.1.3.6.1.4.1.674.11000.2000.500.1.2.28.1';
|
|||
sub load {
|
||||
my ($self) = @_;
|
||||
|
||||
push @{$self->{request}}, { oid => $oid_scCacheEntry, begin => $mapping->{scCacheStatus}->{oid}, end => $mapping->{scCacheName}->{oid} };
|
||||
push @{$self->{request}}, { oid => $oid_scCacheEntry, start => $mapping->{scCacheStatus}->{oid}, end => $mapping->{scCacheName}->{oid} };
|
||||
}
|
||||
|
||||
sub check {
|
||||
|
@ -63,4 +63,4 @@ sub check {
|
|||
}
|
||||
}
|
||||
|
||||
1;
|
||||
1;
|
||||
|
|
|
@ -33,7 +33,7 @@ my $oid_scCtlrEntry = '.1.3.6.1.4.1.674.11000.2000.500.1.2.13.1';
|
|||
sub load {
|
||||
my ($self) = @_;
|
||||
|
||||
push @{$self->{request}}, { oid => $oid_scCtlrEntry, begin => $mapping->{scCtlrStatus}->{oid}, end => $mapping->{scCtlrName}->{oid} };
|
||||
push @{$self->{request}}, { oid => $oid_scCtlrEntry, start => $mapping->{scCtlrStatus}->{oid}, end => $mapping->{scCtlrName}->{oid} };
|
||||
}
|
||||
|
||||
sub check {
|
||||
|
@ -63,4 +63,4 @@ sub check {
|
|||
}
|
||||
}
|
||||
|
||||
1;
|
||||
1;
|
||||
|
|
|
@ -33,7 +33,7 @@ my $oid_scCtlrPowerEntry = '.1.3.6.1.4.1.674.11000.2000.500.1.2.17.1';
|
|||
sub load {
|
||||
my ($self) = @_;
|
||||
|
||||
push @{$self->{request}}, { oid => $oid_scCtlrPowerEntry, begin => $mapping->{scCtlrPowerStatus}->{oid}, end => $mapping->{scCtlrPowerName}->{oid} };
|
||||
push @{$self->{request}}, { oid => $oid_scCtlrPowerEntry, start => $mapping->{scCtlrPowerStatus}->{oid}, end => $mapping->{scCtlrPowerName}->{oid} };
|
||||
}
|
||||
|
||||
sub check {
|
||||
|
@ -63,4 +63,4 @@ sub check {
|
|||
}
|
||||
}
|
||||
|
||||
1;
|
||||
1;
|
||||
|
|
|
@ -33,7 +33,7 @@ my $oid_scDiskEntry = '.1.3.6.1.4.1.674.11000.2000.500.1.2.14.1';
|
|||
sub load {
|
||||
my ($self) = @_;
|
||||
|
||||
push @{$self->{request}}, { oid => $oid_scDiskEntry, begin => $mapping->{scDiskStatus}->{oid}, end => $mapping->{scDiskNamePosition}->{oid} };
|
||||
push @{$self->{request}}, { oid => $oid_scDiskEntry, start => $mapping->{scDiskStatus}->{oid}, end => $mapping->{scDiskNamePosition}->{oid} };
|
||||
}
|
||||
|
||||
sub check {
|
||||
|
@ -63,4 +63,4 @@ sub check {
|
|||
}
|
||||
}
|
||||
|
||||
1;
|
||||
1;
|
||||
|
|
|
@ -33,7 +33,7 @@ my $oid_scEnclEntry = '.1.3.6.1.4.1.674.11000.2000.500.1.2.15.1';
|
|||
sub load {
|
||||
my ($self) = @_;
|
||||
|
||||
push @{$self->{request}}, { oid => $oid_scEnclEntry, begin => $mapping->{scEnclStatus}->{oid}, end => $mapping->{scEnclName}->{oid} };
|
||||
push @{$self->{request}}, { oid => $oid_scEnclEntry, start => $mapping->{scEnclStatus}->{oid}, end => $mapping->{scEnclName}->{oid} };
|
||||
}
|
||||
|
||||
sub check {
|
||||
|
@ -63,4 +63,4 @@ sub check {
|
|||
}
|
||||
}
|
||||
|
||||
1;
|
||||
1;
|
||||
|
|
|
@ -33,7 +33,7 @@ my $oid_scEnclFanEntry = '.1.3.6.1.4.1.674.11000.2000.500.1.2.20.1';
|
|||
sub load {
|
||||
my ($self) = @_;
|
||||
|
||||
push @{$self->{request}}, { oid => $oid_scEnclFanEntry, begin => $mapping->{scEnclFanStatus}->{oid}, end => $mapping->{scEnclFanLocation}->{oid} };
|
||||
push @{$self->{request}}, { oid => $oid_scEnclFanEntry, start => $mapping->{scEnclFanStatus}->{oid}, end => $mapping->{scEnclFanLocation}->{oid} };
|
||||
}
|
||||
|
||||
sub check {
|
||||
|
@ -63,4 +63,4 @@ sub check {
|
|||
}
|
||||
}
|
||||
|
||||
1;
|
||||
1;
|
||||
|
|
|
@ -33,7 +33,7 @@ my $oid_scEnclIoModEntry = '.1.3.6.1.4.1.674.11000.2000.500.1.2.22.1';
|
|||
sub load {
|
||||
my ($self) = @_;
|
||||
|
||||
push @{$self->{request}}, { oid => $oid_scEnclIoModEntry, begin => $mapping->{scEnclIoModStatus}->{oid}, end => $mapping->{scEnclIoModPosition}->{oid} };
|
||||
push @{$self->{request}}, { oid => $oid_scEnclIoModEntry, start => $mapping->{scEnclIoModStatus}->{oid}, end => $mapping->{scEnclIoModPosition}->{oid} };
|
||||
}
|
||||
|
||||
sub check {
|
||||
|
@ -63,4 +63,4 @@ sub check {
|
|||
}
|
||||
}
|
||||
|
||||
1;
|
||||
1;
|
||||
|
|
|
@ -33,7 +33,7 @@ my $oid_scEnclPowerEntry = '.1.3.6.1.4.1.674.11000.2000.500.1.2.21.1';
|
|||
sub load {
|
||||
my ($self) = @_;
|
||||
|
||||
push @{$self->{request}}, { oid => $oid_scEnclPowerEntry, begin => $mapping->{scEnclPowerStatus}->{oid}, end => $mapping->{scEnclPowerPosition}->{oid} };
|
||||
push @{$self->{request}}, { oid => $oid_scEnclPowerEntry, start => $mapping->{scEnclPowerStatus}->{oid}, end => $mapping->{scEnclPowerPosition}->{oid} };
|
||||
}
|
||||
|
||||
sub check {
|
||||
|
@ -63,4 +63,4 @@ sub check {
|
|||
}
|
||||
}
|
||||
|
||||
1;
|
||||
1;
|
||||
|
|
|
@ -33,7 +33,7 @@ my $oid_scScEntry = '.1.3.6.1.4.1.674.11000.2000.500.1.2.29.1';
|
|||
sub load {
|
||||
my ($self) = @_;
|
||||
|
||||
push @{$self->{request}}, { oid => $oid_scScEntry, begin => $mapping->{scScStatus}->{oid}, end => $mapping->{scScName}->{oid} };
|
||||
push @{$self->{request}}, { oid => $oid_scScEntry, start => $mapping->{scScStatus}->{oid}, end => $mapping->{scScName}->{oid} };
|
||||
}
|
||||
|
||||
sub check {
|
||||
|
@ -63,4 +63,4 @@ sub check {
|
|||
}
|
||||
}
|
||||
|
||||
1;
|
||||
1;
|
||||
|
|
|
@ -33,7 +33,7 @@ my $oid_scServerEntry = '.1.3.6.1.4.1.674.11000.2000.500.1.2.27.1';
|
|||
sub load {
|
||||
my ($self) = @_;
|
||||
|
||||
push @{$self->{request}}, { oid => $oid_scServerEntry, begin => $mapping->{scServerStatus}->{oid}, end => $mapping->{scServerName}->{oid} };
|
||||
push @{$self->{request}}, { oid => $oid_scServerEntry, start => $mapping->{scServerStatus}->{oid}, end => $mapping->{scServerName}->{oid} };
|
||||
}
|
||||
|
||||
sub check {
|
||||
|
@ -63,4 +63,4 @@ sub check {
|
|||
}
|
||||
}
|
||||
|
||||
1;
|
||||
1;
|
||||
|
|
|
@ -33,7 +33,7 @@ my $oid_scVolumeEntry = '.1.3.6.1.4.1.674.11000.2000.500.1.2.26.1';
|
|||
sub load {
|
||||
my ($self) = @_;
|
||||
|
||||
push @{$self->{request}}, { oid => $oid_scVolumeEntry, begin => $mapping->{scVolumeStatus}->{oid}, end => $mapping->{scVolumeName}->{oid} };
|
||||
push @{$self->{request}}, { oid => $oid_scVolumeEntry, start => $mapping->{scVolumeStatus}->{oid}, end => $mapping->{scVolumeName}->{oid} };
|
||||
}
|
||||
|
||||
sub check {
|
||||
|
@ -63,4 +63,4 @@ sub check {
|
|||
}
|
||||
}
|
||||
|
||||
1;
|
||||
1;
|
||||
|
|
|
@ -55,7 +55,7 @@ my $oid_enclEntry = '.1.3.6.1.4.1.789.1.21.1.2.1';
|
|||
sub load {
|
||||
my ($self) = @_;
|
||||
|
||||
push @{$self->{request}}, { oid => $oid_enclEntry, begin => $mapping->{enclTempSensorsPresent}->{oid}, end => $mapping->{enclTempSensorsUnderTempWarnThr}->{oid} };
|
||||
push @{$self->{request}}, { oid => $oid_enclEntry, start => $mapping->{enclTempSensorsPresent}->{oid}, end => $mapping->{enclTempSensorsUnderTempWarnThr}->{oid} };
|
||||
}
|
||||
|
||||
sub check {
|
||||
|
|
|
@ -55,7 +55,7 @@ my $oid_enclTable = '.1.3.6.1.4.1.789.1.21.1.2';
|
|||
sub load {
|
||||
my ($self) = @_;
|
||||
|
||||
push @{$self->{request}}, { oid => $oid_enclTable, begin => $mapping->{enclVoltSensorsPresent}->{oid}, end => $mapping->{enclVoltSensorsUnderVoltWarnThr}->{oid} };
|
||||
push @{$self->{request}}, { oid => $oid_enclTable, start => $mapping->{enclVoltSensorsPresent}->{oid}, end => $mapping->{enclVoltSensorsUnderVoltWarnThr}->{oid} };
|
||||
}
|
||||
|
||||
sub check {
|
||||
|
|
Loading…
Reference in New Issue