Merge pull request #2103 from UrBnW/idrac-hwth
fix(idrac) Hardware thresholds
This commit is contained in:
commit
f39a8d71c2
|
@ -79,6 +79,7 @@ our @EXPORT_OK = qw(%map_probe_status %map_state %map_status %map_amperage_type
|
||||||
7 => 'failed',
|
7 => 'failed',
|
||||||
8 => 'non-raid',
|
8 => 'non-raid',
|
||||||
9 => 'removed',
|
9 => 'removed',
|
||||||
|
10 => 'readonly',
|
||||||
);
|
);
|
||||||
|
|
||||||
%map_vdisk_state = (
|
%map_vdisk_state = (
|
||||||
|
|
|
@ -69,6 +69,7 @@ sub set_system {
|
||||||
['failed', 'CRITICAL'],
|
['failed', 'CRITICAL'],
|
||||||
['non-raid', 'OK'],
|
['non-raid', 'OK'],
|
||||||
['removed', 'OK'],
|
['removed', 'OK'],
|
||||||
|
['readonly', 'WARNING'],
|
||||||
],
|
],
|
||||||
'pdisk.smartalert' => [
|
'pdisk.smartalert' => [
|
||||||
['off', 'OK'],
|
['off', 'OK'],
|
||||||
|
@ -88,7 +89,11 @@ sub set_system {
|
||||||
'slot', 'fru', 'storagectrl', 'storagebattery', 'pdisk', 'vdisk'];
|
'slot', 'fru', 'storagectrl', 'storagebattery', 'pdisk', 'vdisk'];
|
||||||
|
|
||||||
$self->{regexp_threshold_overload_check_section_option} =
|
$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 {
|
sub snmp_execute {
|
||||||
|
|
Loading…
Reference in New Issue