summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2bb98ff)
raw | patch | inline | side by side (parent: 2bb98ff)
author | Matthias Eble <psychotrahe@users.sourceforge.net> | |
Sun, 23 Sep 2007 12:26:03 +0000 (12:26 +0000) | ||
committer | Matthias Eble <psychotrahe@users.sourceforge.net> | |
Sun, 23 Sep 2007 12:26:03 +0000 (12:26 +0000) |
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1792 f882894a-f735-0410-b71e-b25c423dba1c
NEWS | patch | blob | history | |
plugins/check_by_ssh.c | patch | blob | history |
index 5b0981e82ef434d34e2dde38eccd437cc57c4f4d..8b160c8c0044ee3724b4f995d563cf8ae048418f 100644 (file)
--- a/NEWS
+++ b/NEWS
- enforce a full path for the command to run
The "negate" utility can now remap custom states
Check_radius now supports radiusclient-ng
+ Check_by_ssh now supports multiline output
1.4.9 4th June 2006
Inclusion of contrib/check_cluster2 as check_cluster with some improvements
diff --git a/plugins/check_by_ssh.c b/plugins/check_by_ssh.c
index 46d1297fe744b6bd0097e84712a24cd74a1bf963..7306e743da5cb162a9179713b6f6c6eff64eafc5 100644 (file)
--- a/plugins/check_by_ssh.c
+++ b/plugins/check_by_ssh.c
* 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);