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, 2 insertions, 1 deletions
diff --git a/plugins/check_by_ssh.c b/plugins/check_by_ssh.c
index 46d1297..7306e74 100644
--- a/plugins/check_by_ssh.c
+++ b/plugins/check_by_ssh.c
@@ -110,7 +110,8 @@ main (int argc, char **argv)
110 * Wrap up quickly and keep the tricks below */ 110 * Wrap up quickly and keep the tricks below */
111 if(!passive) { 111 if(!passive) {
112 if (chld_out.lines > skip_stdout) 112 if (chld_out.lines > skip_stdout)
113 puts (chld_out.line[skip_stdout]); 113 for (i = skip_stdout; i < chld_out.lines; i++)
114 puts (chld_out.line[i]);
114 else 115 else
115 printf (_("%s - check_by_ssh: Remote command '%s' returned status %d\n"), 116 printf (_("%s - check_by_ssh: Remote command '%s' returned status %d\n"),
116 state_text(result), remotecmd, result); 117 state_text(result), remotecmd, result);