fix order cisco environment mode

This commit is contained in:
garnier-quentin 2021-01-27 11:01:37 +01:00
parent 26c46c2649
commit 77880ea99e
1 changed files with 19 additions and 19 deletions

View File

@ -35,29 +35,29 @@ sub set_system {
$self->{thresholds} = { $self->{thresholds} = {
fan => [ fan => [
['unknown', 'UNKNOWN'],
['down', 'CRITICAL'],
['up', 'OK'],
['normal', 'OK'], ['normal', 'OK'],
['warning', 'WARNING'], ['warning', 'WARNING'],
['critical', 'CRITICAL'], ['critical', 'CRITICAL'],
['shutdown', 'CRITICAL'], ['shutdown', 'CRITICAL'],
['not present', 'OK'], ['not present', 'OK'],
['not functioning', 'WARNING'], ['not functioning', 'WARNING'],
['unknown', 'UNKNOWN'],
['down', 'CRITICAL'],
['up', 'OK']
], ],
psu => [ psu => [
['normal', 'OK'],
['warning', 'WARNING'],
['critical', 'CRITICAL'],
['shutdown', 'CRITICAL'],
['not present', 'OK'],
['not functioning', 'WARNING'],
['^off*', 'WARNING'], ['^off*', 'WARNING'],
['failed', 'CRITICAL'], ['failed', 'CRITICAL'],
['onButFanFail|onButInlinePowerFail', 'WARNING'], ['onButFanFail|onButInlinePowerFail', 'WARNING'],
['on', 'OK'], ['on', 'OK']
['normal', 'OK'],
['warning', 'WARNING'],
['critical', 'CRITICAL'],
['shutdown', 'CRITICAL'],
['not present', 'OK'],
['not functioning', 'WARNING'],
], ],
temperature => [ temperature => [
['normal', 'OK'], ['normal', 'OK'],
@ -65,7 +65,7 @@ sub set_system {
['critical', 'CRITICAL'], ['critical', 'CRITICAL'],
['shutdown', 'CRITICAL'], ['shutdown', 'CRITICAL'],
['not present', 'OK'], ['not present', 'OK'],
['not functioning', 'WARNING'], ['not functioning', 'WARNING']
], ],
voltage => [ voltage => [
['normal', 'OK'], ['normal', 'OK'],
@ -73,24 +73,24 @@ sub set_system {
['critical', 'CRITICAL'], ['critical', 'CRITICAL'],
['shutdown', 'CRITICAL'], ['shutdown', 'CRITICAL'],
['not present', 'OK'], ['not present', 'OK'],
['not functioning', 'WARNING'], ['not functioning', 'WARNING']
], ],
module => [ module => [
['unknown|mdr', 'UNKNOWN'], ['unknown|mdr', 'UNKNOWN'],
['disabled|okButDiagFailed|missing|mismatchWithParent|mismatchConfig|dormant|outOfServiceAdmin|outOfServiceEnvTemp|powerCycled|okButPowerOverWarning|okButAuthFailed|fwMismatchFound|fwDownloadFailure', 'WARNING'], ['disabled|okButDiagFailed|missing|mismatchWithParent|mismatchConfig|dormant|outOfServiceAdmin|outOfServiceEnvTemp|powerCycled|okButPowerOverWarning|okButAuthFailed|fwMismatchFound|fwDownloadFailure', 'WARNING'],
['failed|diagFailed|poweredDown|powerDenied|okButPowerOverCritical', 'CRITICAL'], ['failed|diagFailed|poweredDown|powerDenied|okButPowerOverCritical', 'CRITICAL'],
['boot|selfTest|poweredUp|syncInProgress|upgrading|fwDownloadSuccess|ok', 'OK'], ['boot|selfTest|poweredUp|syncInProgress|upgrading|fwDownloadSuccess|ok', 'OK']
], ],
physical => [ physical => [
['other', 'UNKNOWN'], ['other', 'UNKNOWN'],
['incompatible|unsupported', 'CRITICAL'], ['incompatible|unsupported', 'CRITICAL'],
['supported', 'OK'], ['supported', 'OK']
], ],
sensor => [ sensor => [
['ok', 'OK'], ['ok', 'OK'],
['unavailable', 'OK'], ['unavailable', 'OK'],
['nonoperational', 'CRITICAL'], ['nonoperational', 'CRITICAL']
], ]
}; };
$self->{components_path} = 'centreon::common::cisco::standard::snmp::mode::components'; $self->{components_path} = 'centreon::common::cisco::standard::snmp::mode::components';