Skip to content

Commit

Permalink
(plugin) network::juniper::ssg::plugin fix fan status (#4665)
Browse files Browse the repository at this point in the history
  • Loading branch information
s-duret authored Oct 2, 2023
1 parent 0694fcd commit 848295f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@ use strict;
use warnings;

my %map_status = (
1 => 'active',
2 => 'inactive',
0 => 'Fail',
1 => 'Good',
2 => 'Not installed',
);

my $mapping = {
Expand Down
3 changes: 2 additions & 1 deletion src/network/juniper/common/screenos/snmp/mode/hardware.pm
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ sub set_system {

$self->{thresholds} = {
fan => [
['active', 'OK'],
['Good', 'OK'],
['Not installed', 'OK'],
['.*', 'CRITICAL'],
],
module => [
Expand Down

0 comments on commit 848295f

Please sign in to comment.