(plugin) network::juniper::ssg::plugin fix fan status (#4665)
This commit is contained in:
parent
0694fcd10d
commit
848295f0c2
|
@ -24,8 +24,9 @@ use strict;
|
|||
use warnings;
|
||||
|
||||
my %map_status = (
|
||||
1 => 'active',
|
||||
2 => 'inactive',
|
||||
0 => 'Fail',
|
||||
1 => 'Good',
|
||||
2 => 'Not installed',
|
||||
);
|
||||
|
||||
my $mapping = {
|
||||
|
|
|
@ -34,7 +34,8 @@ sub set_system {
|
|||
|
||||
$self->{thresholds} = {
|
||||
fan => [
|
||||
['active', 'OK'],
|
||||
['Good', 'OK'],
|
||||
['Not installed', 'OK'],
|
||||
['.*', 'CRITICAL'],
|
||||
],
|
||||
module => [
|
||||
|
|
Loading…
Reference in New Issue