From 09530634de3291df5af1fce11d0f378a20aefed3 Mon Sep 17 00:00:00 2001 From: Pall Sigurdsson Date: Mon, 25 Jul 2011 10:41:29 +0000 Subject: [PATCH] improved error handling for check_eva phone_home --- check_eva/trunk/check_eva.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/check_eva/trunk/check_eva.py b/check_eva/trunk/check_eva.py index 40a4808..f8209b9 100644 --- a/check_eva/trunk/check_eva.py +++ b/check_eva/trunk/check_eva.py @@ -333,7 +333,9 @@ def end(summary,perfdata,longserviceoutput,nagios_state): nagios_myhostname = environ['COMPUTERNAME'] else: nagios_myhostname = hostname - phone_home(nagios_server,nagios_port, status=nagios_state, message=message, hostname=nagios_myhostname, servicename=mode,system=check_system) + try: phone_home(nagios_server,nagios_port, status=nagios_state, message=message, hostname=nagios_myhostname, servicename=mode,system=check_system) + except:pass + except: raise print message