diff --git a/libexec/check_rattail_daemon_by_ssh.py b/libexec/check_rattail_daemon_by_ssh.py index 1ce64c2..5aa0391 100755 --- a/libexec/check_rattail_daemon_by_ssh.py +++ b/libexec/check_rattail_daemon_by_ssh.py @@ -108,7 +108,11 @@ if __name__ == '__main__': # Ok now connect, and try to get values for memory client = schecks.connect(hostname, port, ssh_key_file, passphrase, user) - result, exitcode = execute_check(client, check_path) - - print result - sys.exit(exitcode) + result = execute_check(client, check_path) + if result is False: + print("failed to execute remote check!") + sys.exit(3) + else: + output, exitcode = result + print(output) + sys.exit(exitcode)