(plugin) network::juniper::ssg::plugin fix fan status (#4665)

This commit is contained in:
Stéphane Duret 2023-10-02 11:59:44 +02:00 committed by GitHub
parent 0694fcd10d
commit 848295f0c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 3 deletions

View File

@ -24,8 +24,9 @@ use strict;
use warnings;
my %map_status = (
1 => 'active',
2 => 'inactive',
0 => 'Fail',
1 => 'Good',
2 => 'Not installed',
);
my $mapping = {

View File

@ -34,7 +34,8 @@ sub set_system {
$self->{thresholds} = {
fan => [
['active', 'OK'],
['Good', 'OK'],
['Not installed', 'OK'],
['.*', 'CRITICAL'],
],
module => [