From ea1dee8429a38931d2a48b3cabf69d596cae45f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A1ll=20Gu=C3=B0j=C3=B3n=20Sigur=C3=B0sson?= Date: Sat, 4 Sep 2010 01:39:24 +0000 Subject: [PATCH] --- check_eva/trunk/check_eva.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/check_eva/trunk/check_eva.py b/check_eva/trunk/check_eva.py index 45f2363..ae9a6fe 100644 --- a/check_eva/trunk/check_eva.py +++ b/check_eva/trunk/check_eva.py @@ -30,9 +30,9 @@ # First some defaults -hostname="evahost" +hostname="localhost" username="eva" -password="eval1234" +password="eva1234" mode="check_systems" debugging = False path='' @@ -194,14 +194,14 @@ def run_sssu(system=None, command="ls system full"): 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 - if output.pop(0).strip() != '': error = 1 - if output.pop(0).strip().find('NoSystemSelected> ') != 0: error=1 - if output.pop(0).strip() != '': error = 1 + #if output.pop(0).strip() != '': error = 1 + #if output.pop(0).strip().find('NoSystemSelected> ') != 0: error=1 + #if output.pop(0).strip() != '': error = 1 buffer = "" for i in output: buffer = buffer + i + "\n" - if i.find('error') > -1: - print "Error running sssu command: %s" % i + if i.find('Error') > -1: + print "This is the command i was trying to execute: %s" % i error = 1 if i.find('information:') > 0: break if error > 0: