Skip to content

Commit

Permalink
fix hirschmann psu wrong oid (#985)
Browse files Browse the repository at this point in the history
  • Loading branch information
cgagnaire authored and Simon Bomm committed May 14, 2018
1 parent f0b126b commit 9f6aa3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions network/hirschmann/standard/snmp/mode/components/psu.pm
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ my %map_psu_status = (

# In MIB 'hmpriv.mib'
my $mapping = {
hmPSState => { oid => '.1.3.6.1.4.1.2352.2.4.1.2.1.2', map => \%map_psu_status },
hmPSState => { oid => '.1.3.6.1.4.1.248.14.1.2.1.3', map => \%map_psu_status },
};

sub load {
Expand All @@ -55,7 +55,7 @@ sub check {

next if ($self->check_filter(section => 'psu', instance => $instance));
next if ($result->{hmPSState} =~ /notInstalled/i &&
$self->absent_problem(section => 'psu', instance => $instance));
$self->absent_problem(section => 'psu', instance => $instance));
$self->{components}->{psu}->{total}++;

$self->{output}->output_add(long_msg => sprintf("Power supply '%s' status is %s [instance: %s].",
Expand Down

0 comments on commit 9f6aa3e

Please sign in to comment.