From d2cd0974e3e3010a436fa082b064874a101b767b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A1ll=20Gu=C3=B0j=C3=B3n=20Sigur=C3=B0sson?= Date: Wed, 8 Sep 2010 14:37:32 +0000 Subject: [PATCH] --- check_eva/trunk/check_eva.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/check_eva/trunk/check_eva.py b/check_eva/trunk/check_eva.py index c475b6b..41ec886 100644 --- a/check_eva/trunk/check_eva.py +++ b/check_eva/trunk/check_eva.py @@ -40,7 +40,7 @@ username="eva" password="eva1234" mode="check_systems" path='' -nagios_server = None +nagios_server = "" nagios_port = None # No real need to change anything below here @@ -137,10 +137,8 @@ while len(arguments) > 0: print_help() exit(ok) elif arg == '--nagioserver': - global nagios_server nagios_server = arguments.pop(0) elif arg == '--nagiosport': - global nagios_port nagios_port = arguments.pop(0) else: error( "Invalid argument %s"% arg) @@ -292,6 +290,10 @@ def end(summary,perfdata,longserviceoutput,nagios_state): print message exit(nagios_state) +''' phone_home: Sends results to remote nagios server via python xml-rpc ''' +def phone_home(nagios_server,nagios_port, status, message, hostname=None, servicename=None): + pass + def check_systems(): summary="" perfdata=""