| 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 storage::huawei::oceanstor::snmp::mode::resources; |
| 22 |
|
| 23 |
use strict; |
| 24 |
use warnings; |
| 25 |
use Exporter; |
| 26 |
|
| 27 |
our $health_status; |
| 28 |
our $running_status; |
| 29 |
|
| 30 |
our @ISA = qw(Exporter); |
| 31 |
our @EXPORT_OK = qw($health_status $running_status); |
| 32 |
|
| 33 |
$health_status = { |
| 34 |
0 => '--', 1 => 'Normal', |
| 35 |
2 => 'Fault', 3 => 'Pre-Fail', |
| 36 |
4 => 'Partially Broken', 5 => 'Degraded', |
| 37 |
6 => 'Bad Sectors Found', 7 => 'Bit Errors Found', |
| 38 |
8 => 'Consistent', 9 => 'Inconsistent', |
| 39 |
10 => 'Busy', 11 => 'No Input', |
| 40 |
12 => 'Low Battery', 13 => 'Single Link Fault', |
| 41 |
14 => 'Invalid', 15 => 'Write Protect' |
| 42 |
}; |
| 43 |
|
| 44 |
$running_status = { |
| 45 |
0 => '--', 1 => 'Normal', 2 => 'Running', |
| 46 |
3 => 'Not running', 4 => 'Not existed', |
| 47 |
5 => 'Sleep in high temperature', 6 => 'Starting', |
| 48 |
7 => 'Power failure rotection', 8 => 'Sping down', |
| 49 |
9 => 'Started', 10 => 'Link Up', 11 => 'Link Down', |
| 50 |
12 => 'Powering on', 13 => 'Powered off', 14 => 'Pre-copy', |
| 51 |
15 => 'Copyback', 16 => 'Reconstruction', 17 => 'Expansion', |
| 52 |
18 => 'Unformatted', 19 => 'Formatting', 20 => 'Unmapped', |
| 53 |
21 => 'Initial synchronizing', 22 => 'Consistent', |
| 54 |
23 => 'Synchronizing', 24 => 'Synchronized', |
| 55 |
25 => 'Unsynchronized', 26 => 'Split', 27 => 'Online', |
| 56 |
28 => 'Offline', 29 => 'Locked', 30 => 'Enabled', |
| 57 |
31 => 'Disabled', 32 => 'Balancing', 33 => 'To be recovered', |
| 58 |
34 => 'Interrupted', 35 => 'Invalid', 36 => 'Not start', |
| 59 |
37 => 'Queuing', 38 => 'Stopped', 39 => 'Copying', |
| 60 |
40 => 'Completed', 41 => 'Paused', 42 => 'Reverse synchronizing', |
| 61 |
43 => 'Activated', 44 => 'Restore', 45 => 'Inactive', |
| 62 |
46 => 'Idle', 47 => 'Powering off', 48 => 'Charging', |
| 63 |
49 => 'Charging completed', 50 => 'Discharging', |
| 64 |
51 => 'Upgrading', 52 => 'Power Lost', 53 => 'Initializing', |
| 65 |
54 => 'Apply change', 55 => 'Online disable', 56 => 'Offline disable', |
| 66 |
57 => 'Online frozen', 58 => 'Offline frozen', 59 => 'Closed', |
| 67 |
60 => 'Removing', 61 => 'In service', 62 => 'Out of service', |
| 68 |
63 => 'Running normal', 64 => 'Running fail', 65 => 'Running success', |
| 69 |
66 => 'Running success', 67 => 'Running failed', 68 => 'Waiting', |
| 70 |
69 => 'Canceling', 70 => 'Canceled', 71 => 'About to synchronize', |
| 71 |
72 => 'Synchronizing data', 73 => 'Failed to synchronize', |
| 72 |
74 => 'Fault', 75 => 'Migrating', 76 => 'Migrated', |
| 73 |
77 => 'Activating', 78 => 'Deactivating', 79 => 'Start failed', |
| 74 |
80 => 'Stop failed', 81 => 'Decommissioning', 82 => 'Decommissioned', |
| 75 |
83 => 'Recommissioning', 84 => 'Replacing node', 85 => 'Scheduling', |
| 76 |
86 => 'Pausing', 87 => 'Suspending', 88 => 'Suspended', 89 => 'Overload', |
| 77 |
90 => 'To be switch', 91 => 'Switching', 92 => 'To be cleanup', |
| 78 |
93 => 'Forced start', 94 => 'Error', 95 => 'Job completed', |
| 79 |
96 => 'Partition Migrating', 97 => 'Mount', 98 => 'Umount', |
| 80 |
99 => 'INSTALLING', 100 => 'To Be Synchronized', 101 => 'Connecting', |
| 81 |
102 => 'Service Switching', 103 => 'Power-on failed', 104 => 'REPAIRING', |
| 82 |
105 => 'abnormal', 106 => 'Deleting', 107 => 'Modifying', |
| 83 |
108 => 'Running(clearing data)', 109 => 'Running(synchronizing data)' |
| 84 |
}; |
| 85 |
|
| 86 |
1; |