Merge pull request #1738 from sbraz/synology
storage::synology::snmp: handle raidStatus values over 12
This commit is contained in:
commit
e3ac3aac91
|
@ -36,6 +36,15 @@ my %map_raid_status = (
|
|||
10 => 'Canceling',
|
||||
11 => 'Degrade',
|
||||
12 => 'Crashed',
|
||||
13 => 'DataScrubbing',
|
||||
14 => 'RaidDeploying',
|
||||
15 => 'RaidUnDeploying',
|
||||
16 => 'RaidMountCache',
|
||||
17 => 'RaidUnmountCache',
|
||||
18 => 'RaidExpandingUnfinishedSHR',
|
||||
19 => 'RaidConvertSHRToPool',
|
||||
20 => 'RaidMigrateSHR1ToSHR2',
|
||||
21 => 'RaidUnknownStatus',
|
||||
);
|
||||
|
||||
my $mapping = {
|
||||
|
|
|
@ -58,6 +58,15 @@ sub set_system {
|
|||
['Canceling', 'OK'],
|
||||
['Degrade', 'WARNING'],
|
||||
['Crashed', 'CRITICAL'],
|
||||
['DataScrubbing', 'OK'],
|
||||
['RaidDeploying', 'OK'],
|
||||
['RaidUnDeploying', 'OK'],
|
||||
['RaidMountCache', 'OK'],
|
||||
['RaidUnmountCache', 'OK'],
|
||||
['RaidExpandingUnfinishedSHR', 'OK'],
|
||||
['RaidConvertSHRToPool', 'OK'],
|
||||
['RaidMigrateSHR1ToSHR2', 'OK'],
|
||||
['RaidUnknownStatus', 'UNKNOWN'],
|
||||
],
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue