Debian Codegraph @

src/network/hp/vc/snmp/mode/components/resources.pm

raw
1 #
2 # Copyright 2024 Centreon (http://www.centreon.com/)
3 #
4 # Centreon is a full-fledged industry-strength solution that meets
5 # the needs in IT infrastructure and application monitoring for
6 # service performance.
7 #
8 # Licensed under the Apache License, Version 2.0 (the "License");
9 # you may not use this file except in compliance with the License.
10 # You may obtain a copy of the License at
11 #
12 # http://www.apache.org/licenses/LICENSE-2.0
13 #
14 # Unless required by applicable law or agreed to in writing, software
15 # distributed under the License is distributed on an "AS IS" BASIS,
16 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 # See the License for the specific language governing permissions and
18 # limitations under the License.
19 #
20
21 package network::hp::vc::snmp::mode::components::resources;
22
23 use strict;
24 use warnings;
25 use Exporter;
26
27 our $map_managed_status;
28 our $map_reason_code;
29 our $map_moduleport_loop_status;
30 our $map_moduleport_protection_status;
31
32 our @ISA = qw(Exporter);
33 our @EXPORT_OK = qw($map_managed_status $map_reason_code $map_moduleport_loop_status $map_moduleport_protection_status);
34
35 $map_managed_status = {
36 1 => 'unknown',
37 2 => 'normal',
38 3 => 'warning',
39 4 => 'minor',
40 5 => 'major',
41 6 => 'critical',
42 7 => 'disabled',
43 8 => 'info',
44 };
45
46 $map_reason_code = {
47 100 => 'vcNetworkOk',
48 101 => 'vcNetworkUnknown',
49 102 => 'vcNetworkDisabled',
50 104 => 'vcNetworkAbnormal',
51 105 => 'vcNetworkFailed',
52 106 => 'vcNetworkDegraded',
53 109 => 'vcNetworkNoPortsAssignedToPrivateNetwork',
54 200 => 'vcFabricOk',
55 202 => 'vcFabricNoPortsConfigured',
56 203 => 'vcFabricSomePortsAbnormal',
57 204 => 'vcFabricAllPortsAbnormal',
58 205 => 'vcFabricWwnMismatch',
59 206 => 'vcFabricUnknown',
60 300 => 'vcProfileOk',
61 301 => 'vcProfileServerAbnormal',
62 304 => 'vcProfileAllConnectionsFailed',
63 309 => 'vcProfileSomeConnectionsUnmapped',
64 310 => 'vcProfileAllConnectionsAbnormal',
65 311 => 'vcProfileSomeConnectionsAbnormal',
66 312 => 'vcProfileUEFIBootmodeIncompatibleWithServer',
67 313 => 'vcProfileUnknown',
68 400 => 'vcEnetmoduleOk',
69 401 => 'vcEnetmoduleEnclosureDown',
70 402 => 'vcEnetmoduleModuleMissing',
71 404 => 'vcEnetmodulePortprotect',
72 405 => 'vcEnetmoduleIncompatible',
73 406 => 'vcEnetmoduleHwDegraded',
74 407 => 'vcEnetmoduleUnknown',
75 408 => 'vcFcmoduleOk',
76 409 => 'vcFcmoduleEnclosureDown',
77 410 => 'vcFcmoduleModuleMissing',
78 412 => 'vcFcmoduleHwDegraded',
79 413 => 'vcFcmoduleIncompatible',
80 414 => 'vcFcmoduleUnknown',
81 500 => 'vcPhysicalServerOk',
82 501 => 'vcPhysicalServerEnclosureDown',
83 502 => 'vcPhysicalServerFailed',
84 503 => 'vcPhysicalServerDegraded',
85 504 => 'vcPhysicalServerUnknown',
86 600 => 'vcEnclosureOk',
87 601 => 'vcEnclosureAllEnetModulesFailed',
88 602 => 'vcEnclosureSomeEnetModulesAbnormal',
89 603 => 'vcEnclosureSomeModulesOrServersIncompatible',
90 604 => 'vcEnclosureSomeFcModulesAbnormal',
91 605 => 'vcEnclosureSomeServersAbnormal',
92 606 => 'vcEnclosureUnknown',
93 700 => 'vcDomainOk',
94 701 => 'vcDomainAbnormalEnclosuresAndProfiles',
95 702 => 'vcDomainSomeEnclosuresAbnormal',
96 703 => 'vcDomainUnmappedProfileConnections',
97 706 => 'vcDomainStackingFailed',
98 707 => 'vcDomainStackingNotRedundant',
99 709 => 'vcDomainSomeProfilesAbnormal',
100 712 => 'vcDomainUnknown',
101 713 => 'vcDomainOverProvisioned',
102 801 => 'vcDomainSflowIndirectlyDisabled',
103 802 => 'vcDomainSflowFailed',
104 803 => 'vcDomainSflowDegraded',
105 901 => 'vcDomainPortMonitorIndirectlyDisabled',
106 };
107
108 $map_moduleport_protection_status = {
109 1 => 'ok',
110 2 => 'pause-flood-detected',
111 3 => 'in-pause-condition',
112 };
113
114 $map_moduleport_loop_status = {
115 1 => 'ok',
116 2 => 'loop-dectected',
117 };
118
119 1;