From 97f3077938b8e562bcffe4b18af1b326d0941a8c Mon Sep 17 00:00:00 2001 From: Simon Guilbault Date: Wed, 18 Mar 2020 16:21:30 -0400 Subject: [PATCH] Adding support for Seagate/Xyratex SP-3584 --- README.md | 1 + check_jbod.py | 11 ++++++----- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index b6c8365..231c71d 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,7 @@ This tool is used to monitor Xyratex JBOD, also known as: - Seagate/Xyratex SP-2584 +- Seagate/Xyratex SP-3584 - Seagate Exos E 4U106 - Dell MD1420 diff --git a/check_jbod.py b/check_jbod.py index 5f16697..f76c190 100755 --- a/check_jbod.py +++ b/check_jbod.py @@ -101,7 +101,8 @@ def get_sg_jbods(): line) if mobj: model = mobj.group(1) - if model in ['SP-34106-CFFE12P', 'UD-8435-E6EBD', 'MD1420']: + if model in ['SP-34106-CFFE12P', 'UD-8435-E6EBD', 'MD1420', + 'SP-3584-E12EBD']: # A JBOD we know sg = mobj.group(2) jbod_id = ses_get_id_xyratex(sg) @@ -150,7 +151,7 @@ def get_sg_jbods(): if model == 'SP-34106-CFFE12P': fan_min = [6000, 6000, 6000, 6000, 6000, 6000, 6000, 6000, 2000, 2000] fan_max = [8000, 8000, 8000, 8000, 8000, 8000, 8000, 8000, 4000, 4000] - elif model == 'UD-8435-E6EBD': + elif model == 'UD-8435-E6EBD' or model == 'SP-3584-E12EBD': fan_min = [6000] * 10 fan_max = [8000] * 10 elif model == 'MD1420': @@ -256,7 +257,7 @@ def get_sg_jbods(): if args.psu_status is True: if model == 'SP-34106-CFFE12P': online_psu = [0, 2] - elif model == 'UD-8435-E6EBD': + elif model == 'UD-8435-E6EBD' or model == 'SP-3584-E12EBD': online_psu = [0, 2] elif model == 'MD1420': online_psu = [0, 1] @@ -288,7 +289,7 @@ def get_sg_jbods(): if model == 'SP-34106-CFFE12P': volt_min = [11.5, 190, None, None, 11.5, 190, None, None] volt_max = [12.5, 255, None, None, 12.5, 255, None, None] - elif model == 'UD-8435-E6EBD': + elif model == 'UD-8435-E6EBD' or model == 'SP-3584-E12EBD': volt_min = [11.5, None, 11.5, None] volt_max = [12.5, None, 12.5, None] elif model == 'MD1420': @@ -325,7 +326,7 @@ def get_sg_jbods(): if model == 'SP-34106-CFFE12P': current_min = [25, 1, None, None, 25, 1, None, None] current_max = [35, 2, None, None, 35, 2, None, None] - elif model == 'UD-8435-E6EBD': + elif model == 'UD-8435-E6EBD' or model == 'SP-3584-E12EBD': current_min = [37.5, None, 37.5, None] current_max = [45, None, 45, None] elif model == 'MD1420':