aboutsummaryrefslogtreecommitdiff
path: root/plugins/check_by_ssh.c
diff options
context:
space:
mode:
authorGravatar Matthias Eble <psychotrahe@users.sourceforge.net> 2007-09-23 12:26:03 +0000
committerGravatar Matthias Eble <psychotrahe@users.sourceforge.net> 2007-09-23 12:26:03 +0000
commite8d6f41fadd81840aba3d408fe7778ccfd31ad95 (patch)
tree89246f7e4232d3232e39bf70d354e3599fe36258 /plugins/check_by_ssh.c
parent2bb98ff021287c15aa1b4108b11568371cfabcbc (diff)
downloadmonitoring-plugins-e8d6f41fadd81840aba3d408fe7778ccfd31ad95.tar.gz
Added multiline output capability to check_by_ssh. Thanks to Matthias Flacke (#1769653)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1792 f882894a-f735-0410-b71e-b25c423dba1c
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 46d1297f..7306e743 100644
--- a/plugins/check_by_ssh.c
+++ b/plugins/check_by_ssh.c
@@ -110,7 +110,8 @@ main (int argc, char **argv)
* Wrap up quickly and keep the tricks below */
if(!passive) {
if (chld_out.lines > skip_stdout)
- puts (chld_out.line[skip_stdout]);
+ for (i = skip_stdout; i < chld_out.lines; i++)
+ puts (chld_out.line[i]);
else
printf (_("%s - check_by_ssh: Remote command '%s' returned status %d\n"),
state_text(result), remotecmd, result);