From 107e71d85c901bf534ef1420483e82b9964424b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A1ll=20Gu=C3=B0j=C3=B3n=20Sigur=C3=B0sson?= Date: Mon, 25 Oct 2010 19:11:22 +0000 Subject: [PATCH] --- check_eva/trunk/check_eva.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/check_eva/trunk/check_eva.py b/check_eva/trunk/check_eva.py index 8c134fd..40a4808 100644 --- a/check_eva/trunk/check_eva.py +++ b/check_eva/trunk/check_eva.py @@ -550,6 +550,7 @@ def check_controllers(): for controller in result: controller['systemname'] = i['objectname'] controllers.append( controller ) + summary = "%s objects found " % len(controllers) for i in controllers: systemname = i['systemname'] if i.has_key('controllername'): @@ -561,7 +562,7 @@ def check_controllers(): # Lets add to the summary if not i.has_key('operationalstate'): - summary = summary + " %s does not have any operationalstate" % controllername + summary = summary + " %s does not have any operationalstate " % controllername nagios_state = max( unknown, nagios_state ) continue elif i['operationalstate'] != 'good':