Merge pull request #2103 from UrBnW/idrac-hwth

fix(idrac) Hardware thresholds
This commit is contained in:
qgarnier 2020-07-15 08:32:22 +02:00 committed by GitHub
commit f39a8d71c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View File

@ -79,6 +79,7 @@ our @EXPORT_OK = qw(%map_probe_status %map_state %map_status %map_amperage_type
7 => 'failed',
8 => 'non-raid',
9 => 'removed',
10 => 'readonly',
);
%map_vdisk_state = (

View File

@ -69,6 +69,7 @@ sub set_system {
['failed', 'CRITICAL'],
['non-raid', 'OK'],
['removed', 'OK'],
['readonly', 'WARNING'],
],
'pdisk.smartalert' => [
['off', 'OK'],
@ -88,7 +89,11 @@ sub set_system {
'slot', 'fru', 'storagectrl', 'storagebattery', 'pdisk', 'vdisk'];
$self->{regexp_threshold_overload_check_section_option} =
'^(?:' . join('|', @{$self->{components_module}}). ')\.(?:status|state)$';
'^(' .
'(psu|punit|temperature|voltage|amperage|systembattery|coolingunit|coolingdevice|processor|memory|pci|network|slot|fru|storagectrl|storagebattery|pdisk)\.status' .
'|(punit|temperature|voltage|amperage|systembattery|coolingunit|coolingdevice|processor|memory|pci|pdisk|vdisk)\.state' .
'|(pdisk)\.smartalert' .
')$';
}
sub snmp_execute {