Compare commits
2 commits
602848cd9d
...
7ec8690d72
Author | SHA1 | Date | |
---|---|---|---|
7ec8690d72 | |||
dec2561db2 |
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
*~
|
|
@ -108,7 +108,11 @@ if __name__ == '__main__':
|
||||||
|
|
||||||
# Ok now connect, and try to get values for memory
|
# Ok now connect, and try to get values for memory
|
||||||
client = schecks.connect(hostname, port, ssh_key_file, passphrase, user)
|
client = schecks.connect(hostname, port, ssh_key_file, passphrase, user)
|
||||||
result, exitcode = execute_check(client, check_path)
|
result = execute_check(client, check_path)
|
||||||
|
if result is False:
|
||||||
print result
|
print("failed to execute remote check!")
|
||||||
sys.exit(exitcode)
|
sys.exit(3)
|
||||||
|
else:
|
||||||
|
output, exitcode = result
|
||||||
|
print(output)
|
||||||
|
sys.exit(exitcode)
|
||||||
|
|
Loading…
Reference in a new issue