enhance hardware checkpoint

This commit is contained in:
garnier-quentin 2020-06-18 15:10:31 +02:00
parent 5eb5a184f5
commit da974f37ab
2 changed files with 9 additions and 10 deletions

View File

@ -24,7 +24,7 @@ use strict;
use warnings; use warnings;
my $mapping = { my $mapping = {
powerSupplyStatus => { oid => '.1.3.6.1.4.1.2620.1.6.7.9.1.1.2' }, powerSupplyStatus => { oid => '.1.3.6.1.4.1.2620.1.6.7.9.1.1.2' }
}; };
my $oid_powerSupplyStatus = '.1.3.6.1.4.1.2620.1.6.7.9.1.1.2'; my $oid_powerSupplyStatus = '.1.3.6.1.4.1.2620.1.6.7.9.1.1.2';

View File

@ -36,24 +36,24 @@ sub set_system {
temperature => [ temperature => [
['true', 'CRITICAL'], ['true', 'CRITICAL'],
['reading error', 'CRITICAL'], ['reading error', 'CRITICAL'],
['false', 'OK'], ['false', 'OK']
], ],
voltage => [ voltage => [
['true', 'CRITICAL'], ['true', 'CRITICAL'],
['reading error', 'CRITICAL'], ['reading error', 'CRITICAL'],
['false', 'OK'], ['false', 'OK']
], ],
fan => [ fan => [
['true', 'CRITICAL'], ['true', 'CRITICAL'],
['reading error', 'CRITICAL'], ['reading error', 'CRITICAL'],
['false', 'OK'], ['false', 'OK']
], ],
psu => [ psu => [
['up', 'OK'], ['up', 'OK'],
['down', 'CRITICAL'], ['down', 'CRITICAL'],
['dummy', 'OK'], ['dummy', 'OK'],
['.*', 'UNKNOWN'], ['^present', 'OK']
], ],
raiddisk => [ raiddisk => [
['online', 'OK'], ['online', 'OK'],
['missing', 'OK'], ['missing', 'OK'],
@ -70,9 +70,8 @@ sub set_system {
['rebuild', 'WARNING'], ['rebuild', 'WARNING'],
['failed', 'CRITICAL'], ['failed', 'CRITICAL'],
['copyback', 'WARNING'], ['copyback', 'WARNING'],
['other_offline', 'WARNING'], ['other_offline', 'WARNING']
['.*', 'UNKNOWN'], ]
],
}; };
$self->{components_path} = 'network::checkpoint::snmp::mode::components'; $self->{components_path} = 'network::checkpoint::snmp::mode::components';