From b0663e0495ba9d99f51a2bb99fc02baef955b1e4 Mon Sep 17 00:00:00 2001 From: argusb Date: Mon, 12 Aug 2013 14:40:23 +0200 Subject: [PATCH] Update check_eva.py Change parsing of SSSU output header to make it work with Command View EVA >= 10. --- check_eva/check_eva.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/check_eva/check_eva.py b/check_eva/check_eva.py index 148fb75..45609f1 100644 --- a/check_eva/check_eva.py +++ b/check_eva/check_eva.py @@ -231,7 +231,7 @@ def run_sssu(system=None, command="ls system full"): error = 0 if output.pop(0).strip() != '': error = 1 if output.pop(0).strip() != '': error = 1 - if output.pop(0).strip() != 'SSSU for HP StorageWorks Command View EVA': error = 1 + if output.pop(0).strip().find('SSSU for HP ') != 0: error = 1 if output.pop(0).strip().find('Version:') != 0: error=1 if output.pop(0).strip().find('Build:') != 0: error=1 if output.pop(0).strip().find('NoSystemSelected> ') != 0: error=1