Merge pull request #1738 from sbraz/synology

storage::synology::snmp: handle raidStatus values over 12
This commit is contained in:
qgarnier 2019-11-20 11:17:16 +01:00 committed by GitHub
commit e3ac3aac91
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 18 additions and 0 deletions

View File

@ -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 = {

View File

@ -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'],
],
};