mirror of
https://github.com/opinkerfi/nagios-plugins.git
synced 2024-11-25 11:53:48 +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']
|
nagios_myhostname = environ['COMPUTERNAME']
|
||||||
else:
|
else:
|
||||||
nagios_myhostname = hostname
|
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:
|
except:
|
||||||
raise
|
raise
|
||||||
print message
|
print message
|
||||||
|
Loading…
Reference in New Issue
Block a user