mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-09-24 18:28:25 +02:00
do the GalaxyVS temp check only in case of this model
This commit is contained in:
parent
e0aab41868
commit
564238a968
@ -394,12 +394,12 @@ sub check {
|
|||||||
my $oid_upsBasicIdentModel = '.1.3.6.1.4.1.318.1.1.1.1.1.1.0';
|
my $oid_upsBasicIdentModel = '.1.3.6.1.4.1.318.1.1.1.1.1.1.0';
|
||||||
my $result = $self->{snmp}->get_leef(oids => [ $oid_upsBasicIdentModel ], nothing_quit => 1);
|
my $result = $self->{snmp}->get_leef(oids => [ $oid_upsBasicIdentModel ], nothing_quit => 1);
|
||||||
|
|
||||||
|
check_uoi($self);
|
||||||
|
check_iem($self);
|
||||||
|
|
||||||
# if the model is an Galaxy VS we use other MIB for the temperature sensor
|
# if the model is an Galaxy VS we use other MIB for the temperature sensor
|
||||||
if (defined($result->{$oid_upsBasicIdentModel}) && $result->{$oid_upsBasicIdentModel} =~ /Galaxy VS/) {
|
if (defined($result->{$oid_upsBasicIdentModel}) && $result->{$oid_upsBasicIdentModel} =~ /Galaxy VS/) {
|
||||||
check_galaxy_vs_temp($self);
|
check_galaxy_vs_temp($self);
|
||||||
} else {
|
|
||||||
check_uoi($self);
|
|
||||||
check_iem($self);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user