improved error handling for check_eva phone_home

This commit is contained in:
Pall Sigurdsson 2011-07-25 10:41:29 +00:00
parent b341201cf4
commit 09530634de
1 changed files with 3 additions and 1 deletions

View File

@ -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