#!/usr/bin/expect -f
# Copyright (C) 2019 Checkmk GmbH - License: GNU General Public License v2
# This file is part of Checkmk (https://checkmk.com). It is subject to the terms and
# conditions defined in the file COPYING, which is part of this source code package.

send_user "<<<acme_sbc>>>\n"
log_user 0
set host [lindex $argv 0]
spawn ssh -l user $host

expect "*>"
log_user 1
send "show health\r"
expect "*>"
log_user 0
send "exit\r"
