summaryrefslogtreecommitdiffstats
path: root/plugins/check_by_ssh.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/check_by_ssh.c')
-rw-r--r--plugins/check_by_ssh.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/check_by_ssh.c b/plugins/check_by_ssh.c
index 4d0c8e7d..178908cf 100644
--- a/plugins/check_by_ssh.c
+++ b/plugins/check_by_ssh.c
@@ -100,8 +100,7 @@ int main(int argc, char **argv) {
100 if (child_result.cmd_error_code == 255 && config.unknown_timeout) { 100 if (child_result.cmd_error_code == 255 && config.unknown_timeout) {
101 mp_subcheck sc_ssh_execution = mp_subcheck_init(); 101 mp_subcheck sc_ssh_execution = mp_subcheck_init();
102 xasprintf(&sc_ssh_execution.output, "SSH connection failed: %s", 102 xasprintf(&sc_ssh_execution.output, "SSH connection failed: %s",
103 child_result.err.lines > 0 ? child_result.err.line[0] 103 child_result.err.lines > 0 ? child_result.err.line[0] : "(no error output)");
104 : "(no error output)");
105 104
106 sc_ssh_execution = mp_set_subcheck_state(sc_ssh_execution, STATE_UNKNOWN); 105 sc_ssh_execution = mp_set_subcheck_state(sc_ssh_execution, STATE_UNKNOWN);
107 mp_add_subcheck_to_check(&overall, sc_ssh_execution); 106 mp_add_subcheck_to_check(&overall, sc_ssh_execution);