(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;
|
use warnings;
|
||||||
|
|
||||||
my %map_status = (
|
my %map_status = (
|
||||||
1 => 'active',
|
0 => 'Fail',
|
||||||
2 => 'inactive',
|
1 => 'Good',
|
||||||
|
2 => 'Not installed',
|
||||||
);
|
);
|
||||||
|
|
||||||
my $mapping = {
|
my $mapping = {
|
||||||
|
|
|
@ -34,7 +34,8 @@ sub set_system {
|
||||||
|
|
||||||
$self->{thresholds} = {
|
$self->{thresholds} = {
|
||||||
fan => [
|
fan => [
|
||||||
['active', 'OK'],
|
['Good', 'OK'],
|
||||||
|
['Not installed', 'OK'],
|
||||||
['.*', 'CRITICAL'],
|
['.*', 'CRITICAL'],
|
||||||
],
|
],
|
||||||
module => [
|
module => [
|
||||||
|
|
Loading…
Reference in New Issue