1
0
mirror of https://github.com/opinkerfi/nagios-plugins.git synced 2024-11-22 10:23:46 +01:00
This commit is contained in:
Páll Guðjón Sigurðsson 2010-09-08 14:37:32 +00:00
parent 0b3f0eac62
commit d2cd0974e3

View File

@ -40,7 +40,7 @@ username="eva"
password="eva1234" password="eva1234"
mode="check_systems" mode="check_systems"
path='' path=''
nagios_server = None nagios_server = ""
nagios_port = None nagios_port = None
# No real need to change anything below here # No real need to change anything below here
@ -137,10 +137,8 @@ while len(arguments) > 0:
print_help() print_help()
exit(ok) exit(ok)
elif arg == '--nagioserver': elif arg == '--nagioserver':
global nagios_server
nagios_server = arguments.pop(0) nagios_server = arguments.pop(0)
elif arg == '--nagiosport': elif arg == '--nagiosport':
global nagios_port
nagios_port = arguments.pop(0) nagios_port = arguments.pop(0)
else: else:
error( "Invalid argument %s"% arg) error( "Invalid argument %s"% arg)
@ -292,6 +290,10 @@ def end(summary,perfdata,longserviceoutput,nagios_state):
print message print message
exit(nagios_state) 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(): def check_systems():
summary="" summary=""
perfdata="" perfdata=""