Debian Codegraph @

src/network/nortel/standard/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::nortel::standard::snmp::mode::components::resources;
22
23 use strict;
24 use warnings;
25 use Exporter;
26
27 our ($map_comp_status, $map_fan_status, $map_psu_status, $map_card_status, $map_led_status);
28
29 our @ISA = qw(Exporter);
30 our @EXPORT_OK = qw($map_comp_status $map_fan_status $map_psu_status $map_card_status $map_led_status);
31
32 $map_fan_status = {
33 1 => 'unknown',
34 2 => 'up',
35 3 => 'down',
36 4 => 'notpresent'
37 };
38
39 $map_psu_status = {
40 1 => 'unknown',
41 2 => 'empty',
42 3 => 'up',
43 4 => 'down'
44 };
45
46 $map_card_status = {
47 1 => 'up',
48 2 => 'down',
49 3 => 'testing',
50 4 => 'unknown',
51 5 => 'dormant',
52 6 => 'upMaster',
53 7 => 'upDormant',
54 8 => 'upWarmstandby'
55 };
56
57 $map_comp_status = {
58 1 => 'other',
59 2 => 'notAvail',
60 3 => 'removed',
61 4 => 'disabled',
62 5 => 'normal',
63 6 => 'resetInProg',
64 7 => 'testing',
65 8 => 'warning',
66 9 => 'nonFatalErr',
67 10 => 'fatalErr',
68 11 => 'notConfig',
69 12 => 'obsoleted'
70 };
71
72 $map_led_status = {
73 1 => 'unknown',
74 2 => 'greenSteady',
75 3 => 'greenBlinking',
76 4 => 'amberSteady',
77 5 => 'amberBlinking',
78 6 => 'greenamberBlinking',
79 7 => 'off'
80 };
81
82 1;