mirror of
https://github.com/opinkerfi/nagios-plugins.git
synced 2024-11-22 02:13:44 +01:00
improved error handling for check_eva phone_home
This commit is contained in:
parent
b341201cf4
commit
09530634de
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user