1
0
mirror of https://github.com/opinkerfi/nagios-plugins.git synced 2024-12-22 09:03:54 +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"
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=""