mirror of
https://github.com/opinkerfi/nagios-plugins.git
synced 2024-11-21 18:03:45 +01:00
This commit is contained in:
parent
0b3f0eac62
commit
d2cd0974e3
@ -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=""
|
||||
|
Loading…
Reference in New Issue
Block a user